WoR_PRC8/_module/nss/s_illthid_ports3.nss

30 lines
447 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
location lTarget;
int droll = 8 + d4();
if(droll == 12)
{
if(d2() == 1)
{
droll++;
}
}
oTarget = GetWaypointByTag("P_illthid_port" + IntToString(droll));
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}