Code
<if buffActive="Hasso"> <equip when="idle|engaged|resting|precast|midcast|aftercast"> <legs>Unkai Haidate +2</legs> </equip> </if> <if BuffActive="Seigan"> <equip when="idle|engaged|resting|precast|midcast| aftercast"> <head>Unkai Kabuto +2</head> <legs>phorcys Dirs</legs> </equip>
the full code i have is
Code
<!-- This Spellcast file is for Samurai to cover as much as possible with the gear
sets i have -->
<!-- these sets are currently built around a 2 Great Katana delay's, these delay's
are:- -->
<!-- * 437 Delay - Masamune/Amanomurakumo/Ame-no-ohabari
-->
<!-- * 450 Delay - Mythic/Other 450 delay weapons
-->
<!-- * 464 Delay - Kantonotati (TP Bonus +100)
-->
<!-- * 480 Delay - Kikugosaku/Ishikirimaru
-->
<!-- Credits go to: Lightvision as the author of this file
-->
<!-- PLEASE NOTE: * addtochat plugin is required for this XML to work properly
-->
<!-- * Sets do not use Bullwhip belt as i perfer not to use it, if you
prefer to -->
<!-- use Bullwhip Belt then Find "Phasmida" and Replace with "Bullwhip"
-->
<spellcast xmlns:xi = "http://www/w3.org/2001/XInclude">
<config RequireVersion="2.3" Debug="true" HideErrors="false"
ShowGearSwaps="false" />
<sets>
<group default="yes" name="Main TP">
<!-- This is the base TP/Idle gear set -->
<!-- to be used with all delay weapons -->
<set name="Main" load="yes">
<sub>Pole Grip</sub>
<ammo>Black Tathlum</ammo>
<head>Unkai Kabuto +2</head>
<neck>Ganesha's mala</neck>
<lear>Brutal Earring</lear>
<rear>Bushinomimi</rear>
<body>ace's mail</body>
<hands>ogier's Gauntlets</hands>
<lring>Rajas Ring</lring>
<rring>Tyrant's Ring</rring>
<waist>Phasmida Belt</waist>
<legs>Unkai Haidate +2</legs>
<feet>Ace's Leggings</feet>
</set>
<!-- These items are used for TP set if you have your -->
<!-- specified 437 delay Weapon equipped -->
<set name="437_Norm" Baseset="Main">
<sub>Pole Grip</sub>
<back>Misuuchi Kappa</back>
<feet>Ace's Leggings</feet>
</set>
<set name="MDT">
<ammo>Demonry Stone</ammo>
<head>Ogier's Helm</head>
<neck>Twilight Torque</neck>
<lear>Merman's Earring</lear>
<rear>Merman's Earring</rear>
<body>Mekira Meikogai</body>
<lring>Minerva's Ring</lring>
<rring>Shadow Ring</rring>
<back>Lamia Mantle +1</back>
<waist>Resolute Belt</waist>
<feet>Ogier's Leggings</feet>
</set>
<!--Physical damage-->
<set name="PDT">
<head>Ogier's Helm</head>
<neck>wiglen gorget</neck>
<body>Mekira Meikogai</body>
<lring>Dark Ring</lring>
<rring>Dark Ring</rring>
<back>Shadow Mantle</back>
<legs>Ogier's Breeches</legs>
<feet>Phorcys Schuhs</feet>
</set>
<!-- This is the base Weapon Skill gear set -->
<!-- to be used with all Weapon skills -->
<set name="WS">
<ammo>Thew Bomblet</ammo>
<head>Karieyh morion</head>
<lear>Brutal Earring</lear>
<rear>Bushinomimi</rear>
<body>Karieyh Haubert</body>
<hands>Mustela Gloves</hands>
<lring>Rajas Ring</lring>
<rring>Spiral Ring</rring>
<back>Atheling Mantle</back>
<legs>Karieyh Brayettes</legs>
<feet>Karieyh Sollerets</feet>
<waist>windbuffet belt</waist>
<back>atheling Mantle</back>
</set>
<!-- These items are used for Shoha and Rana with the set
named "WS" -->
<!-- this was made as a set since it Shoha and Rani are multi
hit -->
<!-- and both share the same elemental Gorget and Belt
-->
<set name = "Multihit" baseset="WS">
<neck>Ganesha"s mala</neck>
<hands>Mustela Gloves</hands>
<waist>windbuffet belt</waist>
</set>
<!-- These items are used for Fudo with the set named "WS" -->
<set name="FudoKaiten" baseset="WS">
<neck>Ganesha"s mala</neck>
<hands>Mustela Gloves</hands>
<waist>windbuffet belt</waist>
</set>
<!-- These items are used elemental WSs with the set named
"WS" -->
<!-- elemental gorgets and belts are started in the rules -->
<set name="ElementWS" Baseset="WS">
<neck>Stoicheion Medal</neck>
<lear>Moldavite Earring</lear>
<rear>Hecate's Earring</rear>
<lring>Demon's Ring</lring>
</set>
</group>
</sets>
<!--Variables-->
<variables>
<var name="empyrean">Masamune</var>
<var name="relic">Amanomurakumo</var>
<var name="437delay">Ame-no-ohabari</var>
<var name="450delay">Kogarasumaru</var>
<var name="464delay">Kantonotachi</var>
<var name="480delay">Kikugosaku</var>
</variables>
<rules>
<!-- Rules to stop parsing if you can't perform an action-->
<if BuffActive="Sleep|Petrification|Stun|Terror">
<return/>
</if>
<elseif Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence">
<return/>
</elseif>
<elseif Type="Weaponskill|JobAbility|PetCommand" BuffActive="Amnesia">
<cancelspell/>
<return/>
</elseif>
<!-- START OF ENGAGED RULES -->
<if status="engaged">
<!-- Masamune/Amanomurakumo -->
<if EquipMain="$empyrean|437delay">
<action type="equip" when="engaged|aftercast"
set="437_Norm" />
</if>
<elseif EquipMain="$relic">
<if BuffActive="Aftermath">
<action type="equip" when="engaged|aftercast"
set="Relic_AM" />
</if>
<else>
<action type="equip" when="engaged|aftercast"
set="437_Norm" />
</else>
</elseif>
<!-- Mythic/Other 450 Delay weapons -->
<elseif EquipMain="$450delay">
<action type="equip" when="engaged|aftercast"
set="450" />
</elseif>
<!-- Kantonotachi -->
<elseif EquipMain="$464delay">
<action type="equip" when="engaged|aftercast"
set="464" />
</elseif>
<!-- Kantonotachi -->
<elseif EquipMain="$480delay">
<action type="equip" when="engaged|aftercast"
set="480" />
</elseif>
</if>
<!-- END OF ENGAGED RULES -->
<!-- START OF IDLE RULES -->
<if status="idle">
<!-- Masamune/Amanomurakumo Idle Set -->
<if EquipMain="$empyrean|$relic|437delay">
<equip when="idle|aftercast" set="437_Norm">
<feet>Danzo Sune-ate</feet>
<neck>Wiglen gorget</neck>
<rring>Paguroidea Ring</rring>
<lring>Sheltered ring</lring>
<body>Kirin's Osode</body>
<head>twilight Helm</head>
</equip>
</if>
<!-- 450 Delay Weapons Idle Set -->
<elseif EquipMain="$450delay">
<equip when="idle|aftercast" set="450">
<feet>Danzo Sune-ate</feet>
</equip>
</elseif>
<!-- 464 Delay Weapons Idle Set -->
<elseif EquipMain="$464delay">
<equip when="idle|aftercast" set="464">
<feet>Danzo Sune-ate</feet>
</equip>
</elseif>
<!-- 480 Delay weapons Idle Set -->
<elseif EquipMain="$464delay">
<equip when="idle|aftercast" set="480">
<feet>Danzo Sune-ate</feet>
</equip>
</elseif>
</if>
<!-- END OF IDLE RULES -->
<!-- START OF WEAPONSKILL RULES -->
<if type="WeaponSkill">
<!-- Stops weapon skill from happening if the target is
greater than 5 yalms away -->
<!-- This will prevent you loosing TP when you are "out of
range" from the target -->
<if SpellTargetDistanceGT="5">
<addtochat color="121">Target is too far away.
Stopping Weapon Skill.</addtochat>
<cancelspell />
<return />
</if>
<!-- Shoha and Rana WS Rule -->
<if spell="*Shoha|*Rana">
<action type="equip" when="precast" set="Multihit" />
</if>
<!-- Since the rest are single hit WSs (except Jinpu) they
require a change -->
<!-- to the hands slot, if Sekkanoki is up then Unkai Kote +2
are equipt -->
<!-- If Sekkanoki is not up then Heafoc Mitts are equipt -->
<if BuffActive="Sekkanoki">
<if spell="*Fudo|*Kaiten">
<equip when="precast" set="FudoKaiten">
<hands>Unkai Kote +2</hands>
</equip>
</if>
<if spell="*Gekko|*Hobaku|*Yukikaze">
<equip when="precast" set="WS">
<neck>Snow Gorget</neck>
<hands>Unkai Kote +2</hands>
<waist>Snow Belt</waist>
</equip>
</if>
<if spell="*Kasha|*Enpi|*Goten">
<equip when="precast" set="WS">
<neck>Light Gorget</neck>
<hands>Unkai Kote +2</hands>
<waist>Light Belt</waist>
</equip>
</if>
<if spell="*Koki">
<equip when="precast" set="ElementWS">
<hands>Unkai Kote +2</hands>
<waist>Light Belt</waist>
</equip>
</if>
<if spell="*Jinpu">
<equip when="precast" set="ElementWS">
<hands>Unkai Kote +2</hands>
<waist>Shadow Belt</waist>
</equip>
</if>
<if spell="*Ageha">
<equip when="precast" set="WS">
<head>Twilight Helm</head>
<neck>Shadow Gorget</neck>
<body>Twilight Mail</body>
<hands>Unkai Kote +2</hands>
<waist>Shadow Belt</waist>
</equip>
</if>
</if>
<elseif notbuffactive="Sekkanoki">
<if spell="*Fudo|*Kaiten">
<action type="equip" when="precast"
set="FudoKaiten" />
</if>
<if spell="*Kaiten">
<action type="equip" when="precast"
set="FudoKaiten" />
<action type="equip" when="aftercast"
set="Relic_AM" />
</if>
<if spell="*Gekko|*Hobaku|*Yukikaze">
<equip when="precast" set="WS">
<neck>Snow Gorget</neck>
<hands>Heafoc Mitts</hands>
<waist>Shadow Belt</waist>
</equip>
</if>
<if spell="*Kasha|*Enpi|*Goten">
<equip when="precast" set="WS">
<neck>Light Gorget</neck>
<hands>Heafoc Mitts</hands>
<waist>Light Belt</waist>
</equip>
</if>
<if spell="*Koki">
<equip when="precast" set="ElementWS">
<hands>Unkai Kote +2</hands>
<waist>Light Belt</waist>
</equip>
</if>
<if spell="*Jinpu">
<equip when="precast" set="ElementWS">
<hands>Unkai Kote +2</hands>
<waist>Shadow Belt</waist>
</equip>
</if>
</elseif>
</if>
<!-- END OF WEAPONSKILL RULES -->
<!-- START OF ABILITY RULES -->
<if spell="Meditate">
<equip when="precast">
<head>Myochin Kabuto</head>
<hands>Sao. Kote +2</hands>
</equip>
</if>
<if spell="Warding Circle">
<equip when="precast">
<head>Myochin Kabuto</head>
</equip>
</if>
<if spell="Sekkanoki">
<equip when="precast">
<hands>Unkai Kote +2</hands>
</equip>
</if>
<if spell="Sengikori">
<equip when="precast">
<hands>Unkai Sune-ate +2</hands>
</equip>
</if>
<elseif spell="Spectral Jig">
<command when="PreCast">cancel 71</command>
</elseif>
<!-- END OF ABILITY RULES -->
<!-- Rules for when to equip twilight set at all times -->
<if mode="OR" Target="Arch Dynamis Lord" HPPLT="40" BuffActive="Doom|
Weakness">
<if NotBuffActive="Perfect Defence">
<equip when="all">
<head>Twilight Helm</head>
<body>Twilight Mail</body>
</equip>
</if>
<!-- Hasso/siegan rules -->
<if buffActive="Hasso">
<equip when="idle|engaged|resting|precast|
midcast|aftercast">
<legs>Unkai Haidate +2</legs>
</equip>
</if>
<if BuffActive="Seigan">
<equip when="idle|engaged|resting|precast|midcast|
aftercast">
<head>Unkai Kabuto +2</head>
<legs>phorcys Dirs</legs>
</equip>
<return/>
</if>
</if>
</rules>
</spellcast>
i put the rules in at line 403, maybe need to relocate it?
