API GetSpellLink

Returns a hyperlink for a spell. link, spellID = GetSpellLink(spellID or spellName) = GetSpellLink(slot, bookType)

Arguments

 * spellID : number - ID of the spell. Provided the spellId is valid, this will return the spell link even if the player character doesn't know this spell.
 * spellName : string - Localized name of the spell. Requires the player character to know this spell.


 * slot : number - Valid values are 1 through total number of spells in the spellbook on all pages and all tabs, ignoring empty slots.
 * bookType : string - BOOKTYPE_SPELL or BOOKTYPE_PET depending on if you wish to query the player or pet spellbook. Internally the game only tests if this value is equal to  and treats any other string value as "spell"

Returns

 * link : string : spellLink
 * spellID : number

Examples
Prints a clickable spell link for Flash Heal.

Dumps the (escaped) spell link.

Dumps the first spell from your spell book.