Files
Anphillia_PRC8/_module/nss/eye_portaltrig.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

36 lines
1.3 KiB
Plaintext

void main()
{
object oPC = GetExitingObject();
object oPortalWest = GetNearestObjectByTag("elemportwest");
object oPortalEast = GetNearestObjectByTag("elemporteast");
object oStore = GetNearestObjectByTag("ElemPortStore");
DestroyObject(GetNearestObjectByTag("elemportwest"));
DestroyObject(GetNearestObjectByTag("elemporteast"));
if (GetItemPossessedBy(oPC, "stoneofair") != OBJECT_INVALID)
{
DestroyObject(GetNearestObjectByTag("ShaftofAir"));
DestroyObject(GetNearestObjectByTag("ShaftofAir"));
SetLocalInt(oStore, "air", 0);
}
else if (GetItemPossessedBy(oPC, "stoneofearth") != OBJECT_INVALID)
{
DestroyObject(GetNearestObjectByTag("ShaftofEarth"));
DestroyObject(GetNearestObjectByTag("ShaftofEarth"));
SetLocalInt(oStore, "earth", 0);
}
else if (GetItemPossessedBy(oPC, "stoneoffire") != OBJECT_INVALID)
{
DestroyObject(GetNearestObjectByTag("ShaftofFire"));
DestroyObject(GetNearestObjectByTag("ShaftofFire"));
SetLocalInt(oStore, "fire", 0);
}
else if (GetItemPossessedBy(oPC, "stoneofwater") != OBJECT_INVALID)
{
DestroyObject(GetNearestObjectByTag("ShaftofWater"));
DestroyObject(GetNearestObjectByTag("ShaftofWater"));
SetLocalInt(oStore, "water", 0);
}
}