BLU-Lua Help-Battery Charge + Diffusion

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » FFXI » Jobs » Blue Mage » BLU-Lua Help-Battery Charge + Diffusion
BLU-Lua Help-Battery Charge + Diffusion
 Lakshmi.Cortez
Offline
Serveur: Lakshmi
Game: FFXI
user: emerle
Posts: 68
By Lakshmi.Cortez 2018-01-31 19:16:43
Link | Citer | R
 
Crew,
Need some help adding some new logic to my lua.

Need help swapping in my Alamaric Coif +1 into battery charge so I get the +2 refresh bonus.

Also need help adding the BLU feet that gives diffusion bonus to swap in when I use diffusion.

Thoughts? Appreciate any help.
 Shiva.Spynx
Offline
Serveur: Shiva
Game: FFXI
user: auron86
Posts: 341
By Shiva.Spynx 2018-01-31 20:47:17
Link | Citer | R
 
Assuming you are using Mote libraries, this should cover both your requirements:
Code
function job_post_midcast(spell, action, spellMap, eventArgs)
    if spell.skill == 'Blue Magic' and buffactive['Diffusion'] then
        equip({feet="Luhlaza Charuqs +1"})
    end
	
	if spell.english == 'Battery Charge' or spell.name:match('refresh')  then
		equip({head="Amalric Coif +1"})
	end
end
Offline
Posts: 1122
By Boshi 2018-01-31 21:54:44
Link | Citer | R
 
for the head part, you can just keep it simple since it's just one spell

sets.midcast['Blue Magic']['Battery Charge']= set_combine(sets.midcast['Blue Magic'].Buff,{
head="Amalric Coif +1",
back="Grapevine Cape",
waist="Gishdubar Sash",})


---

then yea for the feet just take care of it in job_post_midcast
You could also make the condition by spellmap buff or w/e
 Shiva.Spynx
Offline
Serveur: Shiva
Game: FFXI
user: auron86
Posts: 341
By Shiva.Spynx 2018-01-31 22:50:03
Link | Citer | R
 
Yeah, can make a single set for Battery Charge, I like to have a rule to also handle refresh in case I'm /RDM (e.g. cleave) so I can avoid setting battery charge all together and save set points for other nice stuff. Then again you can also just create a different set for sets.midcast.Refresh in that case, up to your preference if this scenario ever applied to you.
 Lakshmi.Cortez
Offline
Serveur: Lakshmi
Game: FFXI
user: emerle
Posts: 68
By Lakshmi.Cortez 2018-02-01 09:23:52
Link | Citer | R
 
Thanks for the input. I am not familiar with mote libraries.

The post by Boshi makes sense, however Spynx does not.

I was under the impression to use the boots when you use diffusion, not midcast while you are using mighty guard. How I am reading the logic from Spynx, I am understanding that the boots are swapping in while casting MG, not when you pop diffusion.

Also, how do I check if I am using mote libraries?
Offline
Posts: 606
By zaxtiss 2018-02-01 09:27:05
Link | Citer | R
 
at the top of your lua you should see motes-include and to get the effect from the boots i think they need to be in your midcast of the spell while the JA is in effect.