Jump to content

Recommended Posts

Well i posted something in an old thread to but k i tought i'd make a new topic

i'm trying to make something for mu

It has to auto attack monsters and auto heal and auto pickup

the auto pickup part is done

Well for the auto attack it needs to get the coords or pixels what ever i don't know of the monsters so it can left click it how can this be done?

Then for auto heal how can i get a script to know how far my health has dropped is this also with pixels or what?

well i hope somebody can help me i'm a total n00b at this but can learn fast :whistle:

Link to post
Share on other sites
  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try something like;

$health = PixelGetColor ( x , y )
If $health = 16711689 Then
send("q")
endif

;16711689 = pure red (not sure if the same color as your health bar)
;0xFF0009 = pure red hex code

Im not sure why the autoit window viewer sees it as 0xFF0009 instead of 0xFF0000

Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!

Link to post
Share on other sites

by the way

$health = PixelGetColor ( x , y )
If $health = 16711689 Then
send("q")
endif

;16711689 = pure red (not sure if the same color as your health bar)
;0xFF0009 = pure red hex code

$health = PixelGetColor ( x , y )

Thats the line where is should fill in the coord from what point i want it to use the potion or what?

Cuz well with meh n00bie skills i figured out this script will press q on the coord i set at the pixelgetcolor and then when it gets the color you send it will press the q right?

Or isn't that correct? lol sorry i'm still a total n00b at this?

Link to post
Share on other sites

Actually i messed up it should be;

while 1
$health = PixelGetColor ( x , y )
If $health = 16711689 Then
send("q")
wend
endif

Ok all you need to do is set PixelGetColor ( x , y ) to the point you want to the script to look for to NOT be red at a certain time.

Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!

Link to post
Share on other sites

This is what i made of it :\ but it doesn't work

HotKeySet("!{F8}", "AutoHeal0rz")
HotKeySet("+{F8}", "UnAutoHeal0rz")

Global $pick = 0

While 1
$health = PixelGetColor ( 418 , 897 )
If $health = 0x030503 Then
send("q")
Wend
endif


;( 418 , 897 ) is set at the point where you should be healed
;0x030503 = the HeX color of the pixel it will change to when you go lower then the amount of healt
func AutoHeal0rz()
$pick = 1
endfunc

func UnAutoHeal0rz()
$pick = 0
endfunc

here i have a picture how it all looks and where it should start healing maybe it will clear everything up :whistle:

Posted Image

Edited by dutch-force
Link to post
Share on other sites

Also if that doesn't work try this script

HotKeySet("!{F8}", "AutoHeal0rz")
HotKeySet("+{F8}", "UnAutoHeal0rz")

Global $pick = 0

While 1
    $HPBox = PixelSearch(197, 988, 279, 1012, 0x020401, 3)
    If Not @error Then
        Send("Q")
        ExitLoop
    EndIf
Wend



;( 418 , 897 ) is set at the point where you should be healed
;0x030503 = the HeX color of the pixel it will change to when you go lower then the amount of healt
func AutoHeal0rz()
$pick = 1
endfunc

func UnAutoHeal0rz()
$pick = 0
endfunc

Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...