I replaced the > and lt things and that seems to solve a lot.
But now the macro runs up to the avoid mobs part of the code
it buffs you then it buffs the pet, then it drops anchor point then it says
Looking for mobs
Acquired a_giant_scarab06 at range 158 from us, and 158 from anchor
AVOIDING NULL
Attacking Mob NOW!
At this point it turns on auto attack quickly targets the mob then DESELECTs the target and tracks the movement of the mob because i keep turning and facing the mob it an keesp turning as the mob walks but I dont walk forward to engage the mob nor cast anything on the mob. I just stand there.
I know very little programming so any help would be great

