I'd like to improve a LEM I use to trigger Aureate's Bane when my tank has the curse (I often run him manually with no plugin so a LEM is the best option). Unfortunately, the LEM I use right now suffers from the EQ bug where Aureate's Bane doesn't immediately dispell Curse of Subjugation and it therefore triggers needlessly for a while.
To get around that, I'd like to change it to only trigger if he has the curse AND he doesn't have the bane buff running. However, I'm very new to Lua and struggling to get the right syntax on the condition - so, after multiple failures I thought I'd ask some experts!
Any guidance appreciated! Thank you!
The LEM I am using is as follows (I've been trying to amend the line that says "local bane = mq.TLO.Me.Song('Subjugation')() or false" but it doesn't seem to like it if I put an "and" in there:
To get around that, I'd like to change it to only trigger if he has the curse AND he doesn't have the bane buff running. However, I'm very new to Lua and struggling to get the right syntax on the condition - so, after multiple failures I thought I'd ask some experts!
Any guidance appreciated! Thank you!
The LEM I am using is as follows (I've been trying to amend the line that says "local bane = mq.TLO.Me.Song('Subjugation')() or false" but it doesn't seem to like it if I put an "and" in there:
local mq = require('mq')
-- Do not edit this if condition
if not package.loaded['events'] then
print('This script is intended to be imported to Lua Event Manager (LEM). Try "\a-t/Lua run lem\a-x"')
end
local function on_load()
end
local function condition()
local bane = mq.TLO.Me.Song('Subjugation')() or false
return bane
end
local function action()
mq.cmd('/alt activate 15074')
end
return {onload=on_load, condfunc=condition, actionfunc=action}

