24 lines
387 B
Plaintext
24 lines
387 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
int droll = 13 + d3();
|
||
|
|
||
|
oTarget = GetWaypointByTag("P_illthid_port" + IntToString(droll));
|
||
|
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
|
||
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||
|
|
||
|
}
|
||
|
|