ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: bulbous on September 14, 2012, 09:12:33 AM

Title: Question regarding autoheal someones pet ?
Post by: bulbous on September 14, 2012, 09:12:33 AM
Hi!

I have been reading alot and trying to understand how you guys can make so many wonderful scripts, I thank you all for taking the time and effort to make all of our lives easier.

However now the time has come for me to make one of my own.

So I'm playing with two accounts the first is a normal tamer and the second is gonna be a support char with barding mastery and the ability to throw in a heal now and then.

Question: Is there an easy way for the support role to check health% on party member and cast healing at a certain % ?

I think I know the answer but I have to ask.

best regards Bulbous Bufont
Title: Re: Question regarding autoheal someones pet ?
Post by: Alpha on September 14, 2012, 10:18:37 AM
Quote
Question: Is there an easy way for the support role to check health% on party member and cast healing at a certain %

It really depends on your definition of EASY....   Your going to have to pixel Scan the party bar to determine the amount of health / damage that person has taken.  I usually use a Sub that places the party bar in a certain place with a black backround on my screen & then have another sub that pixel scans that location in increments determining the percentage of damage.  If it returns something other than Red (dmg) / Blue (Health) / Green (Poison) / Yellow (Mortal) Then I have it Re-open the party bar again bc I obviously closed / moved it...

I know there's a few subs / scripts out there that already do this, but doing is the best way to learn !
Title: Re: Question regarding autoheal someones pet ?
Post by: bulbous on September 14, 2012, 10:36:05 AM
Thanks I thought pixel scan was the way to go but I was hoping for a gethealth kind of command. Well time to read up on some scanning then.
Title: Re: Question regarding autoheal someones pet ?
Post by: Endless Night on September 14, 2012, 10:48:29 AM
if your running both clients from teh same machine you can  client swap read the #hits variable and client swap back again

uoxl swap  i think is the command been a long time so might be wrong but its in the wiki.
Title: Re: Question regarding autoheal someones pet ?
Post by: bulbous on September 14, 2012, 11:09:48 AM
Title: Re: Question regarding autoheal someones pet ?
Post by: TrailMyx on September 14, 2012, 11:43:30 AM
You might be able to adapt this script:

http://www.scriptuo.com/index.php?topic=31.0;highlight=pet+gump

Also you should check in ENs section; he's got some gump stuff in there too.
Title: Re: Question regarding autoheal someones pet ?
Post by: Tidus on September 19, 2012, 06:45:24 PM