WoR_PRC8/_module/nss/quest_13_e.nss

28 lines
1.1 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_13")) == FALSE){
RewardPartyXP(800, GetPCSpeaker());
CreateItemOnObject("bracersofholylig", GetPCSpeaker(), 1);
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_13");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
DestroyObject(oItemToTake);
sSayThis = "I see it is broken from battle. No worry. The local blacksmith can fix it for me. All I have to offer, for my thanks, is this bracers that my brother had worn during the battle for Stralad.";
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 = "Hey! Did you find the sword or not?";
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
}