Guest User

Untitled

a guest
May 24th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.08 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <spellcast>
  3.     <config
  4.         RequireVersion="2.18"
  5.         ShowGearSwaps="false"
  6.         Debug="true"
  7.         ShowSpellInfo="false"
  8.         HideErrors="false"     
  9.     />
  10.     <variables clear="false">
  11.         <var name="IceStaff">Aquilo's Staff</var>
  12.         <var name="DarkStaff">Pluto's Staff</var>      
  13.         <var name="LightStaff">Light Staff</var>   
  14.         <var name="ThunderStaff">Indra's Staff +2</var>
  15.         <var name="WaterStaff">Water Staff</var>
  16.         <var name="WindStaff">Wind Staff</var>
  17.         <var name="EarthStaff">Earth Staff</var>       
  18.         <var name="FireStaff">Fire Staff</var>     
  19.         <var name="DarkObi">0</var>
  20.         <var name="LightObi">0</var>
  21.         <var name="ThunderObi">0</var>
  22.         <var name="IceObi">0</var>
  23.         <var name="FireObi">0</var>
  24.         <var name="WindObi">0</var>
  25.         <var name="WaterObi">0</var>
  26.         <var name="EarthObi">0</var>
  27.         <var name="LightGrip">0</var>
  28.         <var name="DarkGrip">0</var>
  29.         <var name="ThunderGrip">1</var>
  30.         <var name="IceGrip">1</var>
  31.         <var name="FireGrip">0</var>
  32.         <var name="WindGrip">0</var>
  33.         <var name="WaterGrip">0</var>
  34.         <var name="EarthGrip">0</var>      
  35.         <var name="Gaiters">0</var>
  36.         <var name="Ring">0</var>
  37.         <var name="CureBot">0</var>
  38.     </variables>
  39.     <sets>
  40.         <group default="yes" name="WHM|Melee">
  41.             <set name="Standard">
  42.                 <main>$LightStaff</main>
  43.                 <sub>Bugard Leather Strap +1</sub>
  44.                 <ammo>Incantor Stone</ammo>
  45.                 <head>Cleric's Cap</head>
  46.                 <neck>Noetic Torque</neck>
  47.                 <lear>Loquacious Earring</lear>
  48.                 <rear>Gifted Earring</rear>
  49.                 <body>Noble's Tunic</body>
  50.                 <hands>Cleric's Mitts</hands>
  51.                 <rring>Star Ring</rring>
  52.                 <lring>Star Ring</lring>
  53.                 <back>Eloquence Cape +1</back>
  54.                 <waist>Penitent's Rope</waist>
  55.                 <legs>Jet Seraweels</legs>
  56.                 <feet>Rostrum Pumps</feet>
  57.             </set>
  58.             <set name="MaxMP" BaseSet="Standard">
  59.                 <main>Kirin's Pole</main>
  60.                 <sub>Ice Grip</sub>
  61.                 <head>Zenith Crown</head>
  62.                 <neck>Uggalepih Pendant</neck>
  63.                 <lring>Bifrost Ring</lring>
  64.                 <rring>Ether Ring</rring>              
  65.             </set>
  66.             <set name="Resting" BaseSet="Standard">
  67.                 <body>Errant Hpl.</body>               
  68.                 <main>$DarkStaff</main>
  69.                 <sub>Ariesian Grip</sub>               
  70.                 <legs>Baron's Slops</legs>
  71.                 <waist>Austerity Belt</waist>  
  72.                 <back>Felicitas Cape</back>
  73.                 <rear>Antivenom Earring</rear>
  74.                 <neck>Eidolon Pendant</neck>           
  75.             </set>
  76.             <set name="Haste" BaseSet="Standard">                              
  77.             </set>
  78.             <set name="WeakenedMinusHP" BaseSet="Standard">            
  79.             </set>
  80.             <set name="MinusHP" BaseSet="Standard">            
  81.             </set>
  82.             <set name="Melee" BaseSet="Standard">
  83.                 <main lock="true" />
  84.                 <sub lock="true" />
  85.                 <ammo lock="true" />                               
  86.                 <feet>Healer's Duckbills</feet>
  87.                 <hands>Healer's Mitts</hands>              
  88.             </set>
  89.             <set name="WS" BaseSet="Melee">            
  90.                 <head>Hlr. Cap</head>
  91.                 <hands>Hlr. Mitts</hands>
  92.             </set>
  93.             <set name="Healing" BaseSet="Standard">            
  94.                 <!--main>$LightStaff</main-->
  95.                 <legs>Lore Slops</legs>
  96.                 <hands>Augur's Gloves</hands>
  97.                 <ammo>Incantor Stone</ammo>
  98.                 <rring>Solemn Ring</rring>
  99.                 <back>Orison Cape</back>
  100.                 <head>Walahra Turban</head>            
  101.             </set>
  102.             <set name="DarkMagic" BaseSet="Standard">              
  103.             </set>
  104.             <set name="Enhancing" BaseSet="Standard">              
  105.                 <head>Hlr. Cap</head>                          
  106.             </set>
  107.             <set name="Banish" BaseSet="Divine">   
  108.                 <main>$LightStaff</main>           
  109.             </set>
  110.             <set name="Divine" BaseSet="Standard">
  111.                 <legs>Healer's Pantaln.</legs>
  112.                 <main>$WaterStaff</main>                       
  113.             </set>
  114.             <set name="EnfeeblingBase" BaseSet="Standard"> 
  115.                 <body>Healer's Briault</body>                                          
  116.             </set>
  117.             <set name="Enfeebling-BlackMagic" BaseSet="EnfeeblingBase">
  118.             </set>
  119.             <set name="Enfeebling-WhiteMagic" BaseSet="EnfeeblingBase">            
  120.             </set>
  121.         </group>
  122.     </sets>
  123.     <rules>
  124.         <if advanced='"$CureBot"="1"' Spell="Cure">
  125.             <if TargetHPPLT="75" TargetType="Player" TargetHPPGT="0">
  126.                 <if TargetHPPLT="50">
  127.                     <action type="changespell" spell="Cure V" />
  128.                 </if>
  129.                 <else>
  130.                     <action type="changespell" spell="Cure III" />
  131.                 </else>
  132.                 <action type="command" when="aftercast">wait .3;cure</action>
  133.             </if>
  134.             <else>
  135.                 <action type="cancelspell" />
  136.                 <action type="command">wait .3;cure</action>
  137.                 <action type="return" />
  138.             </else>
  139.         </if>
  140.  
  141.         <action type="equip"><rear></rear></action>
  142.         <!--if SpellTarget="<t>" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  143.             <action type="changetarget" target="<me>" />
  144.         </if>
  145.         <if MLVLLT="73"> <action type="return" /> </if-->
  146.         <!-- Obi's -->
  147.         <if advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  148.             <if     Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
  149.             <elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
  150.             <elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
  151.             <elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
  152.             <elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
  153.             <elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
  154.             <elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
  155.             <elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
  156.         </if>
  157.         <action type="equip" when="AfterCast" set="Standard" />
  158.         <action type="equip" when="Resting" set="Resting" />
  159.         <action type="equip" when="Engaged" set="Melee" />
  160.         <action type="equip" when="Idle" set="Standard" />
  161.         <if Mode="OR" Status="Engaged" Group="*Melee">
  162.             <action type="equip" when="aftercast|idle" set="Melee" />
  163.             <if equipsub="Prudence Rod" NotEquipAmmo="Virtue Stone">
  164.                 <action type="addtochat">Equipping Virtue stones</action>
  165.                 <action type="equip" when="precast|midcast|aftercast"><ammo lock="true">Virtue Stone</ammo></action>
  166.             </if>
  167.             <action type="equip" when="precast|midcast|aftercast|autoset|idle|resting">
  168.                 <main lock="t" />
  169.                 <sub lock="t" />
  170.                 <range lock="t" />
  171.                 <ammo lock="t" />
  172.             </action>
  173.             <if type="WeaponSkill">
  174.                 <action type="equip" set="WS" />
  175.                 <action type="precastdelay" delay=".4" />
  176.                 <if BuffActive="Allied Tags" NotBuffActive="Haste">
  177.                     <action type="command" when="aftercast">wait 2;haste me</action>
  178.                 </if>
  179.             </if>
  180.             <if MPPLT="65">
  181.                 <action type="equip" when="aftercast|idle">                
  182.                 </action>
  183.             </if>
  184.         </if>
  185.         <action type="equip" when="midcast">
  186.             <main>$%SpellElementStaff</main>
  187.         </action>
  188.         <if Skill="HealingMagic">
  189.             <if MPLT="60">
  190.                 <!-- Show Spell Info for cures only when low on MP -->
  191.                 <action type="ShowSpellInfo" />
  192.             </if>
  193.             <if Spell="Cure IV">
  194.                 <!-- Evil Spell -->
  195.                 <action type="ChangeSpell" Spell="Cure V" />
  196.             </if>
  197.             <if NotBuffActive="Light Arts">        
  198.                 <if Spell="Cure V" MPLT="135">
  199.                     <action type="ChangeSpell" Spell="Cure III" />
  200.                 </if>
  201.                 <if Spell="Cure III" MPLT="46">
  202.                     <action type="ChangeSpell" Spell="Cure II" />
  203.                 </if>
  204.                 <if Spell="Cure II" MPLT="24">
  205.                     <action type="CancelSpell" />
  206.                     <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action>
  207.                 </if>
  208.             </if>
  209.             <else> <!-- Light Arts is Active - -10% MP Cost -->
  210.                 <if NotBuffActive="Penury">
  211.                     <if Spell="Cure V" MPLT="122">
  212.                         <action type="ChangeSpell" Spell="Cure III" />
  213.                     </if>
  214.                     <if Spell="Cure III" MPLT="42">
  215.                         <action type="ChangeSpell" Spell="Cure II" />
  216.                     </if>
  217.                     <if Spell="Cure II" MPLT="22">
  218.                         <action type="CancelSpell" />
  219.                         <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action>
  220.                     </if>
  221.                 </if>
  222.                 <else> <!-- Penury is Active - -50% MP Cost -->
  223.                     <if Spell="Cure V" MPLT="68">
  224.                         <action type="ChangeSpell" Spell="Cure III" />
  225.                     </if>
  226.                     <if Spell="Cure III" MPLT="23">
  227.                         <action type="ChangeSpell" Spell="Cure II" />
  228.                     </if>
  229.                     <if Spell="Cure II" MPLT="12">
  230.                         <action type="CancelSpell" />
  231.                         <action type="addtochat" color="56">[ERROR] Not enough MP To cast Cure! ~</action>
  232.                     </if>
  233.                 </else>                
  234.             </else>            
  235.             <if NotSpell="*Raise*|*na">
  236.                 <action type="MidCastDelay" delay=".8" />
  237.                 <action type="Equip" when="Midcast" Set="Healing" />
  238.                 <if NotGroup="Melee" NotStatus="Engaged" Advanced='$Ring==1'>
  239.                     <if advanced='((string)"%SubJob"=="BLM" AND (float)(%HP)/766 > 0.759) OR ((string)"%SubJob"=="SMN" AND (float)%HP/747 > 0.759) OR ((string)"%SubJob"=="SCH" AND (float)%HP/852 > 0.759) '>
  240.                         <if NotBuffActive="Weakness">
  241.                             <action type="Equip" when="Precast" Set="MinusHP" />
  242.                             <if SubJob="SCH">
  243.                                 <action type="equip">
  244.                                     <lring>Ether Ring</lring>
  245.                                 </action>
  246.                             </if>
  247.  
  248.                         </if>
  249.                         <else>
  250.                             <action type="Equip" when="Precast" Set="WeakenedMinusHP" />
  251.                         </else>
  252.                     </if>
  253.                 </if>
  254.                 <elseif Advanced='$Ring != 1'>
  255.                     <action type="Equip" when="Midcast" Set="Healing" />
  256.                 </elseif>
  257.             </if>
  258.             <else> <!-- *Raise*/*na -->
  259.                 <action type="equip" set="Standard" />
  260.             </else>
  261.         </if> <!-- end healing magic-->
  262.         <else>
  263.             <if Skill="EnhancingMagic">
  264.                 <action type="equip" when="midcast" set="Enhancing" />
  265.                 <if Spell="Bar*">
  266.                     <action type="MidCastDelay" delay="0" />
  267.                     <action type="Equip" when="midcast">
  268.                         <body>Blessed Briault</body>                       
  269.                     </action>
  270.                 </if>
  271.                 <elseif Spell="Teleport*|Recall*">
  272.                     <action type="command">input /p Teleporting to - %spell - </action>
  273.                     <action type="command" when="aftercast">input /p And were off to - %spell -! </action>
  274.                 </elseif>
  275.             </if>
  276.             <elseif Skill="Ninjutsu">
  277.                 <action type="equip" when="midcast" set="Haste" />
  278.                 <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  279.                     <action type="midcastdelay" delay="3.0" />
  280.                     <action type="Command" when="midcast">cancel 66</action>
  281.                 </if>
  282.             </elseif>
  283.             <elseif Skill="DarkMagic">
  284.                 <action type="Equip" when="Midcast" Set="DarkMagic" />
  285.             </elseif>
  286.             <elseif Skill="EnfeeblingMagic">
  287.                 <action type="equip" when="midcast" set="Enfeebling-%Type" />
  288.             </elseif>
  289.             <elseif Skill="DivineMagic">
  290.                 <action type="Equip" when="Midcast" Set="Divine" />
  291.                 <if spell="Banish*|Holy">
  292.                     <action type="Equip" when="Midcast" Set="Banish" />
  293.                 </if>
  294.             </elseif>
  295.             <if Advanced='"$%SpellElementGrip" == "1"'>
  296.                 <action type="equip" when="midcast">
  297.                     <sub lock="true">%SpellElement Grip</sub>
  298.                 </action>
  299.             </if>      
  300.         </else>
  301.         <if Spell="Cure*|Cura*">
  302.             <action type="Equip" when="Precast"><feet lock="true"></feet></action>
  303.         </if>
  304.         <elseif CastTimeGT="1.5">
  305.             <action type="Equip" when="Precast"><feet lock="true"></feet></action>
  306.         </elseif>
  307.         <action type="equip" when="precast"><rear lock="t"></rear></action>
  308.  
  309.         <if Spell="Repose">
  310.             <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /p [$sleepid:%spell] <%Target> Wearing off in 45s</action>
  311.             <action type="command" when="aftercast">wait 75;input /p [$sleepid:%spell] <%Target>Wearing off in 15s</action>
  312.             <action type="command" when="aftercast">wait 85;input /p [$sleepid:%spell] <%Target>Wearing off in 5s;spellcast var dec sleepid;</action>
  313.         </if>
  314.         <elseif Spell="Sleep*">
  315.             <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /p [$sleepid:%spell] <%Target>Wearing off in 15s</action>
  316.             <action type="command" when="aftercast">wait 55;input /p [$sleepid:%spell] <%Target>Wearing off in 5s;spellcast var dec sleepid;</action>
  317.         </elseif>
  318.  
  319.         <if Spell="Tractor|Raise*">
  320.             <if Area="Dynamis*|Hazhalm*">
  321.                 <action type="command">input /l Casting %spell on %spelltarget</action>
  322.             </if>
  323.             <else>
  324.                 <action type="command">input /p Casting %spell on %spelltarget</action>
  325.             </else>
  326.         </if>
  327.         <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  328.         <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  329.             <action type="changetarget" target="<me>" />
  330.         </if>  
  331.         <if SpellTargetType="NONE" ValidTarget="*Self*">
  332.             <action type="changetarget" target="<me>" />
  333.         </if>
  334.         <if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTargetName"="%PlayerName"'>
  335.             <action type="command" when="midcast">cancel 71</action>
  336.             <action type="midcastdelay" delay="2.3" />
  337.         </if>
  338.         <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  339.             <action type="command" when="midcast">cancel 37</action>
  340.             <action type="midcastdelay" delay="5.9" />
  341.         </elseif>
  342.         <elseif Spell="Blink" BuffActive="Blink">
  343.             <action type="command" when="midcast">cancel 36</action>
  344.             <action type="midcastdelay" delay="5.2" />
  345.         </elseif>
  346.         <if Advanced="$Gaiters=1">
  347.             <if NotStatus="Engaged">
  348.                 <action type="equip" when="aftercast">                 
  349.                 </action>
  350.             </if>
  351.             <else>
  352.                 <action type="equip" when="Idle">                  
  353.                 </action>
  354.             </else>
  355.         </if>
  356.     </rules>
  357. </spellcast>
Add Comment
Please, Sign In to add comment