void main() { object oItem; string sTag; string sTa2; location lLoc; object aArea; oItem = GetModuleItemLost(); lLoc = GetLocation(GetModuleItemLost()); sTag = GetTag(GetModuleItemLost()); sTa2 = GetTag(GetAreaFromLocation(lLoc)); if (GetIdentified(GetModuleItemLost())) if (sTag == "port_item11") if (sTa2 != "Moebiustower") { DestroyObject(GetModuleItemLost()); ActionWait(5.0); object oPC=GetModuleItemLostBy(); object oPortable=CreateObject(OBJECT_TYPE_PLACEABLE,"portablegate",lLoc,TRUE); DelayCommand(0.5,AssignCommand(oPortable,SetFacingPoint(GetPosition(oPC)))); DelayCommand(0.51,AssignCommand(oPortable,SetFacing(GetFacing(oPortable)+180.0))); } if (GetIdentified(GetModuleItemLost())) if (sTag == "port_item11") if (sTa2 == "Moebiustower") { DestroyObject(GetModuleItemLost()); ActionWait(5.0); object oPC=GetModuleItemLostBy(); object oPortable=CreateObject(OBJECT_TYPE_PLACEABLE,"portablegate",lLoc,TRUE); DelayCommand(0.5,AssignCommand(oPortable,SetFacingPoint(GetPosition(oPC)))); DelayCommand(0.51,AssignCommand(oPortable,SetFacing(GetFacing(oPortable)+180.0))); } if (GetIdentified(GetModuleItemLost())) if (sTag == "port_item22") if (sTa2 != "Moebiustower") { DestroyObject(GetModuleItemLost()); ActionWait(5.0); object oPC=GetModuleItemLostBy(); object oPortable=CreateObject(OBJECT_TYPE_PLACEABLE,"portablegate",lLoc,TRUE); DelayCommand(0.5,AssignCommand(oPortable,SetFacingPoint(GetPosition(oPC)))); DelayCommand(0.51,AssignCommand(oPortable,SetFacing(GetFacing(oPortable)+180.0))); } if (GetIdentified(GetModuleItemLost())) if (sTag == "port_item22") if (sTa2 == "Moebiustower") { DestroyObject(GetModuleItemLost()); ActionWait(5.0); object oPC=GetModuleItemLostBy(); object oPortable=CreateObject(OBJECT_TYPE_PLACEABLE,"portablegate",lLoc,TRUE); DelayCommand(0.5,AssignCommand(oPortable,SetFacingPoint(GetPosition(oPC)))); DelayCommand(0.51,AssignCommand(oPortable,SetFacing(GetFacing(oPortable)+180.0))); } }