WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Unit frames addons - hunters worst enemy?! (https://www.wowinterface.com/forums/showthread.php?t=12075)

gromlv 09-04-07 12:39 PM

Unit frames addons - hunters worst enemy?!
 
naw already for like two days i've ben trying to find a nice unit frames that wold display my pet happynes lvl,so far oly ones has ben Perl classic unit frames,and frankly i cinda dislike them,iam thinking here shold i be missing something and havent noticed some cind of mystic option to check to enable pet happynes lvl in for example AG_unitframes?

Slakah 09-04-07 12:47 PM

Im pretty certain AG_UF changes the colour of the pet bar depending on happiness same goes for Sage and Pitbull if memory serves me right.

Dreadlorde 09-04-07 01:32 PM

Discord Unit Frames shows the happiness icon.

Gemini_II 09-04-07 01:34 PM

XPerl Unitframes also shows pet happiness. Fizzwidget's Feed-o-matic will also handle that if your unitframes won't (or you don't want them to)

Ev_ 09-04-07 03:20 PM

You can also use DogTags in Pitbull to customize a text to display happiness.

Cralor 09-04-07 04:21 PM

He's looking for the specific happiness.

All unitframes show the pet icon.

The way I see him decribing, he means in between the "Green", "Yellow, and "Red" colors.

But I may be wrong.

Gemini_II 09-04-07 05:56 PM

Quote:

Originally Posted by Cralor
The way I see him decribing, he means in between the "Green", "Yellow, and "Red" colors.

XPerl will do this via a colored icon, as will Feed-o-matic. Mine is set to only display when unhappy or worse. :)

Shazear 09-04-07 06:07 PM

Quote:

Originally Posted by Cralor
He's looking for the specific happiness.

All unitframes show the pet icon.

The way I see him decribing, he means in between the "Green", "Yellow, and "Red" colors.

But I may be wrong.

The Blizzard APIs don't allow you to know the actually happiness Number. They only give you the happiness category value. This is unfortunate, because I too would love to know just how much to feed my pet at any given time.

http://www.wowwiki.com/API_GetPetHappiness

robthedude 09-04-07 11:10 PM

Quote:

Originally Posted by Shazear
The Blizzard APIs don't allow you to know the actually happiness Number. They only give you the happiness category value. This is unfortunate, because I too would love to know just how much to feed my pet at any given time.

http://www.wowwiki.com/API_GetPetHappiness

Hmmm, should be possible to calculate time left until your pet drops out of happiness, and the amount of happiness left as 'good' food in the combat log shows an increase of 35 per tick.
Although I think the decay is affected by combat, so the addon would need to include that in the calculation.

Do we have a viable idea for an addon here?

Shazear 09-04-07 11:45 PM

Quote:

Originally Posted by robthedude
Do we have a viable idea for an addon here?

Probably. I was thinking about how to tackle the problem of gathering base-line data and using that to build the addon.

Need to record things like:
Total time from max happiness (3) to Neutral (2) to unhappy (1).
total time in-combat
time out of combat,
damage taken by pet during time that time.
happiness gained by food (include interrupted feedings and such.)

Unfortunately, I've presently got my plate full w/ Relational DKP to work on a happiness addon, as much as I might want one for my hunter.

Seerah 09-05-07 09:17 AM

There are other things that affect happiness, too, like dismissing your pet, it dieing, etc.

robthedude 09-05-07 04:27 PM

Quote:

Originally Posted by Shazear
I was thinking about how to tackle the problem of gathering base-line data and using that to build the addon.

Need to record things like:
Total time from max happiness (3) to Neutral (2) to unhappy (1).
total time in-combat
time out of combat,
damage taken by pet during time that time.
happiness gained by food (include interrupted feedings and such.)

The exact thought thats been plaguing my head all day, I think the most obvious solution may be a preliminary addon that would be capable of gathering said data, and perhaps present it in a window that can be copied from so that the users could forward it on to whoever picks this up (I'd love to, but I don't have much confidence in either my skills or my determination, that said, it's managed to hold my attention for a full 12 hours...)

Shazear 09-05-07 06:41 PM

Quote:

Originally Posted by robthedude
The exact thought thats been plaguing my head all day, I think the most obvious solution may be a preliminary addon that would be capable of gathering said data, and perhaps present it in a window that can be copied from so that the users could forward it on to whoever picks this up (I'd love to, but I don't have much confidence in either my skills or my determination, that said, it's managed to hold my attention for a full 12 hours...)

Agreed, and I just found this:

http://www.wowwiki.com/Formulas:Happiness

Which should aid in the process.

Shazear 09-06-07 03:19 PM

Ok, because I'm neurotic or something, I started some very basic work on this. Here's the list of events I *think* need to be tracked:

self:RegisterEvent("CHAT_MSG_COMBAT_CREATURE_VS_SELF_HITS")
self:RegisterEvent("CHAT_MSG_COMBAT_PET_MISSES")
self:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE")
self:RegisterEvent("CHAT_MSG_SPELL_PET_BUFF")
self:RegisterEvent("CHAT_MSG_SPELL_PET_DAMAGE")
self:RegisterEvent("CONFIRM_PET_UNLEARN")
self:RegisterEvent("PET_ATTACK_START")
self:RegisterEvent("PET_ATTACK_STOP")
self:RegisterEvent("PET_STABLE_UPDATE_PAPERDOLL")
self:RegisterEvent("UNIT_HAPPINESS")
self:RegisterEvent("UNIT_PET")
self:RegisterEvent("UNIT_PET_EXPERIENCE")
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("PLAYER_REGEN_ENABLED")
self:RegisterEvent("UNIT_COMBAT")
self:RegisterEvent("UNIT_AURA")

obviously, this is the registration code for the mock up addon to do what we're talking about here. Can anyone else think of an event that I may be missing?

Shazear

Cralor 09-06-07 03:30 PM

Like Seerah said,

Dismissing and Death?

Shazear 09-06-07 04:06 PM

Doh! Right... I knew I was missing something, now just to figure out what events actually fire when the pet is dismissed... It may be UNIT_PET but not sure. I'll give it some testing on the PTR. I'm hoping that CHAT_MSG_COMBAT_FRIENDLY_DEATH will work for pets as well.

Thanks!

robthedude 09-08-07 07:55 PM

wouldn't HuntersWorstEnemy be a cracking name for this addon? or am I just drunk?

(I am just drunk, a hell of a lot of editing went into the last two scentences, more than you could possibly imagine. no seriously, more... more... more... close... nearly there... closer... there, that much editing. I really should just press the back button on IE and forget about this... but no! 'Hunters Worst Enemy' would rock as an addon name!)

pacoboyd 09-08-07 08:35 PM

ag_Unitframes
 
Hmmmm, my ag_Unitframes does it automatically without me having to set an option.

Green health bar for happy
Yellow health bar for contented
Red health bar for unhappy

I know as soon as it hits yellow, it's time to feed.

Kaomie 09-08-07 08:42 PM

I hope something gets out of this, people have been trying to figure out some sort of formula for a long time now without much success as far as I know. In the best case it's mostly time-based with only fixed amount removed per a small number of specific events. But after grinding a lot with my hunter I sometimes have the impression it goes as far as to depend on the health level you keep your pet while fighting. I mean if you take time to heal your pet and keep him high on health during fights it seems to me the happiness goes down a lot slower. So you may have to record a massive amount of data including damage taken per HP remaining (just like XPerl Grim Reaper would do). I hope you have some good spare time and like data analysis :rolleyes:

Shazear 09-08-07 10:24 PM

Quote:

Originally Posted by Kaomie
I hope something gets out of this, people have been trying to figure out some sort of formula for a long time now without much success as far as I know. In the best case it's mostly time-based with only fixed amount removed per a small number of specific events. But after grinding a lot with my hunter I sometimes have the impression it goes as far as to depend on the health level you keep your pet while fighting. I mean if you take time to heal your pet and keep him high on health during fights it seems to me the happiness goes down a lot slower. So you may have to record a massive amount of data including damage taken per HP remaining (just like XPerl Grim Reaper would do). I hope you have some good spare time and like data analysis :rolleyes:

As much as I hate to say it, I've started some basic coding on this to help learn the ACE stuff for my RDKP addon, and this seems small enough to be able to get it under my belt. So, it's in proc. ;)


All times are GMT -6. The time now is 12:21 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI