//:://///////////////////////////////////////////// //:: FileName at_takeapple //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: Script Wizard //:: Created On: 04/09/18 18:47:09 //::////////////////////////////////////////////// #include "nw_i0_tool" void main() { // Give the speaker some gold RewardPartyGP(5000, GetPCSpeaker()); // Give the speaker some XP RewardPartyXP(600, GetPCSpeaker()); // Remove items from the player's inventory object oItemToTake; oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "GoldenApple"); if(GetIsObjectValid(oItemToTake) != 0) DestroyObject(oItemToTake); }