Gearswap Equip Specific Armor Specific Weapon

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » Gearswap equip specific armor specific weapon
Gearswap equip specific armor specific weapon
 Asura.Bony
Offline
サーバ: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-14 18:13:18  
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
サーバ: Fenrir
Game: FFXI
user: Jinxs
Posts: 541
By Fenrir.Jinxs 2023-09-14 18:28:44  
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  
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
サーバ: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-15 08:36:17  
Thank you guys! I took what you sent and modified it a bit but it finally worked, really appreciate it.
Log in to post.