RoT2_PRC8/_module/nss/cb_repentpally.nss

23 lines
344 B
Plaintext
Raw Permalink Normal View History

2023-09-25 18:13:22 -04:00
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("wp_repent_pally");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}