Scorpion.mac - Macro for single target hunting

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

ShangoDe
orc pawn
orc pawn
Posts: 27
Joined: Tue Jul 30, 2002 6:39 am
Location: Detroit where the weak are killed and eaten
Contact:

Scorpion.mac - Macro for single target hunting

Post by ShangoDe » Fri Aug 30, 2002 12:17 am

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 
in /target scorpion change scorpion to whatever your hunting

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 :?
Nothing beats teddy-fu! When you can snatch your teddy from your bed and leave no trace you will have learned!

Homarid
decaying skeleton
decaying skeleton
Posts: 3
Joined: Thu Aug 29, 2002 4:34 pm

Post by Homarid » Fri Aug 30, 2002 4:42 pm

Works really well, a little too well actually. :wink:
Is there anyway to not target others with similar names? Like only targetting "a scorpion" and not "a large scorpion" or "a giant scorpion" ect... Its not that big a deal since I dont use in unattended, but it would be nice if it didnt pull me off to a mob that might kill me.

I really like m0nk's auto loot. Its in the fight.mac thread a couple of posts down.

Meh
a lesser mummy
a lesser mummy
Posts: 32
Joined: Wed Sep 04, 2002 8:55 pm

Post by Meh » Fri Sep 06, 2002 2:01 am

great i think i modifyed this to hunt scale bones...... my first attempt 8)