31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
|
string sSayThis;
|
||
|
int iTalkVolume = TALKVOLUME_TALK;
|
||
|
int iTalkFlag = 0;
|
||
|
#include "nw_i0_tool"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
if((!HasItem(GetPCSpeaker(), "QWEST_35")) == FALSE){
|
||
|
RewardPartyGP(200, GetPCSpeaker());
|
||
|
RewardPartyXP(200, GetPCSpeaker());
|
||
|
CreateItemOnObject("runeofaid", GetPCSpeaker(), 1);
|
||
|
object oItemToTake;
|
||
|
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_35");
|
||
|
if(GetIsObjectValid(oItemToTake) != 0)
|
||
|
DestroyObject(oItemToTake);
|
||
|
DestroyObject(oItemToTake);
|
||
|
DestroyObject(oItemToTake);
|
||
|
sSayThis = "Thank you. Take this gold for your trouble.";
|
||
|
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
||
|
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));
|
||
|
DelayCommand(2.0, ExecuteScript("quest_spawn", OBJECT_SELF));
|
||
|
{
|
||
|
if (GetAlignmentGoodEvil(GetPCSpeaker()) == ALIGNMENT_GOOD){
|
||
|
AdjustAlignment(GetPCSpeaker(), ALIGNMENT_GOOD, 5);}}}
|
||
|
|
||
|
else {
|
||
|
sSayThis = "Can I have the letter please?";
|
||
|
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
||
|
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
|
||
|
}
|