Gearswap Equip Specific Armor Specific Weapon

Langues: JP EN DE FR
users online
Forum » Windower » Support » Gearswap equip specific armor specific weapon
Gearswap equip specific armor specific weapon
 Asura.Bony
Offline
Serveur: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-14 18:13:18
Link | Citer | R
 
Hi, looking for some help to add into my gearswap—equipping a specific piece of equipment when a certain weapon is drawn. For example, trying to equip Agelast Torque when Melon Slicer is drawn (for Abyssea).

Thank you in advance for the help on this!
 Fenrir.Jinxs
Offline
Serveur: Fenrir
Game: FFXI
user: Jinxs
Posts: 541
By Fenrir.Jinxs 2023-09-14 18:28:44
Link | Citer | R
 
Something that looks like this would be the easiest way on Sels luas
Sets.weapons.procgreatkatana = {main sub neck}
Offline
Posts: 464
By drakefs 2023-09-14 19:34:59
Link | Citer | R
 
For a motes based lua you can use
Code
function customize_melee_set(meleeSet)
    if player.equipment.main == "Melon Slicer" then
        equip({neck="Agelast torque"})
    end
end


Otherwise add said if\then to the end idle\engaged logic
Code
function aftercast(spell)
    if player.status == 'Idle' then
        equip(sets.idle)
    else 
        equip(sets.TP)
        if player.equipment.main == "Melon Slicer" then
            equip({neck="Agelast torque"})
        end
    end
end
 Asura.Bony
Offline
Serveur: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-15 08:36:17
Link | Citer | R
 
Thank you guys! I took what you sent and modified it a bit but it finally worked, really appreciate it.
Log in to post.