25 lines
665 B
Plaintext
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);
|
||
|
|
||
|
}
|