Initial commit
Initial commit. Updated release archive.
This commit is contained in:
26
_module/nss/en6_port_info.nss
Normal file
26
_module/nss/en6_port_info.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oWP;
|
||||
string sTag;
|
||||
|
||||
oPC=GetPlaceableLastClickedBy();
|
||||
|
||||
if (GetDistanceBetween(oPC,OBJECT_SELF) > 5.0)
|
||||
{
|
||||
SendMessageToPC(oPC,"You are too far away to touch the shaft of light.");
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
} else {
|
||||
if (GetIsInCombat(oPC))
|
||||
{
|
||||
SendMessageToPC(oPC,"You are too busy right now to touch the shaft of light.");
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
} else {
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
sTag=GetLocalString(GetArea(OBJECT_SELF),"Zone") + "_INFO";
|
||||
oWP=GetObjectByTag(sTag);
|
||||
AssignCommand(oPC,JumpToLocation(GetLocation(oWP)));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user