Quantcast GetSpellTabInfo() for Pet Spells ? - WoWInterface
Thread Tools Display Modes
06-03-19, 07:49 PM   #1
A Warpwood Thunder Caller
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 92
GetSpellTabInfo() for Pet Spells ?


I'd like to use something like GetSpellTabInfo() ( or GetFlyoutInfo() ) to get the number of Pet spells in its spellbook. But there seems to be no function to that effect.
Is there?

More details:
I am currently doing something in the likes of:
  -- ...
until (GetSpellBookItemName(i, BOOKTYPE_PET)) == nil
. It does work, but, as I learned from trying to fetch Rogue Poisons (flyout), some spell slots may "contain" an empty spell (SpellName == nil). In that case, the following solved it:
for flyoutSlot = 1, select(3, GetFlyoutInfo(flyoutButtonID)) do
  -- ...
It would be useful to me to get all of a given Pet spells, even if it is still too low level to have learned them all yet (as I can with Player spells, including Flyouts).
  Reply With Quote
10-11-19, 12:20 PM   #2
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 56
Are you still working on this problem? I recently did some work modifying the spellbook for WoW Classic, and I may be able to help given the experimentation I did.

Last edited by LBXZero : 10-11-19 at 12:23 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » GetSpellTabInfo() for Pet Spells ?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off