32 lines
545 B
Plaintext
32 lines
545 B
Plaintext
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oClicker = GetClickingObject();
|
|
object oTarget = GetTransitionTarget(OBJECT_SELF);
|
|
location lLoc = GetLocation(GetObjectByTag("2wiz"));
|
|
location lLoc2 = GetLocation(GetObjectByTag("nowiz"));
|
|
|
|
if((GetLocalInt(oClicker, "Wiz") == 1))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc));
|
|
}
|
|
|
|
else if(HasItem(oClicker, "wizintfix"))
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc));
|
|
}
|
|
else
|
|
{
|
|
AssignCommand(oClicker,JumpToLocation(lLoc2));
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|