//:://///////////////////////////////////////////// //:: FileName take_coldstone //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: X1_IT_MSMLMISC01 = ColdStone //:: Created By: Script Wizard //:: Created On: 9/01/2004 12:26:05 AM //::////////////////////////////////////////////// void main() { object oPC = GetPCSpeaker(); object oItemToTake; /// check if item is present in inventory if (GetItemPossessedBy(oPC, "X1_IT_MSMLMISC01")!= OBJECT_INVALID) { // Remove items from the player's inventory oItemToTake = GetItemPossessedBy(oPC, "X1_IT_MSMLMISC01"); if(GetIsObjectValid(oItemToTake) != 0) DestroyObject(oItemToTake); // Identify PC as having paid SetLocalInt(oPC, "nPaid", 1); } }