ok you need latest version of Spellcast anything lower and it wont work.
SMNInclude.xml(non g15 version) (edit your staves and bp's as you want)
<includes>
<include name = "VarSMNStaves">
<!--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 = "DarkStaff">Teiwaz</var>
<var name = "EarthStaff">Terra's Staff</var>
<var name = "WaterStaff">Neptune's Staff</var>
<var name = "WindStaff">Vayu's Staff +1</var>
<var name = "FireStaff">Vulcan's Staff</var>
<var name = "IceStaff">Aquilo's Staff</var>
<var name = "ThunderStaff">Jupiter's Staff</var>
<var name = "RestingStaff">Pluto's Staff</var>
<var name = "IdleStaff">Terra's Staff</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 = "ChatRules">
<if advanced = "%PartyCount > 1">
<var cmd = "Set PartyChat 1"/>
</if>
<else>
<var cmd = "Set PartyChat 0"/>
</else>
</include>
<include name = "SetBP">
<if Spell = "Carbuncle">
<action type = "Command">alias 75Nuke input /pet "Holy Mist" <t>;</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 "Night Terror" <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 input /pet "Lunar Bay" <t>;</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 input /pet "Whispering Wind" <me>;</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 "Tidal Roar" <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 input /pet "Earthen Armor" <me>;</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 type = "BloodPactWard">
<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 = "midcast">input /p $Info</action>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</if>
<elseif 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>
<cmd when = "precast">input /echo $Info</cmd>
</else>
</elseif>
<elseif 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 = "midcast">input /p $Info</action>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</elseif>
</if>
<if type = "BloodPactRage">
<if advanced = '(bool)strmatch("%Spell","$MagicPact")'>
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Magic Attack) > Target : %Target "/>
</if>
<elseif Spell = "Claw|Crescent Fang">
<action type = "Var" cmd = " Set Info <Pet> (Tp : <pettp>) %Spell (Piercing Dmg) > Target : %Target"/>
</elseif>
<elseif Spell = "Barracuda Dive|Poison Nails|Eclipse Bite|Spinning Dive|Predator Claws">
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Slashing Dmg) > Target : %Target"/>
</elseif>
<else>
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Blunt Dmg) > Target : %Target"/>
</else>
<if advanced = '"$PartyChat" = "1"'>
<cmd When = "midcast">input /p $Info</cmd>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</if>
</include>
</includes>
SMNInclude.xml(g15 version) (edit your staves and bp's as you want)
<includes>
<include name = "VarSMNStaves">
<!--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 = "DarkStaff">Teiwaz</var>
<var name = "EarthStaff">Terra's Staff</var>
<var name = "WaterStaff">Neptune's Staff</var>
<var name = "WindStaff">Vayu's Staff +1</var>
<var name = "FireStaff">Vulcan's Staff</var>
<var name = "IceStaff">Aquilo's Staff</var>
<var name = "ThunderStaff">Jupiter's Staff</var>
<var name = "RestingStaff">Pluto's Staff</var>
<var name = "IdleStaff">Terra's Staff</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 = "ChatRules">
<if advanced = "%PartyCount > 1">
<var cmd = "Set PartyChat 1"/>
</if>
<else>
<var cmd = "Set PartyChat 0"/>
</else>
</include>
<include name = "SetBP">
<if Spell = "Carbuncle">
<action type = "Command">alias 75Nuke input /pet "Holy Mist" <t>;</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 "Night Terror" <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 input /pet "Lunar Bay" <t>;</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 input /pet "Whispering Wind" <me>;</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 "Tidal Roar" <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 input /pet "Earthen Armor" <me>;</action>
<action type = "Command">alias debPact /;</action>
<action type = "Command">alias a70Pact input /pet "Mountain Buster" <t>;</action>
</elseif>
<action type = "Command">alias m1g1 a70Pact</action>
<action type = "Command">alias m1g2 75Nuke</action>
<action type = "Command">alias m1g3 debPact</action>
<action type = "Command">alias m1g4 bufPact</action>
<action type = "Command">alias m1g5 abfPact</action>
<action type = "Command">alias m1g6 atkPact</action>
<action type = "Command">alias m1g7 65Nuke</action>
</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>
<action type = "Command">alias m1g1 Diabolos;</action>
<action type = "Command">alias m1g2 Carbuncle</action>
<action type = "Command">alias m1g3 Ifrit</action>
<action type = "Command">alias m1g4 Titan</action>
<action type = "Command">alias m1g5 Garuda</action>
<action type = "Command">alias m1g6 Ramuh</action>
<action type = "Command">alias m1g7 Shiva</action>
<action type = "Command">alias m1g8 Leviathan</action>
<action type = "Command">alias m1g9 Fenrir</action>
<action type = "Command">alias m1g10 Alexander</action>
<action type = "Command">alias m1g11 Odin</action>
<action type = "Command">alias m1g12 Spirit</action>
</include>
<include name = "BPChat">
<if type = "BloodPactWard">
<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 = "midcast">input /p $Info</action>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</if>
<elseif 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>
<cmd when = "precast">input /echo $Info</cmd>
</else>
</elseif>
<elseif 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 = "midcast">input /p $Info</action>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</elseif>
</if>
<if type = "BloodPactRage">
<if advanced = '(bool)strmatch("%Spell","$MagicPact")'>
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Magic Attack) > Target : %Target "/>
</if>
<elseif Spell = "Claw|Crescent Fang">
<action type = "Var" cmd = " Set Info <Pet> (Tp : <pettp>) %Spell (Piercing Dmg) > Target : %Target"/>
</elseif>
<elseif Spell = "Barracuda Dive|Poison Nails|Eclipse Bite|Spinning Dive|Predator Claws">
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Slashing Dmg) > Target : %Target"/>
</elseif>
<else>
<action type = "Var" cmd = " Set Info <pet> (Tp : <pettp>) %Spell (Blunt Dmg) > Target : %Target"/>
</else>
<if advanced = '"$PartyChat" = "1"'>
<cmd When = "midcast">input /p $Info</cmd>
</if>
<else>
<cmd when = "midcast">input /echo $Info</cmd>
</else>
</if>
</include>
sublimation.xml
<?xml version="1.0" encoding="utf-8"?>
<includes>
<include name = "sublimation">
<!--Sublimation counter, firstrun only -->
<if advanced = '"$Sublimation-firstrun"!="false"'>
<if mainjob = "SCH">
<!--These need to be set appropriately -->
<var cmd = "set sublimation-Use-Head true"/>
<var cmd = "set Sublimation-Use-Body true"/>
<!--Set these if either of the above are true, NOTE: special ' used in item names-->
<var cmd = "set Sublimation-Up-idle-Head Scholar's M.board"/>
<var cmd = "set Sublimation-Up-idle-Body Argute Gown"/>
<!--<var cmd = "set Sublimation-Up-idle-Body Scholar's Gown"/>-->
<var cmd = "set Sublimation-Up-resting-Head Scholar's M.board"/>
<!--<var cmd = "set Sublimation-Up-resting-Body Scholar's Gown"/>-->
<var cmd = "set Sublimation-Up-resting-Body Argute Gown"/>
<var cmd = "set Sublimation-Down-idle-Head Remove"/>
<var cmd = "set Sublimation-Down-idle-Body Ixion Cloak"/>
<var cmd = "set Sublimation-Down-resting-Head Scholar's M.board"/>
<var cmd = "set Sublimation-Down-resting-Body Errant Hpl."/>
<!--Do not change -->
<var cmd = "set Sublimation-Firstrun false"/>
<var cmd = "set Sublimation-Timer 0"/>
<var cmd = "set Sublimation-Penalty 0"/>
<var cmd = "set Sublimation-Counter 0"/>
<var cmd = "set Sublimation-Complete-Timer 0"/>
<var cmd = "set Sublimation-Complete-Penalty 0"/>
<var cmd = "set Sublimation-Text Sublimation-Initialized"/>
<if notadvanced = '"$Sublimation-Use-Head"=="true" OR "$Sublimation-Use-Body"=="true"'>
<var cmd = "set Sublimation-Step 2.0"/>
</if>
<elseif advanced = '"$Sublimation-Use-Head"=="true" AND "$Sublimation-Use-Body"=="true"'>
<var cmd = "set Sublimation-Step 4.0"/>
</elseif>
<else>
<var cmd = "set Sublimation-Step 3.0"/>
</else>
<cmd when = "%status|precast">text create Sublimation;text set Sublimation fg 255 255 255 255 bg 0 0 0 192 show</cmd>
<!--disable me if I conflict -->
<!--removes custom triggers, sets autoexec back to default -->
<cmd when = "%status|precast">ae registerq 23000 jobchange_* ae load autoexec.xml \; text delete Sublimation</cmd>
<!---->
<cmd when = "%status|precast">ae registerq 23001 gainbuff_Sublimation:_Activated sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Charging</cmd>
<cmd when = "%status|precast">ae registerq 23002 losebuff_Sublimation:_Activated sc var Setmath Sublimation-Complete-Timer \$Sublimation-Timer \; sc var Setmath Sublimation-Complete-Penalty \$Sublimation-Penalty \; sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Dispelled</cmd>
<cmd when = "%status|precast">ae registerq 23003 gainbuff_Sublimation:_Complete wait .5 \; sc var Setmath Sublimation-Timer \$Sublimation-Complete-Timer \; sc var Setmath Sublimation-Penalty \$Sublimation-Complete-Penalty \; sc var set Sublimation-Text Sublimation-Ready</cmd>
<cmd when = "%status|precast">ae registerq 23004 losebuff_Sublimation:_Complete sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Empty</cmd>
<cmd when = "%status|precast">ae registerq 23005 gainbuff_Sublimation:_Activated ae registerq 22999 time_* sc var inc Sublimation-Timer \; ae registerq 22996 status_zoning ae unregister 22999 \; ae registerq 22995 (regex)status_(?!zoning).*(/regex) ae registerq 22999 time_* sc var inc Sublimation-Timer</cmd>
<cmd when = "%status|precast">ae registerq 23006 losebuff_Sublimation:_Activated ae unregister 22999 \; ae unregister 22996 \; ae unregister 22995</cmd>
<if advanced = '"$Sublimation-Use-Head"=="true" OR "$Sublimation-Use-Body"=="true"'>
<cmd when = "%status|precast">ae registerq 23007 gainbuff_Sublimation:_Activated input /equip body "$Sublimation-Up-%status-body" \; input /equip head "$Sublimation-Up-%status-head"</cmd>
<cmd when = "%status|precast">ae registerq 23008 losebuff_Sublimation:_Activated ae trigger Sublimation_Penalty_End \; input /equip body "$Sublimation-down-%status-body" \; input /equip head "$Sublimation-Down-%status-head"</cmd>
</if>
<if advanced = '"$Sublimation-Use-Head"=="true"'>
<cmd when = "%status|precast">ae registerq 23009 Sublimation_Penalty_Begin ae registerq 22998 time_* sc var inc Sublimation-Penalty</cmd>
<cmd when = "%status|precast">ae registerq 23010 Sublimation_Penalty_End ae unregister 22998</cmd>
</if>
<if advanced = '"$Sublimation-Use-Body"=="true"'>
<cmd when = "%status|precast">ae registerq 23011 Sublimation_Penalty_Begin ae registerq 22997 time_* sc var inc Sublimation-Penalty</cmd>
<cmd when = "%status|precast">ae registerq 23012 Sublimation_Penalty_End ae unregister 22997</cmd>
</if>
<cmd when = "%status|precast">ae registerq 23013 time_* sc var Setmath Sublimation-Counter (int)(\$Sublimation-Timer * 2.4 / 3.0) * \$Sublimation-Step - (int)(\$Sublimation-Penalty * 2.4 / 3.0)</cmd>
<cmd when = "%status|precast">ae registerq 23014 time_* input //text set Sublimation text "\$Sublimation-Text: ~ \$sublimation-counter MP"</cmd>
<cmd when = "%status|precast">ae registerq 23015 time_* sc var Setmath Sublimation-Warning (int)(((float)\%MP+(float)\$Sublimation-Counter)/(1.0/(float)\%MPP*(float)\%MP)) \; ae trigger Sublimation_Warning_$Sublimation-Warning</cmd>
<cmd when = "%status|precast">ae registerq 23016 Sublimation_Warning_??? text set sublimation fg 255 255 0</cmd>
<cmd when = "%status|precast">ae registerq 23017 Sublimation_Warning_??|Sublimatin_Warning_? text set sublimation fg 255 255 255</cmd>
</if>
<elseif Subjob = "SCH">
<!--These need to be set appropriately -->
<var cmd = "set sublimation-Use-Head false"/>
<var cmd = "set Sublimation-Use-Body false"/>
<!--Set these if either of the above are true, NOTE: special ' used in item names-->
<!--Do not change -->
<var cmd = "set Sublimation-Firstrun false"/>
<var cmd = "set Sublimation-Timer 0"/>
<var cmd = "set Sublimation-Penalty 0"/>
<var cmd = "set Sublimation-Counter 0"/>
<var cmd = "set Sublimation-Complete-Timer 0"/>
<var cmd = "set Sublimation-Complete-Penalty 0"/>
<var cmd = "set Sublimation-Text Sublimation-Initialized"/>
<var cmd = "set Sublimation-Step 2.0"/>
<cmd when = "%status|precast">text create Sublimation;text set Sublimation fg 255 255 255 255 bg 0 0 0 192 show</cmd>
<!--disable me if I conflict -->
<!--removes custom triggers, sets autoexec back to default -->
<cmd when = "%status|precast">ae registerq 23000 jobchange_* ae load autoexec.xml \; text delete Sublimation</cmd>
<!---->
<cmd when = "%status|precast">ae registerq 23001 gainbuff_Sublimation:_Activated sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Charging</cmd>
<cmd when = "%status|precast">ae registerq 23002 losebuff_Sublimation:_Activated sc var Setmath Sublimation-Complete-Timer \$Sublimation-Timer \; sc var Setmath Sublimation-Complete-Penalty \$Sublimation-Penalty \; sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Dispelled</cmd>
<cmd when = "%status|precast">ae registerq 23003 gainbuff_Sublimation:_Complete wait .5 \; sc var Setmath Sublimation-Timer \$Sublimation-Complete-Timer \; sc var Setmath Sublimation-Penalty \$Sublimation-Complete-Penalty \; sc var set Sublimation-Text Sublimation-Ready</cmd>
<cmd when = "%status|precast">ae registerq 23004 losebuff_Sublimation:_Complete sc var set Sublimation-Timer 0 \; sc var set Sublimation-Penalty 0 \; sc var set Sublimation-Text Sublimation-Empty</cmd>
<cmd when = "%status|precast">ae registerq 23005 gainbuff_Sublimation:_Activated ae registerq 22999 time_* sc var inc Sublimation-Timer \; ae registerq 22996 status_zoning ae unregister 22999 \; ae registerq 22995 (regex)status_(?!zoning).*(/regex) ae registerq 22999 time_* sc var inc Sublimation-Timer</cmd>
<cmd when = "%status|precast">ae registerq 23006 losebuff_Sublimation:_Activated ae unregister 22999 \; ae unregister 22996 \; ae unregister 22995</cmd>
<cmd when = "%status|precast">ae registerq 23013 time_* sc var Setmath Sublimation-Counter (int)(\$Sublimation-Timer * 2.4 / 3.0) * \$Sublimation-Step - (int)(\$Sublimation-Penalty * 2.4 / 3.0)</cmd>
<cmd when = "%status|precast">ae registerq 23014 time_* input //text set Sublimation text "\$Sublimation-Text: ~ \$sublimation-counter MP"</cmd>
<cmd when = "%status|precast">ae registerq 23015 time_* sc var Setmath Sublimation-Warning (int)(((float)\%MP+(float)\$Sublimation-Counter)/(1.0/(float)\%MPP*(float)\%MP)) \; ae trigger Sublimation_Warning_$Sublimation-Warning</cmd>
<cmd when = "%status|precast">ae registerq 23016 Sublimation_Warning_??? text set sublimation fg 255 255 0</cmd>
<cmd when = "%status|precast">ae registerq 23017 Sublimation_Warning_??|Sublimatin_Warning_? text set sublimation fg 255 255 255</cmd>
</elseif>
</if>
<if spell = "Sublimation">
<if notbuffactive = "Weakened|Sublimation*" hpplt = "50">
<addtochat>!!!--- HPP: %HPP is to low to continue ---!!!</addtochat>
<cancelspell/>
<return/>
</if>
<if advanced = '"$Sublimation-Useable"!="false"'>
<cmd>ae regonceq 22994 (regex)(gain|lose)buff_Sublimation:_.*(/regex) sc var set Sublimation-Useable false</cmd>
<cmd>ae regonceq 22993 (regex)(gain|lose)buff_Sublimation:_.*(/regex) wait 28 \; sc var set Sublimation-Useable true</cmd>
<if buffactive = "Sublimation: Activated">
<cmd>ae regonceq losebuff_Sublimation:_Activated wait .2 \; ae trigger losebuff_Sublimation:_Complete</cmd>
</if>
</if>
</if>
<!--Sublimation reminder when full -->
<if buffactive = "Sublimation: Complete" notspell = "Autoset|Stonega IV">
<var cmd = "inc Sublimation-holding"/>
<if advanced = '"$Sublimation-holding"=="5"'>
<var cmd = "set Sublimation-holding 0"/>
<cmd>input /echo Sublimation ready: $sublimation-Counter MP</cmd>
</if>
</if>
</include>
</includes>
main xml for your smn.
<spellcast xmlns:xi = "http://www.w3.org/2001/xinclude">
<config Debug = "True" ShowGearSwaps = "false"/>
<sets>
<group default = "yes" name = "SMN" subjob = "*">
<!--Light Based Gear-->
<set name = "Carbuncle" BaseSet = "Avatar">
<hands>Carbuncle Mitts</hands>
<feet>Herald's Gaiters</feet>
</set>
<set name = "Diabolos" BaseSet = "Avatar">
<waist>Diabolos's Rope</waist>
</set>
<set name = "Day" BaseSet = "Avatar">
<Body>Summoner's Dblt.</Body>
</set>
<set name = "Weather" BaseSet = "Avatar">
<head>Summoner's Horn</head>
<neck>Caller's Pendant</neck>
</set>
<set name = "Full" BaseSet = "Avatar">
<head>Summoner's Horn</head>
<body>Summoner's Dblt.</body>
</set>
<!--BloodPact Based Gear-->
<!--Gear to reduce Bloodpact delay-->
<set name = "BPTime">
<head>Summoner's Horn</head>
<neck>Sacrifice Torque</neck>
<body>Yinyang Robe</body>
<hands>Summoner's Brcr.</hands>
<legs>Caller's Spats +1</legs>
<waist>Diabolos's Rope</waist>
<back>Tiresias' Cape</back>
<feet>Summoner's Pgch.</feet>
</set>
<!--Gear to increase Smn Skill 317 needed for max buff -->
<set name = "Favor" baseset = "$Avatar"><!--269 +16 +10(evoker's ring) (+22 needed) -->
<head>Caller's Horn +1</head>
<hands>Summoner's Brcr.</hands><!--+10 -->
</set>
<Set name = "Skill30"><!--269 +16 +20-->
<hands>Summoner's Brcr.</hands><!--+10 -->
<!--<waist>Brocade Obi</waist>-->
</Set>
<set name = "Skill60"><!--269 + 16 + 40 (57 atm) -->
<head>Caller's Horn +1</head><!--+6 -->
<neck>Caller's Pendant</neck><!--+9 -->
<hands>Summoner's Brcr.</hands><!--+10 -->
<!--Evoker's ring +10 -->
<lear>Smn. Earring</lear><!--+3 -->
<feet>Austere Sabots</feet><!--+3 -->
<waist>Summoning Belt</waist><!--+2 -->
</set>
<set name = "MBP" baseset = "Skill60">
<neck>Eidolon Pendant</neck>
<waist>Diabolos's Rope</waist>
<back>Tiresias' Cape</back>
<legs>Caller's Spats +1</legs>
<feet>Caller's Pgch. +1</feet>
</set>
<set name = "PBP" baseset = "Skill60">
<legs>Evoker's Spats</legs>
<waist>Diabolos's Rope</waist>
<feet>Summoner's Pgch.</feet>
</set>
<Set name = "BuffBP" baseset = "Skill60">
<feet>Caller's Pgch. +1</feet>
<legs>Caller's Spats +1</legs>
<waist>Diabolos's Rope</waist>
</Set>
<!--Misc. Gear-->
<!--Base gear that all sets are built from anything that will be used for all sets put in here-->
<set name = "Basic">
<main>$Staff</main>
<sub>Staff Strap</sub>
<ammo>Hedgehog Bomb</ammo>
<head>Caller's Horn +1</head>
<neck>Caller's Pendant</neck>
<rear>Loquac. Earring</rear>
<lear>Magnetic Earring</lear>
<body>Yinyang Robe</body>
<hands>Summoner's Brcr.</hands>
<lring>Evoker's Ring</lring>
<rring>$Ring</rring>
<back>Intensifying Cape</back>
<waist>Hierarch Belt</waist>
<legs>Caller's Spats +1</legs>
<feet>Herald's Gaiters</feet>
</set>
<!--Gear that has HMP+ stats and MP+ -->
<set name = "Resting" BaseSet = "Basic">
<main>$%StatusStaff</main>
<neck>Eidolon Pendant</neck>
<rear>Antivenom Earring</rear>
<body>Errant Hpl.</body>
<hands>Marine M Gloves</hands>
<waist>Austerity Belt</waist>
<feet>Goliard Clogs</feet>
</set>
<!--MP+, Fastcast and Dmg-% gear for when no Avatar/Spirit is Preseant-->
<set name = "idle" BaseSet = "Basic">
<!--<main>$%StatusStaff</main>-->
<feet>Herald's Gaiters</feet>
</set>
<!--Avatar Perp - gear that isnt used for other sets -->
<set name = "Avatar" Baseset = "Basic">
<main>$Staff</main>
<legs>Evoker's Spats</legs>
<waist>$petBelt</waist>
<feet>Caller's Pgch. +1</feet>
</set>
<!--Gear for Curing/Removing debuffs for party members (Cure Potency and MND+ gear)-->
<set name = "Healing" Baseset = "Basic">
<neck>Healing Torque</neck>
<body>Errant Hpl.</body>
<legs>Jet Seraweels</legs>
<hands>Marine M Gloves</hands>
<feet>Rostrum Pumps</feet>
</set>
<!--Sneak and Inivable gear for maximising buff time-->
<set name = "SneakInvis">
<back>Skulker's Cape</back>
<feet>Dream Boots +1</feet>
</set>
<set name = "Fastcast" baseset = "Avatar">
<rear>Loquac. Earring</rear>
<legs>Caller's Spats +1</legs>
<feet>Rostrum Pumps</feet>
</set>
<set name = "EleSiphon" baseset = "Skill60">
<feet>Caller's Pgch. +1</feet>
</set>
</group>
<group name = "Melee">
<!--Melee Gear -->
<set name = "Engaged" BaseSet = "$Avatar" load = "false">
<sub>Staff Strap</sub>
<rear>Brutal Earring</rear>
<rring>Sniper's Ring</rring>
<neck>Peacock Charm</neck>
<head>Optical Hat</head>
<waist>Potent Belt</waist>
</set>
<!--WS Gear -->
<set name = "WS" BaseSet = "Melee" load = "false">
<head>Optical Hat</head>
<neck>Peacock Charm</neck>
<rear>Brutal Earring</rear>
<body>Errant Hpl.</body>
<lring>Sniper's Ring</lring>
<rring>Sniper's Ring</rring>
<back>Rainbow Cape</back>
<waist>Potent Belt</waist>
<legs>Summoner's Spats</legs>
<feet>Rostrum Pumps</feet>
</set>
</group>
</sets>
<variables clear = "yes">
<!--Set this to True before casting a spirit will check for best Spirit to Elemental Siphon-->
<var name = "ES">1</var>
<!--This is the current avatar gear set and what gear you will revert back to after magic's or BP's that change gear -->
<var name = "Avatar">idle</var>
<var name = "Ring">Serket Ring</var>
<!--Set this to the percentage of TP you want to start locking weapons at-->
<var Name = "LockTP">25</var>
<var name = "Timer">1</var>
<var name = "Staff">$EarthStaff</var>
<var name = "BPs">None</var>
<var name = "Element">None</var>
<var name = "AstralFlow">0</var>
<var name = "MagicPact">* II|* IV|Nether BlastThunderspark|Meteor Strike|Heavenly Strike|Wind Blade|Geocrush|Thunderstorm|Grand Fall|Searing Light|Inferno|Earthan Fury|Howling Moon|Tidal Wave|Aerial Blast|Diamond Dust|Judgment Bolt|Ruinous Omen|Lunar Bay|Holy Mist|Lunar Bay|*Terror|Meteorite|Slowga|Sleepga|Tidal Roar</var>
<var name = "BuffPact">*Armor|Sleepga|*Ruby*|Hastega|*Wind|Rolling*|*Shroud|*Howl|*GrowlSpring*|*Ward|Noctoshield</var>
<var name = "petBelt">Hierarch Belt</var>
<!--Staves-->
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='VarSMNStaves']/*"/>
<!--Variables for Elemental Spirit Names used for changespells for Elemental Siphon-->
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='VarSpirits']/*"/>
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='VarInfo']/*"/>
</variables>
<rules>
<xi:include href = "include.xml" xpointer = "/includes/include[@name='DeadRules']/*"/>
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='ChatRules']/*"/>
<xi:include href = "sublimation.xml" xpointer = "/includes/include[@name='sublimation']/*"/>
<if spell = "Refresh" status = "Resting">
<cancelspell/>
<return/>
</if>
<!--Disables equipment switching that would cause loss of TP. Lock does not work because of changes with $ElementalStaff-->
<if TPGT = "$LockTP">
<Disable Slot = "Main|Sub|Range"/>
</if>
<else>
<Enable Slot = "Main|Sub|Range"/>
</else>
<if SpellTargetType = "NONE" ValidTarget = "*SELF*">
<ChangeTarget Target = "<me>"/>
</if>
<if Spell = "Refresh|Stoneskin|Phalanx" SpellTargetType = "MONSTER">
<ChangeTarget Target = "<me>"/>
</if>
<if spell = "Refresh" SpellTargetName = "%PlayerName">
<command when = "aftercast">autoexec regonceq 60499 losebuff_refresh input /ma refresh <me></command>
</if>
<if spell = "Convert">
<command when = "Precast">input /p Converting ~ Don't Panic!!!!</command>
</if>
<if advanced = ' %hpp <= 75 and %tp < 100 and "$Ring" !="Conjurer's Ring"'>
<Var cmd = 'set Ring "Conjurer's Ring"'/>
<AddToChat Color = "204">HP < 75% Equiping Conjurer's Ring</AddToChat>
</if>
<elseif advanced = ' (%hpp > 74 or %tp >= 100) and "$Ring" !="Serket Ring"'>
<Var cmd = 'set Ring "Serket Ring"'/>
<AddToChat Color = "204">HP > 75% Equiping Serket Ring</AddToChat>
</elseif>
<!--Change set if day/weather/area changes-->
<if notspell = "Assault|Elemental Siphon|Release">
<if advanced = ' (bool)strmatch("$Avatar","idle|Alexander|Odin|Carbuncle")'/>
<else>
<if mode = "OR" advanced = '("$Element" ="%WeatherElement" and "$Element" ="%DayElement") or ((bool)isArea("Dynamis*|*Apollyon*") and "$Element"="Dark" and "$Element" ="%DayElement")'>
<if advanced = '"$Avatar" !="Full"'>
<Var cmd = "set Avatar Full"/>
<AddToChat Color = "204">Day and Weather Active ~ Changing to Full Perp -</AddToChat>
</if>
</if>
<!--Checks to see if DayElement is same as Avatar/Spirits and equips Afv2 body-->
<elseif advanced = '"$Element" ="%DayElement"'>
<!--Sets gear to the elemant and afv2 body-->
<if advanced = '"$Avatar" !="Day"'>
<Var cmd = "set Avatar Day"/>
<AddToChat Color = "204">Day Active ~ Changing to Day Perp -</AddToChat>
</if>
</elseif>
<!--Checks to see if WeatherElement is same as Avatar/Spirits and equips Afv2 Head-->
<elseif advanced = '("$Element" ="%WeatherElement") or ("$Element"="Dark" and (bool)isArea("Dynamis*|*Apollyon*"))'>
<if advanced = '"$Avatar" !="Weather"'>
<Var cmd = "set Avatar Weather"/>
<AddToChat Color = "204">Weather Active ~ Changing to Weather Perp -</AddToChat>
</if>
</elseif>
<else>
<if advanced = '"$Avatar" !="Avatar"'>
<Var cmd = "set Avatar Avatar"/>
<AddToChat Color = "204">No Day or Weather Active ~ Changing to Standard</AddToChat>
</if>
</else>
</else>
</if>
<!--Avatar/Spirit Related Rules-->
<if type = "SummonerPact">
<equip when = "precast" set = "Fastcast"/>
<if advanced = '"$Avatar"!="idle"' Notspell = "Alexander|Odin">
<castdelay delay = "2.5"/>
<command When = "Precast">input /raw /pet release <me></command>
</if>
<if spell = "Alexander|Odin" NotBuffactive = "AstralFlow" advanced = '"$AstralFlow"!="1"'>
<var cmd = "Set Astralflow 1"/>
<AddToChat Color = "167">Astral Flow active for next Alexander/Odin !!!!</AddToChat>
<cancelspell/>
<return/>
</if>
<elseif spell = "Alexander|Odin" NotBuffactive = "AstralFlow" advanced = '"$AstralFlow"="1"'>
<castdely delay = "3"/>
<cmd when = "precast">input /ja "Astral Flow" <me></cmd>
</elseif>
<var cmd = "Set Staff $%SpellElementStaff"/>
<AddToChat Color = "167">[Area : %Area Day : %Day Weather : %Weather (%WeatherElement ) Avatar : %Spell]</AddToChat>
<!--checks if your using an Elemental Siphon macro-->
<if Spell = "Dark Spirit" advanced = '(bool)"$ES"=(bool)"1"'>
<if advanced = ' (bool)strmatch("%Weather","* x2")'>
<var cmd = "Set Staff $%WeatherElementStaff"/>
<ChangeSpell Spell = "$Spirit%WeatherElement Spirit"/>
<AddToChat Color = "6">Changing Spirit to $Spirit%WeatherElement Spirit</AddToChat>
<var cmd = "set Element %WeatherElement"/>
</if>
<else>
<var cmd = "Set Staff $%DayElementStaff"/>
<AddToChat Color = "6">Changing Spirit to $Spirit%DayElement Spirit</AddToChat>
<ChangeSpell Spell = "$Spirit%DayElement Spirit"/>
<var cmd = "set Element %DayElement"/>
</else>
<Var cmd = "set Avatar Skill60"/>
<Command when = "aftercast">wait 2; input /ja "Elemental Siphon" <me></Command>
</if>
<!--Carbuncle does not need afv2 so has it's own gear set -->
<if Spell = "Carbuncle">
<Var cmd = "set Avatar Carbuncle"/>
</if>
<elseif Spell = "Alexander|Odin">
<Var cmd = "set Avatar Skill60"/>
<var cmd = "Set Astralflow 0"/>
</elseif>
<!--Checks for both Day and Weather to see if it is the same as Avatar/spirit and Equips both Afv2 Body and Head-->
<elseif mode = "OR" advanced = '("%SpellElement" ="%WeatherElement" and "%SpellElement" ="%DayElement") or ((bool)isArea("Dynamis*|*Apollyon*") and "%SpellElement"="Dark" and "%SpellElement" ="%DayElement")'>
<Var cmd = "set Avatar Full"/>
</elseif>
<!--Checks to see if DayElement is same as Avatar/Spirits and equips Afv2 body-->
<elseif advanced = '"%SpellElement" ="%DayElement"'>
<!--Sets gear to the elemant and afv2 body-->
<Var cmd = "set Avatar Day"/>
</elseif>
<!--Checks to see if WeatherElement is same as Avatar/Spirits and equips Afv2 Head-->
<elseif advanced = '("%SpellElement" ="%WeatherElement") or ("%SpellElement"="Dark" and (bool)isArea("Dynamis*|*Apollyon*"))'>
<Var cmd = "set Avatar Weather"/>
</elseif>
<else>
<Var cmd = "set Avatar Avatar"/>
</else>
<if Spell = "Diabolos">
<Var cmd = "set petBelt Diabolos's rope"/>
</if>
<else>
<Var cmd = "set petBelt Hierarch Belt"/>
</else>
<if notspell = "* Spirit">
<var cmd = "Set Element %SpellElement"/>
</if>
<!--<aftercastdelay Delay = "3"/>-->
<if notspell = "*Spirit" advanced = '"%Spell"!="$BPs"'>
<!--Create Alias for BloodPacts-->
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='SetBP']/*"/>
<Var cmd = "set BPs %Spell"/>
</if>
</if>
<!--Job Abillity related Rules -->
<!--Equips Smn Skill gear to maximise mp gained -->
<if spell = "Elemental Siphon">
<Var cmd = "set Timer 0"/>
<equip when = "Precast" set = "EleSiphon"/>
<command when = "midcast">wait 300;sc var set timer 1;wait 1;input /echo ~ Elemental Siphon is Ready!! ~ HP:%HP/%HPMAX (%HPP%) ~ MP:%MP / %MPMAX (%MPP%) ~</command>
<command When = "Aftercast">wait 1; input /pet release <me></command>
</if>
<!--Checks if your doing a BloodPact and swaps gear for each calculation (Time - >
SMN Skill+/Dmg + > Back to Original Gear before BP) -->
<if Type = "BloodPact*">
<equip when = "precast" set = "BPTime"/>
<if Type = "BloodPactRage">
<if notSpellTargetType = "MONSTER">
<cmd when = "precast">input /assist <pet></cmd>
<castdelay delay = "2"/>
</if>
</if>
<else>
<if ValidTarget = "Enemy">
<if notSpellTargetType = "MONSTER">
<cmd when = "precast">input /assist <pet></cmd>
<castdelay delay = "2"/>
</if>
</if>
<elseif ValidTarget = "*Self*">
<if notSpellTargetType = "SELF|PLAYER">
<cmd when = "precast">input /target <me></cmd>
<castdelay delay = "2"/>
</if>
</elseif>
</else>
<midcastdelay delay = "1"/>
<if advanced = '(bool)strmatch("%Spell","$BuffPact")'>
<equip when = "midcast" set = "BuffBP"/>
</if>
<elseif advanced = '(bool)strmatch("%Spell","$MagicPact")'>
<equip when = "midcast" set = "MBP"/>
</elseif>
<else>
<equip when = "midcast" set = "PBP"/>
</else>
<aftercastdelay delay = "5"/>
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='BPChat']/*"/>
</if>
<!--Changes gear to Refresh,Fastcast and dmg -% gear when Avatar/Spirit is released-->
<if Spell = "Release">
<var cmd = "Set Staff $EarthStaff"/>
<Var cmd = "set Avatar idle"/>
<xi:include href = "SMNinclude.xml" xpointer = "/includes/include[@name='ClearBP']/*"/>
<Var cmd = "set BPs None"/>
<Var cmd = "set Element None"/>
</if>
<elseif spell = "Assault|Retreat">
<cmd>input /echo %spell: <pet> <pethpp> (TP : <pettp>)</cmd>
</elseif>
<!--Magic Related Rules-->
<!--If Sneak is being cast equips gear to maximise buff time and then removes sneak if buff already present if SneakMe variable is set to true-->
<xi:include href = "include.xml" xpointer = "/includes/include[@name='CancelRules']/*"/>
<!--When casting Cures/Buffs/and Debuff removing equips Cure Potency and MND+ gear-->
<if Spell = "Cur*|Protect*|Shell*|Regen|Raise|Erase|Poisona|Parlyna|Blindna|Silena|Viruna" NotSpell = "Protectra*|Shellra*|Cursna">
<equip when = "precast" set = "Healing"/>
</if>
<!--Reminder ES is ready (cos i always forget)-->
<if advanced = '(bool)strmatch("$Timer","1") and (int)%MPP < (int)75'>
<addtochat when = "Aftercast" color = "167">~ Elemental Siphon is Ready!! ~ HP:%HP/%HPMAX (%HPP%) ~ MP:%MP / %MPMAX (%MPP%) ~ Day = %Day (%DayElement) Weather = %Weather (%WeatherElement) ~</addtochat>
</if>
<if buffactive = "Avatar's favor" advanced = ' "$Avatar"!= "idle"'>
<equip when = "aftercast" Set = "Favor"/>
</if>
<else>
<equip when = "aftercast|idle" Set = "$Avatar"/>
</else>
<equip when = "resting|engaged" Set = "%Status"/>
</rules>
</spellcast>