13th April 2009
* Sleep timers thanks Aikar and Soulman.
* Enspell change on day/Weather thanks for idea Irocky.
* Phalanx II conversion to Phalanx on self cast.
* Fixed spelling mistakes, removed the target changing and added new stuff.
* Uses inherited gear sets now.
* Auto Enspell tier 2 logic added and Enspell tier 1 logic changed.
* Auto Composure on Self spell.
* Diabolos Pole Logic added.
* AddtoChat.dll functions add for delayed add to chat. dll found @ http://windower.net/plugins/AddToChat.dll
* Auto self buff logic added (add the following to your AutoExec xml)
<register event = "(regex)(losebuff_(haste|refresh|stoneskin))(/regex)">input /ma "Stonega V" <me></register>
<spellcast xmlns:xi = "http://www.w3.org/2001/XInclude">
<config Debug = "true" ShowGearSwaps = "false"/>
<sets>
<group name = "MiscMage" subjob = "WHM,BLM,SMN">
<set name = "MiscCollectionGear">
<!-- remove the includes if you dont use them-->
<xi:include href = "include.xml" xpointer = "/includes/include[@name='elestaves']/*"/>
<xi:include href = "include.xml" xpointer = "/includes/include[@name='elegrips']/*"/>
<main>Apollo's Staff</main>
<main>Pluto's Staff</main>
<main>Terra's Staff</main>
<main>Neptune's Staff</main>
<main>Auster's Staff</main>
<main>Vulcan's Staff</main>
<main>Aquilo's Staff</main>
<main>Jupiter's Staff</main>
<sub>Light Grip</sub>
<sub>Dark Grip</sub>
<sub>Fire Grip</sub>
<sub>Water Grip</sub>
<sub>Earth Grip</sub>
<sub>Wind Grip</sub>
<sub>Ice Grip</sub>
<sub>Thunder Grip</sub>
<main store = "satchel">Diabolos's Pole</main>
<item store = "satchel">Cream Puff</item>
<main store = "satchel">Joyeuse</main>
<item store = "satchel">sole sushi</item>
<sub store = "satchel">Genbu's Shield</sub>
</set>
</group>
<group name = "MiscMelee" subjob = "WAR,NIN,DNC">
<set name = "MiscCollectionGear">
<main store = "satchel">Martial Anelace</main>
<main store = "satchel">Joyeuse</main>
<item store = "satchel">sole sushi</item>
<sub store = "satchel">Genbu's Shield</sub>
</set>
</group>
<group Name = "Standard" subjob = "*">
<xi:include href = "include.xml" xpointer = "/includes/include[@name='elestaves']/*"/>
<xi:include href = "include.xml" xpointer = "/includes/include[@name='elegrips']/*"/>
<set name = "Standard">
<head store = "satchel">Dls. Chapeau +1</head>
<lear store = "satchel">Loquac. Earring</lear>
<rear>Magnetic Earring</rear>
<rring store = "satchel">Serket Ring</rring>
<legs store = "satchel">Jet Seraweels</legs>
</set>
<set name = "Engaged"/>
<set name = "WS"/>
<set name = "WSSavage" baseset = "Mnd"/>
<set name = "Eva" baseset = "Standard">
<head store = "satchel">Optical Hat</head>
<body store = "satchel">Scp. Harness +1</body>
<neck store = "satchel">Evasion Torque</neck>
<hands store = "satchel">Akinji Bazubands</hands>
<waist store = "satchel">Scouter's Rope</waist>
<back store = "satchel">Boxer's Mantle</back>
</set>
<!--Hmp+ and Hhp + gear for fast mp and hp gain-->
<set name = "Resting" baseset = "Standard">
<lear store = "satchel">Antivenom Earring</lear>
<neck store = "satchel">Grandiose Chain</neck>
<body store = "satchel">Errant Hpl.</body>
<waist store = "satchel">Hierarch Belt</waist>
<feet store = "satchel">Goliard Clogs</feet>
</set>
<!--This set helps Maximise Sneak and Invis Duration -->
<set name = "SneakInvis" baseset = "Fastcast">
<back store = "satchel">Skulker's cape</back>
<feet store = "satchel">Dream Boots +1</feet>
</set>
<!--Base spell casting set all spell based gear sets are based on this so you always gain fastcast + gear-->
<set name = "Fastcast" baseset = "Standard">
<head store = "satchel">Warlock's Chapeau</head>
<lear store = "satchel">Loquac. Earring</lear>
<body store = "satchel">Duelist's Tabard</body>
</set>
<!--Base Set for MND + gear sets-->
<set name = "Mnd" baseset = "Fastcast">
<head store = "satchel">Dls. Chapeau +1</head>
<body store = "satchel">Errant Hpl.</body>
<waist store = "satchel">Penitent's Rope</waist>
<legs store = "satchel">Jet Seraweels</legs>
<feet store = "satchel">Goliard Clogs</feet>
<lring store = "satchel">Aqua Ring</lring>
</set>
<!--Base Set for INT + gear sets-->
<set name = "Int" baseset = "Fastcast">
<head store = "satchel">Warlock's Chapeau</head>
<body store = "satchel">Errant Hpl.</body>
<waist store = "satchel">Penitent's Rope</waist>
<legs store = "satchel">Jet Seraweels</legs>
<lring store = "satchel">Snow Ring</lring>
</set>
<!--Set for additional Enfeebling Skill-->
<set name = "EnfeeblingMagic">
<head store = "satchel">Dls. Chapeau +1</head>
<body store = "satchel">Warlock's Tabard</body>
<neck store = "satchel">Enfeebling Torque</neck>
</set>
<!--Set for additional Dark Skill -->
<set name = "DarkMagic" baseset = "Int">
<neck store = "satchel">Dark Torque</neck>
<feet>Duelist's Boots</feet>
</set>
<!--Set for additional Enhancing Skill-->
<set name = "EnhancingMagic">
<neck store = "satchel">Enhancing Torque</neck>
<legs store = "satchel">Warlock's Tights</legs>
<hands store = "satchel">Duelist's Gloves</hands>
<waist store = "satchel">Brocade Obi</waist>
</set>
<set name = "MAB" baseset = "%Skill">
<neck>Uggalepih Pendant</neck>
</set>
<!--Set for additional Elemental Skill-->
<set name = "ElementalMagic" baseset = "Int">
<head store = "satchel">Warlock's Chapeau</head>
<lear store = "satchel">Moldavite Earring</lear>
<neck store = "satchel">Elemental Torque</neck>
<legs store = "satchel">Duelist's Tights</legs>
<feet>Duelist's Boots</feet>
</set>
<!--Set for additional Healing Skill -->
<!--(not really needed but as all other torques are swapped in/out no point in adding MP+ gear here)-->
<set name = "HealingMagic" baseset = "Mnd">
<neck store = "satchel">Healing Torque</neck>
<legs store = "satchel">Warlock's Tights</legs>
<body store = "satchel">Duelist's Tabard</body>
</set>
<!--Set for additional Divine Skill-->
<set name = "DivineMagic" baseset = "Mnd">
<neck store = "satchel">Divine Torque</neck>
<feet>Duelist's Boots</feet>
</set>
<!--Set for Mnd Based Enfeebling Uses MND + Enfeebling gear-->
<set name = "EnfeeblingMagic-WhiteMagic" baseset = "Mnd|EnfeeblingMagic"/>
<!--Set for Int Based Enfeebling Uses INT + Enfeebling gear-->
<set name = "EnfeeblingMagic-BlackMagic" baseset = "Int|EnfeeblingMagic"/>
<!--Set for Mnd Based Enhancing Uses MND + Enhancing gear-->
<set name = "EnhancingMagic-WhiteMagic" baseset = "Mnd|EnhancingMagic"/>
<!--Set for Mnd Based Enhancing Uses INT + Enhancing gear-->
<set name = "EnhancingMagic-BlackMagic" baseset = "Int|EnhancingMagic"/>
</group>
<group
name = "Mage"
inherit = "Standard"
default = "Yes"
subjob = "WHM,BLM,SMN,DRK">
<!--Standard Set where gear which is normally not swapped or gear you want to wear while not doing anything-->
<set name = "Standard">
<main store = "satchel">$EarthStaff</main>
<sub store = "satchel">Earth Grip</sub>
<ammo store = "satchel">Hedgehog Bomb</ammo>
<neck store = "satchel">Grandiose Chain</neck>
<rear store = "satchel">Magnetic Earring</rear>
<body store = "satchel">Duelist's Tabard</body>
<hands store = "satchel">Marine M Gloves</hands>
<rring>Serket Ring</rring>
<lring store = "satchel">Ether Ring</lring>
<back store = "satchel">Rainbow Cape</back>
<waist store = "satchel">Penitent's Rope</waist>
<feet store = "satchel">Goliard Clogs</feet>
</set>
<!--This set is a Dynamic Set which changes staff and grip based on spell-->
<set name = "FastCast">
<!--Change to %SpellElement Staff for NQ staves-->
<main>$%SpellElementStaff</main>
<sub>%SpellElement Grip</sub>
</set>
<set name = "Resting">
<main store = "satchel">$DarkStaff</main>
</set>
</group>
<group
name = "Melee"
inherit = "Standard"
subjob = "WAR,NIN,DNC">
<set name = "Standard">
<main>$Main</main>
<sub>$Sub</sub>
<ammo store = "satchel">Tiphia Sting</ammo>
<neck store = "satchel">Peacock Charm</neck>
<rear store = "satchel">Suppanomimi</rear>
<body store = "satchel">Scp. Harness +1</body>
<!--<body store = "satchel">Pln. Khazagand</body>-->
<hands store = "satchel">Marine M Gloves</hands>
<lring store = "satchel">Ulthalam's Ring</lring>
<back>Cuchulain's Mantle</back>
<waist store = "satchel">Swift Belt</waist>
<feet store = "satchel">Marine M Boots</feet>
</set>
<set name = "Engaged" BaseSet = "Standard">
<head store = "satchel">Dls. Chapeau +1</head>
<legs store = "satchel">Dusk Trousers</legs>
<hands store = "satchel">Dusk Gloves</hands>
<feet store = "satchel">Dusk Ledelsens</feet>
</set>
</group>
<group
name = "Assault"
inherit = "Standard"
subjob = "WAR,NIN,DNC">
<set name = "Standard">
<main>$Main</main>
<sub>$Sub</sub>
<ammo store = "satchel">Hedgehog Bomb</ammo>
<neck store = "satchel">Peacock Charm</neck>
<rear store = "satchel">Suppanomimi</rear>
<body store = "satchel">Scp. Harness +1</body>
<hands store = "satchel">Marine M Gloves</hands>
<lring store = "satchel">Ulthalam's Ring</lring>
<rring>Serket Ring</rring>
<back store = "satchel">Rainbow Cape</back>
<waist store = "satchel">Penitent's Rope</waist>
<feet store = "satchel">Marine M Boots</feet>
</set>
<Set name = "Engaged" Baseset = "Standard"/>
</group>
</sets>
<variables clear = "Yes">
<!--This tells the Engaged Autoset which set to use when meleeing-->
<var name = "Default" nooverwrite = "true">Standard</var>
<!--Set variable tells spellcast which set to use after casting-->
<var name = "Set" nooverwrite = "true">Standard</var>
<!--Variables for HQ Elemental Staves (not needed for NQ see Staff Set notes.)-->
<xi:include href = "include.xml" xpointer = "/includes/include[@name='VarStaves']/*"/>
<xi:include href = "include.xml" xpointer = "/includes/include[@name='VarEnSpells']/*"/>
<var name = "Legs">Dusk Trousers</var>
<var name = "Main" nooverwrite = "true">Joyeuse</var>
<var name = "Sub" nooverwrite = "true">Genbu's Shield</var>
<var name = "AutoEn" nooverwrite = "true">1</var>
<var name = "Assault" nooverwrite = "true">0</var>
<var name = "autocast">0</var>
</variables>
<rules>
<xi:include href = "include.xml" xpointer = "/includes/include[@name='DeadRules']/*"/>
<if equipMain = "Martial Anelace|Joyeuse|Vorpal Sword" notGroup = "melee|assault">
<if Advanced = "$Assault=1" notGroup = "assault">
<command>sc group assault</command>
</if>
<elseif Advanced = "$Assault=0" notGroup = "melee">
<command>sc group melee</command>
</elseif>
<cancelspell/>
<Equip When = "MidCast" Set = "$Set"/>
<Command>input /ma %Spell %SpellTarget</Command>
<return/>
</if>
<if equipMain = "* Staff|* Pole" notGroup = "mage">
<command>sc group mage</command>
<cancelspell/>
<Equip When = "MidCast" Set = "$Set"/>
<Command>input /ma %Spell %SpellTarget</Command>
<return/>
</if>
<if advanced = '(bool)buffactive("*Spikes")'>
<var cmd = "set Legs Duelist's tights"/>
</if>
<else>
<var cmd = "set Legs Dusk Trousers"/>
</else>
<!--Standard AutoSet Rules-->
<!--Each Status sets the Variable "Set" so that spellcast knows which set to use after casting-->
<xi:include href = "include.xml" xpointer = "/includes/include[@name='AutoSets']/*"/>
<if skill = "DivineMagic|DarkMagic|ElementalMagic|HealingMagic|EnhancingMagic|EnfeeblingMagic">
<equip When = "Precast" Set = "Fastcast"/>
</if>
<!--Swaps in Correct Enhancing/Enfeebling Gear based on Type -->
<if skill = "EnhancingMagic|EnfeeblingMagic">
<if
notbuffactive = "Composure"
skill = "EnhancingMagic"
SpellTargetName = "Whitewing"
notspell = "warp|tele*">
<CastDelay delay = "3"/>
<Command when = "Precast">input /raw /ja Composure <me></Command>
</if>
<elseif Spell = "Stoneskin">
<Equip When = "midcast" Set = "MND">
<if notgroup = "Melee|Assault">
<main>$EarthStaff</main>
<sub>Earth Grip</sub>
</if>
</Equip>
</elseif>
<else>
<Equip When = "midcast" Set = "%Skill-%Type"/>
</else>
</if>
<!--Swaps in Correct Gear Based on Skill -->
<elseif skill = "DivineMagic|DarkMagic|ElementalMagic|HealingMagic">
<if MPPAftercastLT = "51">
<equip When = "midcast" Set = "MAB"/>
</if>
<else>
<Equip When = "midcast" Set = "%Skill"/>
</else>
<if spell = "Drain*|Aspir" Area = "Dynamis*">
<equip when = "midcast">
<main>Diabolos's Pole</main>
</equip>
</if>
<elseif advanced = '"%Weather"="%WeatherElement" and "%Spell"="Aspir|Drain*"'>
<equip when = "midcast">
<main>Diabolos's Pole</main>
</equip>
</elseif>
</elseif>
<!--Rules to Cancel sneak first if your casting sneak on yourself-->
<xi:include href = "include.xml" xpointer = "/includes/include[@name='CancelRules']/*"/>
<if Spell = "Savage Blade">
<if TargetDistanceGT = "4">
<CancelSpell/>
<return/>
</if>
<equip when = "Precast" Set = "WSSavage"/>
<castdelay delay = "0.2"/>
</if>
<if spell = "Phalanx II" SpellTargetName = "Whitewing">
<ChangeSpell Spell = "Phalanx"/>
</if>
<if Spell = "Sleep II">
<command when = "midcast">input /p Casting \xFD\x02\x02\x1B\x64\xFD II on >>>>> %SpellTargetName;</command>
<command when = "aftercast">wait 45;addtochat 200 %spell (%SpellTargetName) - Wearing off in 45s</command>
<command when = "aftercast">wait 75;addtochat 11 %spell (%SpellTargetName) - Wearing off in 15s</command>
<command when = "aftercast">wait 85;addtochat 167 %spell (%SpellTargetName) - Wearing off in 5s</command>
</if>
<elseif Spell = "Sleep|Sleepga">
<if Spell = "Sleep">
<command when = "midcast">input /p Casting \xFD\x02\x02\x24\x26\xFD on >>>>> %SpellTargetName</command>
</if>
<if Spell = "Sleepga">
<command when = "midcast">input /p Casting \xFD\x02\x02\x24\x26\xFD on >>>>> %SpellTargetName</command>
</if>
<command when = "aftercast">wait 45;addtochat 11 %spell (%SpellTargetName) - Wearing off in 15s</command>
<command when = "aftercast">wait 55;addtochat 167 %spell (%SpellTargetName) - Wearing off in 5s</command>
</elseif>
<!--Rules for Soloing using Utsusemi-->
<if Spell = "Utsusemi*">
<equip when = "Precast" Set = "Fastcast"/>
<if Spell = "Utsusemi: Ni" SLvlLT = "37">
<ChangeSpell Spell = "Utsusemi: Ichi"/>
</if>
</if>
<if spell = "Enthunder|Enaero|Enfire|Enblizzard|Enwater|Enstone" Advanced = '"$AutoEn"="1"'>
<if Weather = "*2" NotWeather = "None|Light*|Dark*">
<ChangeSpell Spell = "$En%WeatherElement"/>
</if>
<elseif NotDay = "Light*|Dark*">
<ChangeSpell Spell = "$En%DayElement"/>
</elseif>
<if advanced = '"$Autocast"=="1"'>
<command when = "precast">autoexec unregister 60497</command>
<command when = "aftercast">autoexec regonceq 60496 (regex)(losebuff_(Enthunder|Enaero|Enfire|Enblizzard|Enwater|Enstone))(/regex) input /ma "Thundaga V" <me></command>
</if>
</if>
<if spell = "Enthunder II|Enaero II|Enfire II|Enblizzard II|Enwater II|Enstone II" Advanced = '"$AutoEn"="1"'>
<if Weather = "*2" NotWeather = "None|Light*|Dark*">
<ChangeSpell Spell = "$En%WeatherElement II"/>
</if>
<elseif NotDay = "Light*|Dark*">
<ChangeSpell Spell = "$En%DayElement II"/>
</elseif>
<if advanced = '"$Autocast"=="1"'>
<command when = "precast">autoexec unregister 60496</command>
<command when = "aftercast">autoexec regonceq 60497 (regex)(losebuff_(Enthunder_II|Enaero_II|Enfire_II|Enblizzard_II|Enwater_II|Enstone_II))(/regex) input /ma "Thunder V" <me></command>
</if>
</if>
<if spell = "stun">
<Command when = "midcast">input /p \xFD\x02\x02\x1B\x5B\xFD >> <t> >> \xFD\x02\x02\x15\x0E\xFD</Command>
</if>
<if spell = "Stonega V" advanced = '"$Autocast"=="1"'>
<if notbuffactive = "Composure">
<CastDelay delay = "3"/>
<Command when = "Precast">input /raw /ja Composure <me></Command>
</if>
<if notbuffactive = "haste">
<Changespell spell = "haste"/>
<ChangeTarget Target = "<me>"/>
</if>
<elseif notbuffactive = "refresh">
<Changespell spell = "refresh"/>
<ChangeTarget Target = "<me>"/>
</elseif>
<elseif notbuffactive = "stoneskin">
<Changespell spell = "Stoneskin"/>
<ChangeTarget Target = "<me>"/>
</elseif>
<elseif notbuffactive = "phalanx">
<Changespell spell = "phalanx"/>
<ChangeTarget Target = "<me>"/>
</elseif>
<elseif notbuffactive = "aquaveil">
<Changespell spell = "aquaveil"/>
<ChangeTarget Target = "<me>"/>
</elseif>
<else>
<cancelspell/>
<return/>
</else>
<command when = "aftercast">autoexec regonceq 60499 (regex)(losebuff_(haste|refresh|stoneskin|phalanx|aquaveil))(/regex) input /ma "Stonega V" <me></command>
</if>
<if spell = "Haste|Refresh|Stoneskin|Phalanx|Aquaveil">
<if advanced = '"$Autocast"=="1"'>
<command when = "aftercast">autoexec regonceq 60499 (regex)(losebuff_(haste|refresh|stoneskin|phalanx|aquaveil))(/regex) input /ma "Stonega V" <me></command>
</if>
</if>
<if spell = "Thunder V" advanced = '"$Autocast"=="1"'>
<cancelSpell/>
<command>input /ma "$En%DayElement II" <me></command>
<command when = "aftercast">autoexec regonceq 60497 (regex)(losebuff_(Enthunder_II|Enaero_II|Enfire_II|Enblizzard_II|Enwater_II|Enstone_II))(/regex) input /ma "Thunder V" <me></command>
</if>
<if spell = "Thundaga V" advanced = '"$Autocast"=="1"'>
<cancelSpell/>
<command>input /ma $En%DayElement <me></command>
<!-- <command when = "aftercast">autoexec regonceq 60496 (regex)(losebuff_(Enthunder|Enaero|Enfire|Enblizzard|Enwater|Enstone))(/regex) input /ma "Thundaga V" <me></command>-->
</if>
<equip When = "Aftercast" Set = "$Set"/>
</rules>
</spellcast>
include file if you need:
<includes>
<include name = "AutoSets">
<if spell = "autoset">
<if status = "resting">
<Var cmd = "set Set Resting"/>
<equip when = "resting" set = "$Set"/>
</if>
<elseif status = "idle">
<Var cmd = "set Set $Default"/>
<equip when = "idle" set = "$Set"/>
</elseif>
<elseif status = "engaged">
<Var cmd = "set Set engaged"/>
<equip when = "engaged" set = "$Set"/>
<command when = "aftercast">wait 3; input /lockon</command>
</elseif>
</if>
</include>
<include name = "elestaves">
<set name = "elestaves">
<main>Apollo's Staff</main>
<main>Pluto's Staff</main>
<main>Terra's Staff</main>
<main>Neptune's Staff</main>
<main>Auster's Staff</main>
<main>Vulcan's Staff</main>
<main>Aquilo's Staff</main>
<main>Jupiter's Staff</main>
</set>
</include>
<include name = "elegrips">
<set name = "elegrips">
<sub>Light Grip</sub>
<sub>Dark Grip</sub>
<sub>Fire Grip</sub>
<sub>Water Grip</sub>
<sub>Earth Grip</sub>
<sub>Wind Grip</sub>
<sub>Ice Grip</sub>
<sub>Thunder Grip</sub>
</set>
</include>
<include name = "VarSets">
<var name = "default">Standard</var>
<var name = "set">Standard</var>
</include>
<include name = "SyncGroup">
<group name = "Sync">
<set name = "*">
<main>$main</main>
<sub>$Sub</sub>
<range>$srange</range>
<ammo>$sammo</ammo>
<head>$head</head>
<neck>$neck</neck>
<lear>$lear</lear>
<rear>$rear</rear>
<body>$body</body>
<hands>$hands</hands>
<lring>$lring</lring>
<rring>$rring</rring>
<back>$back</back>
<waist>$Waist</waist>
<legs>$legs</legs>
<feet>$feet</feet>
</set>
</group>
</include>
<include name = "VarStaves">
<!--Variables for HQ Elemental Staves (not needed for NQ see Staff Set notes.)-->
<var name = "LightStaff">Apollo's Staff</var>
<var name = "DarkStaff">Pluto's Staff</var>
<var name = "EarthStaff">Terra's Staff</var>
<var name = "WaterStaff">Neptune's Staff</var>
<var name = "WindStaff">Auster's Staff</var>
<var name = "FireStaff">Vulcan's Staff</var>
<var name = "IceStaff">Aquilo's Staff</var>
<var name = "ThunderStaff">Jupiter's Staff</var>
</include>
<include name = "VarEnSpells">
<var name = "EnIce">Enblizzard</var>
<var name = "EnFire">Enfire</var>
<var name = "EnWind">Enaero</var>
<var name = "EnEarth">Enstone</var>
<var name = "EnThunder">Enthunder</var>
<var name = "EnWater">Enwater</var>
</include>
<include name = "VarSpirits">
<var name = "SpiritLight">Light</var>
<var name = "SpiritDark">Dark</var>
<var name = "SpiritFire">Fire</var>
<var name = "SpiritEarth">Earth</var>
<var name = "SpiritWind">Air</var>
<var name = "SpiritWater">Water</var>
<var name = "SpiritIce">Ice</var>
<var name = "SpiritThunder">Thunder</var>
</include>
<include name = "VarInfo">
<var name = "PartyChat">1</var>
<var name = "InfoP">0</var>
<var name = "InfoC">0</var>
</include>
<include name = "VarAutoShoot">
<var name = "Autoshoot" nooverwrite = "true">0</var>
<var name = "SharpShot">1</var>
<var name = "RangeWait">9</var>
</include>
<include name = "VarLvlSync">
<var name = "main" nooverwrite = "yes">0</var>
<var name = "sub" nooverwrite = "yes">0</var>
<var name = "range" nooverwrite = "yes">0</var>
<var name = "ammo" nooverwrite = "yes">0</var>
<var name = "srange" nooverwrite = "yes">0</var>
<var name = "sammo" nooverwrite = "yes">0</var>
<var name = "head" nooverwrite = "yes">0</var>
<var name = "neck" nooverwrite = "yes">0</var>
<var name = "lear" nooverwrite = "yes">0</var>
<var name = "rear" nooverwrite = "yes">0</var>
<var name = "body" nooverwrite = "yes">0</var>
<var name = "hands" nooverwrite = "yes">0</var>
<var name = "lring" nooverwrite = "yes">0</var>
<var name = "rring" nooverwrite = "yes">0</var>
<var name = "back" nooverwrite = "yes">0</var>
<var name = "waist" nooverwrite = "yes">0</var>
<var name = "legs" nooverwrite = "yes">0</var>
<var name = "feet" nooverwrite = "yes">0</var>
</include>
<include name = "ChatRules">
<if advanced = "%PartyCount > 1">
<var cmd = "Set PartyChat 1"/>
</if>
<else>
<var cmd = "Set PartyChat 0"/>
</else>
</include>
<include name = "DeadRules">
<if status = "Dead">
<action Type = "cancelspell"/>
<action Type = "return"/>
</if>
</include>
<include name = "ObiRules">
<if advanced = '("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
<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>
</if>
</include>
<include name = "CancelRules">
<if
Spell = "Sneak|Spectral Jig|Monomi*"
BuffActive = "Sneak"
advanced = '"%SpellTargetName"="%PlayerName"'>
<action type = "command" when = "midcast">cancel 71</action>
<if spell = "Spectral Jig">
<equip when = "precast" set = "Jigs"/>
</if>
<else>
<action type = "midcastdelay" delay = "2.3"/>
<equip when = "precast" set = "SneakInvis"/>
</else>
</if>
<elseif Spell = "Stoneskin" BuffActive = "Stoneskin">
<action type = "command" when = "midcast">cancel 37</action>
<action type = "midcastdelay" delay = "5.9"/>
</elseif>
<elseif Spell = "Blink" BuffActive = "Blink">
<action type = "command" when = "midcast">cancel 36</action>
<action type = "midcastdelay" delay = "5.2"/>
</elseif>
</include>
<include name = "SetBP">
<if Spell = "Carbuncle">
<action type = "Command">alias 75Nuke /;</action>
<action type = "Command">alias 65Nuke /;</action>
<action type = "Command">alias atkPact /;</action>
<action type = "Command">alias bufPact input /pet "Healing Ruby II" <me></action>
<action type = "Command">alias abfPact input /pet "Glittering Ruby" <me>;</action>
<action type = "Command">alias debPact input /pet "Poison Nails" <t>;</action>
<action type = "Command">alias a70Pact input /pet "Meteorite" <t>;</action>
</if>
<elseif Spell = "Diabolos">
<action type = "Command">alias 75Nuke input /pet "Camisado" <t></action>
<action type = "Command">alias 65Nuke input /pet "Ultimate Terror" <t></action>
<action type = "Command">alias atkPact input /pet "Somnolence" <t></action>
<action type = "Command">alias bufPact input /pet "Noctoshield" <me></action>
<action type = "Command">alias abfPact input /pet "Dream Shroud" <me></action>
<action type = "Command">alias debPact input /pet "Nightmare" <t></action>
<action type = "Command">alias a70Pact input /pet "Nether Blast" <t></action>
</elseif>
<elseif Spell = "Fenrir">
<action type = "Command">alias 75Nuke /;</action>
<action type = "Command">alias 65Nuke /;</action>
<action type = "Command">alias atkPact input /pet "Crecent Fang" <t></action>
<action type = "Command">alias bufPact input /pet "Ecliptic Growl" <me></action>
<action type = "Command">alias abfPact input /pet "Ecliptic Howl" <me></action>
<action type = "Command">alias debPact input /pet "Lunar Cry" <t></action>
<action type = "Command">alias a70Pact input /pet "Eclipse Bite" <t></action>
</elseif>
<elseif Spell = "Garuda">
<action type = "Command">alias 75Nuke input /pet "Wind Blade" <t>;</action>
<action type = "Command">alias 65Nuke input /pet "Aero IV" <t>;</action>
<action type = "Command">alias atkPact /;</action>
<action type = "Command">alias bufPact input /pet "Aerial Armor" <me>;</action>
<action type = "Command">alias abfPact input /pet "Hastega" <me>;</action>
<action type = "Command">alias debPact /;</action>
<action type = "Command">alias a70Pact input /pet "Predator Claws" <t>;</action>
</elseif>
<elseif Spell = "Ifrit">
<action type = "Command">alias 75Nuke input /pet "Meteor Strike" <t>;</action>
<action type = "Command">alias 65Nuke input /pet "Fire IV" <t>;</action>
<action type = "Command">alias atkPact input /pet "Double Punch" <t>;</action>
<action type = "Command">alias bufPact /;</action>
<action type = "Command">alias abfPact input /pet "Crimson Howl" <me>;</action>
<action type = "Command">alias debPact /;</action>
<action type = "Command">alias a70Pact input /pet "Flaming Crush" <t>;</action>
</elseif>
<elseif Spell = "Leviathan">
<action type = "Command">alias 75Nuke input /pet "Grand Fall" <t>;</action>
<action type = "Command">alias 65Nuke input /pet "Water IV" <t>;</action>
<action type = "Command">alias atkPact input /pet "Tail Whip" <t>;</action>
<action type = "Command">alias bufPact input /pet "Spring Water" <me>;</action>
<action type = "Command">alias abfPact /;</action>
<action type = "Command">alias debPact input /pet "Slowga" <t>;</action>
<action type = "Command">alias a70Pact input /pet "Spinning Dive" <t>;</action>
</elseif>
<elseif Spell = "Ramuh">
<action type = "Command">alias 65Nuke input /pet "Thunder IV" <t>;</action>
<action type = "Command">alias 75Nuke input /pet "Thunderstorm" <t>;</action>
<action type = "Command">alias atkPact input /pet "Thunderspark" <t>;</action>
<action type = "Command">alias bufPact /;</action>
<action type = "Command">alias abfPact input /pet "Rolling Thunder" <me>;</action>
<action type = "Command">alias debPact /;</action>
<action type = "Command">alias a70Pact input /pet "Chaotic Strike" <t>;</action>
</elseif>
<elseif Spell = "Shiva">
<action type = "Command">alias 75Nuke input /pet "Heavenly Strike" <t>;</action>
<action type = "Command">alias 65Nuke input /pet "Blizzard IV" <t>;</action>
<action type = "Command">alias atkPact input /pet "Double Slap" <t>;</action>
<action type = "Command">alias bufPact input /pet "Frost Armor" <me>;</action>
<action type = "Command">alias abfPact /;</action>
<action type = "Command">alias debPact input /pet "Sleepga" <t>;</action>
<action type = "Command">alias a70Pact input /pet "Rush" <t>;</action>
</elseif>
<elseif Spell = "Titan">
<action type = "Command">alias 65Nuke input /pet "Stone IV" <t>;</action>
<action type = "Command">alias 75Nuke input /pet "Geocrush" <t>;</action>
<action type = "Command">alias atkPact input /pet "Megalith Throw" <t>;</action>
<action type = "Command">alias bufPact input /pet "Earthen Ward" <me>;</action>
<action type = "Command">alias abfPact /;</action>
<action type = "Command">alias debPact /;</action>
<action type = "Command">alias a70Pact input /pet "Mountain Buster" <t>;</action>
</elseif>
</include>
<include name = "ClearBP">
<Command>alias 75Nuke /;</Command>
<Command>alias 65Nuke /;</Command>
<Command>alias atkPact /;</Command>
<Command>alias bufPact /;</Command>
<Command>alias abfPact /;</Command>
<Command>alias debPact /;</Command>
<Command>alias a70Pact /;</Command>
</include>
<include name = "BPChat">
<if spell = "Ecliptic Howl">
<if advanced = "%MOONPCT > 89">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 25 - Evasion 1"/>
</if>
<elseif advanced = "%MOONPCT > 74">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 21 - Evasion 5"/>
</elseif>
<elseif advanced = "%MOONPCT > 59">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 17 - Evasion 9"/>
</elseif>
<elseif advanced = "%MOONPCT > 39">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 13 - Evasion 13"/>
</elseif>
<elseif advanced = "%MOONPCT > 24">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 9 - Evasion 17"/>
</elseif>
<elseif advanced = "%MOONPCT > 9">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 5 - Evasion 21"/>
</elseif>
<else>
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Howl] Accuracy 1 - Evasion 25"/>
</else>
<if advanced = '"$PartyChat" = "1"'>
<action type = "command" When = "Precast">input /p $Info</action>
</if>
<else>
<action type = "AddToChat" color = "204">$Info</action>
</else>
</if>
<if spell = "Ecliptic Growl">
<if advanced = "%MOONPCT > 89">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 7 - INT/MND/CHR/AGI 1"/>
</if>
<elseif advanced = "%MOONPCT > 74">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 6 - INT/MND/CHR/AGI 2"/>
</elseif>
<elseif advanced = "%MOONPCT > 59">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 5 - INT/MND/CHR/AGI 3"/>
</elseif>
<elseif advanced = "%MOONPCT > 39">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 4 - INT/MND/CHR/AGI 4"/>
</elseif>
<elseif advanced = "%MOONPCT > 24">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 3 - INT/MND/CHR/AGI 5"/>
</elseif>
<elseif advanced = "%MOONPCT > 9">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 2 - INT/MND/CHR/AGI 6"/>
</elseif>
<else>
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 1 - INT/MND/CHR/AGI 7"/>
</else>
<if advanced = '"$PartyChat" = "1"'>
<action type = "command" When = "Precast">input /p $Info</action>
</if>
<else>
<action type = "AddToChat" color = "204">$Info</action>
</else>
</if>
<if spell = "Lunar Cry">
<if advanced = "%MOONPCT > 89">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 31 - Enemy Eva Down 1"/>
</if>
<elseif advanced = "%MOONPCT > 74">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 26 - Enemy Eva Down 6"/>
</elseif>
<elseif advanced = "%MOONPCT > 59">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 21 - Enemy Eva Down 11"/>
</elseif>
<elseif advanced = "%MOONPCT > 39">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 16 - Enemy Eva Down 16"/>
</elseif>
<elseif advanced = "%MOONPCT > 24">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 11 - Enemy Eva Down 21"/>
</elseif>
<elseif advanced = "%MOONPCT > 9">
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 6 - Enemy Eva Down 26"/>
</elseif>
<else>
<action type = "Var" cmd = " Set Info Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 1 - Enemy Eva Down 31"/>
</else>
<if advanced = '"$PartyChat" = "1"'>
<action type = "command" When = "Precast">input /p $Info</action>
</if>
<else>
<action type = "AddToChat" color = "204">$Info</action>
</else>
</if>
</include>
<include name = "CorRolls">
<If spell = "*Roll">
<if advanced = '"$LRoll"="1"'>
<equip when = "precast" set = "WRoll"/>
</if>
<else>
<equip when = "precast" set = "Roll"/>
</else>
<if spell = "choral*">
<var>set activeroll \xFD\x02\x02\x1F\x53\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x53\xFD (Lucky: 2 / Unlucky: 6) ~ Spell Interupt - ~ Pt Member Bonus: BRD"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 / Unlucky: 6) ~ Spell Interupt - ~ Pt Member Bonus: BRD"/>
</if>
<elseif spell = "samurai*">
<var>set activeroll \xFD\x02\x02\x1F\x55\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x55\xFD (Lucky: 2 [+32] / Unlucky: 6 [+4]) ~ Store TP + ~Pt Member Bonus: SAM [+10]"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 [+32] / Unlucky: 6 [+4]) ~ Store TP + ~Pt Member Bonus: SAM [+10]"/>
</elseif>
<elseif spell = "scholar*">
<var>set activeroll \xFD\x02\x02\x1F\xB8\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\xB8\xFD (Lucky: 2 / Unlucky: 6) ~ Conserve Mp + ~ Pt Member Bonus: SCH"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 / Unlucky: 6) ~ Conserve Mp + ~ Pt Member Bonus: SCH"/>
</elseif>
<elseif spell = "magus*">
<var>set activeroll \xFD\x02\x02\x1F\x59\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x59\xFD (Lucky: 2 [+20] / Unlucky: 6 [+3]) ~ M. Def + ~ Pt Member Bonus: BLU [+8]"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 [+20] / Unlucky: 6 [+3]) ~ M. Def + ~ Pt Member Bonus: BLU [+8]"/>
</elseif>
<elseif spell = "healer*">
<var>set activeroll \xFD\x02\x02\x1F\x4C\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4C\xFD (Lucky: 3 [+10] / Unlucky: 7 [+1]) ~ Hmp + ~ Pt Member Bonus: WHM [+3]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+10] / Unlucky: 7 [+1]) ~ Hmp + ~ Pt Member Bonus: WHM [+3]"/>
</elseif>
<elseif spell = "monk*">
<var>set activeroll \xFD\x02\x02\x1F\x4B\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4B\xFD (Lucky: 3 [+32] / Unlucky: 7 [+4]) ~ Subtle Blow + ~ Pt Member Bonus: MNK [+10]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+32] / Unlucky: 7 [+4]) ~ Subtle Blow + ~ Pt Member Bonus: MNK [+10]"/>
</elseif>
<elseif spell = "drachen*">
<var>set activeroll \xFD\x02\x02\x1F\x57\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x57\xFD (Lucky: 3 [+9] / Unlucky: 7 [+1]) ~ Pet: M. Atk & M. Acc + ~ Pt Member Bonus: DRG [+4]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+9] / Unlucky: 7 [+1]) ~ Pet: M. Atk & M. Acc + ~ Pt Member Bonus: DRG [+4]"/>
</elseif>
<elseif spell = "gallant*">
<var>set activeroll \xFD\x02\x02\x1F\x50\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x50\xFD (Lucky: 3 [+24%] / Unlucky: 7 [+3%]) ~ Dmg Reflection ~ Pt Member Bonus: PLD [+10%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+24%] / Unlucky: 7 [+3%]) ~ Dmg Reflection ~ Pt Member Bonus: PLD [+10%]"/>
</elseif>
<elseif spell = "dancer*">
<var>set activeroll \xFD\x02\x02\x1F\xB7\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\xB7\xFD (Lucky: 3 [11 hp/tick] / Unlucky: 7 [1 hp/tick]) ~ HP Regen ~ Pt Member Bonus: DNC [+3 hp/tick]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [11 hp/tick] / Unlucky: 7 [1 hp/tick]) ~ HP Regen ~ Pt Member Bonus: DNC [+3 hp/tick]"/>
</elseif>
<elseif spell = "ninja*">
<var>set activeroll \xFD\x02\x02\x1F\x56\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x56\xFD (Lucky: 4 / Unlucky: 8) ~ Eva + ~ Pt Member Bonus: NIN"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 / Unlucky: 8) ~ Eva + ~ Pt Member Bonus: NIN"/>
</elseif>
<elseif spell = "hunter*">
<var>set activeroll \xFD\x02\x02\x1F\x54\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x54\xFD (Lucky: 4 [+40] / Unlucky: 8 [+5]) ~ Acc & R. Acc + ~ Pt Member Bonus: RNG [+15]"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 [+40] / Unlucky: 8 [+5]) ~ Acc & R. Acc + ~ Pt Member Bonus: RNG [+15]"/>
</elseif>
<elseif spell = "chaos*">
<var>set activeroll \xFD\x02\x02\x1F\x51\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x51\xFD (Lucky: 4 [+25%] / Unlucky: 8 [+3%]) ~ Atk + ~ Pt Member Bonus: DRK [+10%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 [+25%] / Unlucky: 8 [+3%]) ~ Atk + ~ Pt Member Bonus: DRK [+10%]"/>
</elseif>
<elseif spell = "puppet*">
<var>set activeroll \xFD\x02\x02\x1F\x5B\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x5B\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Acc & R. Acc + ~ Pt Member Bonus: PUP"/>
<var cmd = " Set InfoC \xFD\x02\x02\x1F\x5B\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Acc & R. Acc + ~ Pt Member Bonus: PUP"/>
</elseif>
<elseif spell = "beast*">
<var>set activeroll \xFD\x02\x02\x1F\x52\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x52\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Atk & R. Atk + ~ Pt Member Bonus: BST"/>
<var cmd = " Set Info %Spell (Lucky: 4 / Unlucky: 8) ~ Pet: Atk & R. Atk + ~ Pt Member Bonus: BST"/>
</elseif>
<elseif spell = "warlock*">
<var>set activeroll \xFD\x02\x02\x1F\x4E\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4E\xFD (Lucky: 4 / Unlucky: 8) ~ M. Acc + ~ Pt Member Bonus: RDM"/>
<var cmd = " Set InfoC %Spell Lucky: 4 / Unlucky: 8) ~ M. Acc + ~ Pt Member Bonus: RDM"/>
</elseif>
<elseif spell = "corsair*">
<var>set activeroll \xFD\x02\x02\x1F\x5A\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x5A\xFD (Lucky: 5 [+20%] / Unlucky: 9 [+8%]) ~ Exp +"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+20%] / Unlucky: 9 [+8%]) ~ Exp +"/>
</elseif>
<elseif spell = "evoker*">
<var>set activeroll \xFD\x02\x02\x1F\x58\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x58\xFD (Lucky: 5 [+3] / Unlucky: 9 [+1]) ~ Refresh ~ Pt Member Bonus: SMN [+1]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+3] / Unlucky: 9 [+1]) ~ Refresh ~ Pt Member Bonus: SMN [+1]"/>
</elseif>
<elseif spell = "rogue*">
<var>set activeroll \xFD\x02\x02\x1F\x4F\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4F\xFD (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Crit. Hit + ~ Pt Member Bonus: THF [+6%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Crit. Hit + ~ Pt Member Bonus: THF [+6%]"/>
</elseif>
<elseif spell = "fighter*">
<var>set activeroll \xFD\x02\x02\x1F\x4A\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4A\xFD (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Dbl. Atk + ~ Pt Member Bonus:WAR [+6%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Dbl. Atk + ~ Pt Member Bonus:WAR [+6%]"/>
</elseif>
<elseif spell = "wizard*">
<var>set activeroll \xFD\x02\x02\x1F\x4D\xFD</var>
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4D\xFD (Lucky: 5 [+10] / Unlucky: 9 [+1]) ~ M. Atk + ~ Pt Member Bonus: BLM [+3]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+10] / Unlucky: 9 [+1]) ~ M. Atk + ~ Pt Member Bonus: BLM [+3]"/>
</elseif>
<if advanced = '"$PartyChat"="1"'>
<command when = "Precast">input /p $InfoP</command>
</if>
<else>
<addtochat color = "167">$InfoC</addtochat>
</else>
</If>
</include>
<include name = "CorRollsSub">
<If spell = "*Roll">
<if spell = "choral*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x53\xFD (Lucky: 2 / Unlucky: 6) ~ Spell Interupt - ~ Pt Member Bonus: BRD"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 / Unlucky: 6) ~ Spell Interupt - ~ Pt Member Bonus: BRD"/>
</if>
<elseif spell = "samurai*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x55\xFD (Lucky: 2 [+16] / Unlucky: 6 [+2]) ~ Store TP + ~Pt Member Bonus: SAM [+10]"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 [+32] / Unlucky: 6 [+4]) ~ Store TP + ~Pt Member Bonus: SAM [+10]"/>
</elseif>
<elseif spell = "scholar*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\xB8\xFD (Lucky: 2 / Unlucky: 6) ~ Conserve Mp + ~ Pt Member Bonus: SCH"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 / Unlucky: 6) ~ Conserve Mp + ~ Pt Member Bonus: SCH"/>
</elseif>
<elseif spell = "magus*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x59\xFD (Lucky: 2 [+10] / Unlucky: 6 [+1]) ~ M. Def + ~ Pt Member Bonus: BLU [+8]"/>
<var cmd = " Set InfoC %Spell (Lucky: 2 [+10] / Unlucky: 6 [+1]) ~ M. Def + ~ Pt Member Bonus: BLU [+8]"/>
</elseif>
<elseif spell = "healer*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4C\xFD (Lucky: 3 [+5] / Unlucky: 7 [+1]) ~ Hmp + ~ Pt Member Bonus: WHM [+3]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+10] / Unlucky: 7 [+1]) ~ Hmp + ~ Pt Member Bonus: WHM [+3]"/>
</elseif>
<elseif spell = "monk*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4B\xFD (Lucky: 3 [+16] / Unlucky: 7 [+2]) ~ Subtle Blow + ~ Pt Member Bonus: MNK [+10]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+16] / Unlucky: 7 [+2]) ~ Subtle Blow + ~ Pt Member Bonus: MNK [+10]"/>
</elseif>
<elseif spell = "drachen*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x57\xFD (Lucky: 3 [+4] / Unlucky: 7 [+1]) ~ Pet: M. Atk & M. Acc + ~ Pt Member Bonus: DRG [+4]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+4] / Unlucky: 7 [+1]) ~ Pet: M. Atk & M. Acc + ~ Pt Member Bonus: DRG [+4]"/>
</elseif>
<elseif spell = "gallant*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x50\xFD (Lucky: 3 [+12%] / Unlucky: 7 [+1%]) ~ Dmg Reflection ~ Pt Member Bonus: PLD [+10%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [+12%] / Unlucky: 7 [+1%]) ~ Dmg Reflection ~ Pt Member Bonus: PLD [+10%]"/>
</elseif>
<elseif spell = "dancer*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\xB7\xFD (Lucky: 3 [5 hp/tick] / Unlucky: 7 [1 hp/tick]) ~ HP Regen ~ Pt Member Bonus: DNC [+3 hp/tick]"/>
<var cmd = " Set InfoC %Spell (Lucky: 3 [5 hp/tick] / Unlucky: 7 [1 hp/tick]) ~ HP Regen ~ Pt Member Bonus: DNC [+3 hp/tick]"/>
</elseif>
<elseif spell = "ninja*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x56\xFD (Lucky: 4 / Unlucky: 8) ~ Eva + ~ Pt Member Bonus: NIN"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 / Unlucky: 8) ~ Eva + ~ Pt Member Bonus: NIN"/>
</elseif>
<elseif spell = "hunter*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x54\xFD (Lucky: 4 [+20] / Unlucky: 8 [+2]) ~ Acc & R. Acc + ~ Pt Member Bonus: RNG [+15]"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 [+20] / Unlucky: 8 [+2]) ~ Acc & R. Acc + ~ Pt Member Bonus: RNG [+15]"/>
</elseif>
<elseif spell = "chaos*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x51\xFD (Lucky: 4 [+12%] / Unlucky: 8 [+3%]) ~ Atk + ~ Pt Member Bonus: DRK [+10%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 4 [+12%] / Unlucky: 8 [+3%]) ~ Atk + ~ Pt Member Bonus: DRK [+10%]"/>
</elseif>
<elseif spell = "puppet*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x5B\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Acc & R. Acc + ~ Pt Member Bonus: PUP"/>
<var cmd = " Set InfoC \xFD\x02\x02\x1F\x5B\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Acc & R. Acc + ~ Pt Member Bonus: PUP"/>
</elseif>
<elseif spell = "beast*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x52\xFD (Lucky: 4 / Unlucky: 8) ~ Pet: Atk & R. Atk + ~ Pt Member Bonus: BST"/>
<var cmd = " Set Info %Spell (Lucky: 4 / Unlucky: 8) ~ Pet: Atk & R. Atk + ~ Pt Member Bonus: BST"/>
</elseif>
<elseif spell = "warlock*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4E\xFD (Lucky: 4 / Unlucky: 8) ~ M. Acc + ~ Pt Member Bonus: RDM"/>
<var cmd = " Set InfoC %Spell Lucky: 4 / Unlucky: 8) ~ M. Acc + ~ Pt Member Bonus: RDM"/>
</elseif>
<elseif spell = "corsair*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x5A\xFD (Lucky: 5 [+7%] / Unlucky: 9 [+1%]) ~ Exp +"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+7%] / Unlucky: 9 [+1%]) ~ Exp +"/>
</elseif>
<elseif spell = "evoker*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x58\xFD (Lucky: 5 [+3] / Unlucky: 9 [+1]) ~ Refresh ~ Pt Member Bonus: SMN [+1]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+3] / Unlucky: 9 [+1]) ~ Refresh ~ Pt Member Bonus: SMN [+1]"/>
</elseif>
<elseif spell = "rogue*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4F\xFD (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Crit. Hit + ~ Pt Member Bonus: THF [+6%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+12%] / Unlucky: 9 [+1%]) ~ Crit. Hit + ~ Pt Member Bonus: THF [+6%]"/>
</elseif>
<elseif spell = "fighter*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4A\xFD (Lucky: 5 [+6%] / Unlucky: 9 [+1%]) ~ Dbl. Atk + ~ Pt Member Bonus:WAR [+6%]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+6%] / Unlucky: 9 [+1%]) ~ Dbl. Atk + ~ Pt Member Bonus:WAR [+6%]"/>
</elseif>
<elseif spell = "wizard*">
<var cmd = " Set InfoP \xFD\x02\x02\x1F\x4D\xFD (Lucky: 5 [+5] / Unlucky: 9 [+1]) ~ M. Atk + ~ Pt Member Bonus: BLM [+3]"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+5] / Unlucky: 9 [+1]) ~ M. Atk + ~ Pt Member Bonus: BLM [+3]"/>
</elseif>
<if advanced = '"$PartyChat"="1"'>
<command when = "Precast">input /p $InfoP</command>
</if>
<else>
<addtochat color = "167">$InfoC</addtochat>
</else>
</If>
</include>
<include name = "AutoShootRules">
<if commandprefix = "/range">
<if advanced = '"$Pull"="1"'>
<var>set Ammo PAmmo</var>
<var>set Pull 0</var>
</if>
<if advance = '(bool)Buffactive("Barrage")'>
<equip when = "Precast" set = "Barrage"/>
</if>
<else>
<equip when = "Precast" set = "ranged"/>
</else>
<if EquipRange = "*Gun*|Coffinmaker|QuickSilver">
<acdelay delay = "5"/>
</if>
<else>
<acdelay delay = "4"/>
</else>
<if advanced = '("%mainjob" = "RNG" or "%Subjob" = "RNG") and "%mainjob" != "SAM"'>
<if advanced = '"$Sharpshot"="1"'>
<var cmd = "Set SharpShot 0"/>
<castdelay delay = "3"/>
<command when = "Precast">input /raw /ja "SharpShot" <me>;wait 300; sc v set SharpShot 1;</command>
</if>
</if>
<if advanced = ' "%IsInCombat" = "1" AND "$Autoshoot" = "1"'>
<action type = "command" when = "aftercast">wait $Rangewait;addtochat 204 Ranged in 3;wait 3;input /range <t></action>
</if>
</if>
</include>
<include name = "LvlSyncRules">
<if spell = "Thunder V">
<action Type = "Var" cmd = "set main %equipmain"/>
<action Type = "Var" cmd = "set sub %equipsub"/>
<action Type = "Var" cmd = "set srange %equiprange"/>
<action Type = "Var" cmd = "set sammo %equipammo"/>
<action Type = "Var" cmd = "set head %equiphead"/>
<action Type = "Var" cmd = "set body %equipbody"/>
<action Type = "Var" cmd = "set neck %equipneck"/>
<action Type = "Var" cmd = "set lear %equiplear"/>
<action Type = "Var" cmd = "set rear %equiprear"/>
<action Type = "Var" cmd = "set hands %equiphands"/>
<action Type = "Var" cmd = "set lring %equiplring"/>
<action Type = "Var" cmd = "set rring %equiprring"/>
<action Type = "Var" cmd = "set back %equipback"/>
<action Type = "Var" cmd = "set waist %equipwaist"/>
<action Type = "Var" cmd = "set legs %equiplegs"/>
<action Type = "Var" cmd = "set feet %equipfeet"/>
<action type = "Cancelspell"/>
<action type = "Return"/>
</if>
</include>
<include name = "WSChat">
<if Spell = "*Gekko">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x6F\xFD > \xFD\x02\x02\x1B\x03\xFD! > \xFD\x02\x02\x1E\xc0\xFD / \xFD\x02\x02\x1E\xc5\xFD</Command>
</if>
<elseif Spell = "*Yukikaze">
<command When = "Precast">input /p \xFD\x02\x02\x21\x3F\xFD > \xFD\x02\x02\x1B\x1C\xFD! > \xFD\x02\x02\x1E\xC4\xFD / \xFD\x02\x02\x1E\xC8\xFD</command>
</elseif>
<elseif spell = "*Jinpu">
<Command When = "Precast">input /p \xFD\x02\x02\x21\x3D\xFD > \xFD\x02\x02\x1E\xC8\xFD / \xFD\x02\x02\x1E\xC7\xFD</Command>
</elseif>
<elseif Spell = "*Kasha">
<Command When = "Precast">input /p \xFD\x02\x02\x21\x81\xFD > \xFD\x02\x02\x1B\x1A\xFD! > \xFD\x02\x02\x1E\xC1\xFD / \xFD\x02\x02\x1E\xC2\xFD</Command>
</elseif>
<elseif Spell = "*Koki">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x3E\xFD > \xFD\x02\x02\x1E\xC5\xFD / \xFD\x02\x02\x1E\xC9\xFD</Command>
</elseif>
<elseif Spell = "*Kagero">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x3C\xFD > \xFD\x02\x02\x1E\xC3\xFD</Command>
</elseif>
<elseif Spell = "*Goten">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x54\xFD > \xFD\x02\x02\x1E\xC6\xFD / \xFD\x02\x02\x1E\xC9\xFD</Command>
</elseif>
<elseif Spell = "*Hobaku">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x3A\xFD > \xFD\x02\x02\x1B\x5B\xFD! > \xFD\x02\x02\x1B\x5B\xFD! > \xFD\x02\x02\x1E\xC4\xFD</Command>
</elseif>
<elseif Spell = "*Enpi">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x43\xFD > \xFD\x02\x02\x1E\xC6\xFD / \xFD\x02\x02\x1E\xC7\xFD</Command>
</elseif>
<elseif Spell = "*Rana">
<Command when = "Precast">input /p Tachi: Rana > \xFD\x02\x02\x1E\xBE\xFD / \xFD\x02\x02\x1E\xC4\xFD</Command>
</elseif>
<elseif Spell = "Penta Thrust">
<Command when = "Precast">input /p \xFD\x02\x02\x21\x5A\xFD > \xFD\x02\x02\x1E\xC2\xFD</Command>
</elseif>
<elseif Spell = "Sidewinder">
<command when = "Precast">input /p \xFD\x02\x02\x21\x4A\xFD > \xFD\x02\x02\x1E\xC5\xFD / \xFD\x02\x02\x1E\xC6\xFD / \xFD\x02\x02\x1E\xC8\xFD</command>
</elseif>
<elseif Spell = "Flaming Arrow">
<command when = "Precast">input /p \xFD\x02\x02\x21\x47\xFD > \xFD\x02\x02\x1E\xC3\xFD / \xFD\x02\x02\x1E\xC6\xFD</command>
</elseif>
<elseif Spell = "Piercing Arrow">
<command when = "Precast">input /p \xFD\x02\x02\x21\x48\xFD > \xFD\x02\x02\x1E\xC4\xFD / \xFD\x02\x02\x1E\xC6\xFD</command>
</elseif>
<elseif Spell = "Dulling Arrow">
<command when = "Precast">input /p \xFD\x02\x02\x21\x49\xFD > \xFD\x02\x02\x1E\xC3\xFD / \xFD\x02\x02\x1E\xC6\xFD</command>
</elseif>
<elseif spell = "Slug Shot">
<command when = "midcast">input /p \xFD\x02\x02\x21\x01\xFD > \xFD\x02\x02\x1E\xC5\xFD / \xFD\x02\x02\x1E\xC6\xFD / \xFD\x02\x02\x1E\xC8\xFD</command>
</elseif>
<else>
<command when = "midcast">input /p %Spell >>> <t></command>
</else>
</include>
<include name = "QuickDraw">
<if Spell = "Fire Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x5C\xFD >>> %SpellTarget</command>
</if>
<elseif Spell = "Ice Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x5D\xFD (Enhances: \xFD\x02\x02\x1B\x1A\xFD ) >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Wind Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x5E\xFD >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Earth Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x5F\xF (Enhances: \xFD\x02\x02\x1B\x06\xFD ) >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Thunder Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x60\xFD >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Water Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x61\xFD >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Light Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x62\xFD (Enhances: \xFD\x02\x02\x1B\x18\xFD[-5% Def] + \xFD\x02\x02\x1B\x64\xFD ) >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Dark Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x63\xFD (Enhances: \xFD\x02\x02\x1B\x26\xFD[-5% Atk] + \xFD\x02\x02\x1B\x6F\xFD ) >>> %SpellTarget</command>
</elseif>
</include>
</includes>