Thanks for the pointers. I found a blank condition in one of my character's ini files (one that was added vai the LEM GUI itself) and removing that resolved the "bind" errors. However, I'm still unable to enable/disable the following "Condition Event". I've tried using "/lem cond ManaCheck 1" (on/off,true,false,0,1, etc) and I can't enable or disable it via the command-line. I tried adding the condition name in double-quotes, but that didn't work either. Any suggestions?
[CODE title="ManaCheck"]local mq = require('mq')
-- Do not edit this if condition
if not package.loaded['lem.events'] then
print('This script is intended to be imported to Lua Event Manager (LEM). Try "-t/lua run lem-t"')
end
local function on_load()
-- Perform any initial setup here when the event is loaded.
end
---@return boolean @Returns true if the action should fire, otherwise false.
local function condition()
return mq.TLO.Group.LowMana(60)() > 0
end
local function action()
if mq.TLO.Group.LowMana(60)() > 0 then
--print("mana not ideal, resting")
if (mq.TLO.Me.Standing() and not mq.TLO.Me.Casting.ID()) then
mq.TLO.Me.Sit()
end
end
end
return {onload=on_load, condfunc=condition, actionfunc=action}[/CODE]