Basically, i cant get twilight cloak to stay on, when attempting to cast /ma "Impact" <t>
The macro im using is :
/equip body "Twilight cloak" <wait x>
/ma "Impact" <t>
Obviously equips cloak, but precast spell changes me back out. Heres my xml - thanks in advance!!
<?xml version="1.0" ?>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<guildwork
character="Badda"
server="fenrir"
description="Badda's BLM Spellcast"
job="BLM"
/>
<config
RequireVersion="2.30"
Showgearswaps="false"
Showspellinfo="false"
Debug="false"
/>
<variables clear="true">
<!-- Print Stun -->
<var name="PrintChat">1</var>
<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
<var name="SleepTimers">1</var>
<!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
<var name="BLMAF2Pants">1</var>
<!-- Twilight Cape do you have or use it? -->
<var name="TwilightCape">1</var>
<!-- Twilight Cloak do you have or use it? -->
<var name="TwilightCloak">1</var>
<!-- Zodiac ring -->
<var name="ZodiacRing">0</var>
<!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
<var name="SorcRing">1</var>
<!-- use Sorc Earring or not? set to 0 if you do not have it or location -->
<var name="Earring">0</var>
<!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
<var name="UggPendant">1</var>
<!-- Set HP Variables for what the maximum amount of HP you can have to rdm761 trigger sorc ring is for each subjob -->
<var name="RDMRingHP">1550</var>
<var name="WHMRingHP">692</var>
<var name="NINRingHP">761</var>
<!-- Trials - Are you actively doing a trial? -->
<var name="Trial">0</var>
<var name="TrialWeapon">teiwaz</var>
<!-- Elemental Grips, set to 1 for each you have -->
<var name="LightGrip">1</var>
<var name="DarkGrip">1</var>
<var name="ThunderGrip">1</var>
<var name="IceGrip">1</var>
<var name="FireGrip">1</var>
<var name="WindGrip">0</var>
<var name="WaterGrip">0</var>
<var name="EarthGrip">1</var>
<!-- Elemental Staffs, input what staff to use for each element here -->
<var name="IceStaff">Aquilo's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="LightStaff">Apollo's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="FireStaff">Vulcan's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="WaterStaff">Water Staff</var>
<var name="CureStaff">Apollo's Staff</var>
<!-- Elemental Obi's, set to 1 for the ones you have. -->
<var name="obidark">1</var>
<var name="obilight">0</var>
<var name="obithunder">1</var>
<var name="obiice">1</var>
<var name="obifire">1</var>
<var name="obiwind">0</var>
<var name="obiwater">0</var>
<var name="obiearth">0</var>
<!--Do Not Change-->
<var name="MoonPhase">0</var>
</variables>
<sets>
<group name="BLM" default="yes" load="yes">
<set name="town" baseset="Standard" load="yes">
<main store = "mog satchel">$ThunderStaff</main>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goetia Chausses +2</legs>
<feet store = "mog satchel">Goetia sabots +1</feet>
<lear store = "mog satchel">Moldavite Earring</lear>
<rear store = "mog satchel">Hecate's Earring</rear>
</set>
<set name="Cloak" load="yes">
<ammo store = "mog satchel">Witchstone</ammo>
<main store = "mog satchel">$DarkStaff</main>
<sub store = "mog satchel">Dark grip</sub>
<body store = "mog satchel">Twilight Cloak</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Yigit crackows</feet>
<lring store = "mog satchel">Balrahn's ring</lring>
<rring store = "mog satchel">Spiral ring</rring>
<waist store = "mog satchel">Searing sash</waist>
<back store = "mog satchel">Searing Cape</back>
<lear store = "mog satchel">Hecate's Earring</lear>
<rear store = "mog satchel">Moldavite Earring</rear>
<neck store = "mog satchel">Elemental torque</neck>
</set>
<set name="Standard" load="yes">
<main store = "mog satchel">$EarthStaff</main>
<sub store = "mog satchel">Earth grip</sub>
<ammo store = "mog satchel">Snow Sachet</ammo>
<neck store = "mog satchel">Twilight Torque</neck>
<lear store = "mog satchel">Moldavite Earring</lear>
<rear store = "mog satchel">Hecate's Earring</rear>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<lring store = "mog satchel">Sorcerer's Ring</lring>
<rring store = "mog satchel">Balrahn's ring</rring>
<back store = "mog satchel">Searing Cape</back>
<waist store = "mog satchel">Witch sash</waist>
<legs store = "mog satchel">Goetia Chausses +2</legs>
<feet store = "mog satchel">Goetia sabots +1</feet>
</set>
<set name="Impact" BaseSet="Cloak" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<sub store = "mog satchel">Dark grip</sub>
<body lock = "yes">Twilight Cloak</body>
</set>
<set name="FastCast" load="yes">
<head store = "mog satchel">Walahra Turban</head>
<waist store = "mog satchel">Goading Belt</waist>
<feet store = "mog satchel">Rostrum Pumps</feet>
<rear store = "mog satchel">Loquac. Earring</rear>
</set>
<set name="Resting" BaseSet="Standard" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<ammo store = "mog satchel">Clarus Stone</ammo>
<head store = "mog satchel">Goliard chapeau</head>
<body store = "mog satchel">Errant houppelande</body>
<legs store = "mog satchel">Nisse slacks</legs>
<feet store = "mog satchel">Goliard clogs</feet>
<neck store = "mog satchel">Eidolon Pendant</neck>
<lear store = "mog satchel">antivenom earring</lear>
<rear store = "mog satchel">Relaxing Earring</rear>
<waist store = "mog satchel">Austerity Belt</waist>
<back store = "mog satchel">Felicitas Cape</back>
</set>
<set name="MinusHP" load="yes">
<head store = "mog satchel">Zenith Crown</head>
<hands store = "mog satchel">Zenith Mitts</hands>
<legs store = "mog satchel">Zenith Slacks</legs>
<feet store = "mog satchel">Rostrum Pumps</feet>
<rring store = "mog satchel">Ether ring</rring>
<lring store = "mog satchel">Serket Ring</lring>
</set>
<set name="MACC" baseset="standard" load="yes">
</set>
<set name="FullDamage" BaseSet="Standard" load="yes">
<ammo store = "mog satchel">Witchstone</ammo>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Yigit crackows</feet>
<lring store = "mog satchel">Balrahn's ring</lring>
<rring store = "mog satchel">Spiral ring</rring>
<waist store = "mog satchel">Searing sash</waist>
<back store = "mog satchel">Searing Cape</back>
<lear store = "mog satchel">Hecate's Earring</lear>
<rear store = "mog satchel">Moldavite Earring</rear>
<neck store = "mog satchel">Elemental torque</neck>
</set>
<set name="MidResist" BaseSet="FullDamage" load="yes">
<hands store = "mog satchel">Wizard's Gloves</hands>
<neck store = "mog satchel">Goetia Chain</neck>
<back store = "mog satchel">Goetia Mantle</back>
</set>
<set name="HighResist" BaseSet="FullDamage" load="yes">
<lear store="mog satchel">Elemental Earring</lear>
<hands store = "mog satchel">Wizard's Gloves</hands>
<neck store = "mog satchel">Aesir Torque</neck>
<lring store = "mog satchel">Omega Ring</lring>
<back store = "mog satchel">Goetia Mantle</back>
</set>
<set name="LightResist" baseset="fulldamage" load="yes" />
<set name="DarkMagic" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<legs store = "mog satchel">Wizard's Tonban</legs>
<rear store = "mog satchel">Goetia Earring</rear>
<neck store = "mog satchel">Dark Torque</neck>
<lear store = "mog satchel">Loquac. Earring</lear>
<lring store = "mog satchel">Balrahn's Ring</lring>
<hands store = "mog satchel">Sorcerer's Gloves</hands>
<body store = "mog satchel">Goetia Coat +1</body>
<head store = "mog satchel">Goetia Petasos +2</head>
<feet store = "mog satchel">Goetia Sabots +1</feet>
</set>
<set name="EnfeeblingMagic" Baseset="Standard" load="yes">
<body store = "mog satchel">Wizard's Coat</body>
<head store = "mog satchel">Igqira Tiara</head>
<rear store = "mog satchel">Goetia Earring</rear>
<lring store = "mog satchel">Balrahn's Ring</lring>
<neck store = "mog satchel">Enfeebling Torque</neck>
<legs store = "mog satchel">Igqira Lappas</legs>
<lear store = "mog satchel">Enfeebling Earring</lear>
</set>
<set name="INT" base="EnfeeblingMagic" load="yes">
<head store = "mog satchel">Goetia Petasos +2</head>
<neck store = "mog satchel">Goetia Chain</neck>
<lear store = "mog satchel">Enfeebling Earring</lear>
<rring store = "mog satchel">Spiral Ring</rring>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Goetia Sabots +1</feet>
<back store = "mog satchel">Goetia Mantle</back>
<waist store = "mog satchel">Cognition Belt</waist>
</set>
<set name="HealingMagic" load="yes">
<main store = "mog satchel">$CureStaff</main>
<head store = "mog satchel">Maat's Cap</head>
<neck store = "mog satchel">Morgana's Choker</neck>
<body store = "mog satchel">Augur's Jaseran</body>
<hands store = "mog satchel">Yigit Gages</hands>
<feet store = "mog satchel">Rostrum Pumps</feet>
<waist store = "mog satchel">Penitent's rope</waist>
<back store = "mog satchel">Ixion Cape</back>
<lring store = "mog satchel">Solemn Ring</lring>
<rring store = "mog satchel">Omega Ring</rring>
</set>
<set name="DivineMagic" load="yes"/>
<!-- 255 skill + 75 base = 20 mnd-->
<set name="Stoneskin" baseset="standard" load="yes">
<lring store = "mog satchel">Solemn Ring</lring>
<head store = "mog satchel">Maat's Cap</head>
<waist store = "mog satchel">Penitent's rope</waist>
</set>
<set name="MiscGearCollector" load="yes">
<item store = "mog satchel">Vulcan's Staff</item>
<item store = "mog satchel">Pluto's Staff</item>
<item store = "mog satchel">Water Staff</item>
<item store = "mog satchel">Auster's Staff</item>
<item store = "mog satchel">Terra's Staff</item>
<item store = "mog satchel">Apollo's Staff</item>
<item store = "mog satchel">Jupiter's Staff</item>
<item store = "mog satchel">Aquilo's Staff</item>
<item store = "mog satchel">Sorcerer's Ring</item>
<item store = "mog satchel">Twilight Cape</item>
<item store = "mog satchel">Uggalepih Pendant</item>
</set>
</group>
</sets>
<rules>
<!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
<if SpellTargetType="NONE" ValidTarget="*Self*">
<changetarget target="<me>" />
</if>
<if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
<return />
</if>
<!-- set of gear to equip when resting -->
<equip when="Resting" set="Resting" />
<!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
<if mode="OR" spell="Mana Wall" buffactuve="Mana Wall">
<equip when="precast|Aftercast" set="Standard">
<feet store = "mog satchel">Goetia Sabot +1</feet>
</equip>
</if>
<elseif advanced='"$Trial" == "1"'>
<equip when="Idle|aftercast" set="Standard">
<main store = "mog satchel">teiwaz</main>
</equip>
</elseif>
<else>
<equip when="Idle|aftercast" set="Standard" />
</else>
<if Spell="Stun">
<!-- equip gear that helps stun, and nothing else -->
<equip set="DarkMagic|FastCast">
<main store = "mog satchel">$ThunderStaff</main>
</equip>
<!-- these codes just print Stun in auto translate into chat. -->
<if advanced='"$PrintChat"=="1"'>
<command>input /p Stun >> <%SpellTarget></command>
</if>
</if>
<else>
<!-- equip fast cast gear -->
<equip Set="FastCast" />
<!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
<if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke|Fir*|Blizz*|Aero*|Stone*|Thund*|Water*|Flare*|Freeze*|Quake*|Tornado*|Burst*">
<if Advanced='"$%SpellElementGrip" == "1"'>
<equip when="midcast">
<sub store = "mog satchel" lock="true">%SpellElement Grip</sub>
</equip>
</if>
</if>
<!-- Assume bonus to effects is symmetrical around New Moon or Full Moon -->
<if advanced = '"%MOON" == "New Moon"'>
<var cmd="set MoonPhase 0" />
</if>
<!-- Check for Waxing Moon -->
<elseif advanced = '"%MOON" == "Waxing Crescent"'>
<!-- If %MOONPCT < 24% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT < 24">
<var cmd="set MoonPhase 1" />
</if>
<else>
<var cmd="set MoonPhase 2" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "First Quarter Moon"'>
<var cmd="set MoonPhase 3" />
</elseif>
<elseif advanced = '"%MOON" == "Waxing Gibbous"'>
<!-- If %MOONPCT < 74% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 73">
<var cmd="set MoonPhase 4" />
</if>
<else>
<var cmd="set MoonPhase 5" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "Full Moon"'>
<var cmd="set MoonPhase 6" />
</elseif>
<!-- Check for Waning Moon -->
<elseif advanced = '"%MOON" == "Waning Gibbous"'>
<!-- If %MOONPCT > 76% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 76">
<!-- Actually Phase 7 in Full Cycle -->
<var cmd="set MoonPhase 5" />
</if>
<else>
<!-- Actually Phase 8 in Full Cycle -->
<var cmd="set MoonPhase 4" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "Last Quarter Moon"'>
<!-- Actually Phase 9 in Full Cycle -->
<var cmd="set MoonPhase 3" />
</elseif>
<else advanced = '"%MOON" == "Waning Crescent"'>
<!-- If %MOONPCT > 26% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 26">
<!-- Actually Phase 10 in Full Cycle -->
<var cmd="set MoonPhase 2" />
</if>
<else>
<!-- Actually Phase 11 in Full Cycle -->
<var cmd="set MoonPhase 1" />
</else>
</else>
<!-- if were handling spells -->
<if Skill="*Magic">
<!-- if this is elemental magic (nukes/dot's, then do special handling -->
<if Skill="ElementalMagic">
<if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
<!-- equip elemental/INT gear for DoT's -->
<equip when="precast|midcast" Set="HighResist" />
</if>
<else>
<!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
<if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="HighResist" />
<addtochat color="121">HighResist</addtochat>
</if>
<else>
<!-- if mob is not high resist, is it a mid resist mob? -->
<if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Sarameya|Tyger|Jailer of Love|Proto-*|*Alexander|Wyrm|Tartaruga Gigante|Chlevnik" NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="MidResist" />
<addtochat color="121">MidResist</addtochat>
</if>
<else>
<!-- Normal mob, go full damage gear. -->
<if mode="or" Area="Dynamis*|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
<if NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="LightResist" />
<addtochat color="121">LightResist</addtochat>
</if>
<else>
<equip when="precast|midcast" Set="FullDamage" />
</else>
</if>
<else>
<equip when="precast|midcast" Set="FullDamage" />
</else>
<if MPPAfterCastLT = "50" advanced = "$UggPendant==1">
<if advanced = '$MoonPhase > 4'>
<equip when = "midcast">
<neck lock = "yes">Artemis' Medal</neck>
</equip>
</if>
<else>
<equip when = "midcast">
<neck lock = "yes">Uggalepih Pendant</neck>
</equip>
</else>
</if>
<elseif advanced = '$MoonPhase > 2'>
<equip when = "midcast">
<neck lock = "yes">Artemis' Medal</neck>
</equip>
</elseif>
</else>
<!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
<if advanced='$SorcRing == 1' notarea="Abyssea*">
<!-- make sure we have an HP variable set for current subjob -->
<if advanced='"$%SubJobRingHP" > 0' notArea="Abyssea*">
<if Advanced='%HP > $%SubJobRingHP'>
<!-- if you have too much HP at the time of casting, equip minus hp -->
<equip set="MinusHP" />
</if>
</if>
<elseif area="Abyssea*">
<command when="Precast">cancel 88</command>
<equip set="MinusHP" />
</elseif>
<else>
<!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
<equip set="MinusHP" />
</else>
<equip when="midcast">
<lring store = "mog satchel">Sorcerer's Ring</lring>
</equip>
</if>
</else>
</else>
</if>
<elseif skill="EnhancingMagic">
<if Spell="Stoneskin" BuffActive="Stoneskin">
<equip when="precast" set="Stoneskin"/>
<command when="midcast">cancel 37</command>
<midcastdelay delay="4.8" />
</if>
<elseif Spell="Blink" BuffActive="Blink">
<command when="midcast">cancel 36</command>
<midcastdelay delay="4.5" />
</elseif>
<!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
<elseif Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
<command when="midcast">cancel 71</command>
<midcastdelay delay="1.8" />
</elseif>
</elseif>
<elseif skill="EnfeeblingMagic">
<if spell="Bind">
<equip when="precast" set="INT"/>
</if>
<!-- Timers for when sleep is wearing off. -->
<if advanced='"$SleepTimers"="1"'>
<if Spell="Sleep II|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</elseif>
</if>
</elseif>
<else>
<!-- for any other type of spell, just equip matching set name. -->
<equip when="precast|midcast" Set="Standard|%Skill" />
</else>
</if>
<else>
<equip when="precast|midcast" Set="Standard" />
</else>
<!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
<if Spell="Drain" Advanced="$SorcRing==1">
<equip set="MinusHP" />
</if>
<!-- Handle Elemental Obi's -->
<if advanced = '("%spellelement" = "%weatherelement" or "%spellelement" = "%dayelement") and "$obi%spellelement" = "1"'>
<if Advanced='"$TwilightCape" == "1"'>
<equip when="midcast">
<back store = "mog satchel" lock="true">Twilight Cape</back>
</equip>
</if>
<if Advanced='"$ZodiacRing" == "0"'>
<equip when="midcast">
<rring store = "mog satchel" lock="true">Zodiac Ring</rring>
</equip>
</if>
<if element = "dark">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">anrin obi</waist>
</equip>
</if>
<elseif element = "light">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">korin obi</waist>
</equip>
</elseif>
<elseif element = "thunder">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">rairin obi</waist>
</equip>
</elseif>
<elseif element = "ice">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">hyorin obi</waist>
</equip>
</elseif>
<elseif element = "fire">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">karin obi</waist>
</equip>
</elseif>
<elseif element = "wind">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">furin obi</waist>
</equip>
</elseif>
<elseif element = "water">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">suirin obi</waist>
</equip>
</elseif>
<elseif element = "earth">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">dorin obi</waist>
</equip>
</elseif>
<if spell="Impact">
<equip when="precast|midcast">
<body store = "mog satchel" lock="yes">Twilight Cloak</body>
</equip>
</if>
</if>
<!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
<if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
<equip when="midcast">
<legs store = "mog satchel" lock="yes">Sorcerer's Tonban +1</legs>
</equip>
<if advanced='"$TwilightCape" == "1"'>
<equip when="midcast">
<back store = "mog satchel" lock="yes">Twilight Cape</back>
</equip>
</if>
<if Advanced='"$ZodiacRing" == "1"'>
<equip when="midcast">
<rring store = "mog satchel" lock="true">Zodiac Ring</rring>
</equip>
</if>
</if>
<if subjob="NIN">
<if spell="Utsusemi*">
<equip when="precast" set="fastcast" />
<if spell="*Ichi" BuffActive="Copy Image*">
<midcastdelay delay="2.5" />
<command when="midcast">cancel 66</command>
<command when="midcast">cancel 445</command>
<command when="midcast">cancel 446</command>
<command when="midcast">cancel 444</command>
</if>
</if>
</if>
<elseif subjob="BRD">
<if spell="*Threnody*">
<equip when="precast|midcast" set="macc"/>
</if>
</elseif>
<!-- finally, equip our staff! -->
<if advanced='"$Trial"=="1"'>
<equip when="midcast">
<main store = "mog satchel">teiwaz</main>
</equip>
</if>
<else>
<equip when="midcast">
<main store = "mog satchel">$%SpellElementStaff</main>
</equip>
</else>
</else>
</rules>
</spellcast>
<spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
<guildwork
character="Badda"
server="fenrir"
description="Badda's BLM Spellcast"
job="BLM"
/>
<config
RequireVersion="2.30"
Showgearswaps="false"
Showspellinfo="false"
Debug="false"
/>
<variables clear="true">
<!-- Print Stun -->
<var name="PrintChat">1</var>
<!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
<!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
<var name="SleepTimers">1</var>
<!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
<var name="BLMAF2Pants">1</var>
<!-- Twilight Cape do you have or use it? -->
<var name="TwilightCape">1</var>
<!-- Twilight Cloak do you have or use it? -->
<var name="TwilightCloak">1</var>
<!-- Zodiac ring -->
<var name="ZodiacRing">0</var>
<!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
<var name="SorcRing">1</var>
<!-- use Sorc Earring or not? set to 0 if you do not have it or location -->
<var name="Earring">0</var>
<!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
<var name="UggPendant">1</var>
<!-- Set HP Variables for what the maximum amount of HP you can have to rdm761 trigger sorc ring is for each subjob -->
<var name="RDMRingHP">1550</var>
<var name="WHMRingHP">692</var>
<var name="NINRingHP">761</var>
<!-- Trials - Are you actively doing a trial? -->
<var name="Trial">0</var>
<var name="TrialWeapon">teiwaz</var>
<!-- Elemental Grips, set to 1 for each you have -->
<var name="LightGrip">1</var>
<var name="DarkGrip">1</var>
<var name="ThunderGrip">1</var>
<var name="IceGrip">1</var>
<var name="FireGrip">1</var>
<var name="WindGrip">0</var>
<var name="WaterGrip">0</var>
<var name="EarthGrip">1</var>
<!-- Elemental Staffs, input what staff to use for each element here -->
<var name="IceStaff">Aquilo's Staff</var>
<var name="DarkStaff">Pluto's Staff</var>
<var name="ThunderStaff">Jupiter's Staff</var>
<var name="LightStaff">Apollo's Staff</var>
<var name="WindStaff">Auster's Staff</var>
<var name="FireStaff">Vulcan's Staff</var>
<var name="EarthStaff">Terra's Staff</var>
<var name="WaterStaff">Water Staff</var>
<var name="CureStaff">Apollo's Staff</var>
<!-- Elemental Obi's, set to 1 for the ones you have. -->
<var name="obidark">1</var>
<var name="obilight">0</var>
<var name="obithunder">1</var>
<var name="obiice">1</var>
<var name="obifire">1</var>
<var name="obiwind">0</var>
<var name="obiwater">0</var>
<var name="obiearth">0</var>
<!--Do Not Change-->
<var name="MoonPhase">0</var>
</variables>
<sets>
<group name="BLM" default="yes" load="yes">
<set name="town" baseset="Standard" load="yes">
<main store = "mog satchel">$ThunderStaff</main>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goetia Chausses +2</legs>
<feet store = "mog satchel">Goetia sabots +1</feet>
<lear store = "mog satchel">Moldavite Earring</lear>
<rear store = "mog satchel">Hecate's Earring</rear>
</set>
<set name="Cloak" load="yes">
<ammo store = "mog satchel">Witchstone</ammo>
<main store = "mog satchel">$DarkStaff</main>
<sub store = "mog satchel">Dark grip</sub>
<body store = "mog satchel">Twilight Cloak</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Yigit crackows</feet>
<lring store = "mog satchel">Balrahn's ring</lring>
<rring store = "mog satchel">Spiral ring</rring>
<waist store = "mog satchel">Searing sash</waist>
<back store = "mog satchel">Searing Cape</back>
<lear store = "mog satchel">Hecate's Earring</lear>
<rear store = "mog satchel">Moldavite Earring</rear>
<neck store = "mog satchel">Elemental torque</neck>
</set>
<set name="Standard" load="yes">
<main store = "mog satchel">$EarthStaff</main>
<sub store = "mog satchel">Earth grip</sub>
<ammo store = "mog satchel">Snow Sachet</ammo>
<neck store = "mog satchel">Twilight Torque</neck>
<lear store = "mog satchel">Moldavite Earring</lear>
<rear store = "mog satchel">Hecate's Earring</rear>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<lring store = "mog satchel">Sorcerer's Ring</lring>
<rring store = "mog satchel">Balrahn's ring</rring>
<back store = "mog satchel">Searing Cape</back>
<waist store = "mog satchel">Witch sash</waist>
<legs store = "mog satchel">Goetia Chausses +2</legs>
<feet store = "mog satchel">Goetia sabots +1</feet>
</set>
<set name="Impact" BaseSet="Cloak" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<sub store = "mog satchel">Dark grip</sub>
<body lock = "yes">Twilight Cloak</body>
</set>
<set name="FastCast" load="yes">
<head store = "mog satchel">Walahra Turban</head>
<waist store = "mog satchel">Goading Belt</waist>
<feet store = "mog satchel">Rostrum Pumps</feet>
<rear store = "mog satchel">Loquac. Earring</rear>
</set>
<set name="Resting" BaseSet="Standard" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<ammo store = "mog satchel">Clarus Stone</ammo>
<head store = "mog satchel">Goliard chapeau</head>
<body store = "mog satchel">Errant houppelande</body>
<legs store = "mog satchel">Nisse slacks</legs>
<feet store = "mog satchel">Goliard clogs</feet>
<neck store = "mog satchel">Eidolon Pendant</neck>
<lear store = "mog satchel">antivenom earring</lear>
<rear store = "mog satchel">Relaxing Earring</rear>
<waist store = "mog satchel">Austerity Belt</waist>
<back store = "mog satchel">Felicitas Cape</back>
</set>
<set name="MinusHP" load="yes">
<head store = "mog satchel">Zenith Crown</head>
<hands store = "mog satchel">Zenith Mitts</hands>
<legs store = "mog satchel">Zenith Slacks</legs>
<feet store = "mog satchel">Rostrum Pumps</feet>
<rring store = "mog satchel">Ether ring</rring>
<lring store = "mog satchel">Serket Ring</lring>
</set>
<set name="MACC" baseset="standard" load="yes">
</set>
<set name="FullDamage" BaseSet="Standard" load="yes">
<ammo store = "mog satchel">Witchstone</ammo>
<head store = "mog satchel">Goetia Petasos +2</head>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Yigit crackows</feet>
<lring store = "mog satchel">Balrahn's ring</lring>
<rring store = "mog satchel">Spiral ring</rring>
<waist store = "mog satchel">Searing sash</waist>
<back store = "mog satchel">Searing Cape</back>
<lear store = "mog satchel">Hecate's Earring</lear>
<rear store = "mog satchel">Moldavite Earring</rear>
<neck store = "mog satchel">Elemental torque</neck>
</set>
<set name="MidResist" BaseSet="FullDamage" load="yes">
<hands store = "mog satchel">Wizard's Gloves</hands>
<neck store = "mog satchel">Goetia Chain</neck>
<back store = "mog satchel">Goetia Mantle</back>
</set>
<set name="HighResist" BaseSet="FullDamage" load="yes">
<lear store="mog satchel">Elemental Earring</lear>
<hands store = "mog satchel">Wizard's Gloves</hands>
<neck store = "mog satchel">Aesir Torque</neck>
<lring store = "mog satchel">Omega Ring</lring>
<back store = "mog satchel">Goetia Mantle</back>
</set>
<set name="LightResist" baseset="fulldamage" load="yes" />
<set name="DarkMagic" load="yes">
<main store = "mog satchel">$DarkStaff</main>
<legs store = "mog satchel">Wizard's Tonban</legs>
<rear store = "mog satchel">Goetia Earring</rear>
<neck store = "mog satchel">Dark Torque</neck>
<lear store = "mog satchel">Loquac. Earring</lear>
<lring store = "mog satchel">Balrahn's Ring</lring>
<hands store = "mog satchel">Sorcerer's Gloves</hands>
<body store = "mog satchel">Goetia Coat +1</body>
<head store = "mog satchel">Goetia Petasos +2</head>
<feet store = "mog satchel">Goetia Sabots +1</feet>
</set>
<set name="EnfeeblingMagic" Baseset="Standard" load="yes">
<body store = "mog satchel">Wizard's Coat</body>
<head store = "mog satchel">Igqira Tiara</head>
<rear store = "mog satchel">Goetia Earring</rear>
<lring store = "mog satchel">Balrahn's Ring</lring>
<neck store = "mog satchel">Enfeebling Torque</neck>
<legs store = "mog satchel">Igqira Lappas</legs>
<lear store = "mog satchel">Enfeebling Earring</lear>
</set>
<set name="INT" base="EnfeeblingMagic" load="yes">
<head store = "mog satchel">Goetia Petasos +2</head>
<neck store = "mog satchel">Goetia Chain</neck>
<lear store = "mog satchel">Enfeebling Earring</lear>
<rring store = "mog satchel">Spiral Ring</rring>
<body store = "mog satchel">Goetia Coat +1</body>
<hands store = "mog satchel">Goetia Gloves +1</hands>
<legs store = "mog satchel">Goet. Chausses +2</legs>
<feet store = "mog satchel">Goetia Sabots +1</feet>
<back store = "mog satchel">Goetia Mantle</back>
<waist store = "mog satchel">Cognition Belt</waist>
</set>
<set name="HealingMagic" load="yes">
<main store = "mog satchel">$CureStaff</main>
<head store = "mog satchel">Maat's Cap</head>
<neck store = "mog satchel">Morgana's Choker</neck>
<body store = "mog satchel">Augur's Jaseran</body>
<hands store = "mog satchel">Yigit Gages</hands>
<feet store = "mog satchel">Rostrum Pumps</feet>
<waist store = "mog satchel">Penitent's rope</waist>
<back store = "mog satchel">Ixion Cape</back>
<lring store = "mog satchel">Solemn Ring</lring>
<rring store = "mog satchel">Omega Ring</rring>
</set>
<set name="DivineMagic" load="yes"/>
<!-- 255 skill + 75 base = 20 mnd-->
<set name="Stoneskin" baseset="standard" load="yes">
<lring store = "mog satchel">Solemn Ring</lring>
<head store = "mog satchel">Maat's Cap</head>
<waist store = "mog satchel">Penitent's rope</waist>
</set>
<set name="MiscGearCollector" load="yes">
<item store = "mog satchel">Vulcan's Staff</item>
<item store = "mog satchel">Pluto's Staff</item>
<item store = "mog satchel">Water Staff</item>
<item store = "mog satchel">Auster's Staff</item>
<item store = "mog satchel">Terra's Staff</item>
<item store = "mog satchel">Apollo's Staff</item>
<item store = "mog satchel">Jupiter's Staff</item>
<item store = "mog satchel">Aquilo's Staff</item>
<item store = "mog satchel">Sorcerer's Ring</item>
<item store = "mog satchel">Twilight Cape</item>
<item store = "mog satchel">Uggalepih Pendant</item>
</set>
</group>
</sets>
<rules>
<!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
<if SpellTargetType="NONE" ValidTarget="*Self*">
<changetarget target="<me>" />
</if>
<if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
<return />
</if>
<!-- set of gear to equip when resting -->
<equip when="Resting" set="Resting" />
<!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
<if mode="OR" spell="Mana Wall" buffactuve="Mana Wall">
<equip when="precast|Aftercast" set="Standard">
<feet store = "mog satchel">Goetia Sabot +1</feet>
</equip>
</if>
<elseif advanced='"$Trial" == "1"'>
<equip when="Idle|aftercast" set="Standard">
<main store = "mog satchel">teiwaz</main>
</equip>
</elseif>
<else>
<equip when="Idle|aftercast" set="Standard" />
</else>
<if Spell="Stun">
<!-- equip gear that helps stun, and nothing else -->
<equip set="DarkMagic|FastCast">
<main store = "mog satchel">$ThunderStaff</main>
</equip>
<!-- these codes just print Stun in auto translate into chat. -->
<if advanced='"$PrintChat"=="1"'>
<command>input /p Stun >> <%SpellTarget></command>
</if>
</if>
<else>
<!-- equip fast cast gear -->
<equip Set="FastCast" />
<!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
<if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke|Fir*|Blizz*|Aero*|Stone*|Thund*|Water*|Flare*|Freeze*|Quake*|Tornado*|Burst*">
<if Advanced='"$%SpellElementGrip" == "1"'>
<equip when="midcast">
<sub store = "mog satchel" lock="true">%SpellElement Grip</sub>
</equip>
</if>
</if>
<!-- Assume bonus to effects is symmetrical around New Moon or Full Moon -->
<if advanced = '"%MOON" == "New Moon"'>
<var cmd="set MoonPhase 0" />
</if>
<!-- Check for Waxing Moon -->
<elseif advanced = '"%MOON" == "Waxing Crescent"'>
<!-- If %MOONPCT < 24% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT < 24">
<var cmd="set MoonPhase 1" />
</if>
<else>
<var cmd="set MoonPhase 2" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "First Quarter Moon"'>
<var cmd="set MoonPhase 3" />
</elseif>
<elseif advanced = '"%MOON" == "Waxing Gibbous"'>
<!-- If %MOONPCT < 74% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 73">
<var cmd="set MoonPhase 4" />
</if>
<else>
<var cmd="set MoonPhase 5" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "Full Moon"'>
<var cmd="set MoonPhase 6" />
</elseif>
<!-- Check for Waning Moon -->
<elseif advanced = '"%MOON" == "Waning Gibbous"'>
<!-- If %MOONPCT > 76% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 76">
<!-- Actually Phase 7 in Full Cycle -->
<var cmd="set MoonPhase 5" />
</if>
<else>
<!-- Actually Phase 8 in Full Cycle -->
<var cmd="set MoonPhase 4" />
</else>
</elseif>
<elseif advanced = '"%MOON" == "Last Quarter Moon"'>
<!-- Actually Phase 9 in Full Cycle -->
<var cmd="set MoonPhase 3" />
</elseif>
<else advanced = '"%MOON" == "Waning Crescent"'>
<!-- If %MOONPCT > 26% we know it's Early, rather than Late -->
<if advanced = "%MOONPCT > 26">
<!-- Actually Phase 10 in Full Cycle -->
<var cmd="set MoonPhase 2" />
</if>
<else>
<!-- Actually Phase 11 in Full Cycle -->
<var cmd="set MoonPhase 1" />
</else>
</else>
<!-- if were handling spells -->
<if Skill="*Magic">
<!-- if this is elemental magic (nukes/dot's, then do special handling -->
<if Skill="ElementalMagic">
<if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
<!-- equip elemental/INT gear for DoT's -->
<equip when="precast|midcast" Set="HighResist" />
</if>
<else>
<!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
<if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="HighResist" />
<addtochat color="121">HighResist</addtochat>
</if>
<else>
<!-- if mob is not high resist, is it a mid resist mob? -->
<if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Sarameya|Tyger|Jailer of Love|Proto-*|*Alexander|Wyrm|Tartaruga Gigante|Chlevnik" NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="MidResist" />
<addtochat color="121">MidResist</addtochat>
</if>
<else>
<!-- Normal mob, go full damage gear. -->
<if mode="or" Area="Dynamis*|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
<if NotBuffActive="Elemental Seal">
<equip when="precast|midcast" Set="LightResist" />
<addtochat color="121">LightResist</addtochat>
</if>
<else>
<equip when="precast|midcast" Set="FullDamage" />
</else>
</if>
<else>
<equip when="precast|midcast" Set="FullDamage" />
</else>
<if MPPAfterCastLT = "50" advanced = "$UggPendant==1">
<if advanced = '$MoonPhase > 4'>
<equip when = "midcast">
<neck lock = "yes">Artemis' Medal</neck>
</equip>
</if>
<else>
<equip when = "midcast">
<neck lock = "yes">Uggalepih Pendant</neck>
</equip>
</else>
</if>
<elseif advanced = '$MoonPhase > 2'>
<equip when = "midcast">
<neck lock = "yes">Artemis' Medal</neck>
</equip>
</elseif>
</else>
<!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
<if advanced='$SorcRing == 1' notarea="Abyssea*">
<!-- make sure we have an HP variable set for current subjob -->
<if advanced='"$%SubJobRingHP" > 0' notArea="Abyssea*">
<if Advanced='%HP > $%SubJobRingHP'>
<!-- if you have too much HP at the time of casting, equip minus hp -->
<equip set="MinusHP" />
</if>
</if>
<elseif area="Abyssea*">
<command when="Precast">cancel 88</command>
<equip set="MinusHP" />
</elseif>
<else>
<!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
<equip set="MinusHP" />
</else>
<equip when="midcast">
<lring store = "mog satchel">Sorcerer's Ring</lring>
</equip>
</if>
</else>
</else>
</if>
<elseif skill="EnhancingMagic">
<if Spell="Stoneskin" BuffActive="Stoneskin">
<equip when="precast" set="Stoneskin"/>
<command when="midcast">cancel 37</command>
<midcastdelay delay="4.8" />
</if>
<elseif Spell="Blink" BuffActive="Blink">
<command when="midcast">cancel 36</command>
<midcastdelay delay="4.5" />
</elseif>
<!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
<elseif Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
<command when="midcast">cancel 71</command>
<midcastdelay delay="1.8" />
</elseif>
</elseif>
<elseif skill="EnfeeblingMagic">
<if spell="Bind">
<equip when="precast" set="INT"/>
</if>
<!-- Timers for when sleep is wearing off. -->
<if advanced='"$SleepTimers"="1"'>
<if Spell="Sleep II|Sleepga II">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 45s</command>
<command when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</if>
<elseif Spell="Sleep|Sleepga">
<command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15s</command>
<command when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5s;spellcast var dec sleepid;</command>
</elseif>
</if>
</elseif>
<else>
<!-- for any other type of spell, just equip matching set name. -->
<equip when="precast|midcast" Set="Standard|%Skill" />
</else>
</if>
<else>
<equip when="precast|midcast" Set="Standard" />
</else>
<!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
<if Spell="Drain" Advanced="$SorcRing==1">
<equip set="MinusHP" />
</if>
<!-- Handle Elemental Obi's -->
<if advanced = '("%spellelement" = "%weatherelement" or "%spellelement" = "%dayelement") and "$obi%spellelement" = "1"'>
<if Advanced='"$TwilightCape" == "1"'>
<equip when="midcast">
<back store = "mog satchel" lock="true">Twilight Cape</back>
</equip>
</if>
<if Advanced='"$ZodiacRing" == "0"'>
<equip when="midcast">
<rring store = "mog satchel" lock="true">Zodiac Ring</rring>
</equip>
</if>
<if element = "dark">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">anrin obi</waist>
</equip>
</if>
<elseif element = "light">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">korin obi</waist>
</equip>
</elseif>
<elseif element = "thunder">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">rairin obi</waist>
</equip>
</elseif>
<elseif element = "ice">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">hyorin obi</waist>
</equip>
</elseif>
<elseif element = "fire">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">karin obi</waist>
</equip>
</elseif>
<elseif element = "wind">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">furin obi</waist>
</equip>
</elseif>
<elseif element = "water">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">suirin obi</waist>
</equip>
</elseif>
<elseif element = "earth">
<equip when = "midcast">
<waist store = "mog satchel" lock = "yes">dorin obi</waist>
</equip>
</elseif>
<if spell="Impact">
<equip when="precast|midcast">
<body store = "mog satchel" lock="yes">Twilight Cloak</body>
</equip>
</if>
</if>
<!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
<if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
<equip when="midcast">
<legs store = "mog satchel" lock="yes">Sorcerer's Tonban +1</legs>
</equip>
<if advanced='"$TwilightCape" == "1"'>
<equip when="midcast">
<back store = "mog satchel" lock="yes">Twilight Cape</back>
</equip>
</if>
<if Advanced='"$ZodiacRing" == "1"'>
<equip when="midcast">
<rring store = "mog satchel" lock="true">Zodiac Ring</rring>
</equip>
</if>
</if>
<if subjob="NIN">
<if spell="Utsusemi*">
<equip when="precast" set="fastcast" />
<if spell="*Ichi" BuffActive="Copy Image*">
<midcastdelay delay="2.5" />
<command when="midcast">cancel 66</command>
<command when="midcast">cancel 445</command>
<command when="midcast">cancel 446</command>
<command when="midcast">cancel 444</command>
</if>
</if>
</if>
<elseif subjob="BRD">
<if spell="*Threnody*">
<equip when="precast|midcast" set="macc"/>
</if>
</elseif>
<!-- finally, equip our staff! -->
<if advanced='"$Trial"=="1"'>
<equip when="midcast">
<main store = "mog satchel">teiwaz</main>
</equip>
</if>
<else>
<equip when="midcast">
<main store = "mog satchel">$%SpellElementStaff</main>
</equip>
</else>
</else>
</rules>
</spellcast>
The work around im using atm which defeats the whole purpose of the xml is:-
/console sc s impact
/console unload spellcast <wait 1>
/ma "Impact" <t> <wait 10>
/console load spellcast
But it works lol