Gearswap - Weapon Change Base On Mob

Eorzea Time
 
 
 
Langues: JP EN FR DE
users online
Forum » FFXI » Jobs » Dark Knight » Gearswap - Weapon Change Base on Mob
Gearswap - Weapon Change Base on Mob
Offline
Posts: 358
By Galkapryme 2020-04-07 19:11:03
Link | Citer | R
 
I primarily use an R15 Apoc, but I recently bought a Father Time for those situations when I'm fighting undead, and Catastrophe is of no use. Is there a way to script it so that when I engage an undead, my main weapon changes to Father Time?
 Quetzalcoatl.Javarr
Offline
Serveur: Quetzalcoatl
Game: FFXI
Posts: 91
By Quetzalcoatl.Javarr 2020-04-07 21:41:21
Link | Citer | R
 
Pretty sure that goes beyond the scope of Gearswap. Also to even try to make that happen, you'd have to make a reference list of EVERY undead mob in the game and then make a way to reference that list and then mapping if/else statements...

Personally I'd just hide a macro on the end of a bar somewhere:

Normal:
/equip main "Apocalypse"
Undead:
/equip main "Father Time"

I use a similar trick on RNG when shifting main/off between Physical WS and TF. Would be 1000000000000000 times easier.
Offline
Posts: 358
By Galkapryme 2020-04-18 00:17:06
Link | Citer | R
 
I considered doing that. I was trying to avoid making another macro set, as I currently use 2 full lines.
 Asura.Arico
Offline
Serveur: Asura
Game: FFXI
user: Tename
Posts: 535
By Asura.Arico 2020-04-18 01:13:19
Link | Citer | R
 
if you make a lsit of every undead mob it wouldn't be too hard.
 Fenrir.Skarwind
Offline
Serveur: Fenrir
Game: FFXI
user: Skarwind
Posts: 3300
By Fenrir.Skarwind 2020-04-18 12:44:42
Link | Citer | R
 
I ended up just making macros to equip a main weapon anyways. Since I use Misanthropy for Drains and Apsirs.
 Leviathan.Andret
Offline
Serveur: Leviathan
Game: FFXI
user: Andret
Posts: 1008
By Leviathan.Andret 2020-04-18 12:55:59
Link | Citer | R
 
I think there are gear swap Lua that allows you to cycle weapons (by extension, WS gear sets) by pressing a short cut.

So it's possible to go with a staff WS at start then switch to another weapon afterwards
 Fenrir.Skarwind
Offline
Serveur: Fenrir
Game: FFXI
user: Skarwind
Posts: 3300
By Fenrir.Skarwind 2020-04-18 12:59:29
Link | Citer | R
 
So heres a good one, is there a way to cancel a buff through gear swap?

Say I want to use Drain 3 or Dread Spikes, I'd like it to kill Hasso/Seigen automatically.

I've been doing it manually so my recast isnt affected.
 Leviathan.Andret
Offline
Serveur: Leviathan
Game: FFXI
user: Andret
Posts: 1008
By Leviathan.Andret 2020-04-18 13:13:43
Link | Citer | R
 
I think there was one that cancels utsusemi when you recast it, can't remember which lua though.

Or just make a macro, i think there is a cancel add-on in windower to remove a buff.
 Asura.Shiraj
Offline
Serveur: Asura
Game: FFXI
user: Shiraj
Posts: 1091
By Asura.Shiraj 2020-04-18 13:30:37
Link | Citer | R
 
This is how you do the Utsusemi one, so you'll need to find out the IDs of the Buffs you want:
Code
    if spell.type == 'Ninjutsu' then
        if spell.english == 'Utsusemi: Ichi' then
            equip(sets.midcast.Ninjutsu['Utsusemi'])
            if buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)'] or buffactive['Copy Image (4+)'] then
                send_command('wait 1;cancel 66;cancel 446;cancel 445;cancel 444;')



Edit, just looked for you: Hasso/Siegen use the buff ID of 353 for Hasso, 354 for Seigan.
For reference: Windower4 > Res > Buffs.lua
 Lakshmi.Elidyr
Offline
Serveur: Lakshmi
Game: FFXI
user: elii
Posts: 912
By Lakshmi.Elidyr 2020-04-18 13:30:45
Link | Citer | R
 
If you have the Cancel addon:
Code
local buff_id = 100
windower.send_command(string.format('cancel %s', buff_id))
 Asura.Bippin
Offline
Serveur: Asura
Game: FFXI
user: Gunit
Posts: 1090
By Asura.Bippin 2020-04-18 13:39:44
Link | Citer | R
 
Fenrir.Skarwind said: »
So heres a good one, is there a way to cancel a buff through gear swap?

Say I want to use Drain 3 or Dread Spikes, I'd like it to kill Hasso/Seigen automatically.

I've been doing it manually so my recast isnt affected.
send_command('cancel Hasso')
 Fenrir.Skarwind
Offline
Serveur: Fenrir
Game: FFXI
user: Skarwind
Posts: 3300
By Fenrir.Skarwind 2020-04-18 15:09:17
Link | Citer | R
 
Thanks!
Offline
Posts: 3575
By Taint 2020-04-18 18:09:36
Link | Citer | R
 
Manually do it, otherwise you’ll have annoying 1000+ TP swaps which will completely negate any gains.
 Asura.Arico
Offline
Serveur: Asura
Game: FFXI
user: Tename
Posts: 535
By Asura.Arico 2020-04-18 22:27:32
Link | Citer | R
 
Taint said: »
Manually do it, otherwise you’ll have annoying 1000+ TP swaps which will completely negate any gains.

How often does he fight an undead mob anyway? Probably niche enough that if he's asking for it losing TP isn't going to be a problem.
necroskull Necro Bump Detected! [115 days between previous and next post]
Offline
Posts: 358
By Galkapryme 2020-08-11 14:21:18
Link | Citer | R
 
Asura.Arico said: »
Taint said: »
Manually do it, otherwise you’ll have annoying 1000+ TP swaps which will completely negate any gains.

How often does he fight an undead mob anyway? Probably niche enough that if he's asking for it losing TP isn't going to be a problem.

Since making this post, I started using Sel's GS, and learned how to use the cycle weapons command. So now by DRK is more versatile and can seamlessly cycle through scythes, great swords, swords, great axes, and axes as the situation dictates.