This is probably
one of my favorite xml
s that I've made <3
Just change the gearsets and the variables for the type of bullets you use.
Rolls are setup in Mage, Melee, PetJob groups. You just turn those variables to 1 to use Luzaf's ring for those groups. I use in-game macros to do that (/console sc var set mage/melee/pet 1 or 0)
You don't need a double-up macro, just hit your roll macro again and it'll double up.
All the lucky/unlucky is put in /echo.
Snake Eye also is auto-double-up <3
Will stop you from firing your QD bullet if normal RA'ing.
Code
<?xml version="1.0" ?>
<spellcast>
<config AutoLoadXML="true" RequiredVersion="2.20" HideErrors="false" ShowGearSwaps="false" Debug="false" ShowSpellInfo="false"/>
<variables clear="True">
<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<!-- All teh Sleep timers in this xml file are set to /echo -->
<var name="SleepTimers">1</var>
<!--The current Phantom Roll: Set Melee/Mage/Pet vars to 1 if you want those types of rolls to use Luzaf Ring -->
<var name="currentroll">null</var>
<var name="QDBullet">Oberon's Bullet</var>
<var name="RABullet">Steel Bullet</var>
<var name="WildfireBullet">Bronze Bullet</var>
<var name="corsair">1</var><!-- For Corsair and Bolter's Rolls :: Always leave on 1 Unless you don't have the ring :/ -->
<var name="melee">0</var>
<var name="mage">0</var>
<var name="pet">0</var>
<!--TP Lock-->
<var name="TPLock">10</var>
<!-- Utsu Rule -->
<var name="Utsusemi">Ichi</var>
</variables>
<sets>
<group name="COR" default="yes">
<set name="Normal" default="yes">
<range>Armageddon</range>
<ammo>$RABullet</ammo>
<head>Aias bonnet</head>
<neck>Agasaya's collar</neck>
<lear>Brutal Earring</lear>
<rear>Aesir Ear Pendant</rear>
<body>Nvrch. Frac +2</body>
<hands>Nvrch. Gants +2</hands>
<lring>Epona's Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling mantle</back>
<waist>Twilight Belt</waist>
<legs>Nvrch. Culottes +2</legs>
<feet>Navarch's bottes +2</feet>
</set>
<set name="Idle" Baseset="Normal">
<ammo>$RABullet</ammo>
<head>Comm. Tricorne</head>
<legs>Crimson Cuisses</legs>
</set>
<set name="PhantomRoll">
<head>Comm. Tricorne</head>
<hands>Nvrch. Gants +2</hands>
</set>
<set name="RandomDeal">
<body>Commodore Frac</body>
</set>
<set name="Luzaf">
<rring>Luzaf's Ring</rring>
</set>
<set name="RAnorm" Baseset="Normal">
<main>Vulcan's Staff</main>
<sub>Uther's Grip</sub>
<range>Armageddon</range>
<ammo>$RABullet</ammo>
<head>Nvrch. Tricorne +1</head>
<neck>Peacock Amulet</neck>
<lear>Clearview Earring</lear>
<rear>Aesir Ear Pendant</rear>
<body>Nvrch. Frac +2</body>
<hands>Blood Fng. Gnt.</hands>
<lring>Behemoth Ring</lring>
<rring>Rajas Ring</rring>
<back>Libeccio mantle</back>
<waist>Buccaneer's Belt</waist>
<legs>Nvrch. Culottes +2</legs>
<feet>Nvrch. Bottes +2</feet>
</set>
<set name="RAagi" Baseset="RAnorm">
<ammo>$RABullet</ammo>
<head>Nvrch. Tricorne +1</head>
<neck>Corvus Torque</neck>
</set>
<set name="QDmab" Baseset="RAnorm">
<ammo>$QDBullet</ammo>
<head>Cor. Tricorne +1</head>
<neck>Stoicheion Medal</neck>
<lear>Hecate's Earring</lear>
<rear>Moldavite Earring</rear>
<body>Nvrch. Frac +2</body>
<hands>Blood Fng. Gnt.</hands>
<lring>Demon's Ring</lring>
<rring>Balrahn's Ring</rring>
<waist>Aquiline belt</waist>
<legs>Denali Kecks</legs>
<feet>Nvrch. Bottes +2</feet>
</set>
<set name="Wildfire" Baseset="QDmab">
<ammo>$WildfireBullet</ammo>
</set>
<set name="MeleeWS" Baseset="Normal">
<head>Aias bonnet</head>
<neck>Agasaya's collar</neck>
<lear>Brutal Earring</lear>
<rear>Aesir Ear Pendant</rear>
<body>Loki's Kaftan</body>
<hands>Ocelot gloves</hands>
<lring>Heed Ring</lring>
<rring>Rajas Ring</rring>
<back>Atheling mantle</back>
<waist>Warwolf Belt</waist>
<legs>Tumbler trunks</legs>
<feet>Nvrch. Bottes +2</feet>
</set>
<set name="TownGear" Baseset="Normal">
<head>Maat's Cap</head>
<lring>Matrimony Band</lring>
</set>
<set name="Misc"><!-- Misc Gear not in sets - So GC collects it -->
</set>
</group>
</sets>
<rules>
<!-- Status -->
<if Status="engaged">
<action type="equip" when="engaged|aftercast|idle" set="Normal" />
</if>
<if NotStatus="engaged">
<action type="equip" when="aftercast|idle" set="Idle" />
</if>
<if BuffActive="Silence" CommandPrefix="/ma|/magic|/ninjutsu">
<action Type="CancelSpell" />
<action Type="Command">input /echo Silenced...</action>
</if>
<if BuffActive="Sleep">
<action Type="CancelSpell" />
<action Type="Command">input /echo Z_z...</action>
<action type="command" when="midcast">cancel 37</action>
</if>
<if TPGT="$TPLock">
<action type="equip" when="precast|midcast|aftercast|engaged|idle">
<main lock="t" />
<sub lock="t" />
<range lock="t" />
</action>
</if>
<!-- Cancel and Buffs -->
<if Spell="Stoneskin">
<action type="midcastdelay" delay="2" />
<action type="command" when="midcast">cancel 37</action>
</if>
<elseif Spell="Blink">
<action type="midcastdelay" delay="2" />
<action type="command" when="midcast">cancel 36</action>
</elseif>
<elseif Spell="Sneak|Invisible|Deodorize">
<action type="midcastdelay" delay="1.5" />
<if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
<action type="command" when="midcast">cancel 71</action>
</if>
</elseif>
<if Spell="Spectral Jig">
<action Type="Command" When="PreCast">cancel 71</action>
</if>
<elseif Spell="Reraise*">
<action type="midcastdelay" delay="2" />
<action type="command" when="midcast">cancel 113</action>
</elseif>
<!-- Ranged Attack -->
<if Spell="Ranged">
<equip when="Precast" set="RAnorm" />
<aftercastdelay delay="5" />
</if>
<!-- Weapon Skills -->
<if Spell="Detonator|*Shot|Slug*|Wildfire" NotSpell="Light*|Dark*|Ice*|Wind*|Earth*|Thunder*|Water*|Fire*">
<if advanced='"%EquipAmmo"="$QDBullet"'>
<action type="CancelSpell" />
<action type="addtochat">Stop! QD Bullet is equipped!!</action>
</if>
<action type="equip" when="precast|midcast" set="RAagi">
<ammo>$RABullet</ammo>
<neck>Light Gorget</neck>
</action>
</if>
<elseif Spell="Leaden Salute">
<if advanced='"%EquipAmmo"="$QDBullet"'>
<action type="CancelSpell" />
<action type="addtochat">Stop! QD Bullet is equipped!!</action>
</if>
<action type="equip" when="precast|midcast" set="QDmab">
<ammo>$RABullet</ammo>
<neck>Light Gorget</neck>
</action>
</elseif>
<elseif Spell="Wildfire">
<if advanced='"%EquipAmmo"="$QDBullet"'>
<action type="CancelSpell" />
<action type="addtochat">Stop! QD Bullet is equipped!!</action>
</if>
<action type="equip" when="precast|midcast" set="Wildfire">
<ammo>$RABullet</ammo>
</action>
</elseif>
<elseif Spell="*Blade">
<action type="equip" when="precast|midcast" set="MeleeWS" />
</elseif>
<!-- Healing Magic -->
<if Skill="HealingMagic">
<if Spell="Cur*|Curaga*">
<if Advanced='("Light" = "%WeatherElement" OR "Light" = "%DayElement")'>
<action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action>
<action type="equip" when="midcast"><back lock="yes">Twilight Cape</back></action>
</if>
<if Spell="Cure IV">
<if NotBuffActive="*Arts|Penury">
<if MPLT="88"><action type="ChangeSpell" Spell="Cure III" /></if>
<if MPLT="46"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Dark Arts">
<if MPLT="106"><action type="ChangeSpell" Spell="Cure III" /></if>
<if MPLT="56"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Light Arts" NotBuffActive="Penury">
<if MPLT="80"><action type="ChangeSpell" Spell="Cure III" /></if>
<if MPLT="42"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Penury">
<if MPLT="44"><action type="ChangeSpell" Spell="Cure III" /></if>
<if MPLT="23"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
</if>
<if Spell="Cure III">
<if NotBuffActive="*Arts|Penury">
<if MPLT="46"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Dark Arts">
<if MPLT="56"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Light Arts" NotBuffActive="Penury">
<if MPLT="42"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Penury">
<if MPLT="23"><action type="ChangeSpell" Spell="Cure II" /></if>
<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
</if>
<if Spell="Cure II">
<if NotBuffActive="*Arts|Penury">
<if MPLT="24"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Dark Arts">
<if MPLT="29"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Light Arts" NotBuffActive="Penury">
<if MPLT="22"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Penury">
<if MPLT="12"><action type="ChangeSpell" Spell="Cure" /></if>
<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
</if>
<if Spell="Cure">
<if NotBuffActive="*Arts|Penury">
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Dark Arts">
<if MPLT="10"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Light Arts" NotBuffActive="Penury">
<if MPLT="8"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
<if BuffActive="Penury">
<if MPLT="4"><action type="CancelSpell" /><addtochat>[NOTE] Not enough MP X_x;;</addtochat></if>
</if>
</if>
</if>
</if>
<!-- Phantom Roll -->
<if type="CorsairRoll" NotBuffActive="Amnesia">
<action type="equip" when="precast" set="PhantomRoll" />
<!-- Store the current roll in a variable -->
<action type="command" when="aftercast">sc var set currentroll %Spell</action>
<if advanced = '(bool)buffactive("%Spell")'>
<changeSpell Spell = "Double-Up"/>
<action type="equip" when="precast" set="PhantomRoll" />
<ChangeTarget Target = "<me>"/>
<if NotBuffactive="Double-Up Chance">
<action type="CancelSpell" />
<addtochat>[NOTE] Already wearing that buff~ Double-Up Chance is gone..</addtochat>
</if>
</if>
<if advanced='$corsair="1"'>
<if Spell="Corsair's Roll">
<action type="equip" when="precast" set="Luzaf" />
<addtochat>[%Spell] <EXP Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
</if>
<if Spell="Bolter's Roll">
<action type="equip" when="precast" set="Luzaf" />
<addtochat>[%Spell] <Movement Plus> Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
</if>
</if>
<if advanced='$corsair="0"'>
<if Spell="Corsair's Roll">
<addtochat>[%Spell] <EXP Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
</if>
<if Spell="Bolter's Roll">
<addtochat>[%Spell] <Movement Plus> Lucky: 3 ~ Unlucky: 9</addtochat>
</if>
</if>
<if advanced='$melee="1"'>
<if Spell="Samurai Roll">
<addtochat>[%Spell] <Store TP> Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif Spell="Healer's Roll">
<addtochat>[%Spell] <Enhances "Cure" Potency Received> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Monk's Roll">
<addtochat>[%Spell] <Subtle Blow> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Gallant's Roll">
<addtochat>[%Spell] <Reduces Damage Taken> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Dancer's Roll">
<addtochat>[%Spell] <Regen> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Ninja Roll">
<addtochat>[%Spell] <Evasion Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Hunter's Roll">
<addtochat>[%Spell] <Accuracy Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Chaos Roll">
<addtochat>[%Spell] <Attack Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Fighter's Roll">
<addtochat>[%Spell] <Double Attack Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Rogue's Roll">
<addtochat>[%Spell] <Crit Hit Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Courser's Roll">
<addtochat>[%Spell] <Snap Shot Bonus> Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Blitzer's Roll">
<addtochat>[%Spell] <Melee Attk Speed Bonus> Lucky: 4 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Tactician's Roll">
<addtochat>[%Spell] <Regain Bonus> Lucky: 5 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Allies' Roll">
<addtochat>[%Spell] <Skillchain Acc/Damage Bonus> Lucky: 3 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Miser's Roll">
<addtochat>[%Spell] <Save TP Bonus> Lucky: 5 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Avenger's Roll">
<addtochat>[%Spell] <Counter Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$melee="0"'>
<if Spell="Samurai Roll">
<addtochat>[%Spell] <Store TP> Lucky: 2 ~ Unlucky: 6</addtochat>
</if>
<elseif Spell="Healer's Roll">
<addtochat>[%Spell] <Enhances "Cure" Potency Received> Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif Spell="Monk's Roll">
<addtochat>[%Spell] <Subtle Blow> Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif Spell="Gallant's Roll">
<addtochat>[%Spell] <Reduces Damage Taken> Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif Spell="Dancer's Roll">
<addtochat>[%Spell] <Regen> Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif Spell="Ninja Roll">
<addtochat>[%Spell] <Evasion Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Hunter's Roll">
<addtochat>[%Spell] <Accuracy Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Chaos Roll">
<addtochat>[%Spell] <Attack Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Fighter's Roll">
<addtochat>[%Spell] <Double Attack Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Rogue's Roll">
<addtochat>[%Spell] <Crit Hit Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Courser's Roll">
<addtochat>[%Spell] <Snap Shot Bonus> Lucky: 3 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Blitzer's Roll">
<addtochat>[%Spell] <Melee Attk Speed Bonus> Lucky: 4 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Tactician's Roll">
<addtochat>[%Spell] <Regain Bonus> Lucky: 5 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Allies' Roll">
<addtochat>[%Spell] <Skillchain Acc/Damage Bonus> Lucky: 3 ~ Unlucky: 10</addtochat>
</elseif>
<elseif Spell="Miser's Roll">
<addtochat>[%Spell] <Save TP Bonus> Lucky: 5 ~ Unlucky: 7</addtochat>
</elseif>
<elseif Spell="Avenger's Roll">
<addtochat>[%Spell] <Counter Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
</if>
<if advanced='$mage="1"'>
<if Spell="Choral Roll">
<addtochat>[%Spell] <Spell Interupt Down> Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif Spell="Magus's Roll">
<addtochat>[%Spell] <Magic Defense Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Scholar's Roll">
<addtochat>[%Spell] <Conserve MP Bonus> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Warlock's Roll">
<addtochat>[%Spell] <MAcc Bonus> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Wizard's Roll">
<addtochat>[%Spell] <MaB> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Evoker's Roll">
<addtochat>[%Spell] <Refresh> Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Caster's Roll">
<addtochat>[%Spell] <FastCast Bonus> Lucky: 2 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$mage="0"'>
<if Spell="Choral Roll">
<addtochat>[%Spell] <Spell Interupt Down> Lucky: 2 ~ Unlucky: 6</addtochat>
</if>
<elseif Spell="Magus's Roll">
<addtochat>[%Spell] <Magic Defense Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Scholar's Roll">
<addtochat>[%Spell] <Conserve MP Bonus> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Warlock's Roll">
<addtochat>[%Spell] <MAcc Bonus> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Wizard's Roll">
<addtochat>[%Spell] <MaB> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Evoker's Roll">
<addtochat>[%Spell] <Refresh> Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif Spell="Caster's Roll">
<addtochat>[%Spell] <FastCast Bonus> Lucky: 2 ~ Unlucky: 7</addtochat>
</elseif>
</if>
<if advanced='$pet="1"'>
<if Spell="Drachen Roll">
<addtochat>[%Spell] <Pet Acc> Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif Spell="Puppet Roll">
<addtochat>[%Spell] <Pet Macc/Mab> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Beast Roll">
<addtochat>[%Spell] <Pet Attack> Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif Spell="Companion's Roll">
<addtochat>[%Spell] <Pet Regain/Regen> Lucky: 2 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$pet="0"'>
<if Spell="Drachen Roll">
<addtochat>[%Spell] <Pet Acc> Lucky: 3 ~ Unlucky: 7</addtochat>
</if>
<elseif Spell="Puppet Roll">
<addtochat>[%Spell] <Pet Macc/Mab> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Beast Roll">
<addtochat>[%Spell] <Pet Attack> Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif Spell="Companion's Roll">
<addtochat>[%Spell] <Pet Regain/Regen> Lucky: 2 ~ Unlucky: 10</addtochat>
</elseif>
</if>
</if>
<if Spell="Double*" NotBuffActive="Amnesia">
<if advanced='$corsair="1"'>
<if advanced='"$currentroll"="Corsair's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<if advanced='"$currentroll"="Bolter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
</if>
<if advanced='$corsair="0"'>
<if advanced='"$currentroll"="Corsair's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</if>
<if advanced='"$currentroll"="Bolter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9</addtochat>
</if>
</if>
<if advanced='$melee="1"'>
<if advanced='"$currentroll"="Samurai Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif advanced='"$currentroll"="Healer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Monk's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Gallant's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Dancer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Ninja Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Hunter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Chaos Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Fighter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Rogue's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Blitzer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Tactician's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Allies' Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Miser's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Avenger's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$melee="0"'>
<if advanced='"$currentroll"="Samurai Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</if>
<elseif advanced='"$currentroll"="Healer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Monk's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Gallant's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Dancer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Ninja Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Hunter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Chaos Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Fighter's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Rogue's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Courser's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Blitzer's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Tactician's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Allies' Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 10</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Miser's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 7</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Avenger's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
</if>
<if advanced='$mage="1"'>
<if advanced='"$currentroll"="Choral Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 6 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif advanced='"$currentroll"="Magus's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Scholar's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Warlock's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Wizard's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Evoker's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Caster's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$mage="0"'>
<if advanced='"$currentroll"="Choral Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 6</addtochat>
</if>
<elseif advanced='"$currentroll"="Magus's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Scholar's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Warlock's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Wizard's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Evoker's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 5 ~ Unlucky: 9</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Caster's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 7</addtochat>
</elseif>
</if>
<if advanced='$pet="1"'>
<if advanced='"$currentroll"="Drachen Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</if>
<elseif advanced='"$currentroll"="Puppet Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Beast Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
<elseif advanced='"$currentroll"="Companion's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 10 (Luzaf's Ring Active)</addtochat>
<equip when="precast|midcast" set="Luzaf" />
</elseif>
</if>
<if advanced='$pet="0"'>
<if advanced='"$currentroll"="Drachen Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 3 ~ Unlucky: 7</addtochat>
</if>
<elseif advanced='"$currentroll"="Puppet Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Beast Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 4 ~ Unlucky: 8</addtochat>
</elseif>
<elseif advanced='"$currentroll"="Companion's Roll"' BuffActive="Double-Up Chance">
<addtochat>[$currentroll] ~ [%Spell] Lucky: 2 ~ Unlucky: 10</addtochat>
</elseif>
</if>
</if>
<!-- Snake Eye :: Auto Double-up -->
<if Spell="Snake Eye">
<action type="command" when="aftercast">input /ja "Double-Up" <me></action>
</if>
<!-- Random Deal -->
<if Spell="Random Deal" NotBuffActive="Amnesia">
<action type="equip" when="precast" set="RandomDeal" />
</if>
<!-- Quick Draw -->
<if type="CorsairShot" notbuffactive="Amnesia">
<!-- Damage formula: [2 * (Gun base DMG + bullet base DMG + Corsair's Tricorne bonus)] * (1 + (MAB / 100))] * (Elemental Staff bonus) * (Day/Weather Bonus) -->
<!-- Light and Dark shots do not deal damage -->
<!-- Accuracy is based on Agility 2AGI=1Macc -->
<if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement")'>
<if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
<elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
<elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
<elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
<elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
<elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
<elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
<elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
<action type="equip" when="midcast"><back lock="yes">Twilight Cape</back></action>
</if>
<if Spell="Light*|Dark*">
<if Spell="Light Shot">
<!-- Dia Defense Down +5%, Dot+ -->
<equip when="PreCast" set="RAagi" />
<if advanced='"$SleepTimers"="1"'>
<command when="aftercast">Spellcast var inc sleepid;wait 15;input /echo [$sleepid:%Spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 25;input /echo [$sleepid:%Spell] <%target> Wearing off in 5s; Spellcast var dec sleepid;</command>
</if>
</if>
<elseif Spell="Dark Shot">
<!-- Bio Attack Down +5%, Dot+ -->
<equip when="PreCast" set="RAagi" />
</elseif>
</if>
<elseif Spell="Ice*|Wind*|Earth*|Thunder*|Water*|Fire*">
<if Spell="Fire Shot">
<equip when="PreCast" set="QDmab"></equip>
</if>
<elseif Spell="Ice Shot">
<!-- Paralyze +10%, Bind +? -->
<equip when="PreCast" set="QDmab"></equip>
</elseif>
<elseif Spell="Wind Shot">
<!-- Acid Bolt Def Down +5%, Gravity +? -->
<equip when="PreCast" set="QDmab"></equip>
</elseif>
<elseif Spell="Earth Shot">
<!-- Slow +10% -->
<equip when="PreCast" set="QDmab"></equip>
</elseif>
<elseif Spell="Thunder Shot">
<!-- Stun +? -->
<equip when="PreCast" set="QDmab"></equip>
</elseif>
<elseif Spell="Water Shot">
<!-- Poison Dot + -->
<equip when="PreCast" set="QDmab"></equip>
</elseif>
</elseif>
</if>
<!-- Sub Jobs -->
<elseif SubJob="NIN">
<if spell="Utsusemi:*">
<action type="equip" when="precast">
<legs>Homam Cosciales</legs>
</action>
<action type="equip" when="aftercast">
<legs>Mavi Tayt +1</legs>
</action>
<if spell="*NI">
<action type="var" cmd="set Utsusemi Ni" />
</if>
<elseif spell="*Ichi">
<if advanced='"$Utsusemi"=="Ni"'>
<midcastdelay delay="3.0" />
<action type="command" when="midcast">cancel 66</action>
</if>
<action type="var" cmd="set Utsusemi Ichi" />
</elseif>
</if>
<elseif spell="Monomi*|Tonko*">
<if Spell="Monomi*" BuffActive="Sneak">
<midcastdelay delay="2.5" />
<action type="command" when="midcast">cancel 71</action>
</if>
</elseif>
</elseif>
<elseif SubJob="DNC">
<if Spell="Curing Waltz*">
<action type="DefaultTarget" target="<stpc>"/>
<if Spell="Curing Waltz III">
<if TPLT="50"><action type="ChangeSpell" Spell="Curing Waltz II" /></if>
<elseif TPLT="35"><action type="ChangeSpell" Spell="Curing Waltz" /></elseif>
<elseif TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></elseif>
</if>
<elseif Spell="Curing Waltz II">
<if TPLT="35"><action type="ChangeSpell" Spell="Curing Waltz" /></if>
<elseif TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></elseif>
</elseif>
<elseif Spell="Curing Waltz">
<if TPLT="20"><action type="CancelSpell" /><addtochat>[NOTE] Not enough TP X_x;;</addtochat></if>
</elseif>
</if>
</elseif>
<!-- Teh Random -->
<if Area="*Windurst*|*San d'Oria*|*Bastok*|*Jeuno*|*Whitegate|Al Zahbi" NotArea="Dynamis*|*[S]|Abyssea*" NotBuffActive="Besieged">
<action type="Equip" when="precast|midcast|aftercast|engaged|idle" set="TownGear" />
</if>
</rules>
</spellcast>