//:://///////////////////////////////////////////// //:: FileName give_opiumsyrup //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: Script Wizard //:: Created On: 1/28/2004 7:05:50 PM //::////////////////////////////////////////////// void main() { // Remove items from the player's inventory object oItemToTake; oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "OpiumSyrup"); if(GetIsObjectValid(oItemToTake) != 0) DestroyObject(oItemToTake); // Give the speaker the items CreateItemOnObject("opiumsyrup", GetPCSpeaker(), 1); // Remove some gold from the player TakeGoldFromCreature(50, GetPCSpeaker(), TRUE); }