Mynameisgonz

RDM

Dec 16th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.56 KB | None | 0 0
  1. <?xml version="1.0" ?> 
  2. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  3.     <config RequireVersion="2.3" Debug="False" HideErrors="False" ShowGearSwaps="False" QuickCommands="True" ShowSpellInfo="False" />
  4.     <sets>
  5.         <group default="yes" name="RDM">
  6.             <set name="Idle">
  7.                 <main>Iridal Staff</main>
  8.                 <sub>Macero Grip</sub>
  9.                 <ammo>Hedgehog Bomb</ammo>
  10.                 <head>Estoqueur's Chappel</head>
  11.                 <neck>Enfeebling Torque</neck>             
  12.                 <rear>Loquacious Earring</rear>
  13.                 <lear>Aredan Earring</lear>
  14.                 <body>Estoqueur's Sayon</body>
  15.                 <hands>Estoqueur's Gantherots</hands>
  16.                 <rring>Tamas Ring</rring>
  17.                 <lring>Prolix Ring</lring>
  18.                 <back>Chela Cape</back>
  19.                 <waist>Hierarch Belt</waist>
  20.                 <legs>Spolia Trews</legs>
  21.                 <feet>Chelona Boots</feet>
  22.             </set>
  23.             <set name="ConserveMP" baseset="Idle">
  24.                 <main>Iridal Staff</main>
  25.                 <sub>Wizzan Grip</sub>
  26.                 <head>Laurel Wreath</head>
  27.                 <ammo>Clarus Stone</ammo>
  28.                 <lear>Gifted Earring</lear>
  29.                 <rear>Magnetic Earring</rear>
  30.                 <body>Cobra Robe</body>
  31.                 <hands>Cobra Gloves</hands>
  32.                 <back>Vita Cape</back>
  33.                 <waist>Austerity Belt</waist>
  34.                 <legs>Cobra Trews</legs>
  35.                 <feet>Cobra Crackows</feet>
  36.             </set>
  37.             <set name="Resting" baseset="Idle">
  38.                 <main>Iridal Staff</main>
  39.                 <sub>Ariesian Grip</sub>
  40.                 <ammo>Clarus Stone</ammo>
  41.                 <head>Cobra Hat</head>
  42.                 <neck>Eidolon Pendant</neck>
  43.                 <lear>Antivenom Earring</lear>
  44.                 <rear>Magnetic Earring</rear>
  45.                 <body>Errant Houppelande</body>
  46.                 <hands>Genie Gages</hands>
  47.                 <lring>Star Ring</lring>
  48.                 <rring>Star Ring</rring>
  49.                 <back>Vita Cape</back>
  50.                 <waist>Austerity Belt</waist>
  51.                 <legs>Nisse Slacks</legs>
  52.                 <feet>Chelona Boots</feet>
  53.             </set>
  54.             <set name="FastCast" baseset="Idle"></set>
  55.             <set name="CureFastCast" baseset="FastCast"></set>
  56.             <set name="Healing" baseset="Idle"></set>
  57.             <set name="Enfeebling" baseset="Idle"></set>
  58.             <set name="Enhancing" baseset="Enfeebling"></set>
  59.             <set name="Divine" baseset="Enfeebling"></set>
  60.             <set name="Divine" baseset="Elemental"></set>
  61.             <set name="Divine" baseset="Dark"></set>
  62.         </group>   
  63.     </sets>
  64. <rules>
  65.         <if spell="Escape|Warp|Warp II|Retrace|Recall-*|Teleport-*">
  66.             <return />
  67.         </if>
  68.         <if status="idle">
  69.             <equip when="idle|aftercast" set="Idle" />
  70.         </if>
  71.         <elseif notstatus="engaged">
  72.             <equip when="idle|aftercast" set="Idle" />
  73.             <equip when="resting" set="Resting" />
  74.         </elseif>
  75.         <if skill="HealingMagic">
  76.             <equip when="precast" set="CureFastCast" />
  77.             <action type="MidCastDelay" delay="0.5" />
  78.             <equip when="midcast" set="ConserveMP" />
  79.             <if spell="Cure*|Curaga*|Cura*">
  80.                 <equip when="midcast" set="Healing" />
  81.                 <if MPLT="60">
  82.                     <!-- Show Spell Info for cures only when low on MP -->
  83.                     <ShowSpellInfo />
  84.                 </if>
  85.                 <if NotBuffActive="Light Arts">
  86.                     <if Spell="Cure VI" MPLT="227">
  87.                         <changespell Spell="Cure V" />
  88.                     </if>
  89.                     <if Spell="Cure V" MPLT="135">
  90.                         <changespell Spell="Cure IV" />
  91.                     </if>
  92.                     <if Spell="Cure IV" MPLT="88">
  93.                         <changespell Spell="Cure III" />
  94.                     </if>
  95.                     <if Spell="Cure III" MPLT="46">
  96.                         <changespell Spell="Cure II" />
  97.                     </if>
  98.                     <if Spell="Cure II" MPLT="24">
  99.                         <CancelSpell />
  100.                         <AddToChat color="56">[ERROR] Not enough MP To cast Cure! ~</AddToChat>
  101.                     </if>
  102.                 </if>
  103.                 <else> <!-- Light Arts is Active - -10% MP Cost -->
  104.                     <if NotBuffActive="Penury">
  105.                         <if Spell="Cure VI" MPLT="205">
  106.                             <changespell Spell="Cure V" />
  107.                         </if>
  108.                         <if Spell="Cure V" MPLT="122">
  109.                             <changespell Spell="Cure IV" />
  110.                         </if>
  111.                         <if Spell="Cure IV" MPLT="80">
  112.                             <changespell Spell="Cure III" />
  113.                         </if>
  114.                         <if Spell="Cure III" MPLT="42">
  115.                             <changespell Spell="Cure II" />
  116.                         </if>
  117.                         <if Spell="Cure II" MPLT="22">
  118.                             <CancelSpell />
  119.                             <AddToChat color="56">[ERROR] Not enough MP To cast Cure! ~</AddToChat>
  120.                         </if>
  121.                     </if>
  122.                     <else> <!-- Penury is Active - -50% MP Cost -->
  123.                         <if Spell="Cure VI" MPLT="114">
  124.                             <changespell Spell="Cure V" />
  125.                         </if>
  126.                         <if Spell="Cure V" MPLT="68">
  127.                             <changespell Spell="Cure IV" />
  128.                         </if>
  129.                         <if Spell="Cure IV" MPLT="44">
  130.                             <changespell Spell="Cure III" />
  131.                         </if>
  132.                         <if Spell="Cure III" MPLT="23">
  133.                             <changespell Spell="Cure II" />
  134.                         </if>
  135.                         <if Spell="Cure II" MPLT="12">
  136.                             <CancelSpell />
  137.                             <AddToChat color="56">[ERROR] Not enough MP To cast Cure! ~</AddToChat>
  138.                         </if>
  139.                     </else>
  140.                 </else>
  141.             </if>
  142.             <elseif spell="*na">
  143.                 <equip when="midcast" set="ConserveMP" />
  144.             </elseif>
  145.         </if>
  146.         <elseif skill="EnhancingMagic">
  147.             <equip when="precast" set="FastCast" />
  148.             <action type="MidCastDelay" delay="0.2" />
  149.             <equip when="midcast" set="Enhancing" />
  150.             <if spell="Regen*">
  151.                 <if NotBuffActive="Light Arts">
  152.                     <if spell="Regen IV" MPLT="82">
  153.                         <changespell Spell="Regen III" />
  154.                     </if>
  155.                     <if spell="Regen III" MPLT="64">
  156.                         <changespell Spell="Regen II" />
  157.                     </if>
  158.                     <if spell="Regen II" MPLT="36">
  159.                         <changespell Spell="Regen" />
  160.                     </if>
  161.                     <if spell="Regen" MPLT="15">
  162.                         <CancelSpell />
  163.                         <AddToChat color="56">[ERROR] Not enough MP To cast Regen! ~</AddToChat>
  164.                     </if>
  165.                 </if>
  166.                 <else> <!-- Light Arts is Active - -10% MP Cost -->
  167.                     <if NotBuffActive="Penury">
  168.                         <if spell="Regen IV" MPLT="74">
  169.                             <changespell Spell="Regen III" />
  170.                         </if>
  171.                         <if spell="Regen III" MPLT="58">
  172.                             <changespell Spell="Regen II" />
  173.                         </if>
  174.                         <if spell="Regen II" MPLT="33">
  175.                             <changespell Spell="Regen" />
  176.                         </if>
  177.                         <if spell="Regen" MPLT="14">
  178.                             <CancelSpell />
  179.                             <AddToChat color="56">[ERROR] Not enough MP To cast Regen! ~</AddToChat>
  180.                         </if>
  181.                     </if>
  182.                     <else> <!-- Penury is Active - -50% MP Cost -->
  183.                         <if spell="Regen IV" MPLT="41">
  184.                             <changespell Spell="Regen III" />
  185.                         </if>
  186.                         <if spell="Regen III" MPLT="32">
  187.                             <changespell Spell="Regen II" />
  188.                         </if>
  189.                         <if spell="Regen II" MPLT="18">
  190.                             <changespell Spell="Regen" />
  191.                         </if>
  192.                         <if spell="Regen" MPLT="8">
  193.                             <CancelSpell />
  194.                             <AddToChat color="56">[ERROR] Not enough MP To cast Regen! ~</AddToChat>
  195.                         </if>
  196.                     </else>
  197.                 </else>
  198.             </if>
  199.             <elseif spell="Erase">
  200.                 <equip when="precast" set="FastCast" />
  201.                 <equip when="midcast" set="ConserveMP" />
  202.             </elseif>
  203.             <elseif spell="Protect|Protect II|Protect III|Protect IV|Protectra I|Protectra II|Protectra III|Protectra IV|Protectra V|Shell I|Shell II|Shell III|Shell IV|Shell V|Shellra I|Shellra II|Shellra III|Shellra IV|Shellra V|Haste|Refresh|Blink|Aquaveil|*storm|Tractor|Raise*|Arise">
  204.                 <equip when="midcast" set="ConserveMP" />
  205.             </elseif>
  206.         </elseif>
  207.         <elseif skill="DivineMagic">
  208.             <equip when="precast" set="FastCast" />
  209.             <action type="MidCastDelay" delay="0.3" />
  210.             <equip when="midcast" set="Divine" />
  211.             <if spell="Repose">
  212.                 <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] %Target Wearing off in 45s</command>
  213.                 <command when="aftercast">wait 75;input /echo [$sleepid:%spell] %TargetWearing off in 15s</command>
  214.                 <command when="aftercast">wait 85;input /echo [$sleepid:%spell] %TargetWearing off in 5s;spellcast var dec sleepid;</command>
  215.             </if>
  216.         </elseif>
  217.         <elseif skill="EnfeeblingMagic">
  218.             <equip when="precast" set="FastCast" />
  219.             <equip when="midcast" set="Enfeebling" />
  220.             <!-- Timers for when sleep is wearing off. -->
  221.             <if spell="Sleep II|Sleepga II">
  222.                 <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] %target Wearing off in 45s</command>
  223.                 <command when="aftercast">wait 75;input /echo [$sleepid:%spell] %target Wearing off in 15s</command>
  224.                 <command when="aftercast">wait 85;input /echo [$sleepid:%spell] %target Wearing off in 5s;spellcast var dec sleepid;</command>
  225.             </if>
  226.             <elseif spell="Sleep|Sleepga">
  227.                 <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] %target Wearing off in 15s</command>
  228.                 <command when="aftercast">wait 55;input /echo [$sleepid:%spell] %target Wearing off in 5s;spellcast var dec sleepid;</command>
  229.             </elseif>
  230.         </elseif>
  231.         <elseif skill="DarkMagic">
  232.             <equip when="precast" set="FastCast" />
  233.             <if spell="Stun">
  234.                 <!-- These codes just print Stun in auto translate into chat. -->
  235.                 <command>input /p \xFD\x07\x02\x12\xFC\xFD >> %SpellTarget</command>
  236.             </if>
  237.         </elseif>
  238.         <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  239.         <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  240.             <changetarget target="<stpc>" />
  241.         </if>
  242.         <if SpellTargetType="NONE" ValidTarget="*Self*">
  243.             <changetarget target="<stpc>" />
  244.         </if>
  245.         <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  246.         <if spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  247.             <command when="midcast">cancel 71</command>
  248.             <midcastdelay delay="2.2" />
  249.         </if>
  250.         <elseif spell="Stoneskin" BuffActive="Stoneskin">
  251.             <command when="midcast">cancel 37</command>
  252.             <midcastdelay delay="3.8" />
  253.         </elseif>
  254.         <elseif spell="Spectral Jig">
  255.             <command when="precast">cancel 71</command>
  256.         </elseif>
  257.         <if mode="and" skill="*Magic|Ninjutsu" buffactive="Silence">
  258.         <cancelspell />
  259.             <command>input /item "Echo Drops" Crystalchan</command>
  260.         </if>
  261.     </rules>
  262. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment