Heres a simple one I did that is set to hit range 1 time per second and ends if you have no target , you gain XP or if you turn auto attack on .. I got it from another macro and just added some events into it and changed the delay time on it so that it didnt spam range attack 1000 times a second lol...