This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Crafting Macro nearly Working
Post Reply
Return to board index
Post by
jrsmile
Hi i wonder if someone could point me in the right direction i created this macro:
/cast Lederverarbeitung
/run local ts = C_TradeSkillUI; local inf = C_TradeSkillUI.GetRecipeInfo(256777); ts.CraftRecipe(256777, inf.numAvailable);
which does open the crafting window and craft one specific item. However when giving it the maximum amount to craft a.k.a Craft All it only crafts one item then stops. in elvui the queuelength is shown correctly only that it stops after one and the cast bar vanishes.
Post by
DerBoss223
I know this is no help but may you keep me updated to the macro because I would love to have a crafting macro that works.
Post by
SatanTheGamer
I didn't test this and LUA is a language I am not familiar with but maybe you can try this #remember to remove the return spaces
/ run
local ts = C_TradeSkillUI;
local inf = C_TradeSkillUI.GetRecipeInfo(256777);
local totalNumber = inf.numAvailable;
for idx = 1, totalNumber do
ts.CraftRecipe(256777);
end
and if that does not work possibly this implementation of a table container?
/ run
local ts = C_TradeSkillUI;
local inf = C_TradeSkillUI.GetRecipeInfo(256777);
local totalNumber = {};
for idx = 1, #inf do
C_TradeSkillUI.GetRecipeInfo(256777, totalNumber);
ts.CraftRecipe(256777, totalNumber.numAvailable);
end
If either one of these works plz let me know so that I can learn from it. I did not test either, and if it has any bugs or needs tweaking let me know I will alter it for you. Just give feedback plz so I know what I am doing right or wrong.
Post by
c1m0n
/run local inf=C_TradeSkillUI.GetRecipeInfo(256777);C_TradeSkillUI.CraftRecipe(256777,inf.numAvailable)
Works fine with the Profession-Window open.
To craft another Item replace the RecipeID in the Macro above!
To get the RecipeID just open the Profession-Window and run the following Macro:
/run for _, id in pairs(C_TradeSkillUI.GetAllRecipeIDs()) do local recipeInfo = C_TradeSkillUI.GetRecipeInfo(id) print(recipeInfo.recipeID, recipeInfo.name) end
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.