pendulumb

BLM

Jun 23rd, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 19.87 KB | None | 0 0
  1.     <?xml version="1.0" ?>
  2. <!--
  3.    ===================================================
  4.    ||
  5.    ||       Aikar's BLM SpellCast Template
  6.    ||
  7.    || This file is designed to be easily used by others.
  8.    || Simply editing in your own gear and modifying the variables up top
  9.    || should be all that is needed to make use of this file.
  10.    ||
  11.    || Please be sure to configure the variables prior to use.
  12.    ||
  13.    || If you have any questions - Please post on the forums.
  14.    ===================================================
  15.    -->
  16. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  17.     <config
  18.        RequireVersion="2.22"
  19.        />
  20.     <variables>
  21.         <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
  22.         <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
  23.         <var name="SleepTimers">1</var>
  24.         <!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
  25.         <var name="BLMAF2Pants">1</var>
  26.         <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
  27.         <var name="Ring">1</var>
  28.         <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
  29.         <var name="UggPendant">1</var>
  30.         <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
  31.         <var name="RDMRingHP">703</var>
  32.         <var name="WHMRingHP">620</var>
  33.         <var name="NINRingHP">620</var>
  34.         <!-- Elemental Grips, set to 1 for each you have -->
  35.         <var name="LightGrip">0</var>
  36.         <var name="DarkGrip">0</var>
  37.         <var name="ThunderGrip">0</var>
  38.         <var name="IceGrip">0</var>
  39.         <var name="FireGrip">0</var>
  40.         <var name="WindGrip">0</var>
  41.         <var name="WaterGrip">0</var>
  42.         <var name="EarthGrip">0</var>
  43.         <!-- Elemental Staffs, input what staff to use for each element here -->
  44.         <var name="IceStaff">Varuna's Staff +2</var>
  45.         <var name="DarkStaff">Pluto's Staff</var>
  46.         <var name="ThunderStaff">Indra's Staff +2</var>
  47.         <var name="WindStaff">Auster's Staff</var>
  48.         <var name="FireStaff">Vulcan's Staff</var>
  49.         <var name="EarthStaff">Terra's Staff</var>
  50.         <var name="LightStaff">Surya's Staff +2</var>
  51.         <var name="WaterStaff">Neptune's Staff</var>
  52.         <!-- Elemental Obi's, set to 1 for the ones you have. -->
  53.         <var name="DarkObi">1</var>
  54.         <var name="LightObi">1</var>
  55.         <var name="ThunderObi">1</var>
  56.         <var name="IceObi">1</var>
  57.         <var name="FireObi">0</var>
  58.         <var name="WindObi">0</var>
  59.         <var name="WaterObi">0</var>
  60.         <var name="EarthObi">0</var>
  61.     </variables>
  62.     <sets>
  63.         <group name="Main" default="yes">
  64.             <set name="Standard">
  65.                 <main>$EarthStaff</main>
  66.                 <sub>Bugard Strap +1</sub>
  67.                 <ammo>Witchstone</ammo>
  68.                 <head>Igqira Tiara</head>
  69.                 <neck>Twilight Torque</neck>
  70.                 <rear>Colossus's Earring</rear>
  71.                 <lear>Static Earring</lear>
  72.                 <body>Goetia Coat +2</body>
  73.                 <hands>Serpentes Cuffs</hands>
  74.                 <lring>Jelly Ring</lring>
  75.                 <rring>Dark Ring</rring>
  76.                 <back>Umbra Cape</back>
  77.                 <waist>Hierarch Belt</waist>
  78.                 <legs>Goetia Chausses +2</legs>
  79.                 <feet>serpentes sabots</feet>
  80.             </set>
  81.             <set name="FastCast">
  82.                 <waist>Goading Belt</waist>
  83.                 <rear>Loquac. Earring</rear>
  84.             </set>
  85.             <set name="Resting" BaseSet="Standard">
  86.                 <main>$DarkStaff</main>
  87.                 <sub>Bugard Strap +1</sub>
  88.                 <head>Goliard Chapeau</head>
  89.                 <body>Goetia Coat +2</body>
  90.                 <waist>Hierarch Belt</waist>
  91.                 <feet>Goliard Clogs</feet>
  92.                 <hands>Oracle's Gloves</hands>
  93.                 <neck>Eidolon Pendant</neck>
  94.                 <lear>Relaxing Earring</lear>
  95.                 <rear>Loquacious Earring</rear>
  96.                 <lring>Serket Ring</lring>
  97.                 <rring>Bifrost Ring</rring>
  98.                 <legs>Nisse Slacks</legs>
  99.                 <back>Umbra cape</back>
  100.             </set>
  101.             <set name="MinusHP">
  102.                 <main></main>
  103.                 <sub></sub>
  104.                 <head>Zenith Crown</head>
  105.                 <neck>Uggalepih Pendant</neck>
  106.                 <rear></rear>
  107.                 <lear>Loquacious Earring</lear>
  108.                 <body>Goetia Coat +2</body>
  109.                 <hands>Brook Gages</hands>
  110.                 <lring>Serket Ring</lring>
  111.                 <rring>Bifrost Ring</rring>
  112.                 <back></back>
  113.                 <waist>Cognition Belt</waist>
  114.                 <legs>Goetia Chausses +2</legs>
  115.                 <feet>Goetia Sabots +2</feet>
  116.             </set> 
  117.             <set name="FullDamage" BaseSet="Standard">
  118.                 <sub>Bugard Strap +1</sub>
  119.                 <ammo>Witchstone</ammo>
  120.                 <neck>Goetia Chain</neck>
  121.                 <rear>Goetia Earring</rear>
  122.                 <lear>Moldavite Earring</lear>
  123.                 <head>Goetia Petasos +2</head>
  124.                 <body>Goetia Coat +2</body>
  125.                 <hands>Goetia Gloves +2</hands>
  126.                 <lring>Diamond Ring</lring>
  127.                 <rring>Sorcerer's Ring</rring>
  128.                 <back>Searing Cape</back>
  129.                 <waist>Cognition Belt</waist>
  130.                 <legs>Goetia Chausses +2</legs>
  131.                 <feet>Goetia Sabots +2</feet>
  132.             </set>
  133.             <set name="HighResist" BaseSet="FullDamage">
  134.             </set>
  135.             <set name="MidResist" BaseSet="FullDamage">
  136.             </set>
  137.             <set name="LightResist" BaseSet="FullDamage" />
  138.             <set name="DarkMagic">
  139.                 <sub>Bugard Strap +1</sub>
  140.                 <ammo>Sweet Sachet</ammo>
  141.                 <neck>Goetia Chain</neck>
  142.                 <rear>Goetia Earring</rear>
  143.                 <lear>Loquacious Earring</lear>
  144.                 <head>Walahra Turban</head>
  145.                 <body>Goetia Coat +2</body>
  146.                 <hands>Sorcerer's Gloves</hands>
  147.                 <lring>Omega Ring</lring>
  148.                 <rring>Balrahn's Ring</rring>
  149.                 <back>Goetia Mantle</back>
  150.                 <waist>Goading Belt</waist>
  151.                 <legs>Portent Pants</legs>
  152.                 <feet>Goetia Sabots +2</feet>
  153.             </set>
  154.             <set name="EnfeeblingMagic">
  155.                 <body>Wizard's Coat +1</body>
  156.                 <head>Igqira Tiara</head>
  157.                 <neck>Enfeebling Torque</neck>
  158.                 <lear>Loquacious Earring</lear>
  159.                 <rear>Goetia Earring</rear>
  160.                 <lring>Omega Ring</lring>
  161.                 <rring>Balrahn's Ring</rring>
  162.                 <hands>Oracle's Gloves</hands>
  163.                 <legs>Portent Pants</legs>
  164.                 <back>Goetia Mantle</back>
  165.                 <waist>Cognition Belt</waist>
  166.                 <feet>Goliard Clogs</feet>
  167.             </set>
  168.             <set name="Mana Wall">
  169.                 <feet>Goetia Sabots +2</feet>
  170.             </set> 
  171.             <set name="HealingMagic" />
  172.             <set name="DivineMagic" />
  173.             <set name="EnhancingMagic">
  174.                 <main>Terra's Staff</main>
  175.                 <sub>Reign Grip</sub>
  176.                 <head>Walahra Turban</head>
  177.                 <neck>Stone Gorget</neck>
  178.                 <lear>Loquac. Earring</lear>
  179.                 <rear>Static Earring</rear>
  180.                 <body>Goetia Coat +2</body>
  181.                 <hands>Augur's Gloves</hands>
  182.                 <lring>Dark Ring</lring>
  183.                 <rring>Aqua Ring</rring>
  184.                 <back>Sunbeam Cape</back>
  185.                 <waist>Goading Belt</waist>
  186.                 <legs>Portent Pants</legs>
  187.                 <feet>Serpentes Sabots</feet>
  188.             </set>
  189.             <set name="Stoneskin">
  190.                 <main>Terra's Staff</main>
  191.                 <sub>Reign Grip</sub>
  192.                 <head>Walahra Turban</head>
  193.                 <neck>Stone Gorget</neck>
  194.                 <lear>Loquac. Earring</lear>
  195.                 <rear>Static Earring</rear>
  196.                 <body>Goetia Coat +2</body>
  197.                 <hands>Augur's Gloves</hands>
  198.                 <lring>Dark Ring</lring>
  199.                 <rring>Aqua Ring</rring>
  200.                 <back>Sunbeam Cape</back>
  201.                 <waist>Goading Belt</waist>
  202.                 <legs>Portent Pants</legs>
  203.                 <feet>Serpentes Sabots</feet>
  204.             </set>
  205.         </group>
  206.     </sets>
  207.     <rules>
  208.         <!--Enmity Douse-->
  209.         <if Spell="Enmity Douse">
  210.             <action type="equip" when="precast">
  211.                 <hands>Goetia Gloves +2</hands>
  212.             </action>
  213.         </if>
  214.         <!--Manawall with Goetia Sabots +2-->
  215.         <if mode="OR" buffactive="Mana wall" Spell="Mana Wall">
  216.         <equip when="Precast|Midcast|Aftercast|Autoset"><Feet lock="true">Goetia Sabots +2</Feet></equip>
  217.         </if>
  218.         <if notspell="Stun|Sleep*|bind|gravity|drain|aspir|escape|warp*|retrace|teleport-*|reraise|raise|tractor|poison*|bio*|burn|shock|choke|rasp|frost|drown">
  219.             <castdelay delay="0.2" />
  220.         </if>
  221.         <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  222.         <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  223.             <changetarget target="&lt;me&gt;" />
  224.         </if>
  225.         <if SpellTargetType="NONE" ValidTarget="*Self*">
  226.             <changetarget target="&lt;me&gt;" />
  227.         </if>
  228.         <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
  229.             <return />
  230.         </if>
  231.         <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  232.         <equip when="Idle|aftercast" set="Standard" />
  233.         <!-- set of gear to equip when resting -->
  234.         <equip when="Resting" set="Resting" />
  235.         <if Spell="Stun">
  236.             <!-- equip gear that helps stun, and nothing else -->
  237.             <equip set="DarkMagic|FastCast">
  238.                 <main>$ThunderStaff</main>
  239.             </equip>
  240.             <!-- these codes just print Stun in auto translate into chat. -->
  241.             <command>input /p \xFD\x07\x02\x12\xFC\xFD &gt;&gt; &lt;%SpellTarget&gt;</command>
  242.         </if>
  243.         <else>
  244.             <!-- equip fast cast gear -->
  245.             <equip Set="FastCast" />
  246.             <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  247.             <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love">
  248.                 <if Advanced='"$%SpellElementGrip" == "1"'>
  249.                     <equip when="midcast">
  250.                         <sub lock="true">%SpellElement Grip</sub>
  251.                     </equip>
  252.                 </if>
  253.             </if>
  254.             <!-- if were handling spells -->
  255.             <if Skill="*Magic">
  256.                 <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  257.                 <if Skill="ElementalMagic">
  258.                     <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  259.                         <!-- equip elemental/INT gear for DoT's -->
  260.                         <equip when="precast|midcast" Set="HighResist" />
  261.                     </if>
  262.                     <else>
  263.                         <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  264.                         <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  265.                             <equip when="precast|midcast" Set="HighResist" />
  266.                         </if>
  267.                         <else>
  268.                             <!-- if mob is not high resist, is it a mid resist mob? -->
  269.                             <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu|Armed Gears|Mahjlaef the Paintorn" NotBuffActive="Elemental Seal">
  270.                                 <equip when="precast|midcast" Set="MidResist" />
  271.                             </if>
  272.                             <else>
  273.                                 <!-- Normal mob, go full damage gear. -->
  274.                                 <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
  275.                                     <if NotBuffActive="Elemental Seal">
  276.                                         <equip when="precast|midcast" Set="LightResist" />
  277.                                     </if>
  278.                                     <else>
  279.                                         <equip when="precast|midcast" Set="FullDamage" />
  280.                                     </else>
  281.                                 </if>
  282.                                 <else>
  283.                                     <equip when="precast|midcast" Set="FullDamage" />
  284.                                 </else>
  285.                                 <!-- only equip pendant in situations you would equip full damage gear -->
  286.                                 <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  287.                                     <equip when="midcast">
  288.                                         <neck lock="yes">Uggalepih Pendant</neck>
  289.                                     </equip>
  290.                                 </if>
  291.                             </else>
  292.                             <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  293.                             <if advanced='$Ring == 1'>
  294.                                 <!-- make sure we have an HP variable set for current subjob -->
  295.                                 <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
  296.                                     <if Advanced='%HP &gt; $%SubJobRingHP'>
  297.                                         <!-- if you have too much HP at the time of casting, equip minus hp -->
  298.                                         <equip set="MinusHP" />
  299.                                     </if>
  300.                                 </if>
  301.                                 <else>
  302.                                     <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  303.                                     <equip set="MinusHP" />
  304.                                 </else>
  305.                                 <equip when="midcast">
  306.                                     <rring>Sorcerer's Ring</rring>
  307.                                 </equip>
  308.                             </if>
  309.                         </else>
  310.                     </else>
  311.                 </if>
  312.                 <else>
  313.                     <!-- for any other type of spell, just equip matching set name. -->
  314.                     <equip when="precast|midcast" Set="Standard|%Skill" />
  315.                 </else>
  316.             </if>
  317.             <else>
  318.                 <equip when="precast|midcast" Set="Standard" />
  319.             </else>
  320.             <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
  321.             <if Spell="Drain" Advanced="$Ring==1">
  322.                 <equip set="MinusHP" />
  323.             </if>
  324.             <!-- Twilight Cape -->
  325.             <if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
  326.                 <action type="equip" when="midcast">
  327.                     <back>Twilight Cape</back>
  328.                 </action>
  329.             </if>
  330.             <!-- Handle Elemental Obi's -->
  331.             <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  332.                 <if     Element="Dark">
  333.                     <equip when="midcast">
  334.                         <waist lock="yes">Anrin Obi</waist>
  335.                     </equip>
  336.                 </if>
  337.                 <elseif Element="Light">
  338.                     <equip when="midcast">
  339.                         <waist lock="yes">Korin Obi</waist>
  340.                     </equip>
  341.                 </elseif>
  342.                 <elseif Element="Thunder">
  343.                     <equip when="midcast">
  344.                         <waist lock="yes">Rairin Obi</waist>
  345.                     </equip>
  346.                 </elseif>
  347.                 <elseif Element="Ice">
  348.                     <equip when="midcast">
  349.                         <waist lock="yes">Hyorin Obi</waist>
  350.                     </equip>
  351.                 </elseif>
  352.                 <elseif Element="Fire">
  353.                     <equip when="midcast">
  354.                         <waist lock="yes">Karin Obi</waist>
  355.                     </equip>
  356.                 </elseif>
  357.                 <elseif Element="Wind">
  358.                     <equip when="midcast">
  359.                         <waist lock="yes">Furin Obi</waist>
  360.                     </equip>
  361.                 </elseif>
  362.                 <elseif Element="Water">
  363.                     <equip when="midcast">
  364.                         <waist lock="yes">Suirin Obi</waist>
  365.                     </equip>
  366.                 </elseif>
  367.                 <elseif Element="Earth">
  368.                     <equip when="midcast">
  369.                         <waist lock="yes">Dorin Obi</waist>
  370.                     </equip>
  371.                 </elseif>
  372.             </if>
  373.    
  374.     <!-- handle afv2 pants, but do not equip pants if we already have weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
  375.         <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  376.         <equip when="midcast">
  377.         <legs lock="yes">sorcerer's tonban</legs>
  378.         </equip>
  379.         </if>
  380.             <!-- Timers for when sleep is wearing off. -->
  381.             <if advanced='"$SleepTimers"="1"'>
  382.                 <if Spell="Sleep II|Sleepga II">
  383.                     <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo *** [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</command>
  384.                     <command when="aftercast">wait 75;input /echo *** [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  385.                     <command when="aftercast">wait 85;input /echo *** [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  386.                 </if>
  387.                 <elseif Spell="Sleep|Sleepga">
  388.                     <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo *** [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  389.                     <command when="aftercast">wait 55;input /echo *** [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  390.                 </elseif>
  391.             </if>
  392.             <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  393.             <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  394.                 <command when="midcast">cancel 71</command>
  395.                 <midcastdelay delay="1.8" />
  396.             </if>
  397.             <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  398.                 <midcastdelay delay="3.0" />
  399.                 <command when="midcast">cancel 66</command>
  400.             </if>
  401.             <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  402.                 <equip when="midcast" set="Stoneskin" />
  403.                 <command when="midcast">cancel 37</command>
  404.                 <midcastdelay delay="4.8" />
  405.             </elseif>
  406.             <elseif Spell="Blink" BuffActive="Blink">
  407.                 <command when="midcast">cancel 36</command>
  408.                 <midcastdelay delay="4.5" />
  409.             </elseif>
  410.             <!-- finally, equip our staff! -->
  411.             <equip when="midcast">
  412.                 <main>$%SpellElementStaff</main>
  413.             </equip>
  414.         </else>
  415.     <!--Trial of the Magians-->
  416.         <if EquipMain="Teiwaz|Crook">
  417.             <equip when="all">
  418.                 <main lock="t" />
  419.             </equip>
  420.         </if>
  421.     </rules>
  422. </spellcast>
Add Comment
Please, Sign In to add comment