Corsair Obi

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXI » Jobs » Corsair » Corsair Obi
Corsair Obi
 Fenrir.Kaldaek
Offline
サーバ: Fenrir
Game: FFXI
Posts: 307
By Fenrir.Kaldaek 2017-01-18 09:40:33  
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
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 787
By Shiva.Arislan 2017-01-18 10:10:48  
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
サーバ: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 10:15:45  
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
サーバ: Fenrir
Game: FFXI
Posts: 307
By Fenrir.Kaldaek 2017-01-18 10:17:36  
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
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 787
By Shiva.Arislan 2017-01-18 11:41:14  
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
サーバ: Fenrir
Game: FFXI
Posts: 307
By Fenrir.Kaldaek 2017-01-18 13:15:43  
Thanks Arislan/Snaps. I tried both and I still cannot get it to trigger. Not sure what i'm doing wrong.
 Shiva.Arislan
Offline
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 787
By Shiva.Arislan 2017-01-18 16:27:50  
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
サーバ: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 17:06:31  
Pastebin your gearswap somewhere.
 Shiva.Arislan
Offline
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 787
By Shiva.Arislan 2017-01-18 17:11:56  
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
サーバ: Fenrir
Game: FFXI
user: Mojopojo
Posts: 1139
By Fenrir.Snaps 2017-01-18 22:57:15  
Ah, I meant Kaldeak, so that we could help him out more.
 Fenrir.Kaldaek
Offline
サーバ: Fenrir
Game: FFXI
Posts: 307
By Fenrir.Kaldaek 2017-01-19 08:50:10  
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
サーバ: Shiva
Game: FFXI
user: Arislan
Posts: 787
By Shiva.Arislan 2017-01-19 09:28:25  
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
サーバ: Fenrir
Game: FFXI
Posts: 307
By Fenrir.Kaldaek 2017-01-19 10:05:09  
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
サーバ: Asura
Game: FFXI
Posts: 16
By Asura.Lotmorning 2018-05-08 16:46:52  
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
サーバ: Ramuh
Game: FFXI
user: Austar
Posts: 9237
By Ramuh.Austar 2018-05-08 16:52:22  
well he would be wrong
[+]
 Bismarck.Nickeny
Offline
サーバ: Bismarck
Game: FFXI
user: Nickeny
Posts: 906
By Bismarck.Nickeny 2018-05-08 16:55:44  
/sch and find out fam
[+]
Offline
Posts: 230
By hobo 2018-05-08 17:27:18  
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
Offline
サーバ: Asura
Game: FFXI
user: Demmis
Posts: 949
By Asura.Chiaia 2018-05-08 17:29:20  
Tell your LS mate to drop his DP for me then. He doesn't need to be a COR anymore.
[+]
 Odin.Drakenv
Offline
サーバ: Odin
Game: FFXI
user: Drakenv
Posts: 3528
By Odin.Drakenv 2018-05-08 17:52:09  
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
サーバ: Odin
Game: FFXI
user: Drakenv
Posts: 3528
By Odin.Drakenv 2018-05-08 17:52:26  
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
サーバ: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2018-05-08 17:54:14  
They're on asura #notsurprised