I'm asking because I deal in pets on different realms and it's quite the chore having to hover a bank full of pets in search of ones that I can put in my pet journal, to be sold on other realms.
Let me know, I'd really appreciate it

Kris
Code: Select all
-- This adds the /learnable slash command that enables the search term "learnable" (without quotes, all lower case) in a bag or bank searchbox to find all CAGED pets that you have less than the maximum.
-- *** THIS WILL NOT WORK FOR PETS THAT ARE NOT CAGED ***
-- Also, this hooks GetContainerItemInfo which should not remain hooked this way all the time. When done managing pets, /reload to release the hooks.
local search = "learnable" -- change to whatever text to find them
SLASH_LEARNABLE1 = "/learnable"
SlashCmdList["LEARNABLE"] = function(msg)
local o,c,x=GetContainerItemInfo
function GetContainerItemInfo(b,s)
if BagItemSearchBox:GetText():match("^"..search.."$") or BankItemSearchBox:GetText():match("^"..search.."$") then
local d = (select(7,o(b,s)) or ""):match("battlepet:(%d+)")
if d then
r,c,x = {o(b,s)},C_PetJournal.GetNumCollectedInfo(d)
r[8] = c>=x
return unpack(r)
end
end
return o(b,s)
end
print("Enter \124cffffff00"..search.."\124r in a bag or bank search box to find pets that are learnable. Remember to /reload when done.")
end
Hi Gello,