Korin Obi

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » FFXI » Jobs » Ranger » Korin Obi
Korin Obi
Offline
Posts: 5
By TheOGShiloh 2019-08-23 22:24:15
Link | Citer | R
 
Can anyone provide a gearswap line for adding korin obi when aurastorm/weather/lightsday is up? Also, I'd assume I would put it after TF line somewhere. Still an amateur with adding lines in. Thanks in advance!
 Bismarck.Snprphnx
Offline
Serveur: Bismarck
Game: FFXI
user: Snprphnx
Posts: 2689
By Bismarck.Snprphnx 2019-08-24 05:53:28
Link | Citer | R
 
From another thread, without seeing the specifics of your lua, it should be something similar to this...

Shiva.Arislan said: »
Code
function init_gear_sets()

	sets.Obi = {waist="Hachirin-no-Obi"}

end

Code
function job_post_precast(spell, action, spellMap, eventArgs)
	-- Equip obi if weather/day matches for WS.
    if spell.type == 'WeaponSkill' then
		if spell.english == 'Trueflight' then
			if world.weather_element == 'Light' or world.day_element == 'Light' then
				equip(sets.Obi)
			end
		elseif spell.english == 'Wildfire' and (world.weather_element == 'Fire' or world.day_element == 'Fire') then
			equip(sets.Obi)
		end
	end
end

With the exception of it listing Korin Obi for Light-based only, and Karin Obi for Fire-based, in the top section