Agbot Script Skill

03/05/2009 04:36 mansech#1
Hello, is there a way that I can edit my skills to cast a specified skill, when my hp is below a certain point? If so can you tell me where I should go to develop this script, like a sense of direction! Thanks in advance!
03/05/2009 09:14 Julian2008#2
Nope u cant. This option doesnt exist in agbot,sry/
03/05/2009 12:30 IRever#3
You could use autoit to make such an option.
A very simple method would be to use pixel search and then at a certain % of your hp let it press a key so that it activates your skill in a slot :)
There are enough tutorials online to achieve that :)
03/05/2009 13:18 ShyroN1337#4
That would be a very unhandy way, I'd get the hp/maxhp out of the SRO_Client with ReadMemory.

Code:
Offset_PlayerHp = 0x458
Offset_PlayerHpMax = 0x450
03/05/2009 13:34 IRever#5
That would be an option too, but it's harder to do. I whas assuming he whas a beginner at autoit ;)

Btw you posted this in the wrong section.
03/08/2009 17:28 mansech#6
Is the AutoIt another type of bot different from the AgBot? And what is a pixel search? Thanks in advance!
03/09/2009 16:06 IRever#7
AutoIt is not related to AgBot.
You can code scripts in autoit that can be compiled into a compressed, stand-alone executable.
You could use autoit to program a little script that will do what you want.

Pixel search will search for a pixel with the color of your choice at the coordinates you want it to search.
I'm not sure if you're familiar with programming languages, but you could use the if and else statement to let your script press a button when the pixel coudn't be found (in your case the color of your hp bar).