Did PickupSpell function change?
I have a addon the places all of my spells in my action buttons and now it is not working. I can see the correct spell id that I am passing to PickupSpell.
If I do the following code : Code:
ClearCursor(); So my question is did the inputs to PickupSpell function change? |
I can't get PickupSpell to work at all.
Edit: After testing it some more I can get it to work with spell IDs but not spellbook id or spell name. |
Quote:
Yep it works with the global spell id but not the spell id index from the spell book or the spell name. Brillynt |
Spotted this with a general search for PickupSpell. It's in the SpellBookFrame.lua file from the new API files you can download from the wow site.
PickupSpellBookItem(slot, SpellBookFrame.bookType); Here is the whole function in its entirety. Code:
function SpellButton_OnModifiedClick(self, button) |
Oh another set of functions in that file that might shed some useful information for you.
Code:
function SpellButton_OnDrag(self) local temp, texture, offset, numSlots = GetSpellTabInfo(SpellBookFrame.selectedSkillLine); |
if you find updated code, its nice to go to wowwiki and update the pages so other authors dont have to dig as deep :)
|
Its the same code that everyone else has access to by downloading the files from the wow site. :D
I hate wiki pages. Tried using them before. |
All times are GMT -6. The time now is 06:21 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI