View Single Post
07-16-17, 03:45 AM   #1
Splynx
A Deviate Faerie Dragon
 
Splynx's Avatar
Join Date: Jul 2017
Posts: 10
How to get the recipeID from a cast

Hello all.

I am in a situation where I have made a listener for when the user starts casting, and the different variations of when a cast is stopped.

From this I can now identify when a cast or a batch of casts that would create an item

Code:
local castName, _, _, _, _, _, isTradeSkill, _, _ = UnitCastingInfo("player");
Is it at all possible for me to somehow get the ID of the recipe that is used for this cast/craft from this position?

If I can get that then I get a hold of a lot more data that I need via

Code:
C_TradeSkillUI
I would very much appreciate some help since I have been stuck on this for a few days.

This is my VERY VERY FIRST lua program at all - have never tried this before - but I am a programmer in my work life.

I have a TS server we can talk on if anyone would like to help me out - and I have also created a GIT repo with my code for you to view.

Not sharing the GIT or idea of my addon since I spent a LONG time finding a good addon to make that would provide value, and I don't want someone to steal it
  Reply With Quote