void main() { object oPC = GetLastUsedBy(); if (!GetIsPC(oPC)) return; object oTarget; location lTarget; int droll = 4 + d4(); oTarget = GetWaypointByTag("P_illthid_port" + IntToString(droll)); lTarget = GetLocation(oTarget); if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return; AssignCommand(oPC, ClearAllActions()); AssignCommand(oPC, ActionJumpToLocation(lTarget)); }