Page 1 of 1

Small addon to show where pets are from on the AH

Posted: June 27th, 2021, 1:31 pm
by Gello
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.

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

Posted: September 13th, 2022, 6:49 pm
by Rickstaman05
Thank you for this! It helps a lot.