Share You Code Gearswap To Make Play Ffxi Easy

Eorzea Time
 
 
 
Language: JP EN FR DE
Version 3.1
New Items
users online
Forum » Windower » General » share you code gearswap to make play ffxi easy
share you code gearswap to make play ffxi easy
By Asura.Aragan 2025-05-16 07:52:58
Link | Quote | Reply
 
hello all

I write this topic was important as an archive for all the
gearswap code.

this first secret code gs

code version v1.1 PDL - Auto PDL WS (Auto PDL WS)
author kastra and modification. author (Aragan@Asura)

I will share my code version v1.1 after SE updating and add the PDL (Physical Damage Limit+) (attack cap) to game .. no one long time can make code for pdl and this code add by author kastra and modification. (Aragan@Asura) and i share more codes later and i see this code important add in all gearswap becuz on past when start gearswap game not add PDL .

We used in past manually from weaponskillmode normal to PDL.

But now with this code, is automatic if the attack up 5,000 or any limit or value you specifyadd and if attack low that 5000 its auto return normal weaponskillmode

--its auto change weaponskillmode for PDL if attack up 5k and return to normal if low 5k
-- used it in global for all job
Code
    attack2 = 5000 -- This LUA will equip "high buff" WS sets if the attack value of your TP set (or idle set if WSing from idle) is higher than this value



Code
function job_post_precast(spell)
   if spell.type == 'WeaponSkill' and state.WeaponskillMode.value == 'SubtleBlow' then
        equip(sets.precast.WS.SubtleBlow)
    end
    attack = player.attack -- auto equip to PDL ws set - code add by kastra,modi.(Aragan@Asura)

    if spell.type == 'WeaponSkill' then
        if state.WeaponskillMode.value == 'SubtleBlow' and (attack > attack2 or attack < attack2) then
            equip(sets.precast.WS.SubtleBlow)
        elseif state.WeaponskillMode.value == 'Proc' then
            equip(sets.precast.WS[spell.name].Proc)
        elseif attack > attack2 then
            equip(sets.precast.WS[spell.name].PDL)
        end
    end


end



u need make add in all weaponskill normal and PDL like this code savage blade
Code
function init_gear_sets()

sets.precast.WS['Savage Blade']


sets.precast.WS['Savage Blade'].PDL 



if u want used for sepcial job u can add in job.lua gear like any number need and work alone not with value global

Code

function job_setup()
    attack2 = 4000 



if u want add subtle below mode in weaponskill add this code combine all weaponskill and equip togather in job.lua gear
Code
function user_job_setup()

    state.WeaponskillMode:options('SubtleBlow','PDL','Proc')
end

function init_gear_sets()

    sets.precast.WS.SubtleBlow =  {
        left_ring="Chirich Ring +1",
        right_ring="Chirich Ring +1",
    }


Note: Future idea for addition gs code version v1.2 :idea make calc (pdif)code or function get nm info from other addon like debuffed or targetbar if nm have dia 25% def dow mean attack up1000 point and if nm get shell crusher 25% def down and mean attack up 1000 point
And switch PDL WSMODE

for help u can ask here

https://discord.gg/RUBknQ52JZ
[+]
 Bahamut.Negan
Offline
Server: Bahamut
Game: FFXI
user: Negan
Posts: 2397
By Bahamut.Negan 2025-05-16 07:55:11
Link | Quote | Reply
 
But what weapon will you pick?
[+]
Offline
Posts: 15740
By Pantafernando 2025-05-16 08:19:58
Link | Quote | Reply
 
Up up
Down Down
Left right left right
B A
[+]
 Cerberus.Kaht
Offline
Server: Cerberus
Game: FFXI
user: kaht
Posts: 636
By Cerberus.Kaht 2025-05-16 08:27:59
Link | Quote | Reply
 
why are you checking for subtle blow twice? if you want to prioritize subtle blow, put all the non-subtle blow code in an elseif block instead of an if block

and this bit will evaluate true every time unless your attack is EXACTLY 5000, it can be removed: "and (attack > attack2 or attack < attack2)"
[+]
By Asura.Aragan 2025-05-16 09:52:09
Link | Quote | Reply
 
Bahamut.Negan said: »
But what weapon will you pick?

choose what job u love or what u need from Bonanza weapons ,

i think if have brd horn better and idk there weapons need test first like Onion Sword III with ws wall with dnc in sortie 9 boss clear use ws Fast Blade II and this give dnc more options and dnc in 9 boss clear its main killer machine and its key for fast time clear on melee strat dd if u not play dnc u pick any weapon u need in main job or what u miss if play pld or war pick shield
By Asura.Aragan 2025-05-16 09:53:53
Link | Quote | Reply
 
Cerberus.Kaht said: »
why are you checking for subtle blow twice? if you want to prioritize subtle blow, put all the non-subtle blow code in an elseif block instead of an if block

and this bit will evaluate true every time unless your attack is EXACTLY 5000, it can be removed: "and (attack > attack2 or attack < attack2)"


thnx good point but i add code in global for all jobs and i test its work fine if attack low than value and weaponskillmods == subtlebelow its equip
Code
function job_post_precast(spell)
   if spell.type == 'WeaponSkill' and state.WeaponskillMode.value == 'SubtleBlow' then
        equip(sets.precast.WS.SubtleBlow)
    end
    attack = player.attack -- auto equip to PDL ws set - code add by kastra,modi.(Aragan@Asura)
 
    if spell.type == 'WeaponSkill' then
        if state.WeaponskillMode.value == 'SubtleBlow' then
            equip(sets.precast.WS.SubtleBlow)
        elseif state.WeaponskillMode.value == 'Proc' then
            equip(sets.precast.WS[spell.name].Proc)
        elseif attack > attack2 then
            equip(sets.precast.WS[spell.name].PDL)
        end
    end
 
 
end

    sets.precast.WS.SubtleBlow =  {
        left_ring="Chirich Ring +1",
        right_ring="Chirich Ring +1",
    }




with all ws set for capped subtle below with ws if have buff auspic 29 +20 with food



and this code can work with all ws pdl no need name.spell
Code

    if spell.type == 'WeaponSkill' then

        if attack > attack2 then
            equip(sets.precast.WS.PDL)
        end
    end
 Bahamut.Greyfawkz
Offline
Server: Bahamut
Game: FFXI
user: gymj1m
Posts: 466
By Bahamut.Greyfawkz 2025-05-16 10:22:31
Link | Quote | Reply
 
u r not pass in gearswap codemaster
[+]
By Asura.Aragan 2025-05-16 11:19:37
Link | Quote | Reply
 
Bahamut.Greyfawkz said: »
u r not pass in gearswap codemaster



Remember that if I hadn't share this code, maybe for years no one would have known about it and it would have remained among (the secrets of secrets). You need to thank me instead of being stupid and ignorant, and don't forget that I won't benefit anything from share it. I share it so that the game would be easier, and I don't need to respond to foolish like you.
[+]
Offline
Posts: 997
By Tarage 2025-05-16 14:50:44
Link | Quote | Reply
 
You no speak gooder.
 Asura.Sylveni
Offline
Server: Asura
Game: FFXI
user: Sylvebits
Posts: 32
By Asura.Sylveni 2025-05-16 16:52:30
Link | Quote | Reply
 
Have a button for offense mode and weapon set c. c. Then get a controller. GG.
By Asura.Aragan 2025-05-16 19:00:40
Link | Quote | Reply
 
Tarage said: »
You no speak gooder.

no need u advice thnx

its Not my main language
By Asura.Aragan 2025-06-03 13:14:44
Link | Quote | Reply
 
code Auto equip Magic burst set, AEBurst

this code make gearswap auto equip Magic burst set when skillchain window open

this code i used long time ago and after this code u no need change Manual with bind on off its will work auto


add this code in job.lua like blm.lua or sch.lua or any and can add code in global for all jobs .. just copy past
idk modification. drakefs or no i dont remember



Code
function job_setup()

    state.AutoEquipBurst = M(true)

end



Code

function job_post_midcast(spell, action, spellMap, eventArgs)
    if spell.skill == 'Elemental Magic' and (state.MagicBurst.value or AEBurst) then
        if state.CastingMode.value == 'ConserveMP' then
            equip(sets.magicburst.ConserveMP)
        elseif state.CastingMode.value == 'Spaekona' then
                equip(sets.magicburst.Spaekona)
        elseif state.CastingMode.value == 'SIRD' then
                equip(sets.magicburst.SIRD)
        else
            equip(sets.magicburst)
        end

    end
end


Code
-- Auto toggle Magic burst set.
MB_Window = 0
time_start = 0
AEBurst = false

if player and player.index and windower.ffxi.get_mob_by_index(player.index) then

    windower.raw_register_event('action', function(act)
        for _, target in pairs(act.targets) do
            local battle_target = windower.ffxi.get_mob_by_target("t")
            if battle_target ~= nil and target.id == battle_target.id then
                for _, action in pairs(target.actions) do
                    if action.add_effect_message > 287 and action.add_effect_message < 302 then
                        --last_skillchain = skillchains[action.add_effect_message]
                        MB_Window = 11
                        MB_Time = os.time()
                    end
                end
            end
        end
    end)

    windower.raw_register_event('prerender', function()
        --Items we want to check every second
        if os.time() > time_start then
            time_start = os.time()
            if MB_Window > 0 then
                MB_Window = 11 - (os.time() - MB_Time)
                if state.AutoEquipBurst.value then
                    AEBurst = true
                end
            else
                AEBurst = false
            end
        end
    end)
end