Barebones Summoner Gearswap

Langues: JP EN DE FR
users online
Forum » FFXI » Jobs » Summoner » Barebones Summoner Gearswap
Barebones Summoner Gearswap
First Page 2 3 4 5
 Bahamut.Seekerstar
Offline
Serveur: Bahamut
Game: FFXI
Posts: 879
By Bahamut.Seekerstar 2015-10-03 19:24:18
Link | Citer | R
 
I'm using this now; I've lost my GS virginity! WAlsoll, most of it, anyway, and someone kindly helped me fix my error issues (damn commas).

Do I need to implement that line change? I was using it, and my FC seemed to be lower in damage than normal. Of course, it could be a series of resistance.

Also, if one chooses to make macros, is there an actual delay if I stack multiple BP under the same macro?

Example:

/pet "Holy Mist" <t>
/pet "Heavenly Strike" <t>
etc...

If I then execute a BP lower on the list, is it slower than if I had separate macros?

Also, I've noticed that I swap back into idle set after using a BP, instead of my assault set while engaged. Is there a way to fix this?

Sorry for so many questions, and thank you for this resource!
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-03 20:20:56
Link | Citer | R
 
1: If you're referring to the line:
Code
if (spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard') then

That shouldn't affect your rage BPs at all, it just tells it to check to see if it's a Rage or Ward for determining sets.

2: I don't go that route, but I don't believe there's a difference, other than the chatlog spam.

3: That's the //gs c avatar (perp, tank, melee, acc) function, I believe the default will put you into your perp set. I have keys bound to cycle between the 4 toggles, makes it alot easier than needing to make 7 more macros in game.
[+]
 Bahamut.Seekerstar
Offline
Serveur: Bahamut
Game: FFXI
Posts: 879
By Bahamut.Seekerstar 2015-10-03 22:21:02
Link | Citer | R
 
...that's what I was needing, the correct commands. Thank you.
Offline
By Aeyela 2015-10-04 02:04:42
Link | Citer | R
 
Siren.Noxzema said: »
Running well so far, except ran into another issue. When I'm in melee mode, I noticed that it won't return to the original set that I had on.
i.e it'll keep my BP rage, ws set etc on after I use it, instead of swapping back to my melee set, even after disengaging.

I'm finding it hard to replicate this. Were you using a specific pet mode at the time, or have something toggled?
Offline
By Aeyela 2015-10-04 02:08:28
Link | Citer | R
 
Bahamut.Seekerstar said: »
Do I need to implement that line change? I was using it, and my FC seemed to be lower in damage than normal. Of course, it could be a series of resistance.

You should use it, as your Wards won't be using the correct gear sets without it.

Bahamut.Seekerstar said: »
Also, if one chooses to make macros, is there an actual delay if I stack multiple BP under the same macro?

I can't say that there's absolutely zero delay because I don't know for sure, but it's miniscule if there is one. If you prefer, I can add a section to the Lua where you can manage Blood Pact groupings and just use the one macro to trigger them all, like how summoning a Dark Spirit works?

Bahamut.Seekerstar said: »
Also, I've noticed that I swap back into idle set after using a BP, instead of my assault set while engaged. Is there a way to fix this?

As Noxzema pointed out, you just need to toggle avatar modes, as perp is the default.

Bahamut.Seekerstar said: »
Sorry for so many questions, and thank you for this resource!

It's fine, happy to help!
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-04 02:11:44
Link | Citer | R
 
I know that I had the melee mode toggled, and I'd assume pet melee as well.

I'll play around with it in a few and update.

Edit: Yeah, it only seems to happen when I have melee mode active, pet mode doesn't seem to affect it.
 Ragnarok.Hevans
Offline
Serveur: Ragnarok
Game: FFXI
user: Hev
Posts: 15273
By Ragnarok.Hevans 2015-10-04 02:29:23
Link | Citer | R
 
whoa whoa whoa


who said you could play smn? i knew i shouldn't of let you get on mnk, crawl back to whm taru!
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-04 02:40:13
Link | Citer | R
 
Ragnarok.Hevans said: »
whoa whoa whoa


who said you could play smn? i knew i shouldn't of let you get on mnk, crawl back to whm taru!

Well if a certain MP sponge rng didn't server hop, I woulda had a reason to maintain my whm.
Offline
Posts: 761
By Elizabet 2015-10-04 03:10:55
Link | Citer | R
 
Aeyela said: »
If you prefer, I can add a section to the Lua where you can manage Blood Pact groupings and just use the one macro to trigger them all, like how summoning a Dark Spirit works?

I did this in my version based off yours. Do you want the code / review it?
Offline
By Aeyela 2015-10-04 04:25:18
Link | Citer | R
 
Siren.Noxzema said: »
Edit: Yeah, it only seems to happen when I have melee mode active, pet mode doesn't seem to affect it.

If you made any changes yourself could you post your full file? I just can't replicate this with my Lua.

Elizabet said: »
I did this in my version based off yours. Do you want the code / review it?

Sure!
Offline
Posts: 761
By Elizabet 2015-10-04 05:25:07
Link | Citer | R
 
Edit: Replace the whole self_command function with this one:

And in the include file: (or at the very top of your SMN.lua if you aren't using an include file.
 Quetzalcoatl.Frodnon
Offline
Serveur: Quetzalcoatl
Game: FFXI
Posts: 31
By Quetzalcoatl.Frodnon 2015-10-04 09:07:18
Link | Citer | R
 
Trying to find out why it's not swapping to Idle or avatar out idle gear at all.
Offline
By Aeyela 2015-10-04 10:00:49
Link | Citer | R
 
I'll have to take a longer look at this, as your Lua is the same as the OP minus the gear listings. There's obviously a problem somewhere, I'll try and figure out where.
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-04 10:22:11
Link | Citer | R
 
Quetzalcoatl.Frodnon said: »
Trying to find out why it's not swapping to Idle or avatar out idle gear at all.


I tested your lua, it seems to be because of the favor = true, I couldn't get it to swap off of the idle set actually. Tried changing it to false, and it seems to be swapping around fine.


Also, I figured out my issue also, I forgot that I had played around with it, and changed the name of the sets.me.melee set.

Edit: For my lua, I made 2 favor sets, 1 is a new avatar mode with 512 skill (so I can still keep some perp/refresh), then for the actual favor mode I have set for 575 skill.
Offline
By Aeyela 2015-10-04 10:23:57
Link | Citer | R
 
Alright, well the Favor does take priority when toggled. The syntax for that is correct. Do you recall manually setting it to true before encountering these problems?
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-04 10:40:32
Link | Citer | R
 
Found it, he still had the function calling for sets.me.favor, when the set is sets.avatar.favor. I knew this sounded familiar, not sure why I forgot about it in just a few days...

Also, any idea why my keybinds would still try to work when using his lua? I hit it out of habit, and it still swapped toggles. They all worked except for cycling pet modes, though it would try.
Offline
Posts: 761
By Elizabet 2015-10-04 11:22:05
Link | Citer | R
 
The original lua didn't have cycling pet mode.
 Siren.Noxzema
Offline
Serveur: Siren
Game: FFXI
user: Noxzema
Posts: 228
By Siren.Noxzema 2015-10-04 11:41:54
Link | Citer | R
 
Right, but why would it still use binds that aren't on the .lua? On mine I have
Code
windower.send_command('bind f9 gs c avatar mode')
windower.send_command('bind !f10 gs c toggle favor')
windower.send_command('bind !f9 gs c toggle auto')
windower.send_command('bind ^f12 gs c toggle melee')

and they still worked on Frodnons lua, even though it didn't have them.
Offline
By Aeyela 2015-10-04 13:30:50
Link | Citer | R
 
Siren.Noxzema said: »
Found it, he still had the function calling for sets.me.favor, when the set is sets.avatar.favor. I knew this sounded familiar, not sure why I forgot about it in just a few days...

Okay, glad you got to the bottom of it!

Siren.Noxzema said: »
Also, any idea why my keybinds would still try to work when using his lua? I hit it out of habit, and it still swapped toggles. They all worked except for cycling pet modes, though it would try.
Siren.Noxzema said: »
Right, but why would it still use binds that aren't on the .lua? On mine I have
Code
windower.send_command('bind f9 gs c avatar mode')
windower.send_command('bind !f10 gs c toggle favor')
windower.send_command('bind !f9 gs c toggle auto')
windower.send_command('bind ^f12 gs c toggle melee')

and they still worked on Frodnons lua, even though it didn't have them.

The binds themselves will work on any Lua that's using the self_commands, providing it follows the correct syntax. So the Lua he's using is from the OP, which has all the toggle etc commands configured. Any manner of binds would work providing they all send a recognised command to the Lua.

Quetzalcoatl.Frodnon said: »
Trying to find out why it's not swapping to Idle or avatar out idle gear at all.

Pet_Change is responsible for that when you summon or release the avatar and it's syntax is correct in your Lua. Did you have Favor toggled? Looking through the ordering of my code it could be that it's still prioritising even with no pet out. I can't be sure as I'm finding it hard to replicate your Lua's behaviour with my own.

Let's try something though. In the idle() function, change the first non-comment line from:
Code
if favor then


To
Code
if favor and pet.isvalid then


And see if that fixes it.
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-04 14:09:33
Link | Citer | R
 
Please help. I'm not the best with gearswap but I know a bit.
I've tried to add the /console gs c bp75 commands and nothing happens. When I hit f9 it just says "avatar set to mode mode" am I missing a file that makes it reconize the ..mode.. thing? that seems important with bloodpacts too

sigh... I guess I need "Shortcuts" addon

Turned on shortcut, still no luck.
Offline
Posts: 761
By Elizabet 2015-10-04 21:29:06
Link | Citer | R
 
Hades.Ramorakomo said: »
Please help. I'm not the best with gearswap but I know a bit.
I've tried to add the /console gs c bp75 commands and nothing happens.


Looks like you are missing the code that needs to be added in the self_command function (the first code snippet on my post above) Which is really the meat and potatoes.

I editted the post above so you can just copy over the whole self_command function (should be easier)

The second code snippet, only defines what bloodpact corresponds to which shorthand (ex: lets the code know bp70 means Pred claws if you have garuda up) You need this either at the top of your smn.lua or in your include file.


Hades.Ramorakomo said: »
When I hit f9 it just says "avatar set to mode mode" am I missing a file that makes it reconize the ..mode.. thing? that seems important with bloodpacts too

I removed that part sorry!! That's something unrelated to the handling of the bloodpacts. That's cause I personally use f9 to cycle within the avatar (perp, tank, melee, acc) modes. (To add that, I made a post about it previous page).

Also, you do need the shortcuts addon.
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-04 22:45:22
Link | Citer | R
 
Can this gearswap handle augmented gear?
Offline
Posts: 761
By Elizabet 2015-10-04 22:57:20
Link | Citer | R
 
Hades.Ramorakomo said: »
Can this gearswap handle augmented gear?

Any Gearswap can, that's only depending on you to define in your sets. Then have rules to define when to use what sets.
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-04 23:28:30
Link | Citer | R
 
WOOT! I did it, I guess I just *** it up the first time. feels good when you get your gs working when your a noob... I was trying to replicate my bst gs. I wasn't sure if it was missing libs the more advanced gearswaps had.
 Bahamut.Dannyl
Offline
Serveur: Bahamut
Game: FFXI
user: dannyl
Posts: 1549
By Bahamut.Dannyl 2015-10-04 23:33:48
Link | Citer | R
 
reading this makes me want to bring out smn from its storage. Every job needs a post like this. Good job !
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-04 23:34:53
Link | Citer | R
 
I copied word for word your self_command thing. Still nothing... :(
Offline
Posts: 761
By Elizabet 2015-10-05 00:32:20
Link | Citer | R
 
Hades.Ramorakomo said: »
I copied word for word your self_command thing. Still nothing... :(

Can you post your whole SMN.lua?
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-05 01:21:11
Link | Citer | R
 
Code
--[[
     Put: /console gs c pact [PactType] as your macro
      
        PactType can be one of:
            cure
            curaga
            buffOffense
            buffDefense
            buffSpecial
            debuff1
            debuff2
            sleep
            nuke2
            nuke4
            bp70
            bp75 (merits and lvl 75-80 pacts)
            bp99
            astralflow
--]]
    pacts = {}
    pacts.cure = {['Carbuncle']='Healing Ruby'}
    pacts.curaga = {['Carbuncle']='Healing Ruby II', ['Garuda']='Whispering Wind', ['Leviathan']='Spring Water'}
    pacts.buffoffense = {['Carbuncle']='Glittering Ruby', ['Ifrit']='Crimson Howl', ['Garuda']='Hastega II', ['Ramuh']='Rolling Thunder',
        ['Fenrir']='Ecliptic Growl', ['Shiva']='Crystal Blessing'}
    pacts.buffdefense = {['Carbuncle']='Shining Ruby', ['Shiva']='Frost Armor', ['Garuda']='Aerial Armor', ['Titan']='Earthen Ward',
        ['Ramuh']='Lightning Armor', ['Fenrir']='Ecliptic Howl', ['Diabolos']='Noctoshield', ['Cait Sith']='Reraise II'}
    pacts.buffspecial = {['Ifrit']=' <staff_and_grip Howl', ['Garuda']='Fleet Wind', ['Titan']='Earthen Armor', ['Diabolos']='Dream Shroud',
        ['Carbuncle']='Soothing Ruby', ['Fenrir']='Heavenward Howl', ['Cait Sith']='Raise II'}
    pacts.debuff1 = {['Shiva']='Diamond Storm', ['Ramuh']='Shock Squall', ['Leviathan']='Tidal Roar', ['Fenrir']='Lunar Cry',
        ['Diabolos']='Pavor Nocturnus', ['Cait Sith']='Eerie Eye'}
    pacts.debuff2 = {['Shiva']='Sleepga', ['Leviathan']='Slowga', ['Fenrir']='Lunar Roar', ['Diabolos']='Somnolence', ['Ramuh']='Thunderspark'}
    pacts.sleep = {['Shiva']='Sleepga', ['Diabolos']='Nightmare', ['Cait Sith']='Mewing Lullaby'}
    pacts.nuke2 = {['Ifrit']='Fire II', ['Shiva']='Blizzard II', ['Garuda']='Aero II', ['Titan']='Stone II',
        ['Ramuh']='Thunder II', ['Leviathan']='Water II'}
    pacts.nuke4 = {['Ifrit']='Fire IV', ['Shiva']='Blizzard IV', ['Garuda']='Aero IV', ['Titan']='Stone IV',
        ['Ramuh']='Thunder IV', ['Leviathan']='Water IV'}
    pacts.bp70 = {['Ifrit']='Flaming Crush', ['Shiva']='Rush', ['Garuda']='Predator Claws', ['Titan']='Mountain Buster',
        ['Ramuh']='Chaotic Strike', ['Leviathan']='Spinning Dive', ['Carbuncle']='Meteorite', ['Fenrir']='Eclipse Bite',
        ['Diabolos']='Nether Blast',['Cait Sith']='Regal Gash'}
    pacts.bp75 = {['Ifrit']='Meteor Strike', ['Shiva']='Heavenly Strike', ['Garuda']='Wind Blade', ['Titan']='Geocrush',
        ['Ramuh']='Thunderstorm', ['Leviathan']='Grand Fall', ['Carbuncle']='Holy Mist', ['Fenrir']='Lunar Bay',
        ['Diabolos']='Night Terror', ['Cait Sith']='Level ? Holy'}
    pacts.bp99 = {['Ifrit']='Conflag Strike', ['Ramuh']='Volt Strike', ['Titan']='Crag Throw', ['Fenrir']='Impact', ['Diabolos']='Blindside'}
    pacts.astralflow = {['Ifrit']='Inferno', ['Shiva']='Diamond Dust', ['Garuda']='Aerial Blast', ['Titan']='Earthen Fury',
        ['Ramuh']='Judgment Bolt', ['Leviathan']='Tidal Wave', ['Carbuncle']='Searing Light', ['Fenrir']='Howling Moon',
        ['Diabolos']='Ruinous Omen', ['Cait Sith']="Altana's Favor"}
include('global.lua') -- Just a collection of functions that I use in all my GearSwaps. See below (after this code block)
set_macros(2,3) -- Sheet, Book
 
function get_sets()
 
    -- My formatting is very easy to follow. All sets that pertain to my character doing things are under 'me'.
    -- All sets that are equipped to faciliate my avatar's behaviour or abilities are under 'avatar', eg, Perpetuation, Blood Pacts, etc
     
    sets.me = {}
    sets.avatar = {}

	-- AUGMENTED GEAR
        prep_feet = {name="Helios boots", augments={'"Avatar perpetuation cost" -3','Blood Pact Dmg.+7','Pet: Attack+22 Pet: Rng.Atk.+22',}}
	attack_feet = {name="Helios boots", augments={'Pet: Crit. hit rate +4%','Blood Pact Dmg.+6','Pet: "Mag.Atk.Bns."+22',}}
   
    -- Your idle set when you DON'T have an avatar out
    sets.me.idle = {
        main="Keraunos",
        sub="Vox Grip",
        ranged="",
        ammo="Seraphicaller",
        head="Glyphic horn +1",
        neck="Twilight torque",
        lear="handler's earring",
        rear="handler's earring +1",
        body="Shomonjijoe +1",
        hands="Serpentes cuffs",
        lring="shadow ring",
        rring="Warp ring",
        back="Convoyance cape",
        waist="Cimmerian sash",
        legs="Assiduity pants +1",
        feet="serpentes sabots"
    }
     
    -- Your MP Recovered Whilst Resting Set
    sets.me.resting = { 
       main="Keraunos",
        sub="Vox Grip",
        ranged="",
        ammo="Seraphicaller",
        head="Glyphic horn +1",
        neck="Twilight torque",
        lear="handler's earring",
        rear="handler's earring +1",
        body="Shomonjijoe +1",
        hands="Serpentes cuffs",
        lring="shadow ring",
        rring="Warp ring",
        back="Convoyance cape",
        waist="Cimmerian sash",
        legs="Assiduity pants +1",
        feet="serpentes sabots"
    }
     
    -----------------------
    -- Perpetuation Related
    -----------------------
     
    -- Avatar's Out --  
    -- This is the base for all perpetuation scenarios, as seen below
    sets.avatar.perp = {
        main="Keraunos",
        sub="Vox Grip",
        ranged="",
        ammo="Seraphicaller",
        head="Beckoner's horn +1",
        neck="caller's pendant",
        lear="handler's earring",
        rear="handler's earring +1",
        body="Shomonjijoe +1",
        hands="Glyphic bracers +1",
        lring="Thurandaut ring",
        rring="Evoker's ring",
        back="Convoyance cape",
        waist="Cimmerian sash",
        legs="Assiduity pants +1",
        feet=prep_feet
    }
 
    -- The following sets base off of perpetuation, so you can consider them idle sets.
    -- Set the relevant gear, bearing in mind it will overwrite the perpetuation item for that slot!
     
    -- When we want our avatar to stay alive
    sets.avatar.tank = set_combine(sets.avatar.perp,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- When we want our avatar to shred
    sets.avatar.melee = set_combine(sets.avatar.perp,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- When we want our avatar to hit
    sets.avatar.acc = set_combine(sets.avatar.perp,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- When Avatar's Favori s active
    sets.avatar.favor = set_combine(sets.avatar.perp,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    ----------------------------
    -- Summoning Skill Related
    -- Including all blood pacts
    ----------------------------
     
    -- + Summoning Magic. This is a base set for max skill and blood pacts and we'll overwrite later as and when we need to
    sets.avatar.skill = {
        main="",
        sub="vox grip",
        ranged="",
        ammo="",
        head="",
        neck="caller's pendant",
        lear="",
        rear="",
        body="",
        hands="glyphic bracer's +1",
        lring="",
        rring="Evoker's ring",
        back="Convoyance cape",
        waist="Cimmerian sash",
        legs="",
        feet=""
    }
     
    -------------------------
    -- Individual Blood Pacts
    -------------------------
     
    -- Physical damage
    sets.avatar.atk = set_combine(sets.avatar.skill,{
        main="Espiritus",
        sub="Vox Grip",
        ranged="",
        ammo="",
        head="helios band",
        neck="caller's pendant",
        lear="gelos earring",
        rear="handler's earring +1",
        body="Convoker's doublet +1",
        hands="glyphic bracers +1",
        lring="thurandaut ring",
        rring="Evoker's ring",
        back="conveyance cape",
        waist="Cimmerian sash",
        legs="Helios spats",
        feet=attack_feet
    })
     
    -- Magic Attack
    sets.avatar.mab = set_combine(sets.avatar.skill,{
       main="Espiritus",
        sub="Vox Grip",
        ranged="",
        ammo="",
        head="Helios band",
        neck="caller's pendant",
        lear="gelos earring",
        rear="handler's earring +1",
        body="Convoker's doublet +1",
        hands="glyphic bracers +1",
        lring="thurandaut ring",
        rring="Evoker's ring",
        back="conveyance cape",
        waist="Cimmerian sash",
        legs="Helios spats",
        feet=attack_feet
    })
 
    -- Hybrid
    sets.avatar.hybrid = set_combine(sets.avatar.skill,{
        main="Espiritus",
        sub="Vox Grip",
        ranged="",
        ammo="",
        head="Helios band",
        neck="caller's pendant",
        lear="gelos earring",
        rear="handler's earring +1",
        body="Convoker's doublet +1",
        hands="glyphic bracers +1",
        lring="thurandaut ring",
        rring="Evoker's ring",
        back="conveyance cape",
        waist="Cimmerian sash",
        legs="Helios spats",
        feet=attack_feet
    })
     
    -- Other
    sets.avatar.other = set_combine(sets.avatar.skill,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Combat Related Sets
     
    -- Melee
    -- The melee set combines with perpetuation, because we don't want to be losing all our MP whilst we swing our Staff
    -- Anything you equip here will overwrite the perpetuation/refresh in that slot.
    sets.me.melee = set_combine(sets.avatar.perp,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Shattersoul. Weapon Skills do not work off perpetuation as it only stays equipped for a moment
    sets.me["Shattersoul"] = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }
    sets.me["Garland of Bliss"] = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }
     
    -- Feel free to add new weapon skills, make sure you spell it the same as in game. These are the only two I ever use though
 
    ---------------
    -- Casting Sets
    ---------------
     
    sets.precast = {}
    sets.midcast = {}
    sets.aftercast = {}
     
    ----------
    -- Precast
    ----------
     
    -- Generic Casting Set that all others take off of. Here you should add all your fast cast  
    sets.precast.casting = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }   
     
    -- Summoning Magic Cast time - gear
    sets.precast.summoning = set_combine(sets.precast.casting,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Enhancing Magic, eg. Siegal Sash, etc
    sets.precast.enhancing = set_combine(sets.precast.casting,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
 
    -- Stoneskin casting time -, works off of enhancing -
    sets.precast.stoneskin = set_combine(sets.precast.enhancing,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Curing Precast, Cure Spell Casting time -
    sets.precast.cure = set_combine(sets.precast.casting,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    ---------------------
    -- Ability Precasting
    ---------------------
     
    -- Blood Pact Ability Delay
    sets.precast.bp = {
        main="Espirtus",
        sub="",
        ranged="",
        ammo="",
        head="Glyphic horn +1",
        neck="",
        lear="Caller's earring",
        rear="",
        body="Glyphic doublet +1",
        hands="Glyphic bracers +1",
        lring="",
        rring="",
        back="Conveyance cape",
        waist="",
        legs="",
        feet="Glyphic pigaches +1"
    }
     
    -- Mana Cede
    sets.precast["Mana Cede"] = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }
     
    -- Astral Flow  
    sets.precast["Astral Flow"] = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }
     
    -- Elemental Siphon, eg, Tatsumaki Thingies, Esper Stone, etc
    sets.precast.siphon = set_combine(sets.avatar.skill,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    ----------
    -- Midcast
    ----------
     
    -- We handle the damage and etc. in Pet Midcast later
     
    -- Whatever you want to equip mid-cast as a catch all for all spells, and we'll overwrite later for individual spells
    sets.midcast.casting = {
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    }
     
    -- Enhancing
    sets.midcast.enhancing = set_combine(sets.midcast.casting,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Stoneskin
    sets.midcast.stoneskin = set_combine(sets.midcast.enhancing,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    -- Cure Potency
    sets.midcast.cure = set_combine(sets.midcast.casting,{
        main="",
        sub="",
        ranged="",
        ammo="",
        head="",
        neck="",
        lear="",
        rear="",
        body="",
        hands="",
        lring="",
        rring="",
        back="",
        waist="",
        legs="",
        feet=""
    })
     
    ------------
    -- Aftercast
    ------------
     
    -- I don't use aftercast sets, as we handle what to equip later depending on conditions using a function, eg, do we have an avatar out?
 
end
 
function precast(spell)
 
    -- Don't swap if we're in the middle of something or our pet's doing something
    -- Stops macro spam from interfering with an action GS is already handling
    if midaction() or pet_midaction() then
        return
    end
     
    -- If we're doing a blood pact, equip our delay set IF Apogee or Astral Conduit are not active
    if (spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard') and not (buffactive['Astral Conduit'] or buffactive['Apogee']) then
     
        equip(sets.precast.bp)
         
    elseif spell.type == 'SummonerPact' then
     
        -- This chunk of code handles Elemental Siphon. It will look at the current day and weather and cancel the spell to summon
        -- the right elemental. Your elemental siphon macro should summon a Dark Spirit to trigger this check
         
        -- These use the included lists in global.lua to determine the right spirit to summon
             
        if spell.name == 'Dark Spirit' then
            if world.weather_element == 'Dark' then
             
                -- Dark Weather is active, lets the spell go ahead and equips summoning precast
                equip(sets.precast.summoning)
                 
            elseif world.weather_element ~= 'None' and spirit_conflict[world.day_element] ~= world.weather_element then
             
                -- It's not dark weather but there is some weather up, cancels dark and summons the right spirit
                cancel_spell()
                send_command('input /ma "%s" <me>':format(spirit_element[world.weather_element]))
                equip(sets.precast.summoning)
                 
            elseif world.day_element == 'Dark' then
             
                -- It's darksday so allow the dark spirit to go ahead and equip summoning
                equip(sets.precast.summoning)
                 
            else
             
                -- There is no weather up and it's not darksday, so summon the current day's spirit
                cancel_spell()              
                send_command('input /ma "%s" <me>':format(spirit_element[world.day_element]))
                equip(sets.precast.summoning)
                 
            end
        else
         
            -- We're not summoning Dark Spirit, so we don't want to Siphon, which means we're summoning an avatar
            equip(sets.precast.summoning)
             
        end
         
    -- Moving on to other types of magic
    elseif spell.type == 'WhiteMagic' or spell.type == 'BlackMagic' then
     
        -- Stoneskin Precast
        if spell.name == 'Stoneskin' then
         
            windower.ffxi.cancel_buff(37)--[[Cancels stoneskin, not delayed incase you get a Quick Cast]]
            equip(sets.precast.stoneskin)
             
        -- Cure Precast
        elseif spell.name:match('Cure') or spell.name:match('Cura') then
         
            equip(sets.precast.cure)
             
        -- Enhancing Magic
        elseif spell.skill == 'Enhancing Magic' then
         
            equip(sets.precast.enhancing)
             
            if spell.name == 'Sneak' then
                windower.ffxi.cancel_buff(71)--[[Cancels Sneak]]
            end
        else
         
            -- For everything else we go with max fastcast
            equip(sets.precast.casting)
             
        end
         
    -- Summoner Abilities
    -- We use a catch all here, if the set exists for an ability, use it
    -- This way we don't need to write a load of different code for different abilities, just make a set
     
    elseif sets.precast[spell.name] then
        equip(sets.precast[spell.name])
    end
     
end
 
function midcast(spell)
 
    -- If our pet is doing something, prevents us swapping equipment too early
    if pet_midaction() then
        return
    end
     
    -- No need to annotate all this, it's fairly logical. Just equips the relevant sets for the relevant magic
    if spell.type == 'WhiteMagic' or spell.type == 'BlackMagic' then
        if spell.name == 'Stoneskin' then
            equip(sets.midcast.stoneskin)
        elseif spell.name:match('Cure') or spell.name:match('Cura') then
            equip(sets.midcast.cure)
        elseif spell.skill == 'Enhancing Magic' then
            equip(sets.midcast.enhancing)
            if spell.name:match('Protect') or spell.name:match('Shell') then
                equip({rring="Sheltered Ring"})
            end
        else
            equip(sets.midcast.casting)
        end
    elseif spell.name == 'Elemental Siphon' then
     
        -- Siphon Set
        equip(sets.midcast.siphon)
         
        -- Checks if pet matches weather
        if pet.element == world.weather_element then
            equip(sets.midcast.siphon,{main="Chatoyant Staff"--[[Take advantage of the weather boost]]})
        end
         
    -- And our catch all, if a set exists for this spell use it
    elseif sets.midcast[spell.name] then
        equip(sets.midcast[spell.name])
         
    -- Remember those WS Sets we defined? :)
    elseif sets.me[spell.name] then
        equip(sets.me[spell.name])
    end
end
 
function aftercast(spell)
 
    -- If our pet's doing something, Stop!
    if pet_midaction() then
        return
    end 
     
    -- If not a blood pact or summon
    if spell and (not spell.type or not string.find(spell.type,'BloodPact') and not AvatarList:contains(spell.name) or spell.interrupted) then
     
        -- Then initiate idle function to check which set should be equipped
        idle(pet)
         
    end
end
 
function pet_midcast(spell)
 
    -- Our pet is doing something
    if (spell.type == 'BloodPactRage' or spell.type == 'BloodPactWard') then
     
        -- We're going to check the lists in global.lua for matches and equip the relevant sets
         
        if bp_physical:contains(spell.name) then
         
            equip(sets.avatar.atk)
             
        elseif bp_hybrid:contains(spell.name) then
         
            equip(sets.avatar.hybrid)
            if pet.name == 'Ifrit' then
                equip({rring="Fervor Ring"})--[[Change rring to lring if you put Evoker's on your right hand]]
            end
             
        elseif bp_magical:contains(spell.name) then
         
            equip(sets.avatar.mab)
            if pet.name == 'Ifrit' then
                equip({rring="Fervor Ring"})--[[Change rring to lring if you put Evoker's on your right hand]]
            end
 
        elseif bp_debuff:contains(spell.name) then
         
            equip(sets.avatar.macc)
             
        elseif bp_buff:contains(spell.name) then
         
            equip(sets.avatar.buff)
             
        elseif bp_other:contains(spell.name) then
         
            equip(sets.avatar.other)
             
        elseif spell.name == 'Perfect Defense' then
         
            equip(sets.avatar.skill)
             
        else
         
            equip(sets.avatar.skill)
             
        end
    end 
end
 
function pet_aftercast(spell)
     
    -- Pet aftercast is simply a check for whether Conduit and Apogee are up, and then a call to our aftercast function
    -- We have a variable called autobp that we set to true or false with commands to auto repeat BPs for us
    if (buffactive['Apogee'] or buffactive['Astral Conduit']) and autobp then
        send_command('input /pet "%s" <t>':format(spell.name))
        return
    end
     
    idle(pet)
     
end
 
function idle(pet)
 
    -- This function is called after every action, and handles which set to equip depending on what we're doing
    -- We check if we're meleeing because we don't want to idle in melee gear when we're only engaged for trusts
     
    if favor then
     
        -- Avatar's favor takes priority!
        equip(sets.me.favor)
         
    elseif meleeing and player.status=='Engaged' then
     
        -- We're both engaged and meleeing
        equip(sets.me.melee)
         
    elseif pet.isvalid then
         
        -- We have a pet out but we're not meleeing, set the right idle set
        equip(sets.avatar[mode])
 
    else
     
        -- We're not meleeing and we have no pet out
        equip(sets.me.idle)
         
    end
end
 
function status_change(new,old)
    if new == 'Engaged' then
     
        -- If we engage check our meleeing status
        idle(pet)
         
    elseif new=='Resting' then
     
        -- We're resting
        equip(sets.me.resting)
    end
end
 
function pet_change(pet,gain)
 
    -- When we summon or release an avatar
    idle(pet)
 
end
 
 
function self_command(command)
  
    local commandArgs = command
      
    -- This command takes //gs c avatar mode, where mode is what you want, eg, tank, acc, melee, etc
    if #commandArgs:split(' ') >= 2 then
        commandArgs = T(commandArgs:split(' '))
        if commandArgs[1] == 'avatar' then
            if commandArgs[2] then
                mode = tostring(commandArgs[2])
                equip(sets.avatar[mode])
                windower.add_to_chat(8,'----- Avatar set to '..mode..' mode! -----')
            end
        elseif commandArgs[1] == 'toggle' then
            if commandArgs[2] == 'auto' then
              
                -- //gs c toggle auto will toggle auto blood pacts on and off. Auto blood pact will make your GS repeat BPs under Apogee or Conduit
                -- And by repeat I mean repeat. If Conduit is up, it will SPAM the BP until Conduit is down
                if autobp then
                    autobp = false
                    windower.add_to_chat(8,'----- Auto BP mode Disabled -----')
                else
                    autobp = true
                    windower.add_to_chat(8,'----- Auto BP mode Enabled -----')
                end
            elseif commandArgs[2] == 'exping' then
              
                -- //gs c toggle melee will toggle melee mode on and off.
                -- This basically locks the slots that will cause you to lose TP if changing them,
                -- As well as equip your melee set if you're engaged
  
                if exping then
                    exping = false
                    enable('back')
                    windower.add_to_chat(8,'----- Cape Unlocked, WILL LOSE EXP -----')
                    idle(pet)
                else
                    exping=true
                    disable('back')
                    windower.add_to_chat(8,'----- Cape Locked, WILL NOT LOSE EXP -----')
                    idle(pet)
                end
                  
            elseif commandArgs[2] == 'favor' then
                      
                -- //gs c toggle favor will toggle Favor mode on and off.
                -- It won't automatically toggle, as some people like having favor active without the gear swaps for maximum effectiveness
                -- You need to toggle prioritisation yourself
                if favor then
                    favor = false
                    windower.add_to_chat(8,"----- Avatar's Favor Mode OFF -----")
                else
                    favor = true
                    windower.add_to_chat(8,"----- Avatar's Favor Mode ON -----")
                end
            -- Handles executing blood pacts in a generic, avatar-agnostic way.
            -- //gs c pact [pacttype]
            elseif commandArgs[1]:lower() == 'pact' then
                if not pet.isvalid then
                        windower.add_to_chat(122,'No avatar currently available. Returning to default macro set.')
                        set_macros(1,2)
                    return
                end
               
                if not commandArgs[2] then
                    windower.add_to_chat(123,'No pact type given.')
                    return
                end
               
                local pact = commandArgs[2]:lower()
               
                if not pacts[pact] then
                    windower.add_to_chat(123,'Unknown pact type: '..tostring(pact))
                    return
                end
               
                if pacts[pact][pet.name] then
                    if pact == 'astralflow' and not buffactive['astral flow'] then
                        windower.add_to_chat(122,'Cannot use Astral Flow pacts at this time.')
                        return
                    end
               
                    -- Leave out target; let Shortcuts auto-determine it.
                    send_command('@input /pet "'..pacts[pact][pet.name]..'"')
                else
                    windower.add_to_chat(122,pet.name..' does not have a pact of type ['..pact..'].')
                end    
            end
        end
    end
end

 
-- Required variables and their initial value
meleeing = false
autobp = false
favor = false
mode = "perp"
Offline
Posts: 761
By Elizabet 2015-10-05 02:30:36
Link | Citer | R
 
That looks fine at glance, I'll test once I get home but just noticed...

Quote:
I've tried to add the /console gs c bp75 commands and nothing happens.

is "/console gs c bp75" your macro? If yes, that may be your problem. It needs to be:

Quote:
/console gs c pact bp75

or

Quote:
/console gs c pact bp70

or

Quote:
/console gs c pact buffDefense


etc...
 Hades.Ramorakomo
Offline
Serveur: Hades
Game: FFXI
Posts: 11
By Hades.Ramorakomo 2015-10-05 03:17:00
Link | Citer | R
 
/console gs c pact bp75 = what I use.
Log in to post.