Aantioch_Infernum/_module/nss/kingreward3.nss
2023-10-12 22:59:45 -05:00

25 lines
665 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName kingreward3
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 1
//:://////////////////////////////////////////////
#include "nw_i0_tool"
void main()
{
// Give the speaker some XP
RewardPartyXP(5000, GetPCSpeaker());
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "warlordshead");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
// Set the variables
SetLocalInt(GetPCSpeaker(), "warlordreward", 1);
}