Code: Select all
|Scorpion.mac
#include Routines.mac
Sub Main
/target scorpion
/varset v90 $target(id)
/face
/attack on
/varset t0 5m
:CloserAF
/if "$target(id)"!="$v90" /goto :EndAF
/if n $target(distance)>14 /call AutoRun 1
/if n $target(distance)<7 /call AutoRun 0
/if n $t0==0 /press esc
/if n $char(hp,pct)<30 /press esc
/face
/doevents
/goto :CloserAF
:EndAF
/call AutoRun 0
/attack off
/delay 2s
/goto :AutoLoot
:AutoLoot
/attack off
/target corpse
/face
/click right auto
/delay 3s
/mouseto corpse 0
/delay 1s
/click right
/mouseto corpse 1
/delay 1s
/click right
/mouseto corpse 2
/delay 1s
/click right
/delay 1s
/press esc esc esc
/call Main
Sub AutoRun
/if $p0==$v80 /return
/varset v80 $p0
/if $p0==1 /sendkey down up
/if $p0==0 /sendkey up up
/return
I modified this from several macros I found and pasted together
The autoloot may be slow but I am still having a hard time with variables and some commands
Feel free to edit and help me learn

