Okay so I described the situation in this picture:
http://i.imgur.com/BsTPVnm.png
The green broken circle is the spawn I'm botting, the red circle is a dangerous spawn pretty close. Its no problem if monsters from the red spawn get lured
into the green area.
The green arrows are how the bot will walk.
The purple lines are special areas.
Just before the first purple line, bot will set
all monsters to kill 'Only if trapped'. Also it will cast strong haste and it will run to a waypoint
after the second purple line. So it will run trough the red part of the spawn without killing anything.
After it reaches that waypoint, bot will kill monsters again like normally.
But rarely, monsters will run past purple line #2, and the bot will cross the purple line to loot it or kill it
and loot. See where I'm going? If this happens, the bot will be near the red dangerous spawn, and monsters will lure my char there. If this happens, the char will die.
So I want it to
NEVER cross the 2nd purple line when it reached the waypoint after it.
How would I do that?