WoR_PRC8/_module/nss/quest_20_d.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

27 lines
985 B
Plaintext

string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iTalkFlag = 0;
#include "nw_i0_tool"
void main()
{
if((!HasItem(GetPCSpeaker(), "QWEST_20")) == FALSE){
RewardPartyXP(2000, GetPCSpeaker());
CreateItemOnObject("ringofawakening", GetPCSpeaker(), 1);
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_20");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
sSayThis = "Wait...this ring was never on this necklace. Here. You take it.";
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));
DelayCommand(2.0, ExecuteScript("quest_spawn", OBJECT_SELF));}
else {
sSayThis = "I don't believe you! Where is his necklace?";
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
}