24 lines
343 B
Plaintext
24 lines
343 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC=GetClickingObject();
|
||
|
|
||
|
|
||
|
object oArea=GetArea(OBJECT_SELF);
|
||
|
|
||
|
if (GetLocalInt(oArea,"nRiddle")==2)
|
||
|
|
||
|
{
|
||
|
AssignCommand(oPC,JumpToObject(GetWaypointByTag("jw_sembc_wp")));
|
||
|
|
||
|
}
|
||
|
|
||
|
else
|
||
|
|
||
|
{
|
||
|
|
||
|
AssignCommand(oPC,RemoveFromParty(oPC));
|
||
|
AssignCommand(oPC,JumpToObject(GetWaypointByTag("jw_sembw_wp"+IntToString(Random(5)))));
|
||
|
}
|
||
|
|
||
|
}
|