Corsair Obi

Eorzea Time
 
 
 
Language: JP EN FR DE
Version 3.1
New Items
users online
Forum » FFXI » Jobs » Corsair » Corsair Obi
Corsair Obi
 Fenrir.Kaldaek
Offline
Server: Fenrir
Game: FFXI
Posts: 1012
By Fenrir.Kaldaek 2017-01-18 09:40:33
Link | Quote | Reply
 
I know this may be redundant. But is there textbook code for Corsair weather check / obi ?

It seems to work on BLM; I'm just swapping types for COR.

Sorry if this is posted. This is what i'm working with.

function job_post_midcast(spell, action, spellMap, eventArgs)
if spell.type == 'WeaponSkill' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.precast.WS['Leaden Salute'], {waist="Hachirin-no-Obi"})
end
end
if spell.skill == 'CorsairShot' then
if spell.element == world.day_element or spell.element == world.weather_element then
equip(sets.midcast.CorsairShot, {waist="Hachirin-no-Obi"})
end
end
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-01-18 10:10:48
Link | Quote | Reply
 
Code
function job_post_precast(spell, action, spellMap, eventArgs)
	-- Equip obi if weather/day matches for WS/Quick Draw.
	if spell.type == 'WeaponSkill' or spell.type == 'CorsairShot' then
		if spell.english == 'Leaden Salute' then
			if world.weather_element == 'Dark' or world.day_element == 'Dark' then
				equip(sets.Obi)
			end
			if player.tp > 2900 then
				equip(sets.precast.WS['Leaden Salute'].FullTP)
			end	
		elseif spell.english == 'Wildfire' and (world.weather_element == 'Fire' or world.day_element == 'Fire') then
			equip(sets.Obi)
		elseif spell.type == 'CorsairShot' and (spell.element == world.weather_element or spell.element == world.day_element) then
			if spell.english ~= "Light Shot" and spell.english ~= "Dark Shot" then
				equip(sets.Obi)
			end
		end
	end
end
 Fenrir.Snaps
Offline
Server: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 10:15:45
Link | Quote | Reply
 
That would always equip your Leaden Salute set for every weaponskill that matched a day/weather check. Something like this may work.
Code
function job_post_precast(spell, action, spellMap, eventArgs)
    if ((spell.name == 'Leaden Salute') or (spell.name == 'Wildfire') or (spell.type == 'CorsairShot')) and ((spell.element == world.weather_element) or (spell.element == world.day_element)) then
        equip({ waist="Hachirin-no-Obi"})
    end
end


I don't know of CorsairShot is a valid skill though.
 Fenrir.Kaldaek
Offline
Server: Fenrir
Game: FFXI
Posts: 1012
By Fenrir.Kaldaek 2017-01-18 10:17:36
Link | Quote | Reply
 
Thanks, can you also show me your leaden set in that LUA? I want to see what you have defined for your waist value.
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-01-18 11:41:14
Link | Quote | Reply
 
Code
	sets.precast.WS['Leaden Salute'] = 	{
		ammo=gear.MAbullet,
		head="Pixie Hairpin +1",
		body="Samnuha Coat",
		hands="Carmine Fin. Ga. +1",
		legs=gear.Herc_MAB_legs,
		feet=gear.Herc_MAB_feet,
		neck="Baetyl Pendant",
		ear1="Moonshade Earring",
		ear2="Friomisi Earring",
		ring1="Archon Ring",
		ring2="Garuda Ring +1",
		back=gear.COR_WS1_Cape,
		waist="Eschan Stone",
		}

	sets.precast.WS['Leaden Salute'].FullTP = {ear1="Hecate's Earring", waist="Svelt. Gouriz +1"}
 Fenrir.Kaldaek
Offline
Server: Fenrir
Game: FFXI
Posts: 1012
By Fenrir.Kaldaek 2017-01-18 13:15:43
Link | Quote | Reply
 
Thanks Arislan/Snaps. I tried both and I still cannot get it to trigger. Not sure what i'm doing wrong.
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-01-18 16:27:50
Link | Quote | Reply
 
For mine, did you create a set called set.Obi inside function init_gear_sets? It should look like this:
Code
	sets.Obi = {waist="Hachirin-no-Obi"}
[+]
 Fenrir.Snaps
Offline
Server: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 17:06:31
Link | Quote | Reply
 
Pastebin your gearswap somewhere.
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-01-18 17:11:56
Link | Quote | Reply
 
I've posted it before in the COR thread, but here it is again:

https://github.com/ArislanShiva/luas/blob/master/Arislan-COR.lua
 Fenrir.Snaps
Offline
Server: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 22:57:15
Link | Quote | Reply
 
Ah, I meant Kaldeak, so that we could help him out more.
 Fenrir.Kaldaek
Offline
Server: Fenrir
Game: FFXI
Posts: 1012
By Fenrir.Kaldaek 2017-01-19 08:50:10
Link | Quote | Reply
 
http://pastebin.com/QFDcG9vy

I took out the weather things you both suggested because i couldn't seem to get either of them to function.


edit** I was able to cut the weather checker from Arislan's and it works now. Problem was me I'm sure.

Thanks guys!
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-01-19 09:28:25
Link | Quote | Reply
 
Honestly you're better off just junking your lua and c&p'ing your sets into mine.

The base lua you're using is really dated, and missing some important functionality.
 Fenrir.Kaldaek
Offline
Server: Fenrir
Game: FFXI
Posts: 1012
By Fenrir.Kaldaek 2017-01-19 10:05:09
Link | Quote | Reply
 
Arislan I agree. Thanks for your input. Nice job on the LUA!
necroskull Necro Bump Detected! [474 days between previous and next post]
 Asura.Lotmorning
Offline
Server: Asura
Game: FFXI
Posts: 24
By Asura.Lotmorning 2018-05-08 16:46:52
Link | Quote | Reply
 
So a ls mate (with DP and aonic gun) said that Obi's no longer work with Leaden Salute even with day/weather and that Eschan stone is BiS..... When did this happen? Every Lua I see posted has Obi in the waist slot if weather/day
 Ramuh.Austar
Offline
Server: Ramuh
Game: FFXI
user: Austar
Posts: 10457
By Ramuh.Austar 2018-05-08 16:52:22
Link | Quote | Reply
 
well he would be wrong
[+]
 Bismarck.Nickeny
Offline
Server: Bismarck
Game: FFXI
user: Nickeny
Posts: 1967
By Bismarck.Nickeny 2018-05-08 16:55:44
Link | Quote | Reply
 
/sch and find out fam
[+]
Offline
Posts: 251
By hobo 2018-05-08 17:27:18
Link | Quote | Reply
 
They work and make a noticeable difference. I had an issue where my lua wasn't swapping it in so I changed luas and immediately noticed the difference.
[+]
 Asura.Chiaia
VIP
Offline
Server: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2018-05-08 17:29:20
Link | Quote | Reply
 
Tell your LS mate to drop his DP for me then. He doesn't need to be a COR anymore.
[+]
 Odin.Drakenv
Offline
Server: Odin
Game: FFXI
user: Drakenv
Posts: 3816
By Odin.Drakenv 2018-05-08 17:52:09
Link | Quote | Reply
 
Asura.Lotmorning said: »
So a ls mate (with DP and aonic gun) said that Obi's no longer work with Leaden Salute even with day/weather and that Eschan stone is BiS..... When did this happen? Every Lua I see posted has Obi in the waist slot if weather/day
Never listen to morons look it up and research. The more you know!
 Odin.Drakenv
Offline
Server: Odin
Game: FFXI
user: Drakenv
Posts: 3816
By Odin.Drakenv 2018-05-08 17:52:26
Link | Quote | Reply
 
Asura.Chiaia said: »
Tell your LS mate to drop his DP for me then. He doesn't need to be a COR anymore.
I second this.
[+]
 Asura.Eiryl
Online
Server: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2018-05-08 17:54:14
Link | Quote | Reply
 
They're on asura #notsurprised