View Single Post
12-14-10, 04:33 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
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
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote