No, I added those two lines though and the toggle is still not doing anything. It's named like you said and loads fine however. Just to be clear this is now the full content of my Silt.lua
_addon.name = 'Silt'
_addon.command = 'silt'
silt = false
windower.send_command('unbind !x')
windower.send_command('bind !x lua silt Toggle')
windower.send_command('alias sp lua silt')
function freemyinv()
while silt do
windower.send_command('input /item "Silt Pouch" <me>')
coroutine.sleep(1)
end
end
windower.register_event('addon command', function(command)
if command == 'Toggle' then
silt = not silt
windower.add_to_chat(7, "Auto Silt "..(silt and "Enabled" or "Disabled"))
if silt then
freemyinv()
end
end
end)