Want more features on Pastebin? Sign Up, it's FREE!

Yugl-Include

By: Yugl on Sep 4th, 2011  |  syntax: XML  |  size: 13.24 KB  |  views: 2,764  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <includes>
  3.     <!--- ***************** Variables ***************** --->
  4.     <!-- Fast Cast Magian Staffs -->
  5.     <include name="TrialStaffFastCast">
  6.         <var name="Staff-FastCast-Fire">Agni's Staff +3</var>
  7.         <var name="Staff-FastCast-Ice">Varuna's Staff +3</var>
  8.         <var name="Staff-FastCast-Wind">Vayu's Staff +3</var>
  9.         <var name="Staff-FastCast-Earth">Terra's Staff</var>
  10.         <var name="Staff-FastCast-Thunder">Indra's Staff +3</var>
  11.         <var name="Staff-FastCast-Water">Soma's Staff +3</var>
  12.         <var name="Staff-FastCast-Light">Light Staff</var>
  13.         <var name="Staff-FastCast-Dark">Yama's Staff +3</var>
  14.     </include>
  15.     <!-- Trial of the Magian Staffs for damage -->
  16.     <include name="TrialStaffDMG">
  17.         <var name="Staff-DMG-Fire">Atar I</var>
  18.         <var name="Staff-DMG-Ice">Vourukasha I</var>
  19.         <var name="Staff-DMG-Wind">Vayuvata I</var>
  20.         <var name="Staff-DMG-Earth">Terra's Staff</var>
  21.         <var name="Staff-DMG-Thunder">Apamajas I</var>
  22.         <var name="Staff-DMG-Water">Arka IV</var>
  23.         <var name="Staff-DMG-Light">Light Staff</var>
  24.         <var name="Staff-DMG-Dark">Xsaeta I</var>
  25.     </include>
  26.     <!-- Trial of the Magian Staffs for Magic Accuracy -->
  27.     <include name="TrialStaffACC">
  28.         <var name="Staff-ACC-Fire">Agni's Staff +3</var>
  29.         <var name="Staff-ACC-Ice">Varuna's Staff +3</var>
  30.         <var name="Staff-ACC-Wind">Vayu's Staff +3</var>
  31.         <var name="Staff-ACC-Earth">Kubera's Staff +3</var>
  32.         <var name="Staff-ACC-Thunder">Indra's Staff +3</var>
  33.         <var name="Staff-ACC-Water">Soma's Staff +3</var>
  34.         <var name="Staff-ACC-Light">Light Staff</var>
  35.         <var name="Staff-ACC-Dark">Yama's Staff +3</var>
  36.     </include>
  37.     <!-- Elemental Stave Constants -->
  38.     <include name="EleStaffConst">
  39.         <var name="Staff-Fire">Vulcan's Staff</var>
  40.         <var name="Staff-Ice">Aquilo's Staff</var>
  41.         <var name="Staff-Wind">Auster's Staff</var>
  42.         <var name="Staff-Earth">Terra's Staff</var>
  43.         <var name="Staff-Thunder">Jupiter's Staff</var>
  44.         <var name="Staff-Water">Neptune's Staff</var>
  45.         <var name="Staff-Light">Light Staff</var>
  46.         <var name="Staff-Dark">Pluto's Staff</var>
  47.     </include>
  48.     <!-- Elemental Obi Constants -->
  49.     <include name="ElementalObiConstants">
  50.         <var name="Obi-Fire">0</var>
  51.         <var name="Obi-Ice">Hyorin Obi</var>
  52.         <var name="Obi-Wind">Furin Obi</var>
  53.         <var name="Obi-Earth">0</var>
  54.         <var name="Obi-Thunder">Rairin Obi</var>
  55.         <var name="Obi-Water">0</var>
  56.         <var name="Obi-Light">Korin Obi</var>
  57.         <var name="Obi-Dark">Anrin Obi</var>
  58.     </include>
  59.     <!-- Enspells Vars -->
  60.     <include name="VarEnSpells">
  61.         <var name="Enspell-Fire">Enfire</var>
  62.         <var name="Enspell-Earth">Enstone</var>
  63.         <var name="Enspell-Water">Enwater</var>
  64.         <var name="Enspell-Wind">Enaero</var>
  65.         <var name="Enspell-Ice">Enblizzard</var>
  66.         <var name="Enspell-Thunder">Enthunder</var>
  67.     </include>
  68.     <!--- ***************** Rules ***************** --->
  69.     <!-- Return Rules -->
  70.     <!-- These stop any gear changes if I'm unable to take particular actions.  The reason for this is because
  71.        if I'm impatient and spamming a macro while petrified or something I don't want a WHM to be unable to target
  72.        me for Stona, for instance. -->
  73.     <include name="ReturnRules">
  74.         <if notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
  75.             <if BuffActive="Sleep|Petrification|Stun|Terror|Charm|Illusion|Egg">
  76.                 <return />
  77.             </if>
  78.             <elseif spell="Ranged">
  79.                 <if advanced='"%SpellTargetDistance" &gt; "24.9"'>
  80.                     <return />
  81.                 </if>
  82.             </elseif>
  83.             <elseif Type="PetCommand|*BloodPact*" notPetISValid="TRUE">
  84.                 <return />
  85.             </elseif>
  86.             <elseif Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence|Mute|Omerta">
  87.                 <return />
  88.             </elseif>
  89.             <elseif Type="Weaponskill|JobAbility|PetCommand|CorsairRoll|CorsairShot|Scholar" BuffActive="Amnesia|Impairment">
  90.                 <return />
  91.             </elseif>
  92.             <elseif type="Weaponskill">
  93.                 <if mode="OR" TPLT="100" advanced='%SpellTargetDistance &gt; $Distance' notstatus="engaged">
  94.                     <cancelspell />
  95.                     <return />
  96.                 </if>
  97.             </elseif>
  98.         </if>
  99.     </include>
  100.     <!--- Do not use rules if less than LV50 --->
  101.     <include name="LVrestriction">
  102.         <if notMLvlGT="50">
  103.             <return />
  104.         </if>
  105.     </include>
  106.     <!--- Do not change gear if spell is a transport spell -->
  107.     <include name="CleanTransportation">
  108.         <if Spell="Warp*|Teleport*|Recall*|Escape|Retrace">
  109.             <return />
  110.         </if>
  111.     </include>
  112.     <!-- Variable Trigger: Set Distance Rules -->
  113.     <include name="SetDistanceVariable">
  114.         <elseif Spell="Shackled Fists">
  115.             <cancelspell />
  116.             <var cmd="set Distance %TargetDistance" />
  117.             <addtochat color="135">Distance Variable: $Distance</addtochat>
  118.         </elseif>
  119.     </include>
  120.     <!--- Variable Trigger: Change between Regular Mobs and NMs --->
  121.     <include name="ResistRule">
  122.         <elseif spell="Grim Halo">
  123.             <cancelspell />
  124.             <if notMainJob="RDM|BLM|SCH">
  125.                 <if advanced='"$Resist"=="R"'>
  126.                     <var cmd="set Resist NM" />
  127.                 </if>
  128.                 <else>
  129.                     <var cmd="set Resist R" />
  130.                 </else>
  131.             </if>
  132.             <else>
  133.                 <if advanced='"$Resist"=="R"'>
  134.                     <var cmd="set Resist RNM" />
  135.                     <var cmd="set QuickResist RNM" />
  136.                 </if>
  137.                 <elseif advanced='"$Resist"=="RNM"'>
  138.                     <var cmd="set Resist NM" />
  139.                     <var cmd="set QuickResist NM" />
  140.                 </elseif>
  141.                 <else>
  142.                     <var cmd="set Resist R" />
  143.                     <var cmd="set QuickResist R" />
  144.                 </else>
  145.             </else>
  146.         </elseif>
  147.     </include>
  148.     <!--- Equip DD or Idle Set --->
  149.     <include name="Variable-Blank">
  150.         <elseif Spell="Vulcan Shot">
  151.             <cancelspell />
  152.             <var cmd="set Armor-%Status BlankSet" />
  153.             <command>Dancing Chains</command>
  154.         </elseif>
  155.     </include>
  156.     <!--- Equip MDT (Aegis Schism) --->
  157.     <include name="Variable-MDT">
  158.         <elseif Spell="Aegis Schism">
  159.             <cancelspell />
  160.             <var cmd="set Armor-%Status MDT" />
  161.             <command>Dancing Chains</command>
  162.         </elseif>
  163.     </include>
  164.     <!--- Equip PDT (Barbed Crescent) --->
  165.     <include name="Variable-PDT">
  166.         <elseif Spell="Barbed Crescent">
  167.             <cancelspell />
  168.             <var cmd="set Armor-%Status PDT" />
  169.             <command>Dancing Chains</command>
  170.         </elseif>
  171.     </include>
  172.     <!--- Equip Full Evasion (Carnal Nightmare) --->
  173.     <include name="Variable-FullEvasion">
  174.         <elseif Spell="Carnal Nightmare">
  175.             <cancelspell />
  176.             <var cmd="set Armor-%Status FullEvasion" />
  177.             <command>Dancing Chains</command>
  178.         </elseif>
  179.     </include>
  180.     <!--- Area variable rule --->
  181.     <include name="AreaRule">
  182.         <if area="Abyssea*" advanced='"$Area"!="Abyssea"'>
  183.             <var cmd="set Area Abyssea" />
  184.         </if>
  185.         <elseif notarea="Abyssea*" advanced='"$Area"!="Outside"'>
  186.             <var cmd="set Area Outside" />
  187.         </elseif>
  188.     </include>
  189.     <!--- Lock Weapon Rules --->
  190.     <include name="LockWeaponRule">
  191.         <if mode="OR" advanced='$LockMain==1' EquipMain="TrialWeaponsHere">
  192.             <equip when="all">
  193.                 <main lock="true" />
  194.                 <sub lock="true" />
  195.             </equip>
  196.         </if>
  197.     </include>
  198.     <!--- Change to TP when engaged, Idle when idle, and Resting when resting --->
  199.     <include name="AutoChangeGear">
  200.         <if status="idle" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
  201.             <equip when="idle|aftercast" set="$Idle" />
  202.         </if>
  203.         <elseif status="engaged" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
  204.             <equip when="engaged|aftercast" set="$TP" />
  205.         </elseif>
  206.         <elseif status="resting" notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree">
  207.             <equip when="all" set="Resting" />
  208.         </elseif>
  209.         <command when="idle">wait 1;Dancing Chains</command>
  210.     </include>
  211.     <!--- Variable Trigger: Update current gear set --->
  212.     <include name="UpdateSetRule">
  213.         <if spell="Dancing Chains">
  214.             <cancelspell />
  215.             <if status="idle">
  216.                 <equip set="$Idle" />
  217.             </if>
  218.             <elseif status="engaged">
  219.                 <equip set="$TP" />
  220.             </elseif>
  221.         </if>
  222.     </include>
  223.     <!-- Spell Cancel Rules -->
  224.     <include name="SpellCancel">
  225.         <if Spell="Sneak" BuffActive="Sneak" TargetType="SELF">
  226.             <midcastdelay delay="1" />
  227.             <command when="midcast">cancel 71</command>
  228.         </if>
  229.         <elseif spell="Spectral Jig" BuffActive="Sneak">
  230.             <command when="precast">cancel 71</command>
  231.         </elseif>
  232.         <elseif Spell="Monomi*" BuffActive="Sneak">
  233.             <midcastdelay delay="2.5" />
  234.             <command when="midcast">cancel 71</command>
  235.         </elseif>
  236.         <elseif spell="Utsusemi: Ichi" buffactive="Copy Image*" notbuffactive="Silence|Mute|Omerta|Obliviscence">
  237.             <if notbuffactive="Copy Image (3)|Copy Image (4)">
  238.                 <midcastdelay delay="2.5" />
  239.                 <cmd when="midcast">cancel 66</cmd>
  240.                 <cmd when="midcast">cancel 446</cmd>
  241.             </if>
  242.             <else>
  243.                 <cancelspell />
  244.                 <return />
  245.             </else>
  246.         </elseif>
  247.         <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  248.             <midcastdelay delay="2.8" />
  249.             <command when="midcast">cancel 37</command>
  250.         </elseif>
  251.         <elseif Spell="Blink" BuffActive="Blink">
  252.             <midcastdelay delay="5.2" />
  253.             <command when="midcast">cancel 36</command>
  254.         </elseif>
  255.     </include>
  256.     <!--- Misc: Lock Powder Boots --->
  257.     <include name="PowderBootsRule">
  258.         <if EquipFeet="Powder Boots">
  259.             <equip when="all">
  260.                 <feet lock="true" />
  261.             </equip>
  262.         </if>
  263.     </include>
  264.     <!--- Misc: Alert when insufficient MP --->
  265.     <include name="MPCostRule">
  266.         <if notSpell="$TriggerSetOne|$TriggerSetTwo|$TriggerSetThree" MPCostGT="%MP">
  267.             <addtochat color="135">You need more MP! %Spell: %MP/%MPCost!</addtochat>
  268.         </if>
  269.     </include>
  270.     <!--- Subs: Change to Conv gear and lock cure gear changes until first cast -->
  271.     <include name="ConvRules">
  272.         <if status="engaged" Spell="Convert">
  273.             <castdelay delay="0.02" />
  274.             <equip when="precast" set="%Spell" />
  275.             <var cmd="set TP Convert" />
  276.         </if>
  277.         <if status="idle" Spell="Convert">
  278.             <castdelay delay="0.02" />
  279.             <equip when="precast" set="%Spell" />
  280.             <var cmd="set Idle Convert" />
  281.         </if>
  282.     </include>
  283.     <!-- Elemental Obi Rule -->
  284.     <include name="ElementalObiRule">
  285.         <if SpellTargetType="MONSTER" advanced='("%SpellElement"="%WeatherElement" OR "%SpellElement"="%DayElement") AND "$Obi-%SpellElement"!="0"'>
  286.             <equip when="midcast">
  287.                 <waist lock="yes">$Obi-%SpellElement</waist>
  288.                 <back lock="yes">Twilight Cape</back>
  289.             </equip>
  290.         </if>
  291.     </include>
  292.         <!--- Healing Breath Rules --->
  293.         <include name="HealingBreathRules">
  294.         <if subjob="WHM|RDM|BLM|BLU|SCH" PetISValid="TRUE" type="*Magic">
  295.             <if mode="OR" spell="Phalanx" advanced='(%HPP &lt; 51 AND %Casttime &lt; 2.5) OR (%PartyCount &gt; 1 AND %Casttime &lt; 2.5)'>
  296.                 <castdelay delay="$Delay-Spell" />
  297.                 <equip when="precast" set="HealingBreathTrigger" />
  298.                 <var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
  299.                 <midcastdelay delay="$HealingBreathDelay" />
  300.                 <equip when="midcast" set="Restoring Breath" />
  301.                 <aftercastdelay delay="2.1" />
  302.             </if>
  303.         </if>
  304.         <elseif subjob="PLD|DRK|BRD|NIN" PetISValid="TRUE" type="*Magic|*Song|Ninjutsu" CastTimeLT="2" HPPLT="34">
  305.             <castdelay delay="$Delay-Spell" />
  306.             <equip when="precast" set="HealingBreathTrigger" />
  307.             <var cmd="setcalc HealingBreathDelay %CastTime + 0.4" />
  308.             <midcastdelay delay="$HealingBreathDelay" />
  309.             <equip when="midcast" set="Restoring Breath" />
  310.             <aftercastdelay delay="2.1" />
  311.         </elseif>
  312.         </include>
  313.     <!-- Enspells Rule -->
  314.     <include name="EnspellsRule">
  315.         <if spell="Enfire" Day="Earth|Water|Wind|Ice|Thunder">
  316.             <changespell spell="$Enspell-%DayElement" />
  317.         </if>
  318.     </include>
  319. </includes>
clone this paste RAW Paste Data