Hunter Auto-Grinding Macro

05/01/2007 13:29 Lowfyr#1
Here is a script for Autoit that will allow you to auto-grind AFK with your hunter.

sleep(3000)
While 1 = 1

;keep pressing backspace until a target is aqquired
while PixelGetColor(626,121) <> 0x111095
send("{BACKSPACE}")
Sleep(random(1,2)*1000)
WEnd

;while target is aqquired
;also check to see if target is out of range by seeing if it has looped more than 100 times
$i = 0
while PixelGetColor(626,121) = 0x111095 AND $i <> 100

;use swift bow
send(4)
Sleep(random(1,2)*1000)
;use quickshot
send(1)
Sleep(random(1,2)*1000)

$i += 1
WEnd

;check to see if health is full
While PixelGetColor(381,79) <> 0x2CE30E
Sleep(random(1,2)*1000)
WEnd


WEnd


================================================== ============


To run this script correctly please ensure you follow the directions below:

- Place your swift bow in slot 4, quickshot in slot 1.
- Turn off "auto run to target" in game options.
- Find a non aggressive (no auto attack) mob you wish to farm. Stand in "ranged" range of the mob.

The script continually searches for a target, and once it finds it spams swift bow/quickshot until it's dead. After the mob is dead, it will not attack again until your health is full. Have fun!
05/07/2007 10:44 aprisma#2
Hello Lowy!

That thing is really great. But there are no real non agressive mobs in the game.

One other question. Do you have any ideas how I could handle a auto-mine macro. Is there a special color that only appears in this mining spots? If you have any ideas that would be to much to handle it here - send me a private.

Cheers,
06/05/2007 16:38 spatulaman#3
is there a way you can make this script for a champion?
06/06/2007 00:59 r00kie#4
You need a ranged attack to pull the mob to your location since champions like melees
06/06/2007 01:20 spatulaman#5
I'm a level 43 champion, and I do have a bow equipped. Is there a way you can set it to shoot with the bow and pull it to you, and then use skills to kill it? If anyone could alter the script I would be more than grateful. I'm not very good with scripting. =/
06/08/2007 22:30 Mihawk#6
doesn't work for me oO I put Swift Bow in Quickslot 4 and Quickshot in Slot 1. Need some other requirements?


So i explain how i tried to use it:
I have copied these text
Code:
sleep&#40;3000&#41;
While 1 = 1

;keep pressing backspace until a target is aqquired
while PixelGetColor&#40;626,121&#41; &#60;> 0x111095
send&#40;&#34;{BACKSPACE}&#34;&#41;
Sleep&#40;random&#40;1,2&#41;*1000&#41;
WEnd

;while target is aqquired
;also check to see if target is out of range by seeing if it has looped more than 100 times
&#036;i = 0
while PixelGetColor&#40;626,121&#41; = 0x111095 AND &#036;i &#60;> 100

;use swift bow
send&#40;4&#41;
Sleep&#40;random&#40;1,2&#41;*1000&#41;
;use quickshot
send&#40;1&#41;
Sleep&#40;random&#40;1,2&#41;*1000&#41;

&#036;i += 1
WEnd

;check to see if health is full
While PixelGetColor&#40;381,79&#41; &#60;> 0x2CE30E
Sleep&#40;random&#40;1,2&#41;*1000&#41;
WEnd


WEnd
into an textdocument. I renamed the file into bot.au3 started the makro and he just tab the targets and don't attack 'em

Any suggestions?
06/09/2007 23:55 r00kie#7
You also have to make sure that you use a screen resolution that fits AND that you are using the default window and bar positions!
06/10/2007 00:58 Mihawk#8
Quote:
Originally posted by r00kie@Jun 9 2007, 23:55
You also have to make sure that you use a screen resolution that fits AND that you are using the default window and bar positions!
the resolution for this makro is? :)
06/13/2007 12:41 mario667#9
an answer would intrest me, too :)
06/14/2007 12:57 r00kie#10
while PixelGetColor(626,121) = 0x111095 AND &#036;i <> 100

at least your target frame needs to bet at this pos or better the HP bar i have no clue but i guess its at least 1024x786
play with it
06/23/2007 14:21 Groar#11
mhh kanns einfach net zum laufen bekommen ....

kennt nur einer coords un wie der bildschirm aussehen muss?

oder n anderes script?
06/25/2007 10:20 mario667#12
habs zum laufen bekommen unter 1280*1024 im windowed modus. im spiel nen gegner angeklickt, nen windows screenshot gemacht (nicht den ingame screenshot), dann den screen in photoshop eingeladen und die pixel mit der dazugehörigen farbe bestimmt und die au3 datei entsprechend bearbeitet.
rennt nun einwandfrei.
[Only registered and activated users can see links. Click Here To Register...]
06/29/2007 16:47 Gafgarron#13
I'm still not getting what resolution to run this in in the original text Lowfy put up.

Please let me know.
11/06/2007 16:09 gameroz#14
Took me a little bit of work but i finally got the bot working. Keep in mind the 1280 by 1024 can work if you set it correctly. I wonder if this can be edited towards a crafting bot as well. Also has anyone tried the mmoviper bot at [Only registered and activated users can see links. Click Here To Register...] im curious if there might be a bot like that. This one is good for basic grinding but im really after a way to make it a little more complex for hunting.
11/06/2007 18:40 Zislatik#15
Thanks! great post!