ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Djego on January 05, 2009, 12:57:05 PM

Title: How can i find out the hp of my pet?
Post by: Djego on January 05, 2009, 12:57:05 PM
Hi all, I need a way to find out how many hits my pet currently has, its possible in percent of its maxhits, too... i really cant find any way to get this exept by #Enemyhits, but i don't want to attack my pet... can anyone help?
Title: Re: How can i find out the hp of my pet?
Post by: Crome969 on January 05, 2009, 12:58:05 PM
Grummel.. Same Idea Same Time but you was Faster..

Yes we need a Way :D
Title: Re: How can i find out the hp of my pet?
Post by: TrailMyx on January 05, 2009, 01:03:16 PM
Check out my pet gump routine.
http://www.scriptuo.com/smf/index.php?topic=31.0

This will give you a starting point to be able to pull up the pet gump (my way sucks), but once you get the gump up, then the OCR routine kicks in and you get a good percentage number back for how damaged your pet is.

This code is not meant to be stand-alone, but to give you ideas.
Title: Re: How can i find out the hp of my pet?
Post by: Crome969 on January 05, 2009, 01:08:44 PM
Okay, The Scriptcode Looks Fine but its not that what we need.

to Explain the Situation...

We have Chars on a German Freeshard,
There are "BiologyPets" Avaible Pets in Possible humanForm to Wear Armor and More
On That Shard it Exist Gargoyle Knifes to Hunt Leather Runic Item.
Some of Our Enemys makes Much Dmg and perhaps the Biopet will be Die.
now we need a Way To Findout ( as Possible without ocr) When Does our Script must help him :)
Title: Re: How can i find out the hp of my pet?
Post by: Djego on January 05, 2009, 01:24:28 PM
hmm i hoped there's another way of getting its health tha via the gump... but wayne, I'll use it! very much thanks, i'll rip the part i need off your script (giving you credit of course) :D

but it would be a genious feature for SUO to have a variable for that... maybe you can do that?

anyway, thanks, this will enhance my script a lot!

Edit: Okay, i missed the ocr part... thats not that good, then... :/