28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
string sSayThis;
|
|
int iTalkVolume = TALKVOLUME_TALK;
|
|
int iTalkFlag = 0;
|
|
#include "nw_i0_tool"
|
|
|
|
void main()
|
|
{
|
|
if((!HasItem(GetPCSpeaker(), "QWEST_37")) == FALSE){
|
|
RewardPartyXP(800, GetPCSpeaker());
|
|
CreateItemOnObject("orbofunrest", GetPCSpeaker(), 1);
|
|
object oItemToTake;
|
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_37");
|
|
if(GetIsObjectValid(oItemToTake) != 0)
|
|
DestroyObject(oItemToTake);
|
|
DestroyObject(oItemToTake);
|
|
DestroyObject(oItemToTake);
|
|
sSayThis = "Oh thank you. Here. You can have this. I could not sell it to the vendors because they didn't want it in their shops, but it is safe.";
|
|
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
|
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));
|
|
DelayCommand(2.0, ExecuteScript("quest_spawn", OBJECT_SELF));
|
|
AdjustAlignment(GetPCSpeaker(), ALIGNMENT_NEUTRAL, 5);}
|
|
|
|
else {
|
|
sSayThis = "Did you find my jewels or not?";
|
|
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
|
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
|
|
}
|