Small addon to show where pets are from on the AH

Discuss your favorite pet addons and macros.
Post Reply
Gello
Posts:575
Joined:January 23rd, 2014
Pet Score:9171
Realm:Hyjal-us
Contact:
Small addon to show where pets are from on the AH

Post by Gello » June 27th, 2021, 1:31 pm

Somewhere I had posted a similar script to show where pets are from on the AH tooltip and it broke in a recent expansion. Here's an updated version if any are interested:

Code: Select all

hooksecurefunc("BattlePetToolTip_Show",function(speciesID)
    if type(speciesID)=="number" then
        local text = select(5,C_PetJournal.GetPetInfoBySpeciesID(speciesID))
        if text and text:len()>0 then
            BattlePetTooltipTemplate_AddTextLine(BattlePetTooltip, "\n"..text, 1,1,1,true)
        end
    end
end)
You can turn it into an addon by copying and pasting that into https://addon.bool.no/ (but remember there's a patch this week so it may be out of date after the patch until the site updates and you recreate it.)

Now when you look at tooltips of caged battle pets on the AH they'll look like this:

Image

This doesn't work for items that reward pets when you click them, such as Green Helper Box. I was going to put it in one of my addons for this week's patch but none seemed to fit so figured I'd post it instead. If someone wants to zip it up and post it to curse/wowinterface/etc under their name it's all yours.

User avatar
Rickstaman05
MVP
Posts:33
Joined:July 29th, 2008
Pet Score:12800
BattleTag®:pukanini#1597
Realm:Illidan-us
Contact:

Re: Small addon to show where pets are from on the AH

Post by Rickstaman05 » September 13th, 2022, 6:49 pm

Thank you for this! It helps a lot.

Post Reply