Advertisement
Guest User

BLM.xml

a guest
Aug 4th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 15.90 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 RequireVersion="2.32" />
  18.     <variables>
  19.         <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
  20.         <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
  21.         <var name="SleepTimers">1</var>
  22.         <!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
  23.         <var name="BLMAF2Pants">1</var>
  24.         <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
  25.         <var name="Ring">1</var>
  26.         <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
  27.         <var name="UggPendant">1</var>
  28.         <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
  29.         <var name="RDMRingHP">980</var>
  30.         <var name="WHMRingHP">980</var>
  31.         <var name="NINRingHP">980</var>
  32.         <!-- Elemental Grips, set to 1 for each you have -->
  33.         <var name="LightGrip">0</var>
  34.         <var name="DarkGrip">1</var>
  35.         <var name="ThunderGrip">0</var>
  36.         <var name="IceGrip">0</var>
  37.         <var name="FireGrip">0</var>
  38.         <var name="WindGrip">0</var>
  39.         <var name="WaterGrip">0</var>
  40.         <var name="EarthGrip">0</var>
  41.         <!-- Elemental Staffs, input what staff to use for each element here -->
  42.         <var name="IceStaff">Vourukasha I</var>
  43.         <var name="DarkStaff">Chatoyant Staff</var>
  44.         <var name="ThunderStaff">Apamajas I</var>
  45.         <var name="LightStaff">Chatoyant Staff</var>
  46.         <var name="WindStaff">Chatoyant Staff</var>
  47.         <var name="FireStaff">Chatoyant Staff</var>
  48.         <var name="EarthStaff">Chatoyant Staff</var>
  49.         <var name="LightStaff">Chatoyant Staff</var>
  50.         <var name="WaterStaff">Chatoyant Staff</var>
  51.         <!-- Elemental Obi's, set to 1 for the ones you have. -->
  52.         <var name="DarkObi">1</var>
  53.         <var name="LightObi">0</var>
  54.         <var name="ThunderObi">1</var>
  55.         <var name="IceObi">1</var>
  56.         <var name="FireObi">0</var>
  57.         <var name="WindObi">0</var>
  58.         <var name="WaterObi">0</var>
  59.         <var name="EarthObi">0</var>
  60.     </variables>
  61.     <sets>
  62.         <group name="Main" default="yes">
  63.             <set name = "Standard" >
  64.                 <main>Terra's Staff</main>
  65.                 <sub>Bugard Leather Strap +1</sub>
  66.                 <ammo>Witchstone</ammo>
  67.                 <head>Goetia Petasos +2</head>
  68.                 <neck>Twilight Torque</neck>
  69.                 <lear>Novio Earring</lear>
  70.                 <rear>Moonshade Earring</rear>
  71.                 <body>Goetia Coat +2</body>
  72.                 <hands>Serpentes Cuffs</hands>
  73.                 <lring>Icesoul Ring</lring>
  74.                 <rring>Strendu Ring</rring>
  75.                 <back>Umbra Cape</back>
  76.                 <waist>Oneiros Sash</waist>
  77.                 <legs>Nares Trews</legs>
  78.                 <feet>Serpentes Sabots</feet>
  79.             </set>
  80.             <set name="FastCast">
  81.                 <feet>Rostrum Pumps</feet>
  82.                 <rear>Loquac. Earring</rear>
  83.             </set>
  84.             <set name="Resting" BaseSet="Standard">
  85.                 <main>Chatoyant Staff</main>
  86.                 <sub>Bugard Leather Strap +1</sub>
  87.                 <ammo>Witchstone</ammo>
  88.                 <head>Wzd. Petasos +1</head>
  89.                 <neck>Beak Necklace</neck>
  90.                 <lear>Novio Earring</lear>
  91.                 <rear>Relaxing Earring</rear>
  92.                 <body>Mahatma Hpl.</body>
  93.                 <hands>Serpentes Cuffs</hands>
  94.                 <lring>Icesoul Ring</lring>
  95.                 <rring>Strendu Ring</rring>
  96.                 <back>Goetia Mantle</back>
  97.                 <waist>Hierarch Belt</waist>
  98.                 <legs>Nares Trews</legs>
  99.                 <feet>Goliard Clogs</feet>
  100.             </set>
  101.             <set name="MinusHP">
  102.                 <head>Zenith Crown</head>
  103.                 <hands>Zenith Mitts</hands>
  104.                 <rring>Bifrost Ring</rring>
  105.                 <legs>Zenith Slacks</legs>
  106.                 <feet>Rostrum Pumps</feet>
  107.             </set>
  108.             <set name="FullDamage" BaseSet="Standard">
  109.                 <sub>Bugard Leather Strap +1</sub>
  110.                 <ammo>Witchstone</ammo>
  111.                 <head>Goetia Petasos +2</head>
  112.                 <neck>Stoicheion Medal</neck>
  113.                 <lear>Novio Earring</lear>
  114.                 <rear>Hecate's Earring</rear>
  115.                 <body>Goetia Coat +2</body>
  116.                 <hands>Goetia Gloves +2</hands>
  117.                 <lring>Icesoul Ring</lring>
  118.                 <rring>Strendu Ring</rring>
  119.                 <back>Searing Cape</back>
  120.                 <waist>Oneiros Sash</waist>
  121.                 <legs>Goetia Chausses +2</legs>
  122.                 <feet>Goetia Sabots +2</feet>
  123.             </set>
  124.             <set name="HighResist" BaseSet="FullDamage">
  125.                 <sub>Bugard Leather Strap +1</sub>
  126.                 <ammo>Phtm. Tathlum</ammo>
  127.                 <head>Goetia Petasos +2</head>
  128.                 <neck>Stoicheion Medal</neck>
  129.                 <lear>Novio Earring</lear>
  130.                 <rear>Hecate's Earring</rear>
  131.                 <body>Goetia Coat +2</body>
  132.                 <hands>Wzd. Gloves +2</hands>
  133.                 <lring>Icesoul Ring</lring>
  134.                 <rring>Strendu Ring</rring>
  135.                 <back>Goetia Mantle</back>
  136.                 <waist>Oneiros Sash</waist>
  137.                 <legs>Mahatma Slops</legs>
  138.                 <feet>Goetia Sabots +2</feet>
  139.             </set>
  140.             <set name="MidResist" BaseSet="FullDamage">
  141.                 <sub>Bugard Leather Strap +1</sub>
  142.                 <ammo>Witchstone</ammo>
  143.                 <head>Goetia Petasos +2</head>
  144.                 <neck>Stoicheion Medal</neck>
  145.                 <lear>Novio Earring</lear>
  146.                 <rear>Hecate's Earring</rear>
  147.                 <body>Goetia Coat +2</body>
  148.                 <hands>Goetia Gloves +2</hands>
  149.                 <lring>Icesoul Ring</lring>
  150.                 <rring>Strendu Ring</rring>
  151.                 <back>Goetia Mantle</back>
  152.                 <waist>Oneiros Sash</waist>
  153.                 <legs>Goetia Chausses +2</legs>
  154.                 <feet>Goetia Sabots +2</feet>
  155.             </set>
  156.             <set name="LightResist" BaseSet="FullDamage">
  157.                 <sub>Bugard Leather Strap +1</sub>
  158.                 <ammo>Witchstone</ammo>
  159.                 <head>Goetia Petasos +2</head>
  160.                 <neck>Stoicheion Medal</neck>
  161.                 <lear>Novio Earring</lear>
  162.                 <rear>Hecate's Earring</rear>
  163.                 <body>Goetia Coat +2</body>
  164.                 <hands>Goetia Gloves +2</hands>
  165.                 <lring>Icesoul Ring</lring>
  166.                 <rring>Strendu Ring</rring>
  167.                 <back>Goetia Mantle</back>
  168.                 <waist>Oneiros Sash</waist>
  169.                 <legs>Goetia Chausses +2</legs>
  170.                 <feet>Goetia Sabots +2</feet>
  171.             </set>
  172.             <set name="DarkMagic">
  173.                 <sub>Dark Grip</sub>
  174.                 <ammo>Phtm. Tathlum</ammo>
  175.                 <head>Goetia Petasos +2</head>
  176.                 <neck>Dark Torque</neck>
  177.                 <lear>Novio Earring</lear>
  178.                 <rear>Loquac. Earring</rear>
  179.                 <body>Nashira Manteel</body>
  180.                 <hands>Vicious Mufflers</hands>
  181.                 <lring>Icesoul Ring</lring>
  182.                 <rring>Strendu Ring</rring>
  183.                 <back>Merciful Cape</back>
  184.                 <waist>Witch Sash</waist>
  185.                 <legs>Wizard's Tonban</legs>
  186.                 <feet>Goetia Sabots +2</feet>
  187.             </set>
  188.             <set name="EnfeeblingMagic">
  189.                 <sub>Dark Grip</sub>
  190.                 <ammo>Phtm. Tathlum</ammo>
  191.                 <head>Genie Tiara</head>
  192.                 <neck>Enfeebling Torque</neck>
  193.                 <lear>Novio Earring</lear>
  194.                 <rear>Loquac. Earring</rear>
  195.                 <body>Wzd. Coat +1</body>
  196.                 <hands>Wzd. Gloves +1</hands>
  197.                 <lring>Icesoul Ring</lring>
  198.                 <rring>Strendu Ring</rring>
  199.                 <back>Goetia Mantle</back>
  200.                 <waist>Witch Sash</waist>
  201.                 <legs>Igqira Lappa</legs>
  202.                 <feet>Goliard Clogs</feet>
  203.             </set>
  204.             <set name="EnhancingMagic">
  205.                 <main lock="yes">$WaterStaff</main>
  206.                 <body>Mahatma Hpl.</body>
  207.                 <head>Zenith Crown</head>
  208.                 <feet>Rostrum Pumps</feet>
  209.                 <back>Merciful Cape</back>
  210.             </set>
  211.             <set name="HealingMagic">
  212.                 <hands>Serpentes Cuffs</hands>
  213.                 <feet>Serpentes Sabots</feet>
  214.                 <body>Nashira Manteel</body>
  215.                 <legs>Nares Trews</legs>
  216.             </set>
  217.         </group>
  218.     </sets>
  219.     <rules>
  220.        
  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.             <action type="changetarget" target="&lt;me&gt;" />
  224.         </if>  
  225.         <if SpellTargetType="NONE" ValidTarget="*Self*">
  226.             <action type="changetarget" target="&lt;me&gt;" />
  227.         </if>
  228.         <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor"> <action type="return" /> </if>
  229.         <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  230.         <action type="equip" when="Idle|aftercast" set="Standard" />
  231.         <!-- set of gear to equip when resting -->
  232.         <action type="equip" when="Resting" set="Resting" />
  233.                
  234.         <if Spell="Stun">
  235.             <!-- equip gear that helps stun, and nothing else -->
  236.             <action type="equip" set="DarkMagic|FastCast">
  237.                 <main>$ThunderStaff</main>
  238.             </action>
  239.             <!-- these codes just print Stun in auto translate into chat. -->
  240.             <action type="command">input /p \xFD\x07\x02\x12\xFC\xFD &gt;&gt; &lt;%SpellTarget&gt;</action>
  241.         </if>
  242.         <else>
  243.             <!-- equip fast cast gear -->
  244.             <action type="equip" Set="FastCast" />
  245.             <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  246.             <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">
  247.                 <if Advanced='"$%SpellElementGrip" == "1"'>
  248.                     <action type="equip" when="midcast">
  249.                         <sub lock="true">%SpellElement Grip</sub>
  250.                     </action>
  251.                 </if>
  252.             </if>
  253.             <!-- if were handling spells -->
  254.             <if Skill="*Magic">
  255.                 <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  256.                 <if Skill="ElementalMagic">
  257.                     <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  258.                         <!-- equip elemental/INT gear for DoT's -->
  259.                         <action type="equip" when="precast|midcast" Set="HighResist" />
  260.                     </if>
  261.                     <else>
  262.                         <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  263.                         <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  264.                             <action type="equip" when="precast|midcast" Set="HighResist" />
  265.                         </if>
  266.                         <else>
  267.                             <!-- if mob is not high resist, is it a mid resist mob? -->
  268.                             <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu" NotBuffActive="Elemental Seal">
  269.                                 <action type="equip" when="precast|midcast" Set="MidResist" /> 
  270.                             </if>
  271.                             <else>
  272.                                 <!-- Normal mob, go full damage gear. -->
  273.                                 <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
  274.                                     <if NotBuffActive="Elemental Seal">
  275.                                         <action type="equip" when="precast|midcast" Set="LightResist" />
  276.                                     </if>
  277.                                     <else>
  278.                                         <action type="equip" when="precast|midcast" Set="FullDamage" />
  279.                                     </else>
  280.                                 </if>
  281.                                 <else>
  282.                                     <action type="equip" when="precast|midcast" Set="FullDamage" />
  283.                                 </else>
  284.                                 <!-- only equip pendant in situations you would equip full damage gear -->
  285.                                 <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  286.                                     <action type="equip" when="midcast">
  287.                                         <neck lock="yes">Uggalepih Pendant</neck>
  288.                                     </action>
  289.                                 </if>
  290.                             </else>
  291.                             <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  292.                             <if advanced='$Ring == 1'>
  293.                                 <!-- make sure we have an HP variable set for current subjob -->
  294.                                 <if Advanced='"$%SubJobRingHP" !="\$%SubJobRingHP"'>
  295.                                     <if Advanced='%HP &gt; $%SubJobRingHP'>
  296.                                         <!-- if you have too much HP at the time of casting, equip minus hp -->
  297.                                         <action type="equip" set="MinusHP" />
  298.                                     </if>
  299.                                 </if>
  300.                                 <else>
  301.                                     <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  302.                                     <action type="equip" set="MinusHP" />
  303.                                 </else>
  304.  
  305.                                 <action type="equip" when="midcast">
  306.                                         <lring>Sorcerer's Ring</lring>
  307.                                 </action>
  308.                             </if>
  309.                         </else>
  310.                     </else>
  311.                 </if>
  312.                 <else>
  313.                     <!-- for any other type of spell, just equip matching set name. -->
  314.                     <action type="equip" when="precast|midcast" Set="Standard|%Skill" />   
  315.                 </else>
  316.             </if>
  317.             <else>
  318.                 <action type="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.                     <action type="equip" set="MinusHP" />
  323.             </if>
  324.             <!-- Handle Elemental Obi's -->
  325.             <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  326.                 <if     Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
  327.                 <elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
  328.                 <elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
  329.                 <elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
  330.                 <elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
  331.                 <elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
  332.                 <elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
  333.                 <elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
  334.             </if>
  335.             <if Advanced='"%SpellElement"=="%WeatherElement" or "%SpellElement"=="%DayElement"'>
  336.             <equip when="midcast">
  337.                 <back>Twilight Cape</back>
  338.             </equip>
  339.             </if>
  340.             <!-- 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. -->
  341.             <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%SpellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  342.                 <equip When="MidCast">
  343.                     <legs Lock="Yes">Sorcerer's Tonban</legs>
  344.                 </equip>
  345.             </if>
  346.             <!-- Timers for when sleep is wearing off. -->
  347.             <if advanced='"$SleepTimers"="1"'>
  348.                 <if Spell="Sleep II|Sleepga II">
  349.                     <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</action>
  350.                     <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</action>
  351.                     <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</action>
  352.                 </if>
  353.                 <elseif Spell="Sleep|Sleepga">
  354.                     <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</action>
  355.                     <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</action>
  356.                 </elseif>
  357.             </if>
  358.             <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  359.             <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  360.                 <action type="command" when="midcast">cancel 71</action>
  361.                 <action type="midcastdelay" delay="1.8" />
  362.             </if>
  363.             <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  364.                 <action type="midcastdelay" delay="3.0" />
  365.                 <action type="Command" when="midcast">cancel 66</action>
  366.             </if>
  367.             <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  368.                 <action type="command" when="midcast">cancel 37</action>
  369.                 <action type="midcastdelay" delay="4.8" />
  370.             </elseif>
  371.             <elseif Spell="Blink" BuffActive="Blink">
  372.                 <action type="command" when="midcast">cancel 36</action>
  373.                 <action type="midcastdelay" delay="4.5" />
  374.             </elseif>
  375.             <!-- finally, equip our staff! -->
  376.             <action type="equip" when="midcast">
  377.                 <main>$%SpellElementStaff</main>
  378.             </action>
  379.         </else>
  380.     </rules>
  381. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement