Code xml
<if notbuffactive="Whatever"> <return /> <addtochat color="121">Whatever isn't active - Cancelling gear swaps.</addtochat> </if>
I've moved the Day/Element rules for your WS to after you've parsed the other WS rules and added a 1sec aftercast delay so it shouldn't get mixed up swapping gear while it's parsing (sometimes, swapping gear too much in too short time will cause Spellcast to equip 2 sets at a time).
Code xml
<?xml version="1.0" ?> <spellcast> <variables> <var name="PDT">0</var> </variables> <sets> <group name="war"> <set name="MiscGearCollector" load="yes"> <main>Joyeuse</main> <main>Magnus Axe</main> <main>Ukonvasara</main> <main>Earth Staff</main> <main>Rsv.Cpt.Grt. sword</main> <main>Bounty sickle</main> <main>Quint Spear</main> <main>Warp Cudgel</main> </set> <set name="engaged"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Zelus Tiara</head> <neck>Rancor collar</neck> <body>Rvg. Lorica +2</body> <hands>Rvg. Mufflers +2</hands> <back>Atheling Mantle</back> <waist>Phasmida Belt</waist> <legs>Rvg. Cuisses +2</legs> <feet>Rvg. Calligae +2</feet> <rear>Ravager's Earring</rear> <rring>Tyrant's Ring</rring> <ammo>fire bomblet</ammo> </set> <set name="WarriorTPR"> <ammo>fire bomblet</ammo> <hands>seiryu's kote</hands> <legs>Ravager's Cuisses +2</legs> <feet>Ravager's Calligae +2</feet> <back>atheling mantle</back> <body>fazheluo radiant mail</body> <lring>tyrant's ring</lring> <rring>Rajas Ring</rring> <neck>Rancor collar</neck> <waist>Phasmida belt</waist> <lear>Ravager's Earring</lear> <rear>Brutal Earring</rear> <head>fazheluo helm +1</head> </set> <set name="idle"> <lear>Darkness Earring</lear> <lring>Sheltered Ring</lring> <head>Twilight helm</head> <neck>Wiglen gorget</neck> <body>Twilight Mail</body> <hands>War. Mufflers +2</hands> <back>Engulfer cape</back> <waist>Nierenschutz</waist> <legs>ogier's breeches</legs> <feet>Jingang greaves</feet> <rear>Black earring</rear> <rring>Paguroidea Ring</rring> <ammo>Demonry stone</ammo> </set> <set name="Outside_rr"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim cuirass</body> <hands>war. mufflers +2</hands> <back>Rancorous Mantle</back> <waist>thunder Belt</waist> <legs>Avant Cuisses +1</legs> <feet>Rvg. calligae +2</feet> <rear>Centaurus Earring</rear> <rring>Pyrasoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="Outside_rrzerk" baseset="Outside_rr"> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>Thunder Belt</waist> </set> <set name="ukkoout"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim cuirass</body> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet belt</waist> <legs>Ogier's breeches</legs> <feet>Rvg. calligae +2</feet> <rear>Centaurus earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="Outside_ukkoin"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim Cuirass</body> <hands>Hct. mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet Belt</waist> <legs>Hct. subligar +1</legs> <feet>Rvg. Calligae +2</feet> <rear>Centaurus Earring</rear> <rring>pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="Outside_ukkocrit" baseset="Outside_ukkoin"> <back>Rancorous Mantle</back> <neck>Thunder gorget</neck> <legs>ogier's breeches</legs> </set> <set name="Outside_ukkozerk"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim cuirass</body> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet Belt</waist> <legs>Hct. subligar +1</legs> <feet>Rvg. Calligae +2</feet> <rear>Centaurus Earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="Outside_ukkozerkcrit" baseset="Outside_ukkoin"> <waist>Windbuffet belt</waist> <neck>Thunder gorget</neck> <legs>ogier's breeches</legs> </set> <set name="Outside_fc"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Twilight Helm</head> <neck>Thunder Gorget</neck> <body>Grim Cuirass</body> <hands>Rvg. muffler's</hands> <back>Atheling Mantle</back> <waist>thunder Belt</waist> <legs>Avant Cuisses +1</legs> <feet>dilaram's sollerets</feet> <rear>centaurus Earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="Outside_upheav"> <lear>Brutal earring</lear> <lring>terra's ring</lring> <head>Rav. mask +2</head> <neck>apathy gorget</neck> <body>twilight mail</body> <hands>War. mufflers +2</hands> <back>Atheling mantle</back> <waist>warwolf belt</waist> <feet>dilaram's sollerets</feet> <legs>ravager's cuisses +2</legs> <rear>centaurus earring</rear> <rring>spiral ring</rring> <ammo>ravager's orb</ammo> </set> <set name="rr"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim cuirass</body> <hands>war. mufflers +2</hands> <back>Rancorous Mantle</back> <waist>thunder Belt</waist> <legs>Avant Cuisses +1</legs> <feet>Rvg. calligae +2</feet> <rear>Centaurus Earring</rear> <rring>Pyrasoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="rrzerk" baseset="rr"> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>Thunder Belt</waist> </set> <set name="ukkoout"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim cuirass</body> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet belt</waist> <legs>Ogier's breeches</legs> <feet>Rvg. calligae +2</feet> <rear>Centaurus earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="ukkoin"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Grim Cuirass</body> <hands>Hct. mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet Belt</waist> <legs>Hct. subligar +1</legs> <feet>Rvg. Calligae +2</feet> <rear>Centaurus Earring</rear> <rring>pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="ukkocrit" baseset="ukkoin"> <back>Rancorous Mantle</back> <neck>Thunder gorget</neck> <legs>ogier's breeches</legs> </set> <set name="ukkozerk"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Ravager's Mask +2</head> <neck>Nefarious collar</neck> <body>Zahak's mail</body> <hands>hecatomb mittens +1</hands> <back>Rancorous Mantle</back> <waist>windbuffet Belt</waist> <legs>Hct. subligar +1</legs> <feet>Rvg. Calligae +2</feet> <rear>Centaurus Earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="ukkozerkcrit" baseset="ukkoin"> <waist>Windbuffet belt</waist> <neck>Thunder gorget</neck> <legs>ogier's breeches</legs> </set> <set name="fc"> <lear>Brutal Earring</lear> <lring>Rajas Ring</lring> <head>Twilight Helm</head> <neck>Thunder Gorget</neck> <body>Grim Cuirass</body> <hands>Rvg. muffler's</hands> <back>Atheling Mantle</back> <waist>thunder Belt</waist> <legs>Avant Cuisses +1</legs> <feet>dilaram's sollerets</feet> <rear>centaurus Earring</rear> <rring>Pyrosoul Ring</rring> <ammo>Ravager's Orb</ammo> </set> <set name="upheav"> <lear>Brutal earring</lear> <lring>terra's ring</lring> <head>Rav. mask +2</head> <neck>apathy gorget</neck> <body>twilight mail</body> <hands>War. mufflers +2</hands> <back>Atheling mantle</back> <waist>windbuffet belt</waist> <feet>dilaram's sollerets</feet> <legs>Ogier's breeches</legs> <rear>centaurus earring</rear> <rring>spiral ring</rring> <ammo>ravager's orb</ammo> </set> <!--Gear used for Tomahawk--> <set name="Tomahawk" baseset="engaged"> <ammo>Throwing Tomahawk</ammo> </set> <set name="PDT" baseset="engaged"> <lring>Dark Ring</lring> <lear>darkness earring</lear> <rear>black earring</rear> <head>Ogier's helm</head> <feet>jingang greaves</feet> <neck>Twilight Torque</neck> <body>mekira meikogai</body> <hands>War. Mufflers +2</hands> <back>Shadow Mantle</back> <waist>Nierenschutz</waist> <legs>ogier's breeches</legs> <rring>Dark Ring</rring> </set> </group> </sets> <rules> <if status="Dead"> <cancelspell /> <return /> </if> <if notstatus="engaged"> <action type="equip" when="idle|aftercast" set="idle" /> </if> <if spell="Dia"> <if advanced='"$PDT"="0"'> <action type="var" cmd="set PDT 1" /> <addtochat color="3">PDT set on!</addtochat> </if> <elseif advanced='"$PDT"="1"'> <action type="var" cmd="set PDT 0" /> <addtochat color="5">TP set on!</addtochat> </elseif> </if> <if status="Engaged"> <aftercastdelay delay="1.0" /> <if advanced='"$PDT"="0"'> <if notbuffactive="restraint"> <equip when="engaged|aftercast" set="WarriorTPR" /> </if> <else> <equip when="engaged|aftercast" set="engaged" /> </else> </if> <elseif advanced='"$PDT"="1"'> <equip when="engaged|aftercast" set="PDT" /> </elseif> </if> <if HPLT="600"> <equip when="Precast|Midcast|Aftercast|Idle"> <precastdelay Delay=".2" /> <head lock="t">Twilight helm</head> <body lock="t">Twilight mail</body> </equip> </if> <if type="Weaponskill"> <if mode="OR" TPLT="100" advanced='%SpellTargetDistance>8' notstatus="engaged"> <addtochat color="5">Too far away from target, not enough TP or not engaged. Cancelling WS</addtochat> <cancelspell/> <return /> </if> </if> <if type="weaponskill"> <if buffactive="Visitant"> <if spell="Ukko's Fury"> <if buffactive="Berserk|Attack Boost"> <if buffactive="Potency|Blood Rage"> <action type="equip" when="precast" set="ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ --> </if> <else> <action type="equip" when="precast" set="ukkozerk" /> <!-- Using Ukko's - Atk+ --> </else> </if> <if notbuffactive="Berserk|Attack Boost"> <if buffactive="Potency|Bloodrage"> <action type="equip" when="precast" set="ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ --> </if> <else> <action type="equip" when="precast" set="ukkoin" /> <!-- Using Ukko's - No bonuses --> </else> </if> </if> <if spell="Raging Rush"> <if buffactive="Berserk|Attack Boost"> <action type="equip" when="precast" set="rrzerk" /> <!--Using RR - with Atk+ --> </if> <else> <action type="equip" when="precast" set="rr" /> <!-- RR, without Atk+ --> </else> </if> <if spell="Fell Cleave"> <action type="equip" when="precast" set="fc" /> </if> <if spell="Upheaval"> <action type="equip" when="precast" set="upheav" /> </if> </if> <!-- Close visitant --> <elseif notbuffactive="Visitant"> <if spell="Ukko's Fury"> <if buffactive="Berserk|Attack Boost"> <if buffactive="Potency|Blood Rage"> <action type="equip" when="precast" set="OUTSIDE_ukkozerkcrit" /> <!-- Using Ukko's - Atk+, Crit+ --> </if> <else> <action type="equip" when="precast" set="OUTSIDE_ukkozerk" /> <!-- Using Ukko's - Atk+ --> </else> </if> <if notbuffactive="Berserk|Attack Boost"> <if buffactive="Potency|Bloodrage"> <action type="equip" when="precast" set="OUTSIDE_ukkocrit" /> <!-- Using Ukko's - Crit+, no Atk+ --> </if> <else> <action type="equip" when="precast" set="OUTSIDE_ukkoin" /> <!-- Using Ukko's - No bonuses --> </else> </if> </if> <if spell="Raging Rush"> <if buffactive="Berserk|Attack Boost"> <action type="equip" when="precast" set="OUTSIDE_rrzerk" /> <!--Using RR - with Atk+ --> </if> <else> <action type="equip" when="precast" set="OUTSIDE_rr" /> <!-- RR, without Atk+ --> </else> </if> <if spell="Fell Cleave"> <action type="equip" when="precast" set="OUTSIDE_fc" /> </if> <if spell="Upheaval"> <action type="equip" when="precast" set="OUTSIDE_upheav" /> </if> </elseif> <!-- Close outside WS's --> <if mode="and" spell="Ukko's Fury" advanced='"%DayElement" = "Light" OR "%DayElement" = "Thunder" OR "%DayElement" = "Wind" OR "%DayElement" = "Fire"'> <equip when="precast"> <head lock="yes">Mekira-oto +1</head> </equip> </if> </if> <if Spell="Tomahawk"> <action type="castdelay" delay=".2" /> <action type="Equip" when="Precast" set="Tomahawk" /> </if> <if spell="berserk"> <action type="equip" when="precast"> <feet>Warrior's Calligae</feet> </action> </if> <if spell="warcry"> <action type="equip" when="precast"> <head>Warrior's Mask</head> </action> </if> <if spell="aggressor"> <action type="equip" when="precast"> <body>Warrior's Lorica</body> </action> </if> <if spell="restraint"> <action type="equip" when="precast"> <hands>Rvg. Mufflers +2</hands> </action> </if> <if spell="Mighty Strikes"> <action type="equip" when="precast"> <hands>War. Mufflers +2</hands> </action> </if> <if spell="Blood Rage"> <action type="equip" when="precast"> <body>Rvg. Lorica +2</body> </action> </if> </rules> </spellcast>