Arbatel Loafers And Gearswap

Eorzea Time
 
 
 
Language: JP EN FR DE
users online
Forum » FFXI » Jobs » Scholar » Arbatel Loafers and Gearswap
Arbatel Loafers and Gearswap
Offline
Posts: 59
By zerkles 2016-08-27 17:44:40
Link | Quote | Reply
 
Hi there,

Just wondering if theres a way for GS to recognize current weather SPELL and equip Loafers only if the following is true

Klimaform is active
Current spell being cast is same as current weather SPELL

Thanks
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2016-08-27 17:50:45
Link | Quote | Reply
 
Are you saying that you need, for example, Thunderstorm to actually be on, as opposed to thunder weather being in the zone?
Offline
Posts: 7
By Osterburg 2016-08-27 17:59:16
Link | Quote | Reply
 
I think they mean a way for it to only equip them when Klimaform matters, like if Firestorm is up and they have to use an Ice spell, for example, it will use the feet set to normally work in that slot without Klimaform up.
 Asura.Chiaia
VIP
Offline
Server: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2016-08-27 18:13:52
Link | Quote | Reply
 
if (spell.skill == 'Elemental Magic' and world.weather_element == spell.element and buffactive.Klimaform) then
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2016-08-27 18:14:21
Link | Quote | Reply
 
Yeah, but I'm confused about him emphasizing "current weather SPELL," as that seems to exclude world weather. I'm not a SCH, so I don't know how Klimaform works, but I would have assumed world weather is fine. The construction for what he wants would depend on this.
 Asura.Chiaia
VIP
Offline
Server: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2016-08-27 18:16:41
Link | Quote | Reply
 
Your 100% right Flippant natural or forced weather works for it. Maybe he doesn't know that a storm overrides any natural weather going on around you?

Yea it would matter based on his needs but it would make no sense on SCH to want that only, since both work.
Offline
Posts: 59
By zerkles 2016-08-27 18:50:45
Link | Quote | Reply
 
Oh does world.weather_element account for SCH weather spell?
 Odin.Speedyjim
Offline
Server: Odin
Game: FFXI
user: speedyjim
Posts: 177
By Odin.Speedyjim 2016-08-27 19:25:11
Link | Quote | Reply
 
Code
if state.Buff.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
            equip(sets.buff['Klimaform'])
        end


This is how it's written in Mote's SCH file, under function apply_grimoire_bonuses
[+]
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2016-08-27 19:36:10
Link | Quote | Reply
 
zerkles said: »
Oh does world.weather_element account for SCH weather spell?

It does.
 Bismarck.Kuroganashi
Offline
Server: Bismarck
Game: FFXI
Posts: 1346
By Bismarck.Kuroganashi 2016-08-29 14:29:38
Link | Quote | Reply
 
This is what I use for Belt (Hachirin-no-Obi) to be equiped during matching nukes / WS (It will however Override the WS/Spell gear with it)

Hopefully helps.

you could do:
Code
equip({waist="Hachirin-No-Obi",feet="Arbatel Loafers +1"})


Anyways here it is:
Code
-- Run after the general midcast() is done.
function job_post_midcast(spell, action, spellMap, eventArgs)

    if spellMap == 'Cure' and spell.target.type == 'SELF' then
        equip(sets.self_healing)
    end
    --if spell.action_type == 'Magic' then
       -- apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
    --end
	if spell.skill == 'Elemental Magic'  then
        if spell.element == world.day_element or spell.element == world.weather_element then
            equip({waist="Hachirin-No-Obi"})
            --add_to_chat(8,'----- Hachirin-no-Obi Equipped. -----')
        end
    end
	if spell.skill == 'Elemental Magic' then
        if state.MagicBurst.value then
        equip(sets.magic_burst)
        end
	end
	if spell.type == "WeaponSkill" then
      if spell.element == world.weather_element or spell.element == world.day_element then
        --equip({waist="Hachirin-no-Obi"})
        --add_to_chat(8,'----- Hachirin-no-Obi Equipped. -----')
      end
    end
end


ta ta~
 Asura.Toralin
Offline
Server: Asura
Game: FFXI
user: toralin
Posts: 1361
By Asura.Toralin 2016-08-29 14:33:13
Link | Quote | Reply
 
Code
if buffactive.Klimaform and spell.skill == "Elemental Magic" and spell.element == world.weather_element then
		equipSet = set_combine(equipSet,{feet="Arbatel Loafers +1"})
 Asura.Chiaia
VIP
Offline
Server: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2016-08-29 14:36:35
Link | Quote | Reply
 
@Bismarck.Kuroganash
That wouldn't be very good. First, day doesn't help his feet only weather. Second, it has no check for Klimaform either. Anyway the answer was already given.
[+]
Offline
Posts: 59
By zerkles 2016-09-05 11:21:05
Link | Quote | Reply
 
Just to piggy pack off this a little more..

Feet work just fine, now my problem is I have my Obi working correctly, but I do not want Obi to eqp for helix.

My current code looks like:
Code
function job_post_midcast(spell, action, spellMap, eventArgs)
    if spell.action_type == 'Magic' then
        apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
    end
	     if spellMap == 'Cure' and spell.target.type == 'SELF' then
        equip(sets.self_healing)
    end
    if spell.action_type == 'Magic' then
        apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
    end
	if spell.skill == 'Elemental Magic'  then
        if spell.element == world.day_element or spell.element == world.weather_element then
            equip({waist="Hachirin-No-Obi"})
            add_to_chat(8,'----- Obi Equipped. -----')			
        end
	if  spell.element == world.weather_element or spell.element == world.day_element or 
            (spell.element == 'Lightning' and buffactive['Thunderstorm']) or 
            (spell.element == 'Ice' and buffactive['Hailstorm']) or 
            (spell.element == 'Water' and buffactive['Rainstorm']) or 
            (spell.element == 'Fire' and buffactive['Firestorm']) or 
            (spell.element == 'Earth' and buffactive['Sandstorm']) or 
            (spell.element == 'Wind' and buffactive['Windstorm']) or 
            (spell.element == 'Light' and buffactive['Aurorastorm']) or 
            (spell.element == 'Dark' and buffactive['Voidstorm']) then 
        if spell.skill == 'Elemental Magic' and spellMap ~= 'Helix' then
            equip(sets[spell.element])
			end
		end
    end
end
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2016-09-05 11:55:22
Link | Quote | Reply
 
Well, you have the rules for it twice, and you're only checking that spell map is not Helix the second time.
Code
function job_post_midcast(spell, action, spellMap, eventArgs)
    if spellMap == 'Cure' and spell.target.type == 'SELF' then
        equip(sets.self_healing)
    end
    if spell.action_type == 'Magic' then
        apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
    end
    if spell.skill == 'Elemental Magic' then
        if (spell.element == world.day_element or spell.element == world.weather_element) and spellMap ~= 'Helix' then
            equip({waist="Hachirin-No-Obi"})
            add_to_chat(8,'----- Obi Equipped. -----')          
        end
    end
end
Offline
Posts: 59
By zerkles 2016-09-05 12:10:40
Link | Quote | Reply
 
Does this part mean NOT equal to helix?

spellMap ~= 'Helix'

and thank you very much for the help
 Ragnarok.Flippant
Offline
Server: Ragnarok
Game: FFXI
user: Enceladus
Posts: 658
By Ragnarok.Flippant 2016-09-05 12:46:03
Link | Quote | Reply
 
Yes.