Page 1 of 1
defensive heal return?
Posted: December 3rd, 2007, 7:17 pm
by tlucredael
Hello,
I was wondering if anyone knows if there is a way to get the defensive target health return? I'm working on adding group heals to cleric bot..
something like "function getTargetHealth()" but for defensive target.. instead of mob..
Thanks for all the awesome code everyone is puttin out!
Thanks much!
Sincerley, tluc.
Posted: December 4th, 2007, 2:35 pm
by beergeek
Yes, it's getDefTargetHP()
If you load VGExtreme, click on vgservice.vbs tab and you can see the functions available.
Posted: December 4th, 2007, 2:47 pm
by tlucredael
Thanks very much for the reply Beergeek! Now if only I had getDefTargetMAXHP .. I'm not sure how to add healing with just the one get hp call with out it knowing what its max hp are.. argh. I tried something like (getDefTargetHP <= 1300) and seems to work ok lol.. guess doesnt work actually lol, i'm retarded. that just makes it heal constantly

Posted: December 5th, 2007, 8:43 pm
by beergeek
That is a good point. I haven't done any adventuring bot code so didn't consider it.
I suppose you could either have a constant defined in the script where you can plug in the max hp manually before running (so you could then do something like "if getDefTargetHP <= iMaxDefTargetHP...") or have your script save a running max value of getDefTargetHP. In the last case, though, you'd have to be careful with fading buffs lowering the value again.
A less desirable but more effective option would be to read RGB values from the health bar on the screen to estimate health percentage.
Lastly, you could just bug wyvernx to make a new offset

Posted: December 5th, 2007, 10:36 pm
by wyvernx
Somebody shoudl just keep bugging me to add these.
These things are very easy to add..
Well.. most of them are.
Just keep PM'ing me about it.. and within a few days it will be done.
Posted: December 14th, 2007, 12:43 am
by wyvernx
This is added to the patch I'm posting here in a minute.