RDM LUA Help

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » FFXI » Jobs » Red Mage » RDM LUA Help
RDM LUA Help
 Ragnarok.Ipooy
Offline
Serveur: Ragnarok
Game: FFXI
user: Endtanis
Posts: 4
By Ragnarok.Ipooy 2021-04-01 11:02:36
Link | Citer | R
 
Hi, all,

I'm a bit stumped with this. I'm trying to add two different Enfeebling sets in my LUA, but I guess it's a custom toggle and not already defined in the Mote-Include.lua
Code
function user_setup()
    state.OffenseMode:options('Normal','ACC','DT')    
    state.CastingMode:options('Normal','MB')
    state.IdleMode:options('Normal','DT','Town')
    state.Enfeebling = M('None','MACC')

    send_command('bind f11 gs c cycle CastingMode')
    send_command('bind ^f11 gs c cycle Enfeebling')
	    
    select_default_macro_book()
end

sets.midcast['Enfeebling Magic'] = {
		main="Daybreak",
		sub="Ammurapi Shield",
		ammo="Regal Gem",
		head="Viti. Chapeau +1",
		body="Lethargy Sayon +1",
		hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
		legs={ name="Chironic Hose", augments={'Mag. Acc.+22 "Mag.Atk.Bns."+22','Enmity-1','MND+6','Mag. Acc.+15','"Mag.Atk.Bns."+4',}},
		feet="Jhakri Pigaches +2",
		neck="Sanctity Necklace",
		waist="Luminary Sash",
		left_ear="Snotra Earring",
		right_ear="Malignance Earring",
		ring_left="Kishar Ring",
		right_ring="Stikini Ring +1",
		back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
	}
	
	sets.midcast['Enfeebling Magic'].MACC = {
		main="Daybreak",
		sub="Ammurapi Shield",
		range="Kaja Bow",
		head="Jhakri Coronal +2",
		body="Atrophy Tabard +2",
		hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
		legs={ name="Chironic Hose", augments={'Mag. Acc.+22 "Mag.Atk.Bns."+22','Enmity-1','MND+6','Mag. Acc.+15','"Mag.Atk.Bns."+4',}},
		feet="Jhakri Pigaches +2",
		neck="Sanctity Necklace",
		waist="Luminary Sash",
		left_ear="Snotra Earring",
		right_ear="Malignance Earring",
		left_ring="Stikini Ring +1",
		right_ring="Metamor. Ring +1",
		back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
	}	


I can hit the CTRL+F11 toggle and it cycles through None and MACC, but when I cast, it only uses the None set. I've also thrown the same MACC set into Elemental Magic, and since it's defined in the Mote-Include, it works without fail.

Does anyone have any suggestions on what I need to put or how I can get this to work? I know enough about LUA's to be dangerous... thanks in advance to anyone who can shed some light!
 Asura.Shiraj
Offline
Serveur: Asura
Game: FFXI
user: Shiraj
Posts: 1091
By Asura.Shiraj 2021-04-01 11:20:59
Link | Citer | R
 
If you are looking for "regular" fix:
state.CastingMode:options('Normal','MB') is your issue.
CTRL + F11 will change between normal and MB. adding MACC to that will work.

If you want a separate keybind swap and toggle, you'd need to implement your own cycle function and keybind, not too difficult though.



If you are wanting to adjust your current code to work, add a function to use sets for them defined spells.

An example would be:
Code
Function job_setup()
MaccEnfeebs = S{'Spell1','Spell2'}
end

function post_job_midcast(action,spell,spellmap)
if state.Enfeebling.value == 'MACC' and MaccEnfeebes:contains(spell.english) then equip(sets.Macc)
end

end


That isn't the exact sets you'd use, but something similar to that change sets/names accordingly
[+]