Trying to put together a crude autoit bot for rvr healing,
There is an addon to target the lowest HP person but it relies on you being IN the warband. I want to max my RP and be alone.
Basically I am going to have my hud show red when a friendly HP is missing on the bar. The bot will tab target friendly. Check to see if the health is at 80% ish. If it is cast heal then tab a target. If the HP is not below 80%ish, tab again.
But if the target is dead, it would still show a red pixel and I didn't want to get stuck on that, so I have it check the pixel at 10%ish HP, and if they are that low it tabs to someone new.
Problem is I don't know how to code. I've been doing some reading and looking for guides on the net.. and this is what I have come up with.
Here is a SS of the HUD I am talking about.. red is the missing HPHTML Code:WinActivate("Warhammer: Age of Reckoning, Copyright 2001-2008 Electronic Arts, Inc.") $HP80 = PixelSearch (842, 357, 842, 357, 0xFF0000, 0, 5) $HP10 = PixelSearch (712, 360, 712, 360, 0xFF0000, 0, 5) While 1 If $HP80 = 0 And $HP10 = 1 Then Send("{3}") Sleep(2000) Send("+{TAB}") Else Send("+{TAB}") EndIf WEnd
This would be quazi usefull when there are huge RvR battles (IE:Live events, Fortress)
Don't have WAR on the comp I'm at ATM, but I am reasonably sure this prolly doesnt work since I have never coded and this is my first attempt. Any thoughts on how I could improve, or how to become a better coder?