All kuods goes to Snaps, the creator of this addon:
https://github.com/Windower/Lua/tree/dev/addons/craft
But i would like to improve it and i got stuck.
Goals:
1. Call craft lua after items checked in the inventory and loop the craft (ideal for being on in the field and farming).
I wasn't really looking into this option, bit too advanced for me :)
2. Make infinite loop. So i have lua for crafting:
Code
function craftingnonstop() for i=10,1,-1 do windower.chat.input('//craft make Tsurara') windower.chat.input('//craft make Beeswax') windower.chat.input('//craft make Antidote') end end while true do craftingnonstop() socket.sleep(300) end
At first i tried infinite loop without timer, it crashes the game :). But now it throws global socket nil error, even though i added it in the main craft lua.
As i'm novice in the programing, any help would be appreciated.