View Single Post
09-13-21, 06:54 PM   #3
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Hi Ketho

Thanks for your post, and for the link to the wowtools database, something that I can see will be very useful in the future.

I have a button that will get the petGUID from the cursor on drop.

From the petGUID I want to add the following pet details to a table;
Lua Code:
  1. petGUID
  2. petHyperlink
  3. petSpeciesID
  4. petSummonSpellID

Testing with Abyssal Slitherling I can get the following on drop;
Lua Code:
  1. petGUID = BattlePet-0-000007554101
  2. petHyperlink = C_PetJournal.GetBattlePetLink(petGUID)
  3. petSpeciesID = 2678

However I can only get the petSummonSpellID by tracking the UNIT_SPELLCAST_SUCCEEDED event;
Lua Code:
  1. petSummonSpellID = 118301

I want to be able to get the petSummonSpellID without having to summon the pet itself.

Using the csv table from the wowtools database the Abyssal Slitherling does not have a corresponding petSummonSpellID; so even if I use the database in a lua file and map the petSpeciesID I get a zero instead of the correct 118301.

Is there a reliable way to get either the petSummonSpellID without having to track the UNIT_SPELLCAST_SUCCEEDED event, or, getting a full and complete pet database?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote