Battledale_PRC8/_module/nss/jw_sembdoor2_cli.nss

24 lines
343 B
Plaintext
Raw Permalink Normal View History

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)))));
}
}