Sign in to follow this  
Followers 0
pixellegolas

HP buff scripting

4 posts in this topic

Hi guys!

I have a quite good bot for Archlord but now i want to add HP buffing. I know how to find memory address for HP but how can i read it in autoIT and use it for pressing a buff button? Is there a good script for this?

This method should be better then pixelscanning right? But i guess it's hard because the address is different on different comps.

Right now my bot buffs, attacks enemies and loots so only thing left is to heal :)

Share this post


Link to post
Share on other sites



Ok, seing that not many people seem to use memory addresses i will try with pixelsearch. I am at work now so i wanna learn the theory during the day :)

Here is a code that i would like to have corrected if anyone can. I dont have access to help files right now so i will later fill in the gaps.

Sleep(3000)

$color = PixelGetColor($x,$y);Get the color from a specific pixel
PixelSearch(50,100,150,200,$color,10);Search for color in a specific area with some shade
If PixelGetColor($x,$y)="FF0000" Then;if the color is red
    start the search over
Else
    send("1");if color is not red then use the key number 1
EndIf

As you see i want to search an area for a certain color and if it is not red then press 1. How should i write the IF and so on to make it loop?

Thanks

Share this post


Link to post
Share on other sites

While 1
    Sleep(3000)
    $color = PixelGetColor($x,$y);Get the color from a specific pixel
    PixelSearch(50,100,150,200,$color,10);Search for color in a specific area with some shade
    If PixelGetColor($x,$y)="FF0000" Then;if the color is red
        ContinueLoop
    Else
        send("1");if color is not red then use the key number 1
    EndIf
WEnd
But that just sets up the loop. You still need an $x, $y and everything else.

Share this post


Link to post
Share on other sites

Thanks alot. As stated in another thread by me i'm having hard time reading pixelcolor in the game archlord. It only returns 0 with a small script snippet. I can't screencapture so finding pixels is really hard

Share this post


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
Sign in to follow this  
Followers 0