View Single Post
04-05-21, 02:48 AM   #11
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Walkerbo View Post
I want to play a sound when someone summons a blingtron, this will allow me to know when I can get a free gift, it will also allow me to play a blingtron to fight.

Blingtron isn't even a pet... it's a toy, they are summoned with the COMBAT_LOG_EVENT_UNFILTERED SPELL_SUMMON subevent

Originally Posted by Walkerbo View Post
To this end I tried link, spellID = GetSpellLink(spellID or spellName)

This function returns the link and spellID using either the spellName or the spellID; as my goal was to get the spellID I had to use the spellName, which unfortunately returned nil; since you had the spellID the function would have worked fine returning both the link and spellID.

[...]

I have no idea why using GetSpellLink(spellName) returns nil, and I have no idea as to how I can find the spellID without it.

uhmm wtf I can't follow that logic

GetSpellLink() doesn't work with spell names if it's not a known spell to the player character. Like, just use the Spell ID?
  Reply With Quote