as kazan said, its not something easy that you can put in one short macro...
I could do it if i was making it for myself with my own characters and my own script, but its not something i can just write on forum for someone.
But here is how it would look like:
First part of macro is easy, u need to track if there is that jug on screen and stop attacking with turning killer off.
then if its a cave, you need make labels between waypoints on way back to safe spot that bot can reach by mouseclick (meaning, not blocked by fires, boxes, bunch of creatures, etc)
cuz if there are possibilities of fire and other fields, and or existance of objects like box or parcel, that you can not walk by mouseclick, it would require you to make label every ~7 sqm to be safe.
Then macro for each mentioned zone between labeled points (max 7x5sqm) that would recognise if your charcter is being in specific rectangular
Self.PositionIn(X1, Y1, Z1, X2, Y2, Z2) which you would assign correct label to go from that point.
BUT if there are no fire fields, no loads of monsters and
u dont care for it to be 100% safe, you can just put one label on same floor (Z) in the safe spot and make macro like this
Code:
Creatures.ByName(Juggernaut)>=1
Self.Stop()
Killer.Stop()
CaveBot.GoLabel(NameOfTheLabel)
exit()
Then in that safe spot you need something to trigger killer back on.
like manual macro that u activate as waypoint in cavebot
or automatic macro with cooldown for jugger (keep in mind i write everything here, just using my imagination
, not tested)
Code:
Creatures.ByName(Juggernaut)>=1 [a]
Cooldown.Create(JugScreen, 8000)
exit()
{a}
Cooldown.Blocked(JugScreen)==0
Killer.Start()
small reminder, u need to use latest bbot , 82.6+