Evolution Bot

02/07/2008 21:52 nigroangelus#151
So just use the first variant but deactivate the full HP check. ;)
02/07/2008 22:26 mithandir#152
Could you implement a function that checks the players hp and if it falls below e.x. 40% then quit with alt+f4?

I implemented it myself but the check generates a lot of false positives ...

Here is my implementation:

Code:
Func CheckOwnHealth()
	If PixelGetColor(621, 767) <> 0xD93A3C Then
			ControlSend(, "", "", "!{F4}")
			MsgBox(0, "Low Health", "Low Health. Quitet Game!")
	EndIf
EndFunc
02/07/2008 22:45 nigroangelus#153
I will do that tomorrow, because time runs out for me now, have to wake in a few hours again. xD

Have a look at the picture therewhile, it shows, why some colorchecks won't be the same. (zoom in and have a look at the left and right sides)
02/07/2008 23:11 tablo#154
Quote:
Originally Posted by tablo View Post
Could you pls be clear and specific, e.g posting a screenshot of the proper setting? The one i got on screenshot makes the bot spam [tab] key and shuffle through all visible targets :(

[Only registered and activated users can see links. Click Here To Register...]

This is the setting, right? It shuffles, retargets like every 0.2second :(
02/08/2008 08:52 yeahyeah#155
Another great feature to add would be weapon swap!!!

@tablo
it looks like you have not used coord-tool to set the HPx/y value...
02/08/2008 10:37 nigroangelus#156
@Tablo:
1. i hope, u read my post about the new update, pls download it and replace with ur old one. ;)
2. the settings u are displaying there will correctly switch to any next mob each 0,5 seconds, so its right. (as i wrote before, it's counted in ms there to become a good result for targetting)

@yeahyeah:
maybe it's a goody, but later if. ;)
02/08/2008 10:59 tablo#157
PMed you and downloaded latest version :)
02/08/2008 17:02 nigroangelus#158
Brought another update now.

This includes not much new, but the ability to check ur HP, if the client's window is in front.
It will close if HP falls below a percentual limit and make a screenshot before.
02/08/2008 18:00 mithandir#159
Ok so now I got a complete client restart on low health :D The only problem is, that it has hardcoded coordinates for the client (Desktop Resolution 1440x900, Game 1024x768). So its working for me and for some of you it should also work, but not for all ...

Code:
HotKeySet("{INS}", "LoginChar")
and

Code:
Func CheckOwnHP()
	If GUICtrlRead() >= 40 Then GUICtrlSetData(, "39")
	If PixelGetColor(GUICtrlRead() + Int((364 / 100) * GUICtrlRead()), GUICtrlRead()) <> GUICtrlRead() Then
		 = WinGetHandle()
		_ScreenCapture_CaptureWnd("screen_shot.jpg", )
		ControlSend(, "", "", "!{F4}")
		Run("C:/dir/Codemasters/Archlord/Archlord_XX.exe")
		Sleep(2000)
		Run("C:/bot/Evolution Bot [AL] (0.8.3.5)/Evolution Bot [AL].exe")
		Sleep(2000)
		Send("{INS}")
		Exit 0
	EndIf
EndFunc   ;==>CheckOwnHP
and

Code:
Func LoginChar()
	MouseClick("left",951,543)
	Sleep(8000)
	Send("USERNAME{TAB}")
	Sleep(500)
	Send("PASSWORD{ENTER}")
	Sleep(5000)
	MouseClick("left",655,453)
	Sleep(500)
	MouseClick("left",719,709)
	Sleep(5000)
	MouseClick("left",715,482)
	Sleep(500)
	MouseClick("left",1135,726)
	Sleep(10000)
	Setup()
	Send("{F10}")
	BotRun()
EndFunc
Have fun :D
02/08/2008 18:16 nigroangelus#160
To bad the client have no controls to click on, would make it way easier to have it clicked correctly. :D

U should start the "alefclient.exe" not that one u do, this will open the client immediately. ;)
02/08/2008 18:28 mithandir#161
The real problem is that the hp check doesnt work correctly :D i set it to 39/40/25 and it always quits the game while having 80% live or my char is dead ...

I think there should be a second check that the value you want to kill the client +5% must be gray ... the check if the bar is not red anymore seems not enough.
02/08/2008 18:37 nigroangelus#162
But u used the *new* Coord Tool in front?

Also u need to have 100% HP or it will not work correctly. ;)

i wrote also in the tooltip, that 39% is max, thereafter comes that stupid text "HP xxxx/xxxx"
02/08/2008 18:46 mithandir#163
yes i used the new coord tool. i got the same with my own implementation. i think the red is changing throughout some circumstances ...

in the mean time i updated my restart implementation :D there were some logical issues with it. if the hp check works i will post the new solution to that.
02/08/2008 18:57 nigroangelus#164
yes it does ^^
but the color from one point to one else will behave their color.

if u got 99% HP the left and right sides will become stripped
if 100% HP they're rounded.
02/09/2008 06:51 yeahyeah#165
Just had an idea how to check HP without bringing window to front!

I often open a second archlordclient.exe and login to another account which just has a lvl1 character I use for party (better pick-up and split loot so my inventory takes longer to fill up).

While your in a party your HP is displayed at the top left hand of the window. Can this be used for HP check??