Gearswap Equip Specific Armor Specific Weapon

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » Gearswap equip specific armor specific weapon
Gearswap equip specific armor specific weapon
 Asura.Bony
Offline
Server: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-14 18:13:18
Link | Quote | Reply
 
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
Server: Fenrir
Game: FFXI
user: Jinxs
Posts: 535
By Fenrir.Jinxs 2023-09-14 18:28:44
Link | Quote | Reply
 
Something that looks like this would be the easiest way on Sels luas
Sets.weapons.procgreatkatana = {main sub neck}
Offline
Posts: 390
By drakefs 2023-09-14 19:34:59
Link | Quote | Reply
 
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
Server: Asura
Game: FFXI
Posts: 10
By Asura.Bony 2023-09-15 08:36:17
Link | Quote | Reply
 
Thank you guys! I took what you sent and modified it a bit but it finally worked, really appreciate it.
Log in to post.