void main() { object oPC = GetPCSpeaker(); if(GetItemPossessedBy(oPC, "fr_iwd_ogreloot3")!= OBJECT_INVALID) // Give the speaker some gold GiveGoldToCreature(oPC, 50); // Remove items from the player's inventory object oItemToTake; oItemToTake = GetItemPossessedBy(oPC, "fr_iwd_ogreloot3"); if(GetIsObjectValid(oItemToTake) != 0) DestroyObject(oItemToTake); }