Post Reply Home » Forums » Vanguard » VGExtreme General Discussion

defensive heal return? : VGExtreme General Discussion

Posted: December 3rd, 2007
Total Posts:35 Joined:2007
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
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
Total Posts:35 Joined:2007
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
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
User avatar
Premium
Total Posts:6718 Joined:2004
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.

_________________
Use Search first, ask questions later!
Posted: December 14th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
This is added to the patch I'm posting here in a minute.

_________________
Use Search first, ask questions later!
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 13 guests
Post Reply