Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
16
_module/nss/zep_unsecret.nss
Normal file
16
_module/nss/zep_unsecret.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
location lLoc = GetLocation(OBJECT_SELF);
|
||||
string sSecretSwap = GetLocalString(OBJECT_SELF, "CEP_L_SECRETSWAP");
|
||||
//SendMessageToPC(GetFirstPC(), GetResRef(OBJECT_SELF));
|
||||
//SendMessageToPC(GetFirstPC(), sSecretSwap);
|
||||
object oNew = CreateObject(OBJECT_TYPE_PLACEABLE, sSecretSwap, lLoc);
|
||||
SetLocalString(oNew, "CEP_L_SECRETSWAP", GetResRef(OBJECT_SELF));
|
||||
SetLocalString(oNew, "CEP_L_GATEBLOCK", GetLocalString(OBJECT_SELF, "CEP_L_GATEBLOCK"));
|
||||
//SendMessageToPC(GetFirstPC(), "New ResRef "+GetResRef(oNew));
|
||||
//SendMessageToPC(GetFirstPC(), "New Tag "+GetTag(oNew));
|
||||
//SendMessageToPC(GetFirstPC(), "New Swap "+GetLocalString(oNew, "CEP_L_SECRETSWAP"));
|
||||
ExecuteScript("zep_doorkill", OBJECT_SELF);
|
||||
ExecuteScript("zep_doorspawn", oNew);
|
||||
DestroyObject(OBJECT_SELF);
|
||||
}
|
||||
Reference in New Issue
Block a user