Initial commit
Initial commit. Updated release archive.
This commit is contained in:
23
_module/nss/gp_ladder.nss
Normal file
23
_module/nss/gp_ladder.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
oPC=GetPlaceableLastClickedBy();
|
||||
|
||||
if (GetDistanceBetween(oPC,OBJECT_SELF) > 4.0)
|
||||
{
|
||||
SendMessageToPC(oPC,"You are too far away to climb the ladder.");
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetIsInCombat(oPC))
|
||||
{
|
||||
SendMessageToPC(oPC,"You are too busy to climb the ladder.");
|
||||
AssignCommand(oPC,ClearAllActions());
|
||||
} else {
|
||||
object oWP=GetObjectByTag("CC2_GP_Exit");
|
||||
AssignCommand(oPC,JumpToLocation(GetLocation(oWP)));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user