WoWInterface - View Single Post - Get pet summon spell ID
View Single Post
09-15-21, 09:09 PM   #5
A Flamescale Wyrmkin
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 142
Hi Ketho

Thanks for your post.

I did not realise that all pets that we can catch share the same summonSpellID.

Also after testing the spellCastGUID, (arg2), from UNIT_SPELLCAST_SUCCEEDED these too do not match as each summon has a unique spellCastGUID even if it is the exact same pet that is summoned.

As for my goal;
I wish to be able to add a pet to a table, and when a UNIT_SPELLCAST_SUCCEEDED event fires if the pet is listed it will send a customisable emote to chat.

I figured that tracking the spellID, (arg3), from UNIT_SPELLCAST_SUCCEEDED I could send the appropriate customisable emote for that pet to chat.

As it stands right now I can filter out all pets that have a zero petSummonSpellID from the wowtools database to only allow pets with a unique petSummonSpellID to be added to the table.

If there is a better solution I would be grateful for some direction.
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
  Reply With Quote