[Skip to Main Content]
Este sitio hace uso intenso de JavaScript.
Por favor %s en tu navegador.
Comercial
RPP
12.0.5
RPP
12.0.1
Beta
Crafting Macro nearly Working
Escribir respuesta
Regresar al índice de los foros
Publicado por
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.
Publicado por
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.
Publicado por
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.
Publicado por
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
Escribir respuesta
No has iniciado sesión. Por favor
inicia sesión
para escribir una respuesta o
crea una cuenta
si aún no tienes una.