I agree, but is there a way to reliably detect the crafting specialization? I don't recall being able to see this information available anywhere for alchemy. It seems to be revealed only when potions, elixirs or transmutes are done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
not sure if this can help you but i founf this in the code from Ackies recipe list
-- Scans the first 24 entries in the spellbook to find which profession speciality someone is (assumption is that it will be within the first 24 because of the general tab)
function addon:GetTradeSpeciality(CurrentProfession)
for index=1,25,1 do
local spellName = GetSpellName(index, BOOKTYPE_SPELL)
-- Nothing found
if (not spellName) or (index == 25) then
return ""
end
-- Alchemy
if (CurrentProfession == GetSpellInfo(2259)) then
if (spellName == GetSpellInfo(28674)) or (spellName == GetSpellInfo(28678)) or (spellName == GetSpellInfo(28676)) then
return spellName
end
-- Blacksmithing
elseif (CurrentProfession == GetSpellInfo(2018)) then
if (spellName == GetSpellInfo(9787)) or (spellName == GetSpellInfo(9788)) or (spellName == GetSpellInfo(17039)) or (spellName == GetSpellInfo(17040)) or (spellName == GetSpellInfo(17041)) then
return spellName
end
-- Engineering
elseif (CurrentProfession == GetSpellInfo(4036)) then
if (spellName == GetSpellInfo(20219)) or (spellName == GetSpellInfo(20222)) then
return spellName
end
-- Leatherworking
elseif (CurrentProfession == GetSpellInfo(2108)) then
if (spellName == GetSpellInfo(10657)) or (spellName == GetSpellInfo(10659)) or (spellName == GetSpellInfo(10661)) then
return spellName
end
-- Tailoring
elseif (CurrentProfession == GetSpellInfo(3980)) then
if (spellName == GetSpellInfo(26797)) or (spellName == GetSpellInfo(26798)) or (spellName == GetSpellInfo(26801)) then
return spellName
end
end
end
end
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i´m not realy good in programming but i think i would try to create a new datatable field with "speciality" else nil and then show it in profession tab behind the names.
something like
_______________
xyz |Alchemy | (Master Transmute)
----------------
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=293001
Originator: NO
I agree, but is there a way to reliably detect the crafting specialization? I don't recall being able to see this information available anywhere for alchemy. It seems to be revealed only when potions, elixirs or transmutes are done.
Logged In: NO
sry, for my bad englisch
not sure if this can help you but i founf this in the code from Ackies recipe list
-- Scans the first 24 entries in the spellbook to find which profession speciality someone is (assumption is that it will be within the first 24 because of the general tab)
function addon:GetTradeSpeciality(CurrentProfession)
for index=1,25,1 do
local spellName = GetSpellName(index, BOOKTYPE_SPELL)
-- Nothing found
if (not spellName) or (index == 25) then
return ""
end
-- Alchemy
if (CurrentProfession == GetSpellInfo(2259)) then
if (spellName == GetSpellInfo(28674)) or (spellName == GetSpellInfo(28678)) or (spellName == GetSpellInfo(28676)) then
return spellName
end
-- Blacksmithing
elseif (CurrentProfession == GetSpellInfo(2018)) then
if (spellName == GetSpellInfo(9787)) or (spellName == GetSpellInfo(9788)) or (spellName == GetSpellInfo(17039)) or (spellName == GetSpellInfo(17040)) or (spellName == GetSpellInfo(17041)) then
return spellName
end
-- Engineering
elseif (CurrentProfession == GetSpellInfo(4036)) then
if (spellName == GetSpellInfo(20219)) or (spellName == GetSpellInfo(20222)) then
return spellName
end
-- Leatherworking
elseif (CurrentProfession == GetSpellInfo(2108)) then
if (spellName == GetSpellInfo(10657)) or (spellName == GetSpellInfo(10659)) or (spellName == GetSpellInfo(10661)) then
return spellName
end
-- Tailoring
elseif (CurrentProfession == GetSpellInfo(3980)) then
if (spellName == GetSpellInfo(26797)) or (spellName == GetSpellInfo(26798)) or (spellName == GetSpellInfo(26801)) then
return spellName
end
end
end
end
Logged In: YES
user_id=293001
Originator: NO
Thanks. I think we may be able to squeeze this additional inform in as a new "Profession" item (unless it breaks older versions of GuildAds).
Logged In: NO
i´m not realy good in programming but i think i would try to create a new datatable field with "speciality" else nil and then show it in profession tab behind the names.
something like
_______________
xyz |Alchemy | (Master Transmute)
----------------