20 lines
457 B
Plaintext
20 lines
457 B
Plaintext
void main()
|
|
{
|
|
int iXP;
|
|
object oPC = GetLastUsedBy();
|
|
object oTarget1;
|
|
object oTarget2;
|
|
oTarget1 = GetWaypointByTag("beginner1");
|
|
oTarget2 = GetWaypointByTag("normal1");
|
|
iXP = GetXP(oPC);
|
|
if (iXP < 999)
|
|
{
|
|
AssignCommand(oPC, ClearAllActions());
|
|
if (GetIsPC(oPC))
|
|
AssignCommand(oPC, JumpToLocation(GetLocation(oTarget1)));
|
|
}
|
|
else
|
|
AssignCommand(oPC, ClearAllActions());
|
|
AssignCommand(oPC, JumpToLocation(GetLocation(oTarget2)));
|
|
}
|