It's supposed to beCanceR wrote:micromacro shows error: "- scripts/rom/bot.lua:827: Failed to compile and run Lua code for waypoint #10" - i think i m writing wrong "for i" cycle, can you advice me how to repair, please.
Code: Select all
for i = 1,_minInvCount do
To match the name you would have to do a search through the whole table.CanceR wrote:and one more thing for now: how to choose from a list (or how to organize a list):
meaning: if item name is in list do: craftItem( ItemNameOrID, "all");
Code: Select all
local found = false
for k,v in pairs(GROUP1) do
if v.Name == ItemNameOrID then
found = true
break
end
end
if found then
-- Do stuff here
craftItem( ItemNameOrID, "all");
-- etc.
end