Advertisement
Xellan

Run.xml "Rune Fencer"

May 14th, 2013
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 18.26 KB | None | 0 0
  1. <!--
  2.     Original author: Xellan (Bismarck server).  
  3.     The newest versions will be available at http://guildwork.com/characters/ffxi/bismarck/xellan/spellcast
  4.     Thank you to Hitetsu of Slyph for the Lunge Obi Rules script, at http://www.ffxiah.com/forum/topic/37175/rune-fencer-spellcast-help/
  5.    
  6.     Future versions of this script will avoid the Fomor WS triggers, and will use ClassTriggers instead.  I simply have yet to find a
  7.     comprehensive explantion of how to script for these, and trying to use Motenten's spellcasts as a guide have yet rendered working
  8.     results, although I am grateful for all of the work they have done with regards to both scripting and the DPS calculators spreadsheets.
  9.    
  10.     Future versions of this script will also include more rules for alternate weapons and weaponskills, but at this time I have found no
  11.     need for anything other than Resolution, although I'm sure axes, swords, clubs, and great axes must have merit as well, particularly
  12.     Ruinator.
  13.  
  14.    
  15.    
  16.         Macro or bind the following:    /ws "Dancing Chains" <t>
  17.         This will change your gear to whatever set is defined in the "engaged" variable if you are engaged. If you are idle, it will
  18.         put on your idle set.
  19.  
  20.         Macro or bind the following:    /ws "Foxfire" <t>
  21.         This will toggle the "engaged" variable from standard setup to PDT to MDT, then start back over at the standard set.
  22.        
  23.         Macro or bind the following:    /ws "Grim Halo" <t>
  24.         This will swap you to your PDT gear set. You will stay in this set until you send another command through spellcast. Usually,
  25.         I will hit my Aegis Schism macro to get back in "engaged" or idle set.
  26.    
  27.         Macro or bind the following:    /ws Vulcan Shot <t>
  28.         This will swap you to your MDT gear set. You will stay in this set until you send another command through spellcast. Usually,
  29.         I will hit my Aegis Schism macro to get back in "engaged" or idle set.
  30.  
  31.         Macro or bind the following:    /ja "$Rune" <me>
  32.         This will use your currently selected Rune.  The default is Ignis.
  33.        
  34.         Macro or bind the following:    /ws "Shackled Fists" <t>
  35.         This will toggle your currently engaged Rune.  The default is Ignis.  The cycle order is Ignis/Fire > Gelus/Ice > Flabra/Wind >
  36.         Tellus/Earth> Unda/Water > Sulpor/Thunder > Lux/Light > Tenebrae/Dark, and back to the start.
  37.    
  38. -->
  39.  
  40. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  41.     <guildwork
  42.         character="Xellan"
  43.         server="Bismarck"
  44.         description=""
  45.         job="RUN" />
  46.     <config
  47.         Debug="true"
  48.         HideErrors="true"
  49.         ShowGearSwaps="false" />
  50.  
  51.     <sets>
  52.         <group name="Rune Fencer" Default="true">
  53.         <!-- Set: Standard -->
  54.             <set name="Standard" >
  55.                 <!-- Goal gear (Skadi +1 head/legs) renders 16.5 TP/hit sub Sam (25 gear + 15 Job Trait), 82.5 in 5 hits.
  56.                     Multi-hits from gear:
  57.                         Double Attack:
  58.                             Pole Grip       2
  59.                             Asperity        2
  60.                             Earring Set     7
  61.                             Thaumas Coat    3
  62.                             Epona's Ring 3
  63.                             Atheling Mantle 3
  64.                             Twilight Belt   3
  65.                             Thaumas Nails   3
  66.                             _________________
  67.                             Total          26       + swings/100: 26
  68.  
  69.                         Triple Attack:
  70.                             Thaumas Coat    3
  71.                             Epona's Ring    3
  72.                             _________________
  73.                             Total           6       + swings/100: 12
  74.  
  75.                         Quadruple Attack:
  76.                             Thaumas Coat    3
  77.                             _________________
  78.                             Total           3       + swings/100:  9
  79.                            
  80.                     Total Multi-hits:               + swings/100: 47 -->
  81.    
  82.                 <main>Bereaver</main>
  83.                 <sub>Pole Grip</sub>
  84.                 <ammo>Hagneia Stone</ammo>
  85.                 <head>Ocelomeh Headpiece</head>
  86.                 <!--<head>Skadi's Visor +1</head>-->
  87.                 <neck>Asperity Necklace</neck>
  88.                 <lear>Bladeborn Earring</lear>
  89.                 <rear>Steelflash Earring</rear>
  90.                 <body>Thaumas Coat</body>
  91.                 <hands>Thaumas Gloves</hands>
  92.                 <lring>Epona's Ring</lring>
  93.                 <rring>Rajas Ring</rring>
  94.                 <back>Atheling Mantle</back>
  95.                 <waist>Twilight Belt</waist>
  96.                 <legs>Thaumas Kecks</legs>
  97.                 <!--<legs>Skadi's Cuisses +1</legs>-->
  98.                 <feet>Thaumas Nails</feet>
  99.             </set>
  100.         <!-- Set: Idle Regen -->
  101.             <set name="IdleRegen" BaseSet="Standard" >
  102.                 <head>Ocelomeh Headpiece</head>
  103.                 <neck>Wiglen Gorget</neck>
  104.                 <body>Khepri Jacket</body>
  105.                 <lring>Paguroidea Ring</lring>
  106.                 <rring>Sheltered Ring</rring>
  107.                 <feet>Hermes' Sandals</feet>
  108.                 <!--<feet>Skadi's Jambeaux +1</feet>-->
  109.             </set>
  110.         <!-- Set: Idle Refresh -->
  111.             <set name="IdleRefresh" Baseset="IdleRegen" >
  112.                 <head>Wivre Hairpin</head>
  113.                 <body>Orvail Robe</body>
  114.             </set>
  115.         <!-- Set: WS -->   
  116.             <!-- Resolution Store TP returns:   19.5 TP w/ 5-hits sub Sam (10 gear + 15 Job Trait) (5 hits)
  117.                                                 (82.5 from 5-hit TP build +19.5 TP Resolution return = 101 TP) --> 
  118.             <set name="WS" BaseSet="Standard" >
  119.                 <head>Thurandaut Chapeau</head>
  120.                 <neck>Breeze Gorget</neck>
  121.                 <lear>Bladeborn Earring</lear>
  122.                 <rear>Steelflash Earring</rear>
  123.                 <body>Thurandaut Tabard</body>
  124.                 <hands>Thaumas Gloves</hands>
  125.                 <lring>Epona's Ring</lring>
  126.                 <rring>Rajas Ring</rring>
  127.                 <back>Atheling Mantle</back>
  128.                 <waist>Breeze Belt</waist>
  129.                 <legs>Thaumas Kecks</legs>
  130.                 <feet>Thaumas Nails</feet>
  131.             </set>
  132.         <!-- Set: PDT (Grim Halo) -->  
  133.             <set name="PDT" baseset="Standard">
  134.                 <neck>Wiglen Gorget</neck>
  135.                 <lear>Ethereal Earring</lear>
  136.                 <rear>Colossus's Earring</rear>
  137.                 <lring>Dark Ring</lring>
  138.                 <rring>Dark Ring</rring>
  139.                 <feet>Thurandaut Boots</feet>
  140.             </set> 
  141.         <!-- Set: MDT (Vulcan Shot) -->
  142.                 <!-- Magic Defense Values
  143.                         Shell V:                     62/256
  144.                         Cleric's Pantaloons +2       +5/256
  145.                         Sheltered Ring:              +5/256
  146.                         Embolden:                        *2
  147.                                                     144/256
  148.                                                     56.25% reduction
  149.                         Twilight Torque:                 5%
  150.                         Dark Ring x2:                   10%
  151.                         Colossus's Mantle:               2%
  152.                     Total Embolden Shell V Value:    73.25% reduction
  153.            
  154.                     Magic Defense Bonus
  155.                         Job Trait +22
  156.                         Phalanx Damage Reduced           36 damage per hit
  157.                         Ducal Guard (under 50% HP): 87.625% reduction? -->
  158.  
  159.             <set name="MDT" baseset="Standard">
  160.                 <neck>Twilight Torque</neck>
  161.                 <lring>Dark Ring</lring>
  162.                 <rring>Dark Ring</rring>
  163.                 <back>Colossus's Mantle</back>
  164.             </set>
  165.         <!-- Set: Vallation: A rampart or entrenchment, or the process or technique of constructing ramparts. -->
  166.             <set name="Vallation" BaseSet="Standard" />
  167.         <!-- Set: Pflug: German for plow -->
  168.         <set name="Pflug" Baseset="Standard" />
  169.         <!-- Set: Valiance: Heroism -->            
  170.             <set name="Valiance" BaseSet="Standard" />
  171.         <!-- Set: Liement: An action in which one fencer forces the opponent's blade into a diagonally opposite line (that is, from high line
  172.                             to low line on the opposite side, or vice versa) by taking it with the guard and forte of his own blade.-->        
  173.             <set name="Liement" BaseSet="Standard" />
  174.         <!-- Set: Lunge -->
  175.             <set name="Lunge" BaseSet="Standard" >
  176.                 <head>Thaumas Hat</head>
  177.                 <neck>Stoicheion Medal</neck>
  178.                 <body>Hedera Cotehardie</body>
  179.                 <lear>Hecate's Earring</lear>
  180.                 <rear>Strophadic Earring</rear>
  181.                 <lring>Balrahn's Ring</lring>
  182.                 <legs>Orvail Pants</legs>
  183.             </set>
  184.         <!-- Set: Gambit -->
  185.             <set name="Gambit" BaseSet="Standard" />
  186.         <!-- Set: Embolden -->
  187.             <set name="Embolden" BaseSet="Standard" />
  188.         <!-- Set: One For All - (Unus pro omnibus, omnes pro uno) -->
  189.             <set name="One For All" BaseSet="Standard" />
  190.         <!-- Set: Precast -->
  191.             <set name="Fastcast" >          <!-- Currently +17% -->
  192.                 <head>Athos's Chapeau</head>        <!-- +2% -->
  193.                 <lear>Loquacious Earring</lear>     <!-- +2$ -->
  194.                 <!--<lring>Prolix Ring</lring>-->   <!-- +2% -->
  195.                 <hands>Thaumas Gloves</hands>       <!-- +4% -->   
  196.                 <legs>Orvail Pants</legs>           <!-- +5% -->
  197.                 <feet>Chelona Boots</feet>          <!-- +4% -->
  198.             </set>
  199.         <!-- Set: Enhancing Precast-->
  200.             <set name="EnhancingFastcast" BaseSet="Fastcast" >
  201.                 <waist>Siegel Sash</waist>
  202.             </set>
  203.         <!-- Set: Reecast -->
  204.                 <!-- Haste primary, Conserve MP where available -->
  205.             <set name="Recast" Baseset="Fastcast" > <!-- Haste: Capped -->
  206.                 <head>Ocelomeh Headpiece</head>             <!-- 6% -->
  207.                 <lear>Loquacious Earring</lear>
  208.                 <body>Hedera Cotehardie</body>              <!-- 6% -->
  209.                 <hands>Thaumas Gloves</hands>               <!-- 3% -->
  210.                 <waist>Twilight Belt</waist>                <!-- 7% -->
  211.                 <legs>Thaumas Kecks</legs>                  <!-- 6% -->
  212.             </set>
  213.         <!-- Set: Enhancing Skill -->
  214.             <set name="EnhancingSkill" Baseset="Recast" ><!-- +12/44 possible -->
  215.                 <neck>Colossus's Torque</neck>              <!-- +7 skill -->
  216.                 <!--<body>Manasa Chausuble</body>-->        <!-- +12 skill -->
  217.                 <!--<legs>Portent Pants</legs>-->           <!-- +15 skill -->
  218.                 <back>Merciful Cape</back>                  <!-- +5 skill -->
  219.                 <!--<waist>Olympus Sash</waist>-->          <!-- +5 skill -->
  220.             </set>
  221.         <!-- Set: Spikes -->
  222.             <set name="Spikes" Baseset="Recast" >   <!-- Int: 52 -->
  223.                 <rear>Strophadic Earring</rear>     <!-- +3 -->
  224.                 <body>Orvail Robe</body>            <!-- +18 -->
  225.                 <hands>Orvail Cuffs</hands>         <!-- +15 -->
  226.                 <legs>Orvail Pants</legs>           <!-- +16 -->
  227.             </set>
  228.         <!-- Set: Steps -->
  229.             <set name="Steps" BaseSet="Standard" />
  230.         <!-- Set: Waltzes -->
  231.             <set name="Waltzes" BaseSet="Standard" ><!-- 61 self, 47 other -->
  232.                 <head>Orvail Corona</head>      <!-- 14C -->
  233.                 <body>Orvail Robe</body>        <!-- 18C -->
  234.                 <hands>Orvail Cuffs</hands>     <!-- 15C -->
  235.                 <feet>Turandaut Boots</feet>    <!-- 14V -->
  236.             </set>
  237.         </group>
  238.     </sets>
  239.      
  240.     <variables clear="true">
  241.         <var name="Engaged">Standard</var>
  242.         <var name="When">midcast</var>
  243.         <var name="Rune">Ignis</var>
  244.     </variables>
  245.  
  246.     <rules>
  247.     <!-- Rule: Automatic Recast -->
  248.         <if CommandPrefix="/ma|/nin|/ma*|/nin*" >
  249.             <action type="Command" when="Precast">input /recast "%Spell"</action>
  250.         </if>
  251.        
  252.     <!-- Rule: Abyssea -->
  253.         <if area="Abyssea*">
  254.             <if advanced='"$when" = "midcast"'>
  255.                 <var cmd="set when precast" />
  256.             </if>
  257.         </if>
  258.         <else>
  259.             <if advanced='"$when" = "precast"'>
  260.                 <var cmd="set when midcast" />
  261.             </if>
  262.         </else>
  263.        
  264.     <!-- Rule: Autosets -->
  265.         <command when="engaged|idle|aftercast">wait .3; Dancing Chains</command>
  266.      
  267.     <!-- Rules: Ninjutsu -->
  268.         <if type="Ninjutsu">
  269.             <if spell="Utsusemi*|Tonko*|Monomi*" > 
  270.                 <if notbuffactive="Amnesia|Silence|Mute|Sleep|Stun|Petrify|Terror|Charm">
  271.                     <equip when="Precast" set="FastCast" />
  272.                     <equip when="$when" set="Recast" />
  273.                     <if spell="Utsusemi: Ichi">
  274.                         <action type="midcastdelay" delay="2.5" />
  275.                         <cmd when="$when">cancel 66</cmd>
  276.                     </if>
  277.                     <elseif spell="Monomi*" BuffActive="Sneak">
  278.                         <action type="midcastdelay" delay=".7" />
  279.                         <cmd when="$when">cancel 71</cmd>
  280.                     </elseif>
  281.                 </if>
  282.                 <else>
  283.                     <addtochat>Unable to act.</addtochat>
  284.                     <action type="CancelSpell" />
  285.                     <return />
  286.                 </else>
  287.             </if>
  288.             <else>
  289.                 <return />
  290.             </else>
  291.         </if>
  292.      
  293.     <!-- Rules: White Magic -->
  294.         <if type="WhiteMagic" >
  295.             <if notbuffactive="Amnesia|Silence|Mute|Sleep|Stun|Petrify|Terror|Charm" >
  296.                 <equip when="Precast" set="FastCast" />
  297.                 <equip when="$when" set="Recast" />
  298.                 <if spell="Sneak*" BuffActive="Sneak">
  299.                     <midcastdelay delay="1.4" />
  300.                     <cmd when="midcast">cancel 71</cmd>
  301.                 </if>
  302.                 <if Skill="EnhancingMagic">
  303.                     <equip when="Precast" set="EnhancingFastCast" />
  304.                     <if Spell="Stoneskin">
  305.                         <equip when="$when" set="EnhancingSkill" >
  306.                             <waist>Siegel Sash</waist>
  307.                         </equip>
  308.                     </if>
  309.                     <elseif Spell="Bar*|Phalanx" >
  310.                         <equip when="$when" set="EnhancingSkill" />
  311.                     </elseif>
  312.                     <elseif Spell="Aquaveil|Blink|Foil|Refresh|Regen*" >
  313.                         <equip when="$when" set="Recast" />
  314.                     </elseif>
  315.                     <elseif Spell="Protect*|Shell*" >
  316.                         <equip when="Precast|$when" >
  317.                             <rring>Sheltered Ring</rring>
  318.                         </equip>
  319.                     </elseif>
  320.                 </if>
  321.                 <else>
  322.                     <return />
  323.                 </else>
  324.             </if>
  325.             <else>
  326.                 <addtochat>Unable to act.</addtochat>
  327.                 <action type="CancelSpell" />
  328.                 <return />
  329.             </else>
  330.         </if>
  331.      
  332.     <!-- Rules: Black Magic -->
  333.         <if type="BlackMagic">
  334.             <if notbuffactive="Amnesia|Silence|Mute|Sleep|Stun|Petrify|Terror|Charm" >
  335.                 <equip when="Precast" set="FastCast" />
  336.                 <equip when="$when" set="Recast" />
  337.                 <if Spell="*Spikes">
  338.                     <equip when="$when" set="Spikes" />
  339.                 </if>
  340.                 <else>
  341.                     <return />
  342.                 </else>
  343.             </if>
  344.             <else>
  345.                 <addtochat>Unable to act.</addtochat>
  346.                 <action type="CancelSpell" />
  347.                 <return />
  348.             </else>
  349.         </if>
  350.      
  351.     <!-- Rule: Lunge -->
  352.         <if spell="Lunge" >
  353.             <equip when="precast" set="%Spell" />
  354.         </if>
  355.  
  356.     <!--Rule: Lunge Obis (Author Sylph.Hitetsu -->
  357.         <if mode="and" spell="Lunge" buffactive="Ignis|Unda|Sulpor|Flabra|Tellus|Gelus|Lux|Tenebrae">
  358.             <if mode="and" buffactive="Ignis" Advanced='("Fire" = "%WeatherElement" OR "Fire" = "%DayElement")'>
  359.                 <equip when="precast">
  360.                     <waist lock="yes">Karin Obi</waist>
  361.                 </equip>
  362.             </if>
  363.             <elseif mode="and" buffactive="Unda" Advanced='("Water" = "%WeatherElement" OR "Water" = "%DayElement")'>
  364.                 <equip when="precast">
  365.                     <waist lock="yes">Suirin Obi</waist>
  366.                 </equip>
  367.             </elseif>
  368.             <elseif mode="and" buffactive="Sulpor" Advanced='("Thunder" = "%WeatherElement" OR "Thunder" = "%DayElement")'>
  369.                 <equip when="precast">
  370.                     <waist lock="yes">Rairin Obi</waist>
  371.                 </equip>
  372.             </elseif>
  373.             <elseif mode="and" buffactive="Flabra" Advanced='("Wind" = "%WeatherElement" OR "Wind" = "%DayElement")'>
  374.                 <equip when="precast">
  375.                     <waist lock="yes">Furin Obi</waist>
  376.                 </equip>
  377.             </elseif>
  378.             <elseif mode="and" buffactive="Tellus" Advanced='("Earth" = "%WeatherElement" OR "Earth" = "%DayElement")'>
  379.                 <equip when="precast">
  380.                     <waist lock="yes">Dorin Obi</waist>
  381.                 </equip>
  382.             </elseif>
  383.             <elseif mode="and" buffactive="Gelus" Advanced='("Ice" = "%WeatherElement" OR "Ice" = "%DayElement")'>
  384.                 <equip when="precast">
  385.                     <waist lock="yes">Hyorin Obi</waist>
  386.                 </equip>
  387.             </elseif>
  388.             <elseif mode="and" buffactive="Lux" Advanced='("Light" = "%WeatherElement" OR "Light" = "%DayElement")'>
  389.                 <equip when="precast">
  390.                     <waist lock="yes">Korin Obi</waist>
  391.                 </equip>
  392.             </elseif>
  393.             <elseif mode="and" buffactive="Tenebrae" Advanced='("Dark" = "%WeatherElement" OR "Dark" = "%DayElement")'>
  394.                 <equip when="precast">
  395.                     <waist lock="yes">Anrin Obi</waist>
  396.                 </equip>
  397.             </elseif>
  398.         </if>
  399.  
  400. <!-- Rules: Dancer Job Abilities -->
  401.     <!-- Rule: Steps -->
  402.         <if spell="*Step*" >
  403.             <action type="equip" when="Precast" set="Steps" />
  404.         </if>
  405.     <!-- Rule: Sambas -->
  406.         <if spell="*Samba*" >
  407.             <if mode="AND" spell="Drain Samba II" TPLT="25" >
  408.                 <cancelspell />
  409.                 <return />
  410.             </if>
  411.             <elseif mode="AND" spell="Haste Samba" TPLT="35" >
  412.                 <cancelspell />
  413.                 <return />
  414.             </elseif>
  415.         </if>
  416.     <!-- Rule: Spectral Jig -->
  417.         <if spell="Spectral Jig" >
  418.             <action type="command" When="PreCast">cancel 71</action>
  419.         </if>
  420.     <!-- Rule: Waltzes -->
  421.         <if spell="*Waltz*" >
  422.             <if mode="AND" spell="Curing Waltz" TPLT="20" >
  423.                 <cancelspell />
  424.                 <return />
  425.             </if>
  426.             <elseif mode="AND" spell="Curing Waltz II" TPLT="35" >
  427.                 <cancelspell />
  428.                 <return />
  429.             </elseif>
  430.             <elseif mode="AND" spell ="Curing Waltz III" TPLT="50" >
  431.                 <cancelspell />
  432.                 <return />
  433.             </elseif>
  434.             <elseif mode="AND" spell ="Divine Waltz" TPLT="40" >
  435.                 <cancelspell />
  436.                 <return />
  437.             </elseif>
  438.             <elseif mode="AND" spell ="Healing Waltz" TPLT="20" >
  439.                 <cancelspell />
  440.                 <return />
  441.             </elseif>
  442.             <elseif spell="Healing Waltz" >
  443.                 <return />
  444.             </elseif>
  445.                 <action type="equip" when="precast" set="Waltzes" />
  446.         </if>
  447.      
  448.     <!-- Rule: User-defined proxies (Dancing Chains, Foxfire, Vulcan Shot, Grim Halo) -->
  449.         <if type="Weaponskill" >
  450.  
  451.         <!-- Rule: User-defined BaseSet (Dancing Chains) -->
  452.             <if spell="Dancing Chains" >
  453.                 <if status="Idle" >
  454.                     <if MPPLT="90" >
  455.                         <equip when="precast" set="IdleRefresh" />
  456.                     </if>
  457.                     <else>
  458.                         <equip when="precast" set="IdleRegen" />
  459.                     </else>
  460.                 </if>
  461.                 <elseif status="engaged" >
  462.                     <equip when="precast" set="$engaged" />
  463.                 </elseif>
  464.                 <cancelspell />
  465.             </if>
  466.            
  467.         <!-- Rule: Toggle Runes (Ignis/Fire > Gelus/Ice > Flabra/Wind > Tellus/Earth
  468.                                 > Unda/Water > Sulpor/Thunder > Lux/Light > Tenebrae/Dark)-->
  469.             <elseif spell="Shackled Fists" >
  470.                 <if advanced='"$Rune" = "Ignis"' >
  471.                     <var cmd="set Rune Gelus" />
  472.                 </if>
  473.                 <elseif advanced='"$Rune" = "Gelus"' >
  474.                     <var cmd="set Rune Flabra" />
  475.                 </elseif>
  476.                 <elseif advanced='"$Rune" = "Flabra"' >
  477.                     <var cmd="set Rune Tellus" />
  478.                 </elseif>
  479.                 <elseif advanced='"$Rune" = "Tellus"' >
  480.                     <var cmd="set Rune Sulpor" />
  481.                 </elseif>
  482.                 <elseif advanced='"$Rune" = "Sulpor"' >
  483.                     <var cmd="set Rune Unda" />
  484.                 </elseif>
  485.                 <elseif advanced='"$Rune" = "Unda"' >
  486.                     <var cmd="set Rune Lux" />
  487.                 </elseif>
  488.                 <elseif advanced='"$Rune" = "Lux"' >
  489.                     <var cmd="set Rune Tenebrae" />
  490.                 </elseif>
  491.                 <elseif advanced='"$Rune" = "Tenebrae"' >
  492.                     <var cmd="set Rune Ignis" />
  493.                 </elseif>
  494.                 <command>input /echo ~~~Rune Enchantment is now [$Rune]~~~</command>
  495.                 <cancelspell />
  496.                 <return />
  497.             </elseif>
  498.      
  499.         <!-- Rule: Toggle Standard / PDT / MDT -->
  500.             <elseif spell="Foxfire">
  501.                 <if advanced='"$engaged" = "MDT"'>
  502.                     <var cmd="set engaged Standard" />
  503.                 </if>
  504.                 <elseif advanced='"$engaged" = "Standard"'>
  505.                     <var cmd="set engaged PDT" />
  506.                 </elseif>
  507.                 <else>
  508.                     <var cmd="set engaged MDT" />
  509.                 </else>
  510.                 <if status="engaged">
  511.                     <command>wait .3;sc set $engaged; input /echo ~~~Engaged set is now $engaged~~~</command>
  512.                 </if>
  513.                 <else>
  514.                     <command>sc set idleregen; input /echo ~~~Engaged set is now [$engaged]~~~</command>
  515.                 </else>
  516.                 <cancelspell />
  517.                 <return />
  518.             </elseif>
  519.      
  520.         <!-- Rule: PDT Set (Grim Halo) -->
  521.             <elseif spell="Grim Halo">
  522.                 <equip when="precast" set="PDT" />
  523.                 <cancelspell />
  524.                 <return />
  525.             </elseif>
  526.            
  527.         <!-- Rule: MDT Set (Vulcan Shot) -->
  528.             <elseif spell="Vulcan Shot">
  529.                 <equip when="precast" set="MDT" />
  530.                 <cancelspell />
  531.                 <return />
  532.             </elseif>
  533.            
  534.     <!-- Rules: Actual Weapon Skills -->
  535.         <!-- Rule: Weapon Skill TP/distance check -->
  536.             <elseif commandprefix="/ws|/weaponskill" >
  537.                 <if mode="OR" TPLT="100" TargetDistanceGT="5.9" >
  538.                     <cancelspell />
  539.                     <cmd>input /echo WARNING: Target is too far or insufficient TP.</cmd>
  540.                     <return />
  541.                 </if>  
  542.                 <else>
  543.                     <equip when="precast" set="WS" />
  544.                 </else>
  545.             </elseif>
  546.            
  547.         </if>
  548.     </rules>
  549. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement