WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Profession Spells not found in spell book (https://www.wowinterface.com/forums/showthread.php?t=37593)

Brillynt 12-14-10 10:31 AM

Profession Spells not found in spell book
 
Has anyone else had problems finding profession spells in the spell book when searching for them. I have a small addon that I use personally to set up my action bars and before 4.0 I could find all of the profession spells with no problem.
Now when I search for fishing, smelting, lifeblood they are not being found in the spell book.

cashdash 12-14-10 11:02 AM

Open Your Spellbook and look for the Tab named Professions at the bottom of the spellbook.

Seerah 12-14-10 11:48 AM

Except that's not a Lua way to find them. ;) Look to see how Learning Aid does it.

ricks322 12-14-10 12:44 PM

Or just press "k"..

Seerah 12-14-10 04:00 PM

Again..... That's not how an addon can gather the information. :confused:

/me points at the OP's question and the forum this is in.

Xrystal 12-14-10 04:33 PM

I'm not sure if this is still valid, not tried it myself yet, but it is from a 4.0 post blizz framework download folder I have. Hopefully these will help you if you haven't tried these yet.

Code:


local prof1, prof2, arch, fish, cook, firstAid = GetProfessions();

local name, texture, rank, maxRank, numSpells, spelloffset, skillLine = GetProfessionInfo(index);

local prof_title = "";
for i=1,#PROFESSION_RANKS do
  local value,title = PROFESSION_RANKS[i][1], PROFESSION_RANKS[i][2];
  if maxRank < value then break end
  prof_title = title;               
end



All times are GMT -6. The time now is 11:54 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI