Advertisement
Motenten

Mote-Include

Aug 29th, 2011
1,077
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 43.60 KB | None | 0 0
  1. <!-- ********************************************************************* -->
  2. ~~~~~  This version is obsolete, and has been replaced by the r2 version ~~~~~
  3. <!-- ********************************************************************* -->
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <!-- Last modified: 10/6/2011 7:20:58 PM -->
  7.  
  8. <includes>
  9.     <!-- ***************** Variables ***************** -->
  10.  
  11.     <!-- This is a REQUIRED include. -->
  12.     <include name="UtilityVars">
  13.         <var name="Area">Outside</var>
  14.         <!-- <var name="Challenge">Normal</var> -->
  15.  
  16.         <var name="CurrentSet">None</var>
  17.  
  18.         <var name="TPSet">TP</var>
  19.         <var name="TPSTYLE">Default</var>
  20.         <var name="WSSTYLE">Standard</var>
  21.         <!-- Physical and magical accuracy can have a value between 1 and 3. -->
  22.         <var name="PhysAcc">1</var>
  23.         <var name="MagAcc">1</var>
  24.         <var name="AccMod">0</var>
  25.  
  26.         <var name="IdleSet">Idle</var>
  27.         <var name="IdleSTYLE">Field</var>
  28.  
  29.         <var name="Movement">Move</var>
  30.         <var name="Convert">None</var>
  31.  
  32.         <var name="Distance">6.0</var>
  33.         <var name="PullWeapon">Mamoolbane</var>
  34.         <var name="TrialWeapon">None</var>
  35.         <var name="LockMain">0</var>
  36.  
  37.         <var name="Triggered">False</var>
  38.  
  39.         <!-- Defined Triggers:
  40.            Reset: Tranquility (must be handled separately from the other triggers)
  41.            
  42.            Deferred equipment resolution: Dancing Chains
  43.  
  44.            >> General triggers are all fomor weaponskills
  45.            Set distance: Shackled Fists
  46.  
  47.            Physical accuracy (cycle): Vulcan Shot
  48.            Magical accuracy (cycle): Carnal Nightmare
  49.            Light Armor cycle (Evasion/Counter/etc): Grim Halo
  50.            Light Armor cycle (HP): Aegis Schism
  51.            Heavy Armor toggle (PDT/MDT): Netherspikes
  52.            Kiting (toggle): Foxfire
  53.  
  54.            >> Reserved fomor triggers:
  55.            Barbed Crescent
  56.  
  57.            >> MDT Triggers -- These can be used to set the element for MDT sets, or change to strict PDT.
  58.            Stonega V - earth
  59.            Waterga V - water
  60.            Aeroga V - wind
  61.            Firaga V - fire
  62.            Blizzaga V - ice
  63.            Thundaga V - lightning
  64.            Bio V - PDT
  65.  
  66.            >> Tier 4 -gas and Bio IV are used in spell proc testing, but may be moved
  67.            >> to the blm-specific XML rather than kept in the shared XML.
  68.  
  69.            >> Other triggers are listed in the UnusedTriggers list below that should
  70.            >> not conflict with any jobs, should there be a need for more general/cross-job
  71.            >> triggers.
  72.        -->
  73.  
  74.         <!-- Note the reset trigger, and have var to use in Command. -->
  75.         <var name="ResetTrigger">Tranquility</var>
  76.         <var name="ResetCommand">input /ja $ResetTrigger &lt;me&gt;</var>
  77.  
  78.         <var name="Triggers">Shackled Fists|Vulcan Shot|Carnal Nightmare|Grim Halo|Aegis Schism|Netherspikes|Foxfire</var>
  79.         <var name="EleTriggers">Stonega V|Waterga V|Aeroga V|Firaga V|Blizzaga V|Thundaga V|Bio V</var>
  80.  
  81.         <!-- Var for custom job triggers.  Should be set within each job XML
  82.             to allow them to be filtered by the ReturnRules check and such. -->
  83.         <var name="JobTriggers">0</var>
  84.  
  85.         <!-- These spells are available to use as triggers. -->
  86.         <var name="UnusedTriggers">Barbed Crescent|Utsusemi: San|Jubaku: San|Hojo: San|Kurayami: San|Dokumori: San|Tonko: San|Poisonga III|Poisonga IV|Poisonga V|Diaga V|Banishga V</var>
  87.  
  88.         <var name="EquipTrigger">Dancing Chains</var>
  89.         <var name="EquipCommand">input /ja $EquipTrigger &lt;me&gt;</var>
  90.  
  91.  
  92.         <!-- ~~~~~~ Armor sets ~~~~~~ -->
  93.  
  94.         <!-- Light armor is for armor that buffs defensive stats: evasion, counter, HP, shield skill, etc. -->
  95.         <var name="LightArmor">None</var>
  96.         <!-- Names for the two tiers of light armor used in the basic trigger (HP is handled separately).
  97.             Examples:
  98.             Thf: Evasion1, Evasion2
  99.             Mnk: Evasion, Counter
  100.             Pld: Shield, None
  101.             These must be set in the job XML.
  102.        -->
  103.         <var name="SetLightArmor1">None</var>
  104.         <var name="SetLightArmor2">None</var>
  105.         <var name="SetLightArmorHP">HPGear</var>
  106.  
  107.         <!-- Heavy armor includes PDT and MDT -->
  108.         <var name="HeavyArmor">None</var>
  109.         <!-- Types: This var is used to hold the specific PDT/MDT set that you
  110.             will switch into when triggering HeavyArmor.
  111.             Sets are: MDT-Earth, MDT-Water, MDT-Wind, MDT-Fire, MDT-Ice, MDT-Thunder, PDT -->
  112.         <var name="DTType">PDT</var>
  113.  
  114.         <!-- Weakness armor is the gear set to wear while weak (usually +HP). -->
  115.         <var name="WeaknessArmor">None</var>
  116.         <var name="WeaknessSet">WeakSet</var>
  117.  
  118.         <!-- Notes -->
  119.  
  120.         <!-- Variables
  121.             Variables that should be overridden in the job.xml:
  122.             STYLE - Default TP style (eg: H2H for mnk)
  123.             SetLightArmor1 - Defense skill set, if applicable
  124.             SetLightArmor2 - Defense skill set, if applicable
  125.             ResetTrigger - Change this if you're a sch with Tranquility merited.
  126.                            If ResetTrigger is changed, ResetCommand must also be redefined.
  127.             JobTriggers - Define any custom triggers used by that job
  128.             PullWeapon - Set if different from the default 'Mamoolbane' (all jobs chakram)
  129.             TrialWeapon - Set to magian weapon if you want it locked while doing trials (requires include:EquipmentLockRules)
  130.        -->
  131.  
  132.         <!-- Sets
  133.            Sets that must be defined in the job.xml (see also: include:RequiredSets)
  134.            None (can use include:BlankSet)
  135.            PDT
  136.            MDT-Fire, MDT-Earth, etc (6 basic elements)
  137.            Resting
  138.            Kite & Move (same set, defined as Kite|Move)
  139.            WeaknessSet value (default of WeakSet may be changed)
  140.            HPGear
  141.  
  142.            Sets that must be defined under certain conditions:
  143.            Convert, if using include:ConvertRule
  144.            SetLightArmor1 value, if defined
  145.            SetLightArmor2 value, if defined
  146.        -->
  147.     </include>
  148.    
  149.     <!-- Required when including RecastWarnings -->
  150.     <include name="RecastDurations">
  151.         <var name="WarnTime">15</var>
  152.  
  153.         <var name="Refresh-Duration">150</var>
  154.         <var name="Refresh II-Duration">150</var>
  155.         <var name="Haste-Duration">180</var>
  156.         <var name="Phalanx-Duration">180</var>
  157.         <var name="Reprisal-Duration">180</var>
  158.         <var name="Sleep-Duration">60</var>
  159.         <var name="Sleep II-Duration">60</var>
  160.         <var name="Repose-Duration">90</var>
  161.         <var name="Sleepga-Duration">90</var>
  162.         <var name="Sleepga II-Duration">90</var>
  163.         <var name="Break-Duration">30</var>
  164.  
  165.         <var name="Enspell-Duration">180</var>
  166.         <var name="Spikes-Duration">180</var>
  167.  
  168.         <var name="SleepOrder">0</var>
  169.  
  170.         <!-- Count: Set bonus gained for the number of +2 AF3 pieces being worn.
  171.             10 for 2 pieces, 20 for 3 pieces, 30 for 4 pieces, 50 for 5 pieces. -->
  172.         <var name="EstoqueurSetBonus">30</var>
  173.         <!-- Cape: 0 for don't have; 1 for have. -->
  174.         <var name="EstoqueurCape">1</var>
  175.         <!-- Feet: 0 for don't have; 1 for +1; 2 for +2 -->
  176.         <var name="EstoqueurFeet">2</var>
  177.  
  178.         <var name="Buff-Duration">0</var>
  179.         <var name="Warn-Duration">0</var>
  180.         <var name="BuffDurationMult">100</var>
  181.     </include>
  182.  
  183.     <include name="ElementalStaves">
  184.         <!-- Variables can't contain variable values.  Must define each explicitly. -->
  185.  
  186.         <!-- Define these according to which staves you have -->
  187.         <var name="EleStaff-Fire">Vulcan's Staff</var>
  188.         <var name="EleStaff-Ice">Aquilo's Staff</var>
  189.         <var name="EleStaff-Wind">Auster's Staff</var>
  190.         <var name="EleStaff-Earth">Terra's Staff</var>
  191.         <var name="EleStaff-Thunder">Jupiter's Staff</var>
  192.         <var name="EleStaff-Water">Neptune's Staff</var>
  193.         <var name="EleStaff-Light">Apollo's Staff</var>
  194.         <var name="EleStaff-Dark">Pluto's Staff</var>
  195.  
  196.         <!-- Generally shouldn't need to modify this set (for reference only) -->
  197.         <var name="MagianStaff-Fire">Agni's Staff +2</var>
  198.         <var name="MagianStaff-Ice">Varuna's Staff +2</var>
  199.         <var name="MagianStaff-Wind">Vayu's Staff +2</var>
  200.         <var name="MagianStaff-Earth">Kubera's Staff +2</var>
  201.         <var name="MagianStaff-Thunder">Indra's Staff +2</var>
  202.         <var name="MagianStaff-Water">Soma's Staff +2</var>
  203.         <var name="MagianStaff-Light">Surya's Staff +2</var>
  204.         <var name="MagianStaff-Dark">Yama's Staff +2</var>
  205.  
  206.         <!-- Magian staves with -cast time; otherwise whatever staff you want in precast. -->
  207.         <var name="Staff-FastCast-Fire">Vulcan's Staff</var>
  208.         <var name="Staff-FastCast-Ice">Varuna's Staff +2</var>
  209.         <var name="Staff-FastCast-Wind">Auster's Staff</var>
  210.         <var name="Staff-FastCast-Earth">Terra's Staff</var>
  211.         <var name="Staff-FastCast-Thunder">Jupiter's Staff</var>
  212.         <var name="Staff-FastCast-Water">Neptune's Staff</var>
  213.         <var name="Staff-FastCast-Light">Apollo's Staff</var>
  214.         <var name="Staff-FastCast-Dark">Pluto's Staff</var>
  215.  
  216.         <!-- What staff to equip when going for nuke damage. -->
  217.         <var name="Staff-Dmg-Fire">Vulcan's Staff</var>
  218.         <var name="Staff-Dmg-Ice">Varuna's Staff +2</var>
  219.         <var name="Staff-Dmg-Wind">Auster's Staff</var>
  220.         <var name="Staff-Dmg-Earth">Terra's Staff</var>
  221.         <var name="Staff-Dmg-Thunder">Jupiter's Staff</var>
  222.         <var name="Staff-Dmg-Water">Neptune's Staff</var>
  223.         <var name="Staff-Dmg-Light">Apollo's Staff</var>
  224.         <var name="Staff-Dmg-Dark">Pluto's Staff</var>
  225.  
  226.         <!-- What staff to equip when going for spell accuracy (eg: debuffs). -->
  227.         <var name="Staff-Acc-Fire">Vulcan's Staff</var>
  228.         <var name="Staff-Acc-Ice">Aquilo's Staff</var>
  229.         <var name="Staff-Acc-Wind">Auster's Staff</var>
  230.         <var name="Staff-Acc-Earth">Terra's Staff</var>
  231.         <var name="Staff-Acc-Thunder">Jupiter's Staff</var>
  232.         <var name="Staff-Acc-Water">Neptune's Staff</var>
  233.         <var name="Staff-Acc-Light">Apollo's Staff</var>
  234.         <var name="Staff-Acc-Dark">Pluto's Staff</var>
  235.  
  236.         <!-- Vars for specific types of staves that may vary from any of the above categories. -->
  237.         <var name="Staff-Cures">Surya's Staff +2</var>
  238.         <var name="Staff-PDT">Terra's Staff</var>
  239.     </include>
  240.  
  241.     <!-- Sch weather constants are required for the rules that equip elemental gear.
  242.         If you import ElementalGear, you MUST import SchWeatherConstants as well. -->
  243.     <include name="ElementalGear">
  244.         <!-- Replace 0 with obi name when acquired -->
  245.         <var name="Obi-Fire">0</var>
  246.         <var name="Obi-Ice">0</var>
  247.         <var name="Obi-Wind">0</var>
  248.         <var name="Obi-Earth">0</var>
  249.         <var name="Obi-Thunder">0</var>
  250.         <var name="Obi-Water">0</var>
  251.         <var name="Obi-Light">0</var>
  252.         <var name="Obi-Dark">0</var>
  253.  
  254.         <!-- Replace 0 with gear name when acquired -->
  255.         <var name="TwilightCape">Twilight Cape</var>
  256.         <var name="ZodiacRing">Zodiac Ring</var>
  257.     </include>
  258.  
  259.     <include name="SchWeatherConstants">
  260.         <var name="Storm-Fire">Firestorm</var>
  261.         <var name="Storm-Ice">Hailstorm</var>
  262.         <var name="Storm-Wind">Windstorm</var>
  263.         <var name="Storm-Earth">Sandstorm</var>
  264.         <var name="Storm-Thunder">Thunderstorm</var>
  265.         <var name="Storm-Water">Rainstorm</var>
  266.         <var name="Storm-Light">Aurorastorm</var>
  267.         <var name="Storm-Dark">Voidstorm</var>
  268.     </include>
  269.  
  270.     <include name="SmnSpiritConstants">
  271.         <var name="Spirit-Fire">Fire Spirit</var>
  272.         <var name="Spirit-Ice">Ice Spirit</var>
  273.         <var name="Spirit-Wind">Air Spirit</var>
  274.         <var name="Spirit-Earth">Earth Spirit</var>
  275.         <var name="Spirit-Thunder">Thunder Spirit</var>
  276.         <var name="Spirit-Water">Water Spirit</var>
  277.         <var name="Spirit-Light">Light Spirit</var>
  278.         <var name="Spirit-Dark">Dark Spirit</var>
  279.     </include>
  280.  
  281.     <include name="EnspellConstants">
  282.         <var name="En-Fire">Enfire</var>
  283.         <var name="En-Ice">Enblizzard</var>
  284.         <var name="En-Wind">Enaero</var>
  285.         <var name="En-Earth">Enstone</var>
  286.         <var name="En-Thunder">Enthunder</var>
  287.         <var name="En-Water">Enwater</var>
  288.         <var name="En-Light">Enlight</var>
  289.         <var name="En-Dark">Endark</var>
  290.     </include>
  291.  
  292.  
  293.     <!-- ******************* Sets ******************* -->
  294.  
  295.     <!-- Import this group, and inherit it in the default Outside-Group
  296.         group.  Other groups inherit from Outside-Group.
  297.         This should ensure that these sets exist in each group,
  298.         even if their contents aren't revised. -->
  299.     <include name="Base-Group">
  300.         <group name="Base-Group">
  301.             <set name="None">
  302.             </set>
  303.             <set name="Resting">
  304.             </set>
  305.             <set name="Kite|Move">
  306.             </set>
  307.             <set name="PDT">
  308.             </set>
  309.             <set name="MDT">
  310.             </set>
  311.             <set name="MDT-Fire">
  312.             </set>
  313.             <set name="MDT-Earth">
  314.             </set>
  315.             <set name="MDT-Wind">
  316.             </set>
  317.             <set name="MDT-Water">
  318.             </set>
  319.             <set name="MDT-Ice">
  320.             </set>
  321.             <set name="MDT-Thunder">
  322.             </set>
  323.             <set name="HPGear">
  324.             </set>
  325.             <set name="Convert">
  326.             </set>
  327.             <set name="WeakSet">
  328.             </set>
  329.         </group>
  330.     </include>
  331.  
  332.     <!-- Gorgets for weaponskills used so that generic weaponskill sets can be constructed
  333.         without needing to know which specific gorget to add in.  Minor weaponskills are
  334.         not included to cut down on the total number of set aliases. -->
  335.     <include name="WeaponskillGorgets">
  336.         <set name="Raging Fists-Gorget|Spinning Attack-Gorget|Howling Fist-Gorget|Dragon Kick-Gorget|Tornado Kick-Gorget|Victory Smite-Gorget|Heavy Swing-Gorget|Full Swing-Gorget|Earth Crusher-Gorget|True Strike-Gorget|Judgment-Gorget|Black Halo-Gorget|Blade: Jin-Gorget|Blade: Kamu-Gorget|Shark Bite-Gorget|Savage Blade-Gorget|Tachi: Ageha-Gorget|Tachi: Koki-Gorget">
  337.             <neck>Thunder Gorget</neck>
  338.         </set>
  339.         <set name="Asuran Fists-Gorget|Evisceration-Gorget|Retribution-Gorget|Stringing Pummel-Gorget|Blade: Ten-Gorget|Blade: Ku-Gorget|Dancing Edge-Gorget|Vorpal Blade-Gorget|Swift Blade-Gorget|Tachi: Jinpu-Gorget">
  340.             <neck>Soil Gorget</neck>
  341.         </set>
  342.         <set name="Ascetic's Fury-Gorget|Tachi: Kasha-Gorget|Hexa Strike-Gorget">
  343.             <neck>Light Gorget</neck>
  344.         </set>
  345.         <set name="Tachi: Gekko-Gorget|Tachi: Yukikaze-Gorget">
  346.             <neck>Snow Gorget</neck>
  347.         </set>
  348.         <set name="*-Gorget">
  349.             <!-- No gorget specified for any other weaponskills, or don't have the gorget for them. -->
  350.         </set>
  351.     </include>
  352.  
  353.     <!-- Same as for gorgets, but belts are less likely to use than other waist items,
  354.         so there are fewer weaponskills listed. -->
  355.     <include name="WeaponskillBelts">
  356.         <set name="Ascetic's Fury-Belt|Tachi: Kasha-Belt|Hexa Strike-Belt">
  357.             <neck>Light Belt</neck>
  358.         </set>
  359.         <set name="Tachi: Gekko-Belt|Tachi: Yukikaze-Belt">
  360.             <neck>Snow Belt</neck>
  361.         </set>
  362.         <set name="Cataclysm-Belt">
  363.             <neck>Aqua Belt</neck>
  364.         </set>
  365.         <set name="*-Belt">
  366.             <!-- No belt specified for other weaponskills, or don't have the belt for them. -->
  367.         </set>
  368.     </include>
  369.  
  370.     <!-- ******************* Rules ******************* -->
  371.  
  372.     <!-- Do not use rules if level 50 or lower. -->
  373.     <include name="LevelRequirement">
  374.         <if notMLvlGT="50">
  375.             <return />
  376.         </if>
  377.     </include>
  378.     <!-- These stop any gear changes if you're unable to take particular actions. -->
  379.     <include name="ReturnRules">
  380.         <!-- Can't do anything if you're dead -->
  381.         <if status="dead">
  382.             <AddToChat>DEAD!</AddToChat>
  383.             <cancelspell />
  384.             <return />
  385.         </if>
  386.  
  387.         <if SpellTargetRaw="&lt;st*">
  388.             <return />
  389.         </if>
  390.  
  391.         <!-- Allow manipulation of equipment sets while under adverse effects. -->
  392.         <if NotSpell="$ResetTrigger|$Triggers|$EleTriggers|$JobTriggers">
  393.             <if BuffActive="Sleep|Petrification|Stun|Terror|Charm|Illusion|Egg|Costume">
  394.                 <return />
  395.             </if>
  396.             <elseif spell="Ranged">
  397.                 <if advanced='%SpellTargetDistance &gt; 24.9'>
  398.                     <return />
  399.                 </if>
  400.             </elseif>
  401.             <elseif Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence|Mute|Omerta">
  402.                 <return />
  403.             </elseif>
  404.             <elseif Type="Weaponskill|JobAbility|PetCommand|CorsairRoll|CorsairShot|Scholar" BuffActive="Amnesia|Impairment">
  405.                 <return />
  406.             </elseif>
  407.             <elseif Type="PetCommand|BloodPact*" PetIsValid="FALSE">
  408.                 <return />
  409.             </elseif>
  410.             <!-- <elseif type="Weaponskill">
  411.                <if mode="OR" TPLT="90" advanced='%SpellTargetDistance &gt; $Distance'>
  412.                    <cancelspell />
  413.                    <addtochat>%Spell cancelled: TP or distance.</addtochat>
  414.                    <return />
  415.                </if>
  416.            </elseif> -->
  417.         </if>
  418.     </include>
  419.     <!-- Do not change gear if spell is a transport spell used on self (Warp II/Retrace on others is fine). -->
  420.     <include name="CleanTransportation">
  421.         <if Spell="Warp*|Teleport*|Recall*|Retrace" SpellTargetType="SELF">
  422.             <return />
  423.         </if>
  424.     </include>
  425.     <!-- Area variable rule -->
  426.     <include name="AreaRules">
  427.         <!-- Determine general area, as some give access to special gear, or differences in approach to gearing. -->
  428.         <if BuffActive="Visitant">
  429.             <var cmd="set Area Abyssea" />
  430.         </if>
  431.         <elseif BuffActive="Allied Tags">
  432.             <var cmd="set Area Campaign" />
  433.         </elseif>
  434.         <else>
  435.             <var cmd="set Area Outside" />
  436.         </else>
  437.  
  438.         <!-- Define idle set based on town or elsewhere -->
  439.         <if Area="*San d'Oria|Port Bastok|Bastok*|Port Windurst|Windurst*|*Jeuno|Ru'Lude Gardens|*Whitegate" NotArea="Dynamis*|*[S]">
  440.             <var cmd="set IdleSTYLE Town" />
  441.         </if>
  442.         <else>
  443.             <var cmd="set IdleSTYLE Field" />
  444.         </else>
  445.  
  446.         <!-- Change group based on area and difficulty level (not sure on diff) -->
  447.         <if NotGroup="$Area-Group">
  448.             <command>sc group $Area-Group</command>
  449.         </if>
  450.     </include>
  451.     <!-- Variable Trigger: Set Distance Rules -->
  452.     <include name="SetDistanceVariable">
  453.         <if Spell="Shackled Fists">
  454.             <cancelspell />
  455.             <var cmd="set Distance %TargetDistance" />
  456.             <addtochat color="135">Distance Variable: $Distance</addtochat>
  457.             <return />
  458.         </if>
  459.     </include>
  460.     <!-- Spell Cancel Rules -->
  461.     <include name="SpellCancel">
  462.         <if Spell="Sneak" BuffActive="Sneak" TargetType="SELF">
  463.             <midcastdelay delay="1" />
  464.             <command when="midcast">cancel 71</command>
  465.         </if>
  466.         <elseif spell="Spectral Jig" BuffActive="Sneak">
  467.             <command when="precast">cancel 71</command>
  468.         </elseif>
  469.         <elseif Spell="Monomi*" BuffActive="Sneak">
  470.             <midcastdelay delay="2.5" />
  471.             <command when="midcast">cancel 71</command>
  472.         </elseif>
  473.         <elseif spell="Utsusemi: Ichi" buffactive="Copy Image*" NotBuffActive="Silence|Mute|Omerta|Obliviscence">
  474.             <if notbuffactive="Copy Image (3)|Copy Image (4)">
  475.                 <midcastdelay delay="2.5" />
  476.                 <command when="midcast">cancel 66</command>
  477.                 <command when="midcast">cancel 446</command>
  478.             </if>
  479.             <else>
  480.                 <cancelspell />
  481.                 <return />
  482.             </else>
  483.         </elseif>
  484.         <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  485.             <midcastdelay delay="2.8" />
  486.             <command when="midcast">cancel 37</command>
  487.         </elseif>
  488.     </include>
  489.     <!-- Misc: Lock slots under certain conditions. -->
  490.     <include name="EquipmentLockRules">
  491.         <if mode="OR" advanced='$LockMain==1' EquipMain="$TrialWeapon">
  492.             <lock slot="main|sub" when="All" lock="yes" />
  493.         </if>
  494.         <if EquipFeet="Powder Boots|Sprint Shoes">
  495.             <lock slot="feet" when="All" lock="yes" />
  496.         </if>
  497.         <if EquipRange="$PullWeapon|Soulgauger*">
  498.             <lock slot="ranged|ammo" when="All" lock="yes" />
  499.         </if>
  500.         <if EquipNeck="Sanctus Rosary">
  501.             <lock slot="neck" when="All" lock="yes" />
  502.         </if>
  503.         <if EquipLEar="Reraise Earring">
  504.             <lock slot="lear" when="All" lock="yes" />
  505.         </if>
  506.         <if EquipREar="Reraise Earring">
  507.             <lock slot="rear" when="All" lock="yes" />
  508.         </if>
  509.     </include>
  510.     <!-- Change to Convert gear and set the $Convert variable, which should be
  511.         part of the CurrentSet construction.
  512.         $Convert variable will be reset to 'None' after 10 seconds, if
  513.         it hadn't already been reset in the job rules. -->
  514.     <include name="ConvertRule">
  515.         <if Spell="Convert">
  516.             <castdelay delay="0.02" />
  517.             <equip when="precast" set="%Spell" />
  518.             <var cmd="set Convert Convert" />
  519.             <command when="Aftercast">$ResetCommand</command>
  520.         </if>
  521.     </include>
  522.  
  523.     <!-- Handle universal toggle and cycle triggers -->
  524.     <!-- This is a REQUIRED include. -->
  525.     <include name="ToggleAndCycleRules">
  526.         <var cmd="set Triggered False" />
  527.  
  528.         <if Spell="$Triggers|$EleTriggers">
  529.             <var cmd="set Triggered True" />
  530.             <cancelspell />
  531.  
  532.             <if type="Weaponskill">
  533.                 <!-- Special reconfiguration of gear sets.  Uses Fomor weaponskills for triggers. -->
  534.  
  535.                 <!-- Reset (Tranquility) has to be handled in the job XML itself.  It will be custom to that job's uses.
  536.                     It should be combined with autoset. -->
  537.  
  538.                 <!-- Cycle physical accuracy level (value of 1 to 3) -->
  539.                 <if spell="Vulcan Shot">
  540.                     <var cmd="setcalc PhysAcc $PhysAcc+1" />
  541.                     <if advanced='$PhysAcc &gt; 3'>
  542.                         <var cmd="set PhysAcc 1" />
  543.                     </if>
  544.  
  545.                     <addtochat>Physical accuracy level: $PhysAcc</addtochat>
  546.                 </if>
  547.  
  548.                 <!-- Cycle magical accuracy level (value of 1 to 3) -->
  549.                 <elseif spell="Carnal Nightmare">
  550.                     <var cmd="setcalc MagAcc $MagAcc+1" />
  551.                     <if advanced='$MagAcc &gt; 3'>
  552.                         <var cmd="set MagAcc 1" />
  553.                     </if>
  554.  
  555.                     <addtochat>Magical accuracy level: $MagAcc</addtochat>
  556.                 </elseif>
  557.  
  558.                 <!-- Light armor gear sets (evasion/counter/shield/etc) -->
  559.                 <elseif spell="Grim Halo">
  560.                     <if advanced='"$LightArmor" = "None"'>
  561.                         <var cmd="set LightArmor $SetLightArmor1" />
  562.                     </if>
  563.                     <elseif advanced='"$LightArmor" = "$SetLightArmor1" AND "$SetLightArmor2" != "None"'>
  564.                         <var cmd="set LightArmor $SetLightArmor2" />
  565.                     </elseif>
  566.                     <elseif advanced='"$LightArmor" = "$SetLightArmor2"'>
  567.                         <var cmd="set LightArmor None" />
  568.                     </elseif>
  569.                     <else>
  570.                         <var cmd="set LightArmor None" />
  571.                     </else>
  572.  
  573.                     <addtochat>Light Armor: $LightArmor</addtochat>
  574.                 </elseif>
  575.  
  576.                 <!-- Light armor gear sets (HP)  -->
  577.                 <elseif spell="Aegis Schism">
  578.                     <if advanced='"$LightArmor" = "$SetLightArmorHP"'>
  579.                         <var cmd="set LightArmor None" />
  580.                     </if>
  581.                     <else>
  582.                         <var cmd="set LightArmor $SetLightArmorHP" />
  583.                     </else>
  584.  
  585.                     <addtochat>Light Armor: $LightArmor</addtochat>
  586.                 </elseif>
  587.  
  588.                 <!-- PDT/MDT gear sets -->
  589.                 <elseif spell="Netherspikes">
  590.                     <if advanced='"$HeavyArmor" = "None"'>
  591.                         <if advanced='"$DTType" = "PDT"'>
  592.                             <var cmd="set HeavyArmor PDT" />
  593.                         </if>
  594.                         <else>
  595.                             <var cmd="set HeavyArmor MDT|MDT-$DTType" />
  596.                         </else>
  597.                     </if>
  598.                     <else>
  599.                         <var cmd="set HeavyArmor None" />
  600.                     </else>
  601.  
  602.                     <addtochat>HeavyArmor: $HeavyArmor</addtochat>
  603.                 </elseif>
  604.  
  605.                 <!-- Kiting/movement gear set -->
  606.                 <elseif spell="Foxfire">
  607.                     <if advanced='"$Movement" = "None"'>
  608.                         <var cmd="set Movement Kite" />
  609.                     </if>
  610.                     <elseif advanced='"$Movement" = "Kite"'>
  611.                         <var cmd="set Movement None" />
  612.                     </elseif>
  613.  
  614.                     <addtochat>Movement/Kite: $Movement</addtochat>
  615.                 </elseif>
  616.  
  617.                 <!-- Fallback if trigger defined in variable but not in rules. -->
  618.                 <else>
  619.                     <addtochat>Trigger not defined for %Spell.</addtochat>
  620.                 </else>
  621.             </if>
  622.             <elseif type="BlackMagic">
  623.                 <if spell="Bio V">
  624.                     <var cmd="set DTType PDT" />
  625.                 </if>
  626.                 <else>
  627.                     <!-- Stone V, Water V, Aero V, Fire V, Blizzard V, Thunder V -->
  628.                     <var cmd="set DTType %SpellElement" />
  629.                 </else>
  630.  
  631.                 <if advanced='"$HeavyArmor" != "None"'>
  632.                     <if advanced='"$DTType" = "PDT"'>
  633.                         <var cmd="set HeavyArmor PDT" />
  634.                     </if>
  635.                     <else>
  636.                         <var cmd="set HeavyArmor MDT|MDT-$DTType" />
  637.                     </else>
  638.                 </if>
  639.  
  640.                 <addtochat>DT Type: $DTType</addtochat>
  641.             </elseif>
  642.             <else>
  643.                 <addtochat>Trigger type not defined for %Spell.</addtochat>
  644.             </else>
  645.         </if>
  646.         <elseif Spell="$ResetTrigger|$JobTriggers">
  647.             <var cmd="set Triggered True" />
  648.             <cancelspell />
  649.         </elseif>
  650.     </include>
  651.     <!-- Change to appropriate gear set at proper times. -->
  652.     <include name="HandleGearChange">
  653.         <!-- INCLUDE ONLY AFTER CurrentSet HAS BEEN DEFINED BY YOUR JOB RULES. -->
  654.  
  655.         <!-- After all calculations are done, if this rule check was due to a Trigger action,
  656.             just equip the specified gear and return. -->
  657.         <if advanced='"$Triggered"="True"'>
  658.             <equip set="$CurrentSet" />
  659.             <return />
  660.         </if>
  661.  
  662.         <!-- Aftercast equipment resolution deferred.  Avoid up-front lag
  663.             from doing these calculations now. -->
  664.         <!-- Change to <equip> line if you want to test current direct lag. -->
  665.         <!--<equip when="idle|engaged|aftercast" set="$CurrentSet" /> -->
  666.         <command when="idle|engaged|aftercast">$EquipCommand</command>
  667.        
  668.         <equip when="resting" set="Resting" />
  669.     </include>
  670.     <!-- Trigger force equipping of gear via EquipCommand. -->
  671.     <include name="AutoChangeGear">
  672.         <if Spell="$EquipTrigger">
  673.             <equip set="$CurrentSet" />
  674.             <cancelspell />
  675.             <return />
  676.         </if>
  677.     </include>
  678.  
  679.     <!-- Elemental Staff Rules -->
  680.     <include name="ElementalStaffRules">
  681.         <if Skill="ElementalMagic" NotSpell="Burn|Frost|Choke|Rasp|Shock|Drown">
  682.             <if advanced='"$TestProc" = "Yes"'>
  683.                 <equip when="precast|midcast">
  684.                     <main>$Staff-Proc-%SpellElement</main>
  685.                 </equip>
  686.             </if>
  687.             <else>
  688.                 <equip when="precast">
  689.                     <main>$Staff-FastCast-%SpellElement</main>
  690.                 </equip>
  691.                 <equip when="midcast">
  692.                     <main>$Staff-Dmg-%SpellElement</main>
  693.                 </equip>
  694.             </else>
  695.         </if>
  696.         <elseif skill="HealingMagic" Spell="Cure*|Cura*">
  697.             <equip when="precast|midcast">
  698.                 <main>$Staff-Cures</main>
  699.             </equip>
  700.         </elseif>
  701.         <elseif skill="EnfeeblingMagic">
  702.             <equip when="precast|midcast">
  703.                 <main>$Staff-Acc-%SpellElement</main>
  704.             </equip>
  705.         </elseif>
  706.         <elseif type="BardSong">
  707.             <equip when="precast">
  708.                 <main>$Staff-FastCast-%SpellElement</main>
  709.             </equip>
  710.             <if SpellTargetType="MONSTER">
  711.                 <equip when="midcast">
  712.                     <main>$Staff-Acc-%SpellElement</main>
  713.                 </equip>
  714.             </if>
  715.         </elseif>
  716.         <elseif skill="DivineMagic">
  717.             <if Spell="Banish*|Holy*">
  718.                 <equip when="precast|midcast">
  719.                     <main>$Staff-Dmg-%SpellElement</main>
  720.                 </equip>
  721.             </if>
  722.             <else>
  723.                 <equip when="precast|midcast">
  724.                     <main>$Staff-Acc-%SpellElement</main>
  725.                 </equip>
  726.             </else>
  727.         </elseif>
  728.         <elseif skill="DarkMagic">
  729.             <equip when="precast|midcast">
  730.                 <main>$Staff-Acc-%SpellElement</main>
  731.             </equip>
  732.         </elseif>
  733.     </include>
  734.  
  735.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Elemental Magic.
  736.         Assumed to be imported in after check for skill="ElementalMagic" has
  737.         already been done. -->
  738.     <include name="ObiRingCape-ElementalMagic">
  739.         <if Element="%DayElement">
  740.             <if skill="ElementalMagic" NotSpell="Burn|Frost|Choke|Rasp|Shock|Drown">
  741.                 <if Advanced='"ZodiacRing"!="0"' NotElement="Light|Dark">
  742.                     <equip when="midcast">
  743.                         <rring>Zodiac Ring</rring>
  744.                     </equip>
  745.                 </if>
  746.  
  747.                 <if Advanced='"TwilightCape"!="0"'>
  748.                     <equip when="midcast">
  749.                         <back>Twilight Cape</back>
  750.                     </equip>
  751.                 </if>
  752.  
  753.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  754.                     <equip when="midcast">
  755.                         <waist>$Obi-%SpellElement</waist>
  756.                     </equip>
  757.                 </if>
  758.             </if>
  759.         </if>
  760.  
  761.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  762.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  763.                 <if skill="ElementalMagic" NotSpell="Burn|Frost|Choke|Rasp|Shock|Drown">
  764.                     <equip when="midcast">
  765.                         <waist>$Obi-%SpellElement</waist>
  766.                     </equip>
  767.  
  768.                     <if Advanced='"TwilightCape"!="0"'>
  769.                         <equip when="midcast">
  770.                             <back>Twilight Cape</back>
  771.                         </equip>
  772.                     </if>
  773.                 </if>
  774.             </if>
  775.         </elseif>
  776.     </include>
  777.  
  778.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Healing Magic.
  779.         Assumed to be imported in after check for skill="HealingMagic" has
  780.         already been done. -->
  781.     <include name="ObiRingCape-HealingMagic">
  782.         <if Element="%DayElement">
  783.             <if Spell="Cure*|Cura*">
  784.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  785.                     <equip when="midcast">
  786.                         <waist>$Obi-%SpellElement</waist>
  787.                     </equip>
  788.                 </if>
  789.  
  790.                 <if Advanced='"TwilightCape"!="0"'>
  791.                     <equip when="midcast">
  792.                         <back>Twilight Cape</back>
  793.                     </equip>
  794.                 </if>
  795.             </if>
  796.         </if>
  797.  
  798.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  799.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  800.                 <if Spell="Cure*|Cura*">
  801.                     <equip when="midcast">
  802.                         <waist>$Obi-%SpellElement</waist>
  803.                     </equip>
  804.  
  805.                     <if Advanced='"TwilightCape"!="0"'>
  806.                         <equip when="midcast">
  807.                             <back>Twilight Cape</back>
  808.                         </equip>
  809.                     </if>
  810.                 </if>
  811.             </if>
  812.         </elseif>
  813.     </include>
  814.  
  815.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Divine Magic.
  816.         Assumed to be imported in after check for skill="DivineMagic" has
  817.         already been done. -->
  818.     <include name="ObiRingCape-DivineMagic">
  819.         <if Element="%DayElement">
  820.             <if Spell="Banish*|Holy*">
  821.                 <if Advanced='"TwilightCape"!="0"'>
  822.                     <equip when="midcast">
  823.                         <back>Twilight Cape</back>
  824.                     </equip>
  825.                 </if>
  826.  
  827.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  828.                     <equip when="midcast">
  829.                         <waist>$Obi-%SpellElement</waist>
  830.                     </equip>
  831.                 </if>
  832.             </if>
  833.         </if>
  834.  
  835.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  836.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  837.                 <if Spell="Banish*|Holy*">
  838.                     <equip when="midcast">
  839.                         <waist>$Obi-%SpellElement</waist>
  840.                     </equip>
  841.  
  842.                     <if Advanced='"TwilightCape"!="0"'>
  843.                         <equip when="midcast">
  844.                             <back>Twilight Cape</back>
  845.                         </equip>
  846.                     </if>
  847.                 </if>
  848.             </if>
  849.         </elseif>
  850.     </include>
  851.  
  852.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Quick Draw.
  853.         Assumed to be imported in after check for type="CorsairShot" has
  854.         already been done. -->
  855.     <include name="ObiRingCape-CorsairShot">
  856.         <if Element="%DayElement">
  857.             <if type="CorsairShot" NotElement="Light|Dark">
  858.                 <if Advanced='"ZodiacRing"!="0"'>
  859.                     <equip when="precast">
  860.                         <rring>Zodiac Ring</rring>
  861.                     </equip>
  862.                 </if>
  863.  
  864.                 <if Advanced='"TwilightCape"!="0"'>
  865.                     <equip when="precast">
  866.                         <back>Twilight Cape</back>
  867.                     </equip>
  868.                 </if>
  869.  
  870.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  871.                     <equip when="precast">
  872.                         <waist>$Obi-%SpellElement</waist>
  873.                     </equip>
  874.                 </if>
  875.             </if>
  876.  
  877.             <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  878.                 <if type="CorsairShot" NotElement="Light|Dark">
  879.                     <if Advanced='"$Obi-%SpellElement"!="0"'>
  880.                         <equip when="precast">
  881.                             <waist>$Obi-%SpellElement</waist>
  882.                         </equip>
  883.  
  884.                         <if Advanced='"TwilightCape"!="0"'>
  885.                             <equip when="precast">
  886.                                 <back>Twilight Cape</back>
  887.                             </equip>
  888.                         </if>
  889.                     </if>
  890.                 </if>
  891.             </elseif>
  892.         </if>
  893.     </include>
  894.  
  895.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Ninjutsu.
  896.         Assumed to be imported in after check for type="Ninjutsu" has
  897.         already been done. -->
  898.     <include name="ObiRingCape-Ninjutsu">
  899.         <if Element="%DayElement">
  900.             <if Spell="Katon*|Hyoton*|Huton*|Doton*|Suiton*|Raiton*">
  901.                 <if Advanced='"ZodiacRing"!="0"'>
  902.                     <equip when="midcast">
  903.                         <rring>Zodiac Ring</rring>
  904.                     </equip>
  905.                 </if>
  906.  
  907.                 <if Advanced='"TwilightCape"!="0"'>
  908.                     <equip when="midcast">
  909.                         <back>Twilight Cape</back>
  910.                     </equip>
  911.                 </if>
  912.  
  913.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  914.                     <equip when="midcast">
  915.                         <waist>$Obi-%SpellElement</waist>
  916.                     </equip>
  917.                 </if>
  918.             </if>
  919.         </if>
  920.  
  921.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  922.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  923.                 <if Spell="Katon*|Hyoton*|Huton*|Doton*|Suiton*|Raiton*">
  924.                     <equip when="midcast">
  925.                         <waist>$Obi-%SpellElement</waist>
  926.                     </equip>
  927.  
  928.                     <if Advanced='"TwilightCape"!="0"'>
  929.                         <equip when="midcast">
  930.                             <back>Twilight Cape</back>
  931.                         </equip>
  932.                     </if>
  933.                 </if>
  934.             </if>
  935.         </elseif>
  936.     </include>
  937.  
  938.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Blue Magic.
  939.         Assumed to be imported in after check for skill="BlueMagic" has
  940.         already been done. -->
  941.     <include name="ObiRingCape-BlueMagic">
  942.         <if Element="%DayElement">
  943.             <if Spell="*Whisker|*Grudge|Thermal*|Mind Blast|Regurg*|Ice Break|Leaf*|Thunderbolt|Dark Orb">
  944.                 <if Advanced='"ZodiacRing"!="0"'>
  945.                     <equip when="midcast">
  946.                         <rring>Zodiac Ring</rring>
  947.                     </equip>
  948.                 </if>
  949.  
  950.                 <if Advanced='"TwilightCape"!="0"'>
  951.                     <equip when="midcast">
  952.                         <back>Twilight Cape</back>
  953.                     </equip>
  954.                 </if>
  955.  
  956.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  957.                     <equip when="midcast">
  958.                         <waist>$Obi-%SpellElement</waist>
  959.                     </equip>
  960.                 </if>
  961.             </if>
  962.         </if>
  963.  
  964.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  965.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  966.                 <if Spell="*Whisker|*Grudge|Thermal*|Mind Blast|Regurg*|Ice Break|Leaf*|Thunderbolt|Dark Orb">
  967.                     <equip when="midcast">
  968.                         <waist>$Obi-%SpellElement</waist>
  969.                     </equip>
  970.  
  971.                     <if Advanced='"TwilightCape"!="0"'>
  972.                         <equip when="midcast">
  973.                             <back>Twilight Cape</back>
  974.                         </equip>
  975.                     </if>
  976.                 </if>
  977.             </if>
  978.         </elseif>
  979.     </include>
  980.  
  981.     <!-- Swapping in Obi/Zodiac Ring/Twilight Cape when using Dark Magic.
  982.         Assumed to be imported in after check for skill="DarkMagic" has
  983.         already been done. -->
  984.     <include name="ObiRingCape-DarkMagic">
  985.         <if Element="%DayElement">
  986.             <if Spell="Drain*|Aspir*">
  987.                 <if Advanced='"TwilightCape"!="0"'>
  988.                     <equip when="midcast">
  989.                         <back>Twilight Cape</back>
  990.                     </equip>
  991.                 </if>
  992.  
  993.                 <if Advanced='"$Obi-%SpellElement"!="0"'>
  994.                     <equip when="midcast">
  995.                         <waist>$Obi-%SpellElement</waist>
  996.                     </equip>
  997.                 </if>
  998.             </if>
  999.         </if>
  1000.  
  1001.         <elseif mode="OR" element="%WeatherElement" BuffActive="$Storm-%SpellElement">
  1002.             <if Advanced='"$Obi-%SpellElement"!="0"'>
  1003.                 <if Spell="Drain*|Aspir*">
  1004.                     <equip when="midcast">
  1005.                         <waist>$Obi-%SpellElement</waist>
  1006.                     </equip>
  1007.  
  1008.                     <if Advanced='"TwilightCape"!="0"'>
  1009.                         <equip when="midcast">
  1010.                             <back>Twilight Cape</back>
  1011.                         </equip>
  1012.                     </if>
  1013.                 </if>
  1014.             </if>
  1015.         </elseif>
  1016.     </include>
  1017.  
  1018.     <!-- Automatically generate notifications when buffs are about to wear off. -->
  1019.     <!-- MUST include RecastDurations in vars section. -->
  1020.     <include name="RecastWarnings">
  1021.         <if skill="EnhancingMagic">
  1022.             <if Spell="Haste|Refresh*|Phalanx*|Reprisal">
  1023.                 <var cmd="set Buff-Duration $%Spell-Duration" />
  1024.             </if>
  1025.             <elseif Spell="En*">
  1026.                 <var cmd="set Buff-Duration $Enspell-Duration" />
  1027.             </elseif>
  1028.             <elseif Spell="*Spikes">
  1029.                 <var cmd="set Buff-Duration $Spikes-Duration" />
  1030.             </elseif>
  1031.             <else>
  1032.                 <!-- Anything else we don't want to give warnings for. -->
  1033.                 <var cmd="set Buff-Duration 0" />
  1034.             </else>
  1035.  
  1036.             <if advanced='"$Buff-Duration" &gt; "0"'>
  1037.                 <!-- Account for rdm stuff that extends durations -->
  1038.                 <if MainJob="Rdm">
  1039.                     <var cmd="set BuffDurationMult 100 + ($EstoqueurCape*10) + ($EstoqueurFeet*10)" />
  1040.  
  1041.                     <if BuffActive="Composure">
  1042.                         <if SpellTargetType="SELF">
  1043.                             <var cmd="set BuffDurationMult $BuffDurationMult * 3" />
  1044.                         </if>
  1045.                         <elseif SpellTargetType="PLAYER">
  1046.                             <var cmd="set BuffDurationMult $BuffDurationMult + $EstoqueurSetBonus" />
  1047.                         </elseif>
  1048.                     </if>
  1049.  
  1050.                     <var cmd="setcalc Buff-Duration $Buff-Duration * $BuffDurationMult / 100" />
  1051.                 </if>
  1052.  
  1053.                 <!-- Determine when we want the warning message to happen. -->
  1054.                 <var cmd="setcalc Warn-Duration $Buff-Duration - 15" />
  1055.                 <command when="Aftercast">wait $Warn-Duration;input /echo [%spell] &lt;%SpellTargetName&gt; wearing off in 15 sec.</command>
  1056.             </if>
  1057.         </if>
  1058.         <elseif skill="EnfeeblingMagic|DivineMagic">
  1059.             <if Spell="Sleep*|Repose|Break">
  1060.                 <var cmd="set Buff-Duration $%Spell-Duration" />
  1061.                 <var cmd="setcalc Warn-Duration $Buff-Duration - 10" />
  1062.  
  1063.                 <var cmd="inc SleepOrder" />
  1064.                 <command when="Aftercast">wait $Warn-Duration;input /echo [%spell] &lt;%SpellTargetName&gt; ($SleepOrder) wearing off in 10 sec.;spellcast var dec SleepOrder</command>
  1065.             </if>
  1066.         </elseif>
  1067.         <elseif type="Samba">
  1068.             <if MainJob="Dnc">
  1069.                 <command when="Aftercast">wait 110;input /echo [%spell] ~~~~~~~~~ Wearing off in 10 sec.</command>
  1070.             </if>
  1071.             <else>
  1072.                 <command when="Aftercast">wait 80;input /echo [%spell] ~~~~~~~~~ Wearing off in 10 sec.</command>
  1073.             </else>
  1074.         </elseif>
  1075.     </include>
  1076. </includes>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement