Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

24 lines
543 B
Plaintext

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)));
}
}
}