Thread: Jewelcrafting
View Single Post
05-06-13, 10:55 AM   #13
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
This is kind of interesting. Is there any way to make this work for Skillet or ATSW?

Oh wait.... searches in skillets files... finds:

lua Code:
  1. --
  2. -- A hook to get text to append to the name of the recipe in the scrolling list of recipes
  3. -- If you hook this method, make sure to include any text you get from calling the hooked method.
  4. -- This will allow more than one mod to use the hook.
  5. --
  6. -- This will be called for both crafts and tradeskills, you can use Skillet:IsCraft()
  7. -- to determine if it's a craft. This avoid having to localize the tradeskill name just to
  8. -- see if it is a craft or a tradeskill.
  9. --
  10. -- Refer to the notes at the top of this file for how to hook this method.
  11. --
  12. -- @param tradeskill name of the currently selected tradeskill
  13. -- @param skill_index the index of the currently selected recipe
  14. --
  15. function Skillet:GetRecipeNameSuffix(tradeskill, skill_index)
  16. end
How can I find the item id using the profession skill index?

EDIT:
Found it, GameTooltip:SetHyperlink and GetTradeSkillItemLink

Last edited by ravagernl : 05-06-13 at 11:29 AM.
  Reply With Quote