2024-06-20 15:47:42 -04:00

25 lines
707 B
Plaintext

//::///////////////////////////////////////////////
//:: 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);
}