WoR_PRC8/_module/nss/quest_18_d.nss

28 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iTalkFlag = 0;
#include "nw_i0_tool"
void main()
{
if((!HasItem(GetPCSpeaker(), "QWEST_18")) == FALSE){
RewardPartyXP(1500, GetPCSpeaker());
CreateItemOnObject("cloakofthewisp", GetPCSpeaker(), 1);
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_18");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
sSayThis = "I did feel different, but I wasn't sure. Here. Take this cloak. It has served me well.";
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 = "Please! Show me his head so I can be sure!";
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
}