Initial commit
Initial commit [1.18]
This commit is contained in:
27
_module/nss/quest_16_b.nss
Normal file
27
_module/nss/quest_16_b.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
string sSayThis;
|
||||
int iTalkVolume = TALKVOLUME_TALK;
|
||||
int iTalkFlag = 0;
|
||||
#include "nw_i0_tool"
|
||||
|
||||
void main()
|
||||
{
|
||||
if((!HasItem(GetPCSpeaker(), "QWEST_16")) == FALSE){
|
||||
RewardPartyXP(1000, GetPCSpeaker());
|
||||
CreateItemOnObject("itemof", GetPCSpeaker(), 1);
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "QWEST_16");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
DestroyObject(oItemToTake);
|
||||
DestroyObject(oItemToTake);
|
||||
sSayThis = "Thank you kindly. Here. You can have this as a token of my thanks.";
|
||||
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
||||
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));
|
||||
DelayCommand(2.0, ExecuteScript("quest_spawn", OBJECT_SELF));
|
||||
AdjustAlignment(GetPCSpeaker(), ALIGNMENT_GOOD, 5);}
|
||||
|
||||
else {
|
||||
sSayThis = "Well...did you kill him or not?";
|
||||
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
|
||||
AssignCommand(OBJECT_SELF, ActionSpeakString(sSayThis, iTalkVolume));}
|
||||
}
|
||||
Reference in New Issue
Block a user