Narse's Relic Dark Knight

<?xml version="1.0" ?>
 
<!-- This template requires the use of of AutoExec in order to trigger a gear swap to standard TP gear when Aftermath wears off while engaged, as I use two different gear sets depending upon if the buff is active or not. -->
 
<spellcast>
    <config RequireVersion="2.18" />
    <variables>
        <!-- Sleep timers, announces to echo when sleep is wearing off. Set to 0 to not use. -->
        <var name="SleepTimers">1</var>
        <var name="DarkObi">1</var>
    </variables>
    <sets>
        <group name="Main" default="yes">
            <set name="Standard">
                <main>Apocalypse</main>
                <sub>Pole Grip</sub>
                <ammo>Fire Bomblet</ammo>
                <head>Crimson Mask</head>
                <neck>Orochi Nodowa</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Valkyrie's Breastplate</body>
                <hands>Iron Ram Dastanas</hands>
                <lring>Shadow Ring</lring>
                <rring>Jelly Ring</rring>
                <back>Shadow Mantle</back>
                <waist>Resolute Belt</waist>
                <legs>Crimson Cuisses</legs>
                <feet>Iron Ram Greaves</feet>
            </set>
            <set name="Melee">
                <main>Apocalypse</main>
                <sub>Pole Grip</sub>
                <ammo>Fire Bomblet</ammo>
                <head>Ace's Helm</head>
                <neck>Justice Torque</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Adaman Hauberk</body>
                <hands>Dusk Gloves +1</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Speed Belt</waist>
                <legs>Homam Cosciales</legs>
                <feet>Homam Gambieras</feet>
            </set>
            <set name="MeleeAftermath" BaseSet="Melee">
                <ammo>Fire Bomblet</ammo>
                <head>Ace's Helm</head>
                <neck>Justice Torque</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Adaman Hauberk</body>
                <hands>Dusk Gloves +1</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Speed Belt</waist>
                <legs>Ares's Flanchard</legs>
                <feet>Aurum Sabatons</feet>
            </set>
            <set name="Souleater" BaseSet="Melee">
                <ammo>Fire Bomblet</ammo>
                <head>Ace's Helm</head>
                <neck>Justice Torque</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Gloom Breastplate</body>
                <hands>Dusk Gloves +1</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Speed Belt</waist>
                <legs>Homam Cosciales</legs>
                <feet>Homam Gambieras</feet>
            </set>            
            <set name="SouleaterAftermath" BaseSet="Melee">
                <ammo>Fire Bomblet</ammo>
                <head>Chaos Burgeonet +1</head>
                <neck>Justice Torque</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Adaman Hauberk</body>
                <hands>Dusk Gloves +1</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Speed Belt</waist>
                <legs>Homam Cosciales</legs>
                <feet>Homam Gambieras</feet>
            </set>            
            <set name="WSAres" BaseSet="Melee">
                <ammo>Fire Bomblet</ammo>
                <head>Ares's Mask</head>
                <neck>Soil Gorget</neck>
                <lear>Ethereal Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Ares's Cuirass</body>
                <hands>Ares's Gauntlets</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Warwolf Belt</waist>
                <legs>Ares's Flanchard</legs>
                <feet>Ares's Sollerets</feet>
            </set>
            <set name="WSHecatomb" BaseSet="Melee">                    
                <ammo>Fire Bomblet</ammo>
                <head>Hecatomb Cap +1</head>
                <neck>Justice Torque</neck>
                <lear>Waetoto's Earring</lear>
                <rear>Brutal Earring</rear>
                <body>Adaman Hauberk</body>
                <hands>Hecatomb Mittens +1</hands>
                <lring>Rajas Ring</lring>
                <rring>Mars's Ring</rring>
                <back>Forager's Mantle</back>
                <waist>Warwolf Belt</waist>
                <legs>Ares's Flanchard</legs>
                <feet>Hecatomb Leggings +1</feet>
            </set>
            <set name="EnfeeblingMagic">
                <head>Crimson Mask</head>
                <neck>Enfeebling Torque</neck>
                <lear>Enfeebling Earring</lear>
                <rear>Loquacious Earring</rear>
                <<body>Chaos Cuirass</body>
                <hands>Dusk Gloves +1</hands>
                <lring>Blitz Ring</lring>
                <rring>Omega Ring</rring>
                <back>Abyss Cape</back>
                <waist>Speed Belt</waist>
                <legs>Homam Cosciales</legs>
                <feet>Abyss Sollerets</feet>                
            </set>
            <set name="DarkMagic">
                <head>Chaos Burgeonet +1</head>
                <neck>Dark Torque</neck>
                <lear>Dark Earring</lear>
                <rear>Loquacious Earring</rear>
                <body>Ares's Cuirass</body>
                <hands>Crimson Finger Gauntlets</hands>
                <lring>Blitz Ring</lring>
                <rring>Omega Ring</rring>
                <back>Abyss Cape</back>
                <waist>Speed Belt</waist>
                <legs>Abyss Flanchard +1</legs>
                <feet>Homam Gambieras</feet>
            </set>
            <set name="Stun" BaseSet="DarkMagic">
                <head lock>Walahra Turban</head>
                <rear lock>Loquacious Earring</rear>
                <hands lock>Dusk Gloves +1</hands>
                <lring lock>Blitz Ring</lring>
                <rring lock>Omega Ring</rring>
                <back lock>Abyss Cape</back>
                <waist lock>Speed Belt</waist>
                <legs lock>Homam Cosciales</legs>
                <feet lock>Homam Gambieras</feet>                
            </set>
            <set name="DreadSpikes">
                <ammo>Happy Egg</ammo>
                <head lock>Walahra Turban</head>
                <neck lock>Ritter Gorget</neck>
                <lear lock>Morukaka's Earring</lear>
                <rear lock>Cassie Earring</rear>
                <body lock>Ares's Cuirass</body>
                <hands lock>Dusk Gloves +1</hands>
                <lring lock>Bloodbead Ring</lring>
                <rring lock>Bomb Queen Ring</rring>
                <back lock>Gigant Mantle</back>
                <waist lock>Steppe Sash</waist>
                <legs lock>Homam Cosciales</legs>
                <feet lock>Homam Gambieras</feet>
            </set>
        </group>
    </sets>
    <rules>
        <!-- utility: if you have no target currently, and casting a spell that can be cast on self, then cast on self (buffs). -->
        <if ValidTargets="*Self*" TargetType="None" SpellTarget="&lt;t&gt;">
            <action type="ChangeTarget" target="&lt;me&gt;" />
        </if>
        <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
        <if SpellTarget="&lt;t&gt;" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
            <action type="changetarget" target="&lt;me&gt;" />
        </if>    
        <!-- dont parse this file if under level 73... ie capped areas -->
        <if MLVLLT="73"> <action type="return" /> </if>
        <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
        <action type="equip" when="Idle" set="Standard" />
 
        <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="engaged" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="engaged" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="engaged" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="engaged" set="Melee" />
                    </else>
                </else>
        </if>
 
        <rule Spell="Stun">
            <action type="equip" set="Stun" when="precast" />
            <!-- Drop Hasso during Stun to reduce recast time and reapplies Hasso. Requires Cancel plugin. -->
            <!-- Hasso is in a text file as opposed to just a command because it requires an additional 1.5s delay to use the ability, but I want the gear swapped back earlier. -->
                <!-- <if BuffActive="Hasso">
                    <action type="command" when="precast">cancel 353</action>
                    <action type="Command" when="aftercast">exec hasso.txt</action>
                </if> -->
            <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="Melee" />
                    </else>
                </else>
            </if>
            <if status="idle">
                <action type="equip" when="done" set="Standard" />
            </if>
        </rule>
 
        <rule Spell="Dread Spikes">
                <action type="equip" set="DreadSpikes" when="precast" />
                <if mode="AND" TimeGT="5.59" TimeLT="18.00">
                    <action type="equip" when="midcast"><ammo>Fenrir's Stone</ammo></action>
                </if>
                    <!-- <action type="equip" when="aftercast"> -->
            <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="Melee" />
                    </else>
                </else>
            </if>
            <if status="idle">
                <action type="equip" when="done" set="Standard" />
            </if>
        </rule>
 
        <rule Skill="DarkMagic">
            <if mode="AND" spellNOT="Stun" spellNOT="Dread Spikes">
            <action type="equip" set="DarkMagic" when="precast" />
            <if Spell="Absorb-ACC|Absorb-STR|Absorb-DEX|Absorb-VIT|Absorb-AGI|Absorb-INT|Absorb-MND|Absorb-CHR">
                    <action when="midcast" type="command">input /equip Hands "Vicious Mufflers"</action>
            </if>
                <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
                    <if Element="Dark">
                        <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
                    </if>
                </if>
            <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="Melee" />
                    </else>
                </else>
            </if>
            <if status="idle">
                    <action type="equip" when="done" set="Standard" />
            </if>
            </if>
        </rule>
 
        <rule Skill="EnfeeblingMagic">
            <action type="equip" when="precast" Set="EnfeeblingMagic" />
                <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
                    <if Element="Dark">
                        <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
                    </if>
                </if>
            <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="done" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="done" set="Melee" />
                    </else>
                </else>
            </if>
            <if status="idle">
                    <action type="equip" when="done" set="Standard" />
            </if>
        </rule>
 
        <if Spell="Souleater">
            <action type="equip" Set="Souleater" />
        </if>
 
        <rule CommandPrefix="/weaponskill">
            <if Spell="Catastrophe">
                <action type="Equip" when="Precast" set="WSAres" />
                <action when="done" type="command">input /ma "Fire V" Narse</action>
            </if>
            <else>        
                <action type="Equip" when="Precast" set="WSHecatomb" />
                <if BuffActive="Aftermath">
                    <action type="Equip" when="done" set="MeleeAftermath" />
                </if>
                <else>
                    <action type="Equip" when="done" set="Melee" />
                </else>
            </else>
        </rule>
 
<!-- Dummy Spell for AutoExec to fire off in order to switch to melee gear from aftermath melee gear when Aftermath wears off while in combat. -->
 
        <if spell="Water V">
            <if status="engaged">
                <if BuffActive="Souleater">
                    <action type="equip" when="precast" set="Souleater" />
                </if>
                <else>
                    <action type="equip" when="precast" set="Melee" />
                </else>
            </if>
            <action type="cancelspell"/>
            <action type="return"/>
        </if>
 
<!-- Dummy Spell for after Catastrophe, since it will check for the presence of aftermath before weaponskill executes otherwise. -->
 
        <if spell="Fire V">
            <if status="engaged">
                <if BuffActive="Aftermath">
                    <if BuffActive="Souleater">
                        <action type="equip" when="precast" set="SouleaterAftermath" />
                    </if>
                    <else>
                        <action type="equip" when="precast" set="MeleeAftermath" />
                    </else>
                </if>
                <else>
                    <if BuffActive="Souleater">
                        <action type="equip" when="precast" set="Souleater" />
                    </if>
                    <else>
                        <action type="equip" when="precast" set="Melee" />
                    </else>
                </else>
            <action type="cancelspell"/>
            <action type="return"/>
        </if>
 
<!-- Handle Elemental Obi's -->
<!--
    <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
        <if Element="Dark">
            <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
        </if>
    </if>
-->        
<!-- Timers for when sleep is wearing off. -->
 
    <if advanced='"$SleepTimers"="1"'>
        <if Spell="Sleep II">
            <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; off in 45sec</action>
            <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15sec</action>
            <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5sec;spellcast var dec sleepid;</action>
        </if>
        <elseif Spell="Sleep">
            <action type="command" when="aftercast">spellcast var inc sleepid;wait 30;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 30sec</action>
            <action type="command" when="aftercast">wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15sec;spellcast var dec sleepid;</action>
            <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5sec;spellcast var dec sleepid;</action>
        </elseif>
    </if>
 
 
    </rules>
</spellcast>
plugins/spellcast/userxml/drk/narse_drk.txt · Last modified: 2009/08/08 14:00 (external edit)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0