This is my include xml while some of the rules are one job specific i have added them in for now while i tidy up my xmls.
i will post a useful code snippet section once i have it all sorted.
<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 = "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 = "WateStaffr">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">1</var>
<var name = "SharpShot">1</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"
BuffActive = "Sneak"
advanced = '"%SpellTargetName"="%PlayerName"'>
<action type = "command" when = "midcast">cancel 71</action>
<action type = "midcastdelay" delay = "2.3"/>
<equip when = "precast" set = "SneakInvis"/>
</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 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 [+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 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 [+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 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 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 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 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 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 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 [+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 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 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 [+20%] / Unlucky: 9 [+8%]) ~ Exp +"/>
<var cmd = " Set InfoC %Spell (Lucky: 5 [+20%] / Unlucky: 9 [+8%]) ~ 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 [+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 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 [+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 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 [+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 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 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 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 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 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 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 [+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 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 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 [+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 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 = "AutoShootRules">
<if commandprefix = "/range">
<equip when = "Precast" set = "ranged"/>
<acdelay delay = "4"/>
<if
mainjob = "RNG"
Subjob = "RNG"
notmainjob = "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 = ' "%status" = "engaged" AND "$Autoshoot" = "1"'>
<action type = "command" when = "aftercast">wait 9;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>
</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 ( \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 ( \xFD\x02\x02\x1B\x06\xFD ) >>> %SpellTargetD</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 ( \xFD\x02\x02\x1B\x18\xFD + \xFD\x02\x02\x1B\x64\xFD ) >>> %SpellTarget</command>
</elseif>
<elseif Spell = "Dark Shot">
<command when = "midcast">input /p \xFD\x02\x02\x1F\x63\xFD (\xFD\x02\x02\x1B\x26\xFD + \xFD\x02\x02\x1B\x6F\xFD ) >>> %SpellTarget</command>
</elseif>
</include>
</includes>