void main() { // +1 - +14 switches CreateItemOnObject("flagswitch087",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch088",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch089",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch090",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch091",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch092",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch093",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch180",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch181",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch182",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch183",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch184",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch185",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch186",OBJECT_SELF,1); //enchant item //elemental damage switches CreateItemOnObject("flagswitch094",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch095",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch096",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch097",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch098",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch099",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch163",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch164",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch165",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch166",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch172",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch167",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch168",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch169",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch170",OBJECT_SELF,1); //enchant item CreateItemOnObject("flagswitch171",OBJECT_SELF,1); //enchant item // Search for and destroy any hidden 'body bags' from prior incarnations of this placeable object oSearchForBag = GetNearestObjectByTag("Body Bag",OBJECT_SELF,1); if (oSearchForBag == OBJECT_INVALID)return; object oBagItem = OBJECT_INVALID; if (GetDistanceToObject(oSearchForBag)<= 0.2) { //SendMessageToPC(GetFirstPC(),"Body bag found.. destroying contents.."); oBagItem = GetFirstItemInInventory(oSearchForBag); while (oBagItem != OBJECT_INVALID) { //SendMessageToPC(GetFirstPC(),"Destroying : "+GetName(oBagItem)); DestroyObject(oBagItem); oBagItem = GetNextItemInInventory(oSearchForBag); } DestroyObject(oSearchForBag,1.0); } }