Files
HeroesStone_PRC8/_module/nss/sf_port_drop1.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

59 lines
1.9 KiB
Plaintext

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)));
}
}