Advertisement
Guest User

Untitled

a guest
Feb 14th, 2014
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.56 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>
  17.     <config
  18.         RequireVersion="2.18"
  19.         HideErrors="true"
  20.         ShowGearSwaps="false"
  21.         Debug="true"
  22.         ShowSpellInfo="false"  
  23.         />
  24.     <variables>
  25.         <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
  26.         <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
  27.         <var name="SleepTimers">1</var>
  28.         <!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
  29.         <var name="BLMAF2Pants">0</var>
  30.         <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
  31.         <var name="Ring">0</var>
  32.         <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
  33.         <var name="UggPendant">0</var>
  34.         <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
  35.         <var name="RDMRingHP">726</var>
  36.         <var name="WHMRingHP">712</var>
  37.         <var name="NINRingHP">597</var>
  38.         <!-- Elemental Grips, set to 1 for each you have -->
  39.         <var name="LightGrip">0</var>
  40.         <var name="DarkGrip">0</var>
  41.         <var name="ThunderGrip">0</var>
  42.         <var name="IceGrip">0</var>
  43.         <var name="FireGrip">0</var>
  44.         <var name="WindGrip">0</var>
  45.         <var name="WaterGrip">0</var>
  46.         <var name="EarthGrip">0</var>
  47.         <!-- Elemental Staffs, input what staff to use for each element here -->
  48.         <var name="IceStaff">Aquilo's Staff</var>
  49.         <var name="DarkStaff">Dark Staff</var>
  50.         <var name="ThunderStaff">Thunder Staff</var>
  51.         <var name="LightStaff">Light Staff</var>
  52.         <var name="WindStaff">Wind Staff</var>
  53.         <var name="FireStaff">Fire Staff</var>
  54.         <var name="EarthStaff">Earth Staff</var>
  55.         <var name="LightStaff">Light Staff</var>
  56.         <var name="WaterStaff">water staff</var>
  57.         <!-- Elemental Obi's, set to 1 for the ones you have. -->
  58.         <var name="DarkObi">0</var>
  59.         <var name="LightObi">0</var>
  60.         <var name="ThunderObi">0</var>
  61.         <var name="IceObi">0</var>
  62.         <var name="FireObi">0</var>
  63.         <var name="WindObi">0</var>
  64.         <var name="WaterObi">0</var>
  65.         <var name="EarthObi">0</var>
  66.     </variables>
  67.     <sets>
  68.       <group name="Main" default="yes">
  69.       <set name="Standard">
  70.         <main>$EarthStaff</main>
  71.         <sub>Bugard Strap +1</sub>
  72.         <neck>Beak necklace</neck>
  73.         <rear>Loquacious Earring</rear>
  74.         <lear>Ethereal earring</lear>
  75.         <body>Black Cloak</body>
  76.         <hands>Nashira Gages</hands>
  77.         <lring>Serket ring</lring>
  78.         <rring>Jelly Ring</rring>
  79.         <back>Rainbow Cape</back>
  80.         <waist>Penitent's rope</waist>
  81.         <legs>Errant Slops</legs>
  82.         <feet>Nashira Crackows</feet>
  83.       </set>
  84.       <set name="FastCast">
  85.         <head>Walahra Turban</head>
  86.         <rear>Loquacious Earring</rear>
  87.         <body>Igqira Wesket</body>
  88.         <feet>Nashira Crackows</feet>
  89.         <waist>Penitent's rope</waist>
  90.       </set>
  91.       <set name="Resting" BaseSet="Standard">
  92.         <body>Errant Hpl.</body>
  93.         <main>$darkStaff</main>
  94.         <sub>Bugard Leather strap +1</sub>
  95.         <head>Walahra Turban</head>
  96.         <waist>Hierarch Belt</waist>
  97.         <neck>Beak Necklace</neck>
  98.         <feet>Custom F boots</feet>
  99.         <lear>Phantom earring</lear>
  100.         <lring>Serket Ring</lring>
  101.       </set>
  102.       <set name="MinusHP">
  103.         <head>Zenith Crown</head>
  104.         <back>Ixion Cape</back>
  105.         <hands>Zenith Mitts</hands>
  106.         <neck>Morgana's Choker</neck>
  107.         <feet>Rostrum Pumps</feet>
  108.         <legs>Zenith Slacks</legs>
  109.         <ammo>Phantum Tathlum</ammo>
  110.         <sub>Thunder Grip</sub>
  111.         <lring>ether Ring</lring>
  112.         <rring>Astral Ring</rring>
  113.       </set>
  114.       <set name="FullDamage" BaseSet="Standard">
  115.         <sub>Bugard Strap +1</sub>
  116.         <neck>Philomath Stole</neck>
  117.         <lear>Diamond Earring</lear>
  118.         <rear>Moldavite Earring</rear>
  119.         <head>Wizard's Petasos</head>
  120.         <body>Igqira Weskit</body>
  121.         <hands>Wizard's Gloves</hands>
  122.         <lring>Diamond ring</lring>
  123.         <rring>Diamond ring</rring>
  124.         <back>Rainbow Cape</back>
  125.         <waist>Penitent's Rope</waist>
  126.         <legs>Errant Slops</legs>
  127.         <feet>Nashira Crackows</feet>
  128.       </set>
  129.       <set name="HighResist" BaseSet="FullDamage">
  130.         <hands>Wizard's Gloves</hands>
  131.         <head>Wizard's Petasos</head>
  132.         <legs>Errant Slops</legs>
  133.         <rring>Balrahn's Ring</rring>
  134.         <!--  one day -->
  135.       </set>
  136.       <set name="MidResist" BaseSet="FullDamage">
  137.         <head>Wizard's Petasos</head>
  138.         <!--  one day -->
  139.       </set>
  140.       <set name="LightResist" BaseSet="FullDamage">
  141.         <head>Wizard's Petasos</head>
  142.       </set>
  143.     <set name="DarkMagic">
  144.         <legs>Wizard's Tonban</legs>
  145.         <neck>Philomath Stole</neck>
  146.         <hands>Nashira Gages</hands>
  147.         <head>Walahra Turban</head>
  148.         <feet>Nashira Crackows</feet>
  149.         <rring>Balrahn's Ring</rring>
  150.       </set>
  151.       <set name="EnfeeblingMagic">
  152.         <body>Wizard's Coat</body>
  153.         <head>Igqira Tiara</head>
  154.         <neck>Philomath Stole</neck>
  155.         <hands>Nashira Gages</hands>
  156.         <feet>Nashira Crackows</feet>
  157.         <legs>Igqira Lappa</legs>
  158.         <rring>Balrahn's Ring</rring>
  159.       </set>
  160.       <set name="HealingMagic" />
  161.       <set name="DivineMagic" />
  162.       <set name="EnhancingMagic" />
  163.     </group>
  164.   </sets>
  165.   <rules>
  166.         <!-- utility: if you have no target currently, and casting a spell that can be cast on self, then cast on self (buffs). -->
  167.         <if ValidTargets="*Self*" TargetType="None" SpellTarget="&lt;t&gt;">
  168.             <changetarget target="&lt;me&gt;" />
  169.         </if>
  170.         <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  171.         <if SpellTarget="&lt;t&gt;" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  172.             <changetarget target="&lt;me&gt;" />
  173.         </if>  
  174.         <!-- dont parse this file if under level 73... ie capped areas -->
  175.         <if MLVLLT="73"> <action type="return" /> </if>
  176.         <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  177.         <equip when="Idle|aftercast" set="Standard" />
  178.         <!-- set of gear to equip when resting -->
  179.         <equip when="Resting" set="Resting" />
  180.  
  181.         <if Spell="Stun">
  182.             <!-- equip gear that helps stun, and nothing else -->
  183.             <equip set="DarkMagic|FastCast">
  184.                 <main>$ThunderStaff</main>
  185.             </equip>
  186.             <!-- these codes just print Stun in auto translate into chat. -Which of course I removed-
  187.             <action type="command">input /echo \xFD\x07\x02\x12\xFC\xFD &gt;&gt; &lt;%SpellTarget&gt;</command> -->
  188.         </if>
  189.         <else>
  190.             <!-- equip fast cast gear -->
  191.             <equip Set="FastCast" />
  192.             <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  193.             <if mode="OR" NotSkill="ElementalMagic" target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love">
  194.                 <if Advanced='"$%SpellElementGrip" == "1"'>
  195.                     <equip when="midcast">
  196.                         <sub lock="true">%SpellElement Grip</sub>
  197.                     </equip>
  198.                 </if>
  199.             </if>
  200.             <!-- if were handling spells -->
  201.             <if Skill="*Magic">
  202.                 <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  203.                 <if Skill="ElementalMagic">
  204.                     <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  205.                         <!-- equip elemental/INT gear for DoT's -->
  206.                         <equip when="precast|midcast" Set="HighResist" />  
  207.                     </if>
  208.                     <else>
  209.                         <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  210.                         <if Target="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Sarameya|Tyger|Jailer Of Love" NotBuffActive="Elemental Seal">
  211.                             <equip when="precast|midcast" Set="HighResist" />  
  212.                         </if>
  213.                         <else>
  214.                             <!-- if mob is not high resist, is it a mid resist mob? -->
  215.                             <if target="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin" NotBuffActive="Elemental Seal">
  216.                                 <equip when="precast|midcast" Set="MidResist" />   
  217.                             </if>
  218.                             <else>
  219.                                 <!-- Normal mob, go full damage gear. -->
  220.                                 <if mode="or" Area="Dynamis *|Hazhalm*">
  221.                                     <equip when="precast|midcast" Set="LightResist" />
  222.                                 </if>
  223.                                 <else>
  224.                                     <equip when="precast|midcast" Set="FullDamage" />  
  225.                                 </else>
  226.                                 <!-- only equip pendant in situations you would equip full damage gear -->
  227.                                 <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  228.                                     <equip when="midcast">
  229.                                         <neck lock="yes">Uggalepih Pendant</neck>
  230.                                     </equip>
  231.                                 </if>
  232.                             </else>
  233.                             <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  234.                             <if advanced='$Ring == 1'>
  235.                                 <!-- make sure we have an HP variable set for current subjob -->
  236.                                 <if Advanced='"$%SubJobRingHP" !="\$%SubJobRingHP"'>
  237.                                     <if Advanced='%HP &gt; $%SubJobRingHP'>
  238.                                         <!-- if you have too much HP at the time of casting, equip minus hp -->
  239.                                         <equip set="MinusHP" />
  240.                                     </if>
  241.                                 </if>
  242.                                 <else>
  243.                                     <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  244.                                     <equip set="MinusHP" />
  245.                                 </else>
  246.  
  247.                                 <equip when="midcast">
  248.                                         <lring>Sorcerer's Ring</lring>
  249.                                 </equip>
  250.                             </if>
  251.                         </else>
  252.                     </else>
  253.                 </if>
  254.                 <else>
  255.                     <!-- for any other type of spell, just equip matching set name. -->
  256.                     <equip when="precast|midcast" Set="Standard|%Skill" /> 
  257.                 </else>
  258.             </if>
  259.             <else>
  260.                 <equip when="precast|midcast" Set="Standard" />
  261.             </else>            
  262.             <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
  263.             <if Spell="Drain" Advanced="$Ring==0">
  264.                     <equip set="MinusHP" />
  265.                    
  266.             </if>
  267.             <!-- Handle Elemental Obi's -->
  268.             <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  269.                 <if     Element="Dark"><equip when="midcast"><waist lock="yes">Anrin Obi</waist></equip></if>
  270.                 <elseif Element="Light"><equip when="midcast"><waist lock="yes">Korin Obi</waist></equip></elseif>
  271.                 <elseif Element="Thunder"><equip when="midcast"><waist lock="yes">Rairin Obi</waist></equip></elseif>
  272.                 <elseif Element="Ice"><equip when="midcast"><waist lock="yes">Hyorin Obi</waist></equip></elseif>
  273.                 <elseif Element="Fire"><equip when="midcast"><waist lock="yes">Karin Obi</waist></equip></elseif>
  274.                 <elseif Element="Wind"><equip when="midcast"><waist lock="yes">Furin Obi</waist></equip></elseif>
  275.                 <elseif Element="Water"><equip when="midcast"><waist lock="yes">Suirin Obi</waist></equip></elseif>
  276.                 <elseif Element="Earth"><equip when="midcast"><waist lock="yes">Dorin Obi</waist></equip></elseif>
  277.             </if>
  278.             <!-- 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. -->
  279.             <if Advanced='(!((regex)%Weather=^.* x2$(/regex) AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  280.                 <equip when="midcast">
  281.                     <legs lock="yes">Sorcerer's Tonban</legs>
  282.                 </equip>
  283.             </if>
  284.             <!-- Timers for when sleep is wearing off. -->
  285.             <if advanced='"$SleepTimers"="1"'>
  286.                 <if Spell="Sleep II|Sleepga II">
  287.                     <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</command>
  288.                     <command when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  289.                     <command when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  290.                 </if>
  291.                 <elseif Spell="Sleep|Sleepga">
  292.                     <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  293.                     <command when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  294.                 </elseif>
  295.             </if>
  296.             <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  297.             <if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="&lt;me&gt;" OR ("%target"="%PlayerName" AND "%SpellTarget"="&lt;t&gt;")'>
  298.                 <command when="midcast">cancel 71</command>
  299.                 <midcastdelay delay="2.1" />
  300.             </if>
  301.             <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  302.                 <midcastdelay delay="2.5" />
  303.                 <command when="midcast">cancel 66</command>
  304.             </if>
  305.             <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  306.                 <command when="midcast">cancel 37</command>
  307.                 <midcastdelay delay="4.8" />
  308.             </elseif>
  309.             <elseif Spell="Blink" BuffActive="Blink">
  310.                 <command when="midcast">cancel 36</command>
  311.                 <midcastdelay delay="4.5" />
  312.             </elseif>
  313.             <!-- finally, equip our staff! -->
  314.             <equip when="midcast">
  315.                 <main>$%SpellElementStaff</main>
  316.             </command>
  317.         </else>
  318.     </rules>
  319. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement