Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GetSpellTexture

From WoW Classic Wiki


Returns the texture path of the specified spellbook spell

texture = GetSpellTexture(spellID, bookType)


Parameters

Arguments

(spellID, bookType)
spellID
Integer - Valid values are 1 through total number of spells in the spellbook on all pages and all tabs, ignoring empty slots.
bookType
String - Either BOOKTYPE_SPELL or BOOKTYPE_PET.

Returns

texture
String - path of the texture used for displaying the spell in the spellbook


Details

If you're trying to read the spell book at login, register for the PLAYER_LOGIN event.