Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
35
_module/nss/eye_portaltrig.nss
Normal file
35
_module/nss/eye_portaltrig.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user