Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
28
_module/nss/id_teleport.nss
Normal file
28
_module/nss/id_teleport.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
void main()
|
||||
{
|
||||
string sTag;
|
||||
string sCheckTag;
|
||||
string sTeleportTag;
|
||||
int iTeleport1;
|
||||
int iTeleport2;
|
||||
object oPC;
|
||||
object oArea;
|
||||
location lTeleport;
|
||||
|
||||
oPC = GetEnteringObject();
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
oArea=GetArea(oPC);
|
||||
iTeleport1 = GetLocalInt(oArea,"IDTeleport1");
|
||||
iTeleport2 = GetLocalInt(oArea,"IDTeleport2");
|
||||
sTag = GetTag(OBJECT_SELF);
|
||||
sCheckTag = "ID_Trig" + IntToString(iTeleport1);
|
||||
if (sTag == sCheckTag)
|
||||
{
|
||||
SendMessageToPC(oPC,"Your vision blurs and you feel a strange rushing sensation. When your vision finally clears you find yourself somewhere else...");
|
||||
sTeleportTag = "ID_Special" + IntToString(iTeleport2);
|
||||
lTeleport = GetLocation(GetObjectByTag(sTeleportTag));
|
||||
AssignCommand(oPC,JumpToLocation(lTeleport));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user