07-06-2012, 03:13 AM
The command Self.PositionIn(X1, Y1, Z1, X2, Y2, Z2) returns 1, and this is true. If your character get close to the NPC, and the condition is true, place the end of the command that condition below:
Therefore, only if the position is false, the character will return to the label requested.
Code:
Macro (X Y Z:1000 {ifPositionIsTrue} Self.PositionIn(X1, Y1, Z1, X2, Y2, Z2)<>1 CaveBot.GoLabel(backNpc))
Therefore, only if the position is false, the character will return to the label requested.