Mnk Lua Help

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » mnk lua help
mnk lua help
 Asura.Ironbars
Offline
サーバ: Asura
Game: FFXI
user: Dritero
Posts: 5
By Asura.Ironbars 2021-07-21 11:39:54  
Hello,

This is probably stupid easy, but I haven't had much luck and I'm not what you'd call a lua poweruser. I am using the following code to switch in Bhikku Cyclas +1 during impetus.

function job_buff_change(buff, gain)
if buff == 'Impetus' then
if gain then
equip(sets.impetus)
disable('body')
else
enable('body')
end

Normally this works great, but when I'm in my hybrid set, I don't want this code to activate. Can anyone point me in the right direction so that this code activates for every set but my hybrid set?

Offensive sets for reference:
state.OffenseMode:options('LowAccTP', 'MEva', 'HighAccTP', 'Counter', 'Hybrid')

Much appreciated!
 Bismarck.Batton
Offline
サーバ: Bismarck
Game: FFXI
user: BattonBiz
Posts: 85
By Bismarck.Batton 2021-07-21 14:51:55  
if gain and state.OffenseMode.value ~= 'Hybrid' then
[+]
 Asura.Ironbars
Offline
サーバ: Asura
Game: FFXI
user: Dritero
Posts: 5
By Asura.Ironbars 2021-07-21 15:18:00  
Ah, it was the value part I was missing. Thanks so much!
Log in to post.