Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>Bomb core</ammo>
- <head>Twilight helm</head>
- <neck>Wiglen gorget</neck>
- <lear>Brutal earring</lear>
- <rear>Loquac. earring</rear>
- <body>Twilight mail</body>
- <hands>Magma gauntlets</hands>
- <lring>Jelly ring</lring>
- <rring>Dark ring</rring>
- <back>Shadow Mantle</back>
- <waist>Nierenschutz</waist>
- <legs>Blood Cuisses</legs>
- <feet>Jingang greaves</feet>
- </set>
- <set name="Melee">
- <main>Apocalypse</main>
- <sub>Pole Grip</sub>
- <ammo>Bomb core</ammo>
- <head>Bale Burgeonet +2</head>
- <neck>Bale choker</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Rajas Ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Goading belt</waist>
- <legs>Ace's hose</legs>
- <feet>Ace's leggings</feet>
- </set>
- <set name="MeleeAftermath" BaseSet="Melee">
- <ammo>Bomb core</ammo>
- <head>Bale Burgeonet +2</head>
- <neck>Bale choker</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Rajas Ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Goading belt</waist>
- <legs>Bale Flanchard +2</legs>
- <feet>Jingang greaves</feet>
- </set>
- <set name="Souleater" BaseSet="Melee">
- <ammo>Bomb core</ammo>
- <head>Bale Burgeonet +2</head>
- <neck>Bale choker</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Rajas Ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Goading belt</waist>
- <legs>Ace's hose</legs>
- <feet>Ace's leggings</feet>
- </set>
- <set name="SouleaterAftermath" BaseSet="Melee">
- <ammo>Bomb core</ammo>
- <head>Bale Burgeonet +2</head>
- <neck>Bale choker</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Rajas Ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Swift belt</waist>
- <legs>Bale Flanchard +2</legs>
- <feet>Jingang greaves</feet>
- </set>
- <set name="WSAres" BaseSet="Melee">
- <ammo>Bomb core</ammo>
- <head>Twilight helm</head>
- <neck>Shadow Gorget</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Twilight mail</body>
- <hands>Perle Moufles</hands>
- <lring>Spiral ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Shadow belt</waist>
- <legs>Bale Flanchard +2</legs>
- <feet>Bale sollerets +2</feet>
- </set>
- <set name="WSHecatomb" BaseSet="Melee">
- <ammo>Bomb core</ammo>
- <head>Twilight helm</head>
- <neck>Snow gorget</neck>
- <lear>Brutal earring</lear>
- <rear>Bale earring</rear>
- <body>Grim cuirass +1</body>
- <hands>Heafoc mitts</hands>
- <lring>Rajas Ring</lring>
- <rring>Mars's ring</rring>
- <back>Atheling mantle</back>
- <waist>Snow belt</waist>
- <legs>Bale Flanchard +2</legs>
- <feet>Bale sollerets +2</feet>
- </set>
- <set name="EnfeeblingMagic">
- <head>Bale Burgeonet +2</head>
- <neck>Enfeebling Torque</neck>
- <lear>Enfeebling earring</lear>
- <rear>Loquacious Earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Omega Ring</lring>
- <rring>Blitz Ring</rring>
- <back>Atheling mantle</back>
- <waist>Goading belt</waist>
- <legs>Homam Cosciales</legs>
- <feet>Abyss sollerets</feet>
- </set>
- <set name="DarkMagic">
- <head>Chaos Burgeonet +1</head>
- <neck>Prudence Torque</neck>
- <lear>Hirudinea earring</lear>
- <rear>Loquacious Earring</rear>
- <body>Bale cuirass +2</body>
- <hands>Bale gauntlets +2</hands>
- <lring>Omega Ring</lring>
- <rring>Blitz Ring</rring>
- <back>Merciful Cape</back>
- <waist>Goading belt</waist>
- <legs>Bale Flanchard +2</legs>
- <feet>Bale sollerets +2</feet>
- </set>
- <set name="Stun" BaseSet="DarkMagic">
- <head lock>Bale burgeonet +2</head>
- <rear lock>Loquacious Earring</rear>
- <hands lock>Bale gauntlets +2</hands>
- <lring lock>Omega Ring</lring>
- <rring lock>Blitz Ring</rring>
- <back lock>Merciful Cape</back>
- <waist lock>Goading belt</waist>
- <legs lock>Homam Cosciales</legs>
- <feet lock>Ace's leggings</feet>
- </set>
- <set name="DreadSpikes">
- <ammo>Egoist's tathlum</ammo>
- <head lock>Walahra Turban</head>
- <neck lock>Ritter Gorget</neck>
- <lear lock>Bloodgem earring</lear>
- <rear lock>Loquacious earring</rear>
- <body lock>Bale cuirass +2</body>
- <hands lock>Bale gauntlets +2</hands>
- <lring lock>Bomb Queen Ring</lring>
- <rring lock>Meridian ring</rring>
- <back lock>Shadow Mantle</back>
- <waist lock>Goading belt</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="<t>">
- <action type="ChangeTarget" target="<me>" />
- </if>
- <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
- <if SpellTarget="<t>" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
- <action type="changetarget" target="<me>" />
- </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] <%target> off in 45sec</action>
- <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] <%target> Wearing off in 15sec</action>
- <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] <%target> 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] <%target> Wearing off in 30sec</action>
- <action type="command" when="aftercast">wait 45;input /echo [$sleepid:%spell] <%target> Wearing off in 15sec;spellcast var dec sleepid;</action>
- <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] <%target> Wearing off in 5sec;spellcast var dec sleepid;</action>
- </elseif>
- </if>
- </rules>
- </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment