Advertisement
Motenten

smn r4

May 15th, 2013
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 42.58 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <spellcast xmlns="http://www.windower.net/spellcast/"
  3.    xmlns:xi="http://www.w3.org/2001/XInclude"
  4.    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.    xsi:schemaLocation="http://www.windower.net/spellcast/ spellcast.xsd">
  6.     <!-- Last modified: 5/15/2013 2:39:34 AM -->
  7.  
  8.     <!--
  9.        ************** IMPORTANT *****************
  10.        Currently some class triggers are broken because Spellcast isn't handling
  11.        <changetarget target="&lt;stpc&gt;" /> correctly. There is no easy fix at this time,
  12.        other than changing the macro, or changing the class trigger rules, such that it
  13.        does not use an st* target.
  14.        ******************************************
  15.    
  16.        Built this into using 3 macro palettes.
  17.        Palette 1: All summons (excluding Odin/Alex).  Carby -> Diabolos across the top, Spirits on the bottom.
  18.        Palette 2: Defense palette.  Includes:
  19.            Assault (auto send to palette 3)
  20.            Retreat
  21.            /ma ClassTrigger .weather
  22.            /ma ClassTrigger .OffBuff {offensive buffs, with some tweaks; see code}
  23.            /ma ClassTrigger .DefBuff {defensive buffs, with some tweaks; see code}
  24.            /ma ClassTrigger .aoeheal
  25.            /ma ClassTrigger .heal
  26.            /ma ClassTrigger .erase
  27.            Release (auto send to palette 1)
  28.        Palette 3: Offense palette.  Includes:
  29.            Assault
  30.            Retreat (auto send to palette 2)
  31.            /ma ClassTrigger .weather
  32.            /ma ClassTrigger .physical
  33.            /ma ClassTrigger .magical
  34.            /ma ClassTrigger .debuff
  35.            /ma ClassTrigger .debuff2
  36.            /ma ClassTrigger .2hr
  37.            Release (auto send to palette 1)
  38.  
  39.            /ma ClassTrigger .nuke2
  40.            /ma ClassTrigger .nuke4
  41.  
  42.        Palettes 2 and 3 use alt7-0 for: Sandstorm (Desert Boots), .run (Fleet Wind),
  43.            Elemental Siphon, and Sublimation.
  44.        Palette 1 uses Alt 9-0 for Elemental Siphon and Sublimation (same spots as
  45.            palettes 2 and 3).
  46.  
  47.        Physical pacts are highest tier; magical pacts are merit pacts.
  48.        Lower tier offensive pacts (aside from nuke2 and nuke4) are not
  49.        handled by the ClassTrigger system.
  50.  
  51.        Other spots are used for cures and such.
  52.    -->
  53.  
  54.  
  55.     <config Debug="false"
  56.            ShowGearSwaps="false"
  57.            ShowSpellInfo="false"
  58.            RequireVersion="2.30"
  59.            />
  60.  
  61.     <variables>
  62.         <!-- General configuration -->
  63.         <xi:include href="Mote-Config-Include.xml" xpointer="/includes/include[@name='ConfigurationVars']/*" />
  64.  
  65.         <!-- Configuration var overrides. -->
  66.         <var name="Options.DefenseModes">PDT</var>
  67.         <var name="Options.OffenseModes">Normal</var>
  68.         <var name="Options.WSModes">Default</var>
  69.  
  70.         <!-- General utility -->
  71.         <xi:include href="Mote-Config-Include.xml" xpointer="/includes/include[@name='UtilityVars']/*" />
  72.         <xi:include href="Mote-Config-Include.xml" xpointer="//include[@name='ElementalStaves']/*" />
  73.         <xi:include href="Mote-Config-Include.xml" xpointer="//include[@name='SmnSpiritConstants']/*" />
  74.         <xi:include href="Mote-Config-Include.xml" xpointer="//include[@name='SchWeatherConstants']/*" />
  75.         <xi:include href="Mote-Config-Include.xml" xpointer="/includes/include[@name='RecastDurations']/*" />
  76.  
  77.         <!-- Utility default var overrides. -->
  78.  
  79.         <!-- Local vars -->
  80.  
  81.         <var name="PrimaryWeapon">Chatoyant Staff</var>
  82.         <var name="PrimarySub">Verse Strap +1</var>
  83.         <var name="IdleFeet">Serpentes Sabots</var>
  84.  
  85.         <!-- Storms smn can access from /sch -->
  86.         <var name="SchStorms">Earth|Water|Wind|Fire|Ice</var>
  87.         <var name="CastStorm">0</var>
  88.  
  89.         <var name="PerpSet">None</var>
  90.         <var name="PetSet">None</var>
  91.         <var name="RageSet">None</var>
  92.         <var name="FavorSet">None</var>
  93.  
  94.         <var name="SiphonElement">None</var>
  95.         <var name="SiphonSpirit">None</var>
  96.         <var name="CastSpirit">No</var>
  97.  
  98.         <var name="PhysicalPacts">Flaming Crush|Rush|Predator Claws|Mountain Buster|Chaotic Strike|Spinning Dive</var>
  99.         <var name="MagicalPacts">Meteor Strike|Heavenly Strike|Wind Blade|Geocrush|Grand Fall|Thunderstorm|Meteorite|Holy Mist|Lunar Bay|*II|*IV</var>
  100.         <var name="TwoHrPacts">Inferno|Diamond Dust|Aerial Blast|Earthen Fury|Judgment Bolt|Tidal Wave|Searing Light|Howling Moon|Ruinous Omen</var>
  101.  
  102.         <var name="ClassPactType">None</var>
  103.  
  104.         <!-- MP percentage under which we should swap to Owleyes for refresh during idle: -->
  105.         <var name="OwleyesMPP">90</var>
  106.     </variables>
  107.  
  108.     <sets>
  109.         <!-- Groups with constant sets, regardless of Area: Common, BasicJAs, BasicMagic. -->
  110.  
  111.         <!-- CommonGroup is for idle, resting, PDT/MDT, movement, and various job-specific stuff -->
  112.         <group name="Common" default="true">
  113.             <set name="None">
  114.             </set>
  115.  
  116.             <set name="Idle-Town-*">
  117.                 <main>$PrimaryWeapon</main>
  118.                 <sub>$PrimarySub</sub>
  119.                 <ammo>Clarus Stone</ammo>
  120.                 <head>Caller's Horn +2</head>
  121.                 <neck>Twilight Torque</neck>
  122.                 <lear>Bloodgem Earring</lear>
  123.                 <rear>Loquacious Earring</rear>
  124.                 <body>Caller's Doublet +2</body>
  125.                 <hands>Serpentes Cuffs</hands>
  126.                 <lring>Sheltered Ring</lring>
  127.                 <rring>Paguroidea Ring</rring>
  128.                 <back>Umbra Cape</back>
  129.                 <waist>Hierarch Belt</waist>
  130.                 <legs>Goliard Trews</legs>
  131.                 <feet>$IdleFeet</feet>
  132.             </set>
  133.  
  134.             <set name="Idle-Field-Normal">
  135.                 <main>$PrimaryWeapon</main>
  136.                 <sub>$PrimarySub</sub>
  137.                 <ammo>Clarus Stone</ammo>
  138.                 <head>Caller's Horn +2</head>
  139.                 <neck>Twilight Torque</neck>
  140.                 <lear>Bloodgem Earring</lear>
  141.                 <rear>Loquacious Earring</rear>
  142.                 <body>Heka's Kalasiris</body>
  143.                 <hands>Serpentes Cuffs</hands>
  144.                 <lring>Sheltered Ring</lring>
  145.                 <rring>Paguroidea Ring</rring>
  146.                 <back>Umbra Cape</back>
  147.                 <waist>Hierarch Belt</waist>
  148.                 <legs>Goliard Trews</legs>
  149.                 <feet>$IdleFeet</feet>
  150.             </set>
  151.  
  152.             <set name="Idle-Field-Sublimation" BaseSet="Idle-Field-Normal">
  153.                 <neck>Wiglen Gorget</neck>
  154.                 <rring>Paguroidea Ring</rring>
  155.             </set>
  156.  
  157.             <set name="Refresh">
  158.             </set>
  159.  
  160.             <set name="Resting-Normal" BaseSet="Refresh">
  161.                 <main>$Staff-HMP</main>
  162.                 <ammo>Clarus Stone</ammo>
  163.                 <head>Caller's Horn +2</head>
  164.                 <body>Manasa Chasuble</body>
  165.                 <hands>Serpentes Cuffs</hands>
  166.                 <waist>Austerity Belt</waist>
  167.                 <feet>Chelona Boots +1</feet>
  168.             </set>
  169.  
  170.             <set name="PhysDef-PDT">
  171.                 <main>$Staff-PDT</main>
  172.                 <sub>Verse Strap +1</sub>
  173.                 <neck>Twilight Torque</neck>
  174.                 <lring>Dark Ring</lring>
  175.                 <rring>Dark Ring</rring>
  176.                 <back>Umbra Cape</back>
  177.                 <legs>Goliard Trews</legs>
  178.                 <feet>Frisky Sabots</feet>
  179.             </set>
  180.  
  181.             <set name="MDT-*|Resist-*">
  182.             </set>
  183.  
  184.             <!-- Other state-based sets (eg: perpetuance gear) -->
  185.             <set name="Favor">
  186.                 <head>Caller's Horn +2</head>
  187.             </set>
  188.  
  189.             <set name="Carbuncle">
  190.                 <hands>Carbuncle Mitts</hands>
  191.                 <feet>Serpentes Sabots</feet>
  192.             </set>
  193.             <set name="Diabolos">
  194.                 <waist>Diabolos's Rope</waist>
  195.             </set>
  196.             <set name="Fenrir|Ifrit|Shiva|Garuda|Titan|Ramuh|Leviathan|Alexander|Odin|*Spirit">
  197.             </set>
  198.  
  199.             <set name="Perpetuation">
  200.                 <body>Caller's Doublet +2</body>
  201.                 <lring>Evoker's Ring</lring>
  202.                 <legs>Augur's Brais</legs>
  203.                 <feet>Caller's Pigaches +2</feet>
  204.             </set>
  205.  
  206.             <set name="PerpDay">
  207.                 <hands>Caller's Bracers +2</hands>
  208.             </set>
  209.  
  210.             <set name="PerpWeather">
  211.                 <!-- <head>Summoner's Horn</head> -->
  212.                 <neck>Caller's Pendant</neck>
  213.                 <hands>Caller's Bracers +2</hands>
  214.             </set>
  215.  
  216.  
  217.  
  218.  
  219.             <set name="Kite|Move">
  220.             </set>
  221.             <set name="SandstormFeet">
  222.                 <feet>Desert Boots</feet>
  223.             </set>
  224.         </group>
  225.  
  226.         <!-- BasicJA group is for gear sets designed to enhance JAs used on self or other players,
  227.             that won't vary by Area. -->
  228.         <group name="BasicJAs">
  229.             <!-- -16 delay with this gear -->
  230.             <set name="PactDelay">
  231.                 <head>Summoner's Horn</head>
  232.                 <rear>Caller's Earring</rear>
  233.                 <body>Summoner's Doublet</body>
  234.                 <hands>Summoner's Bracers</hands>
  235.                 <back>Tiresias' Cape</back>
  236.                 <legs>Summoner's Spats</legs>
  237.                 <feet>Summoner's Pigaches</feet>
  238.             </set>
  239.  
  240.             <set name="Mana Cede">
  241.                 <hands>Caller's Bracers +2</hands>
  242.             </set>
  243.  
  244.             <set name="Siphon">
  245.                 <feet>Caller's Pigaches +2</feet>
  246.             </set>
  247.         </group>
  248.  
  249.         <!-- BasicMagic group is for magic casting that won't vary by area, such as fast cast,
  250.             cures and enhancing magic. -->
  251.         <group name="BasicMagic">
  252.             <set name="FastCast">
  253.                 <head>Tethyan Cap +3</head>
  254.                 <rear>Loquacious Earring</rear>
  255.                 <lring>Prolix Ring</lring>
  256.                 <back>Swith Cape</back>
  257.                 <waist>Witful Belt</waist>
  258.                 <legs>Orvail Pants</legs>
  259.                 <feet>Chelona Boots +1</feet>
  260.             </set>
  261.  
  262.             <set name="FastRecast">
  263.                 <head>Zelus Tiara</head>
  264.                 <rear>Loquacious Earring</rear>
  265.                 <body>Goliard Saio</body>
  266.                 <hands>Hieros Mittens</hands>
  267.                 <waist>Goading Belt</waist>
  268.             </set>
  269.  
  270.             <set name="Cure">
  271.                 <main>$Staff-Cures</main>
  272.                 <ammo>Clarus Stone</ammo>
  273.                 <neck>Colossus's Torque</neck>
  274.                 <lear>Roundel Earring</lear>
  275.                 <rear>Loquacious Earring</rear>
  276.                 <body>Heka's Kalasiris</body>
  277.                 <hands>Augur's Gloves</hands>
  278.                 <lring>Ephedra Ring</lring>
  279.                 <rring>Sirona's Ring</rring>
  280.                 <back>Tempered Cape</back>
  281.                 <waist>Pythia Sash</waist>
  282.                 <legs>Praeco Slacks</legs>
  283.                 <feet>Chelona Boots +1</feet>
  284.             </set>
  285.  
  286.             <!-- 86 mnd as Taru smn/sch.
  287.                 404 Enhancing with Light Arts.
  288.                 No additional mnd needed.
  289.                 Adding extra in case of different sub -->
  290.             <set name="Stoneskin">
  291.                 <neck>Enhancing Torque</neck>
  292.                 <body>Heka's Kalasiris</body>
  293.                 <waist>Siegel Sash</waist>
  294.                 <legs>Augur's Brais</legs>
  295.                 <feet>Chelona Boots +1</feet>
  296.             </set>
  297.            
  298.             <set name="ConserveMP">
  299.                 <ammo>Clarus Stone</ammo>
  300.                 <body>Goliard Saio</body>
  301.                 <waist>Austerity Belt</waist>
  302.             </set>
  303.            
  304.         </group>
  305.  
  306.  
  307.         <!-- Groups that vary by Area/Situation (prefix with Area/Situation name): Melee, Actions, Magic -->
  308.  
  309.         <!-- Melee is for TP sets (melee or ranged) -->
  310.         <group name="Outside-Melee">
  311.             <set name="Melee">
  312.                 <head>Zelus Tiara</head>
  313.                 <neck>Peacock Charm</neck>
  314.                 <lear>Bladeborn Earring</lear>
  315.                 <rear>Steelflash Earring</rear>
  316.                 <body>Goliard Saio</body>
  317.                 <hands>Hieros Mittens</hands>
  318.                 <lring>Rajas Ring</lring>
  319.                 <rring>Ulthalam's Ring</rring>
  320.                 <back>Umbra Cape</back>
  321.                 <waist>Goading Belt</waist>
  322.                 <legs>Rubeus Spats</legs>
  323.                 <feet>Frisky Sabots</feet>
  324.             </set>
  325.         </group>
  326.  
  327.         <!-- Actions is for JA-type actions (weaponskills, jumps, steps, etc) -->
  328.         <group name="Outside-Actions">
  329.             <!-- ***************************** -->
  330.             <!--  Sets for blood pacts         -->
  331.             <!-- ***************************** -->
  332.  
  333.             <!-- +65 skill -->
  334.             <set name="SummoningSkill">
  335.                 <main>Soulscourge</main>
  336.                 <head>Caller's Horn +2</head>
  337.                 <neck>Caller's Pendant</neck>
  338.                 <body>Caller's Doublet +2</body>
  339.                 <hands>Summoner's Bracers</hands>
  340.                 <lring>Evoker's Ring</lring>
  341.                 <rring>Fervor Ring</rring>
  342.                 <legs>Caller's Spats +2</legs>
  343.             </set>
  344.  
  345.             <set name="PetPhysical">
  346.                 <main>Soulscourge</main>
  347.                 <body>Caller's Doublet +2</body>
  348.                 <hands>Caller's Bracers +2</hands>
  349.                 <legs>Herder's Subligar</legs>
  350.                 <feet>Summoner's Pigaches</feet>
  351.             </set>
  352.  
  353.             <set name="PetMagical">
  354.                 <main>Soulscourge</main>
  355.                 <body>Caller's Doublet +2</body>
  356.                 <feet>Caller's Pigaches +2</feet>
  357.             </set>
  358.  
  359.  
  360.             <!-- ***************************** -->
  361.             <!--  Sets for weaponskills        -->
  362.             <!-- ***************************** -->
  363.  
  364.             <set name="WS-Shattersoul-*">
  365.                 <neck>Rancor Collar</neck>
  366.                 <rring>Spiral Ring</rring>
  367.                 <waist>Light Belt</waist>
  368.             </set>
  369.  
  370.             <set name="WS-Retribution-*">
  371.                 <neck>Thunder Gorget</neck>
  372.                 <rring>Solemn Ring</rring>
  373.                 <waist>Thunder Belt</waist>
  374.             </set>
  375.  
  376.             <set name="WS-Spirit Taker-*">
  377.                 <!-- <neck>Backlash Torque</neck> -->
  378.                 <neck>Peacock Charm</neck>
  379.                 <rring>Solemn Ring</rring>
  380.                 <waist>Pythia Sash</waist>
  381.             </set>
  382.  
  383.             <set name="WS-*">
  384.                 <neck>Thunder Gorget</neck>
  385.                 <rring>Spiral Ring</rring>
  386.                 <waist>Thunder Belt</waist>
  387.             </set>
  388.         </group>
  389.  
  390.         <!-- Magic is for offensive magic (nukes, enfeebling, etc) -->
  391.         <group name="Outside-Magic">
  392.         </group>
  393.     </sets>
  394.     <rules>
  395.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='RunFirstUpdate']/*" />
  396.  
  397.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='ReturnRules']/*" />
  398.         <!-- Make sure locks are in place before auto-changing gear. -->
  399.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='EquipmentLockRules']/*" />
  400.         <!-- Auto-change gear call via Aftercast to limit lag. -->
  401.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='ChangeGearAftercast']/*" />
  402.         <!-- Other general imports. -->
  403.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='ElementalStaffRules']/*" />
  404.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='RecastWarnings']/*" />
  405.  
  406.  
  407.         <!-- First set variable values based on current status for autoset changes. -->
  408.  
  409.         <if mode="OR" BuffActive="Avatar's Favor" Spell="Avatar's Favor">
  410.             <if mode="OR" PetIsValid="true" type="SummonerPact">
  411.                 <var cmd="set FavorSet Favor" />
  412.             </if>
  413.             <else>
  414.                 <var cmd="set FavorSet None" />
  415.             </else>
  416.         </if>
  417.         <else>
  418.             <var cmd="set FavorSet None" />
  419.         </else>
  420.  
  421.         <if BuffActive="Sublimation: Active" NotSpell="Sublimation">
  422.             <var cmd="set IdleMode Sublimation" />
  423.         </if>
  424.         <elseif NotBuffActive="Sublimation*" Spell="Sublimation">
  425.             <var cmd="set IdleMode Sublimation" />
  426.         </elseif>
  427.         <else>
  428.             <var cmd="set IdleMode Normal" />
  429.         </else>
  430.  
  431.         <!-- Second: Update certain values when their status may drop, or when autoset changes. -->
  432.  
  433.         <if spell="Update|autoset">
  434.             <xi:include href="Mote-Rules-Include.xml" xpointer="//include[@name='AreaRules']/*" />
  435.  
  436.             <if SpellTargetRaw=".Manual">
  437.                 <addtochat>Reset.  PhysicalDef:$PhysicalDefense</addtochat>
  438.             </if>
  439.         </if>
  440.  
  441.  
  442.         <!-- Third: Adjust configurations based on action/trigger. -->
  443.  
  444.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='UniversalTriggerRules']/*" />
  445.  
  446.  
  447.         <!-- Special shortcut commands that we can separate out based on which avatar is present. -->
  448.         <if Spell="ClassTrigger">
  449.             <!-- Experimental, incomplete. -->
  450.             <if PetIsValid="true">
  451.                 <if SpellTargetRaw=".weather">
  452.                     <if Subjob="Sch">
  453.                         <if PetElement="$SchStorms">
  454.                             <changespell spell="$Storm-%PetElement" />
  455.                             <changetarget target="&lt;me&gt;" />
  456.                         </if>
  457.                         <else>
  458.                             <addtochat>Unable to cast storm for that avatar.</addtochat>
  459.                         </else>
  460.                     </if>
  461.                     <else>
  462.                         <addtochat>Wrong subjob to cast storms.</addtochat>
  463.                     </else>
  464.                 </if>
  465.                 <elseif PetName="*Spirit">
  466.                     <addtochat color="28">Spirits cannot use blood pacts.</addtochat>
  467.                 </elseif>
  468.                 <elseif SpellTargetRaw=".aoeheal">
  469.                     <if PetName="Carbuncle">
  470.                         <changespell spell="Healing Ruby II" />
  471.                         <changetarget target="&lt;me&gt;" />
  472.                     </if>
  473.                     <elseif PetName="Garuda">
  474.                         <changespell spell="Whispering Wind" />
  475.                         <changetarget target="&lt;me&gt;" />
  476.                     </elseif>
  477.                     <elseif PetName="Leviathan">
  478.                         <changespell spell="Spring Water" />
  479.                         <changetarget target="&lt;me&gt;" />
  480.                     </elseif>
  481.                     <else>
  482.                         <addtochat color="28">%PetName does not have any AOE healing pacts.</addtochat>
  483.                     </else>
  484.                 </elseif>
  485.                 <elseif SpellTargetRaw=".heal">
  486.                     <if PetName="Carbuncle">
  487.                         <changespell spell="Healing Ruby" />
  488.                         <changetarget target="&lt;stpc&gt;" />
  489.                     </if>
  490.                     <else>
  491.                         <addtochat color="28">%PetName does not have any single-target healing pacts.</addtochat>
  492.                     </else>
  493.                 </elseif>
  494.                 <elseif SpellTargetRaw=".erase">
  495.                     <if PetName="Carbuncle">
  496.                         <changespell spell="Soothing Ruby" />
  497.                         <changetarget target="&lt;stpc&gt;" />
  498.                     </if>
  499.                     <else>
  500.                         <addtochat color="28">%PetName does not have any status removal pacts.</addtochat>
  501.                     </else>
  502.                 </elseif>
  503.                 <elseif SpellTargetRaw=".run">
  504.                     <if PetName="Garuda">
  505.                         <changespell spell="Fleet Wind" />
  506.                         <changetarget target="&lt;me&gt;" />
  507.                     </if>
  508.                     <else>
  509.                         <addtochat color="28">%PetName does not have a movement speed pact.</addtochat>
  510.                     </else>
  511.                 </elseif>
  512.                 <elseif SpellTargetRaw=".OffBuff">
  513.                     <if PetName="Garuda">
  514.                         <changespell spell="Hastega" />
  515.                         <changetarget target="&lt;me&gt;" />
  516.                     </if>
  517.                     <elseif PetName="Ifrit">
  518.                         <changespell spell="Inferno Howl" />
  519.                         <changetarget target="&lt;me&gt;" />
  520.                     </elseif>
  521.                     <elseif PetName="Ramuh">
  522.                         <changespell spell="Rolling Thunder" />
  523.                         <changetarget target="&lt;me&gt;" />
  524.                     </elseif>
  525.                     <elseif PetName="Titan">
  526.                         <!-- Put in offense because it need to be somewhere -->
  527.                         <changespell spell="Earthen Armor" />
  528.                         <changetarget target="&lt;me&gt;" />
  529.                     </elseif>
  530.                     <elseif PetName="Carbuncle">
  531.                         <changespell spell="Glittering Ruby" />
  532.                         <changetarget target="&lt;me&gt;" />
  533.                     </elseif>
  534.                     <elseif PetName="Fenrir">
  535.                         <changespell spell="Ecliptic Growl" />
  536.                         <changetarget target="&lt;me&gt;" />
  537.                     </elseif>
  538.                     <elseif PetName="Diabolos">
  539.                         <!-- put in offense because of MAB, but also adds MDB -->
  540.                         <changespell spell="Dream Shroud" />
  541.                         <changetarget target="&lt;me&gt;" />
  542.                     </elseif>
  543.                     <else>
  544.                         <addtochat color="28">%PetName does not have an offensive buff ward.</addtochat>
  545.                     </else>
  546.                 </elseif>
  547.                 <elseif SpellTargetRaw=".DefBuff">
  548.                     <if PetName="Garuda">
  549.                         <changespell spell="Aerial Armor" />
  550.                         <changetarget target="&lt;me&gt;" />
  551.                     </if>
  552.                     <elseif PetName="Shiva">
  553.                         <changespell spell="Frost Armor" />
  554.                         <changetarget target="&lt;me&gt;" />
  555.                     </elseif>
  556.                     <elseif PetName="Titan">
  557.                         <changespell spell="Earthen Ward" />
  558.                         <changetarget target="&lt;me&gt;" />
  559.                     </elseif>
  560.                     <elseif PetName="Ramuh">
  561.                         <changespell spell="Lightning Armor" />
  562.                         <changetarget target="&lt;me&gt;" />
  563.                     </elseif>
  564.                     <elseif PetName="Carbuncle">
  565.                         <changespell spell="Shining Ruby" />
  566.                         <changetarget target="&lt;me&gt;" />
  567.                     </elseif>
  568.                     <elseif PetName="Fenrir">
  569.                         <!-- put in defense due to the evasion, but also adds accuracy -->
  570.                         <changespell spell="Ecliptic Howl" />
  571.                         <changetarget target="&lt;me&gt;" />
  572.                     </elseif>
  573.                     <elseif PetName="Diabolos">
  574.                         <changespell spell="Noctoshield" />
  575.                         <changetarget target="&lt;me&gt;" />
  576.                     </elseif>
  577.                     <else>
  578.                         <addtochat color="28">%PetName does not have a defensive buff ward.</addtochat>
  579.                     </else>
  580.                 </elseif>
  581.                 <elseif SpellTargetRaw=".Debuff">
  582.                     <if PetName="Shiva">
  583.                         <changespell spell="Diamond Storm" />
  584.                         <changetarget target="&lt;stnpc&gt;" />
  585.                     </if>
  586.                     <elseif PetName="Ramuh">
  587.                         <changespell spell="Shock Squall" />
  588.                         <changetarget target="&lt;stnpc&gt;" />
  589.                     </elseif>
  590.                     <elseif PetName="Leviathan">
  591.                         <changespell spell="Tidal Roar" />
  592.                         <changetarget target="&lt;stnpc&gt;" />
  593.                     </elseif>
  594.                     <elseif PetName="Fenrir">
  595.                         <changespell spell="Lunar Cry" />
  596.                         <changetarget target="&lt;stnpc&gt;" />
  597.                     </elseif>
  598.                     <elseif PetName="Diabolos">
  599.                         <changespell spell="Pavor Nocturnus" />
  600.                         <changetarget target="&lt;stnpc&gt;" />
  601.                     </elseif>
  602.                     <else>
  603.                         <addtochat color="28">%PetName does not have any debuff pacts.</addtochat>
  604.                     </else>
  605.                 </elseif>
  606.                 <elseif SpellTargetRaw=".Debuff2">
  607.                     <if PetName="Leviathan">
  608.                         <changespell spell="Slowga" />
  609.                         <changetarget target="&lt;stnpc&gt;" />
  610.                     </if>
  611.                     <elseif PetName="Fenrir">
  612.                         <changespell spell="Lunar Roar" />
  613.                         <changetarget target="&lt;stnpc&gt;" />
  614.                     </elseif>
  615.                     <elseif PetName="Diabolos">
  616.                         <changespell spell="Somnolence" />
  617.                         <changetarget target="&lt;stnpc&gt;" />
  618.                     </elseif>
  619.                     <else>
  620.                         <addtochat color="28">%PetName does not have a second debuff pact.</addtochat>
  621.                     </else>
  622.                 </elseif>
  623.                 <elseif SpellTargetRaw=".sleep">
  624.                     <if PetName="Shiva">
  625.                         <!-- Broken handling of pet commands that are also player spells.
  626.                             Push out a new command to replace this. -->
  627.                         <command>input /raw /pet Sleepga &lt;stnpc&gt;</command>
  628.                         <cancelspell />
  629.                         <return />
  630.                     </if>
  631.                     <elseif PetName="Diabolos">
  632.                         <changespell spell="Nightmare" />
  633.                         <changetarget target="&lt;me&gt;" />
  634.                     </elseif>
  635.                     <else>
  636.                         <addtochat color="28">%PetName does not have any sleep pacts.</addtochat>
  637.                     </else>
  638.                 </elseif>
  639.                 <elseif SpellTargetRaw="Nuke2">
  640.                     <if PetName="Ifrit">
  641.                         <changespell spell="Fire II" />
  642.                         <changetarget target="&lt;stnpc&gt;" />
  643.                     </if>
  644.                     <elseif PetName="Shiva">
  645.                         <changespell spell="Blizzard II" />
  646.                         <changetarget target="&lt;stnpc&gt;" />
  647.                     </elseif>
  648.                     <elseif PetName="Garuda">
  649.                         <changespell spell="Aero II" />
  650.                         <changetarget target="&lt;stnpc&gt;" />
  651.                     </elseif>
  652.                     <elseif PetName="Titan">
  653.                         <changespell spell="Stone II" />
  654.                         <changetarget target="&lt;stnpc&gt;" />
  655.                     </elseif>
  656.                     <elseif PetName="Ramuh">
  657.                         <changespell spell="Thunder II" />
  658.                         <changetarget target="&lt;stnpc&gt;" />
  659.                     </elseif>
  660.                     <elseif PetName="Leviathan">
  661.                         <changespell spell="Water II" />
  662.                         <changetarget target="&lt;stnpc&gt;" />
  663.                     </elseif>
  664.                     <else>
  665.                         <addtochat color="28">%PetName does not have a Tier II nuke.</addtochat>
  666.                     </else>
  667.                 </elseif>
  668.                 <elseif SpellTargetRaw="Nuke4">
  669.                     <if PetName="Ifrit">
  670.                         <changespell spell="Fire IV" />
  671.                         <changetarget target="&lt;stnpc&gt;" />
  672.                     </if>
  673.                     <elseif PetName="Shiva">
  674.                         <changespell spell="Blizzard IV" />
  675.                         <changetarget target="&lt;stnpc&gt;" />
  676.                     </elseif>
  677.                     <elseif PetName="Garuda">
  678.                         <changespell spell="Aero IV" />
  679.                         <changetarget target="&lt;stnpc&gt;" />
  680.                     </elseif>
  681.                     <elseif PetName="Titan">
  682.                         <changespell spell="Stone IV" />
  683.                         <changetarget target="&lt;stnpc&gt;" />
  684.                     </elseif>
  685.                     <elseif PetName="Ramuh">
  686.                         <changespell spell="Thunder IV" />
  687.                         <changetarget target="&lt;stnpc&gt;" />
  688.                     </elseif>
  689.                     <elseif PetName="Leviathan">
  690.                         <changespell spell="Water IV" />
  691.                         <changetarget target="&lt;stnpc&gt;" />
  692.                     </elseif>
  693.                     <else>
  694.                         <addtochat color="28">%PetName does not have a Tier IV nuke.</addtochat>
  695.                     </else>
  696.                 </elseif>
  697.                 <elseif SpellTargetRaw=".Physical">
  698.                     <var cmd="set ClassPactType Physical" />
  699.                     <changetarget target="&lt;stnpc&gt;" />
  700.  
  701.                     <if PetName="Ifrit">
  702.                         <changespell spell="Flaming Crush" />
  703.                     </if>
  704.                     <elseif PetName="Shiva">
  705.                         <changespell spell="Rush" />
  706.                     </elseif>
  707.                     <elseif PetName="Garuda">
  708.                         <changespell spell="Predator Claws" />
  709.                     </elseif>
  710.                     <elseif PetName="Titan">
  711.                         <changespell spell="Mountain Buster" />
  712.                     </elseif>
  713.                     <elseif PetName="Ramuh">
  714.                         <changespell spell="Chaotic Strike" />
  715.                     </elseif>
  716.                     <elseif PetName="Leviathan">
  717.                         <changespell spell="Spinning Dive" />
  718.                     </elseif>
  719.                     <elseif PetName="Carbuncle">
  720.                         <changespell spell="Meteorite" />
  721.                     </elseif>
  722.                     <elseif PetName="Fenrir">
  723.                         <changespell spell="Eclipse Bite" />
  724.                     </elseif>
  725.                     <elseif PetName="Diabolos">
  726.                         <changespell spell="Night Terror" />
  727.                     </elseif>
  728.                 </elseif>
  729.                 <elseif SpellTargetRaw=".Magical">
  730.                     <var cmd="set ClassPactType Magical" />
  731.                     <changetarget target="&lt;stnpc&gt;" />
  732.  
  733.                     <if PetName="Ifrit">
  734.                         <changespell spell="Meteor Strike" />
  735.                     </if>
  736.                     <elseif PetName="Shiva">
  737.                         <changespell spell="Heavenly Strike" />
  738.                     </elseif>
  739.                     <elseif PetName="Garuda">
  740.                         <changespell spell="Wind Blade" />
  741.                     </elseif>
  742.                     <elseif PetName="Titan">
  743.                         <changespell spell="Geocrush" />
  744.                     </elseif>
  745.                     <elseif PetName="Ramuh">
  746.                         <changespell spell="Thunderstorm" />
  747.                     </elseif>
  748.                     <elseif PetName="Leviathan">
  749.                         <changespell spell="Grand Fall" />
  750.                     </elseif>
  751.                     <elseif PetName="Carbuncle">
  752.                         <changespell spell="Holy Mist" />
  753.                     </elseif>
  754.                     <elseif PetName="Fenrir">
  755.                         <changespell spell="Lunar Bay" />
  756.                     </elseif>
  757.                     <elseif PetName="Diabolos">
  758.                         <changespell spell="Nether Blast" />
  759.                     </elseif>
  760.                 </elseif>
  761.                 <elseif SpellTargetRaw=".2hr">
  762.                     <if NotBuffActive="Astral Flow">
  763.                         <addtochat color="28">2-Hour is not active.</addtochat>
  764.                     </if>
  765.                     <else>
  766.                         <var cmd="set ClassPactType Magical" />
  767.                         <changetarget target="&lt;stnpc&gt;" />
  768.  
  769.                         <if PetName="Ifrit">
  770.                             <changespell spell="Inferno" />
  771.                         </if>
  772.                         <elseif PetName="Shiva">
  773.                             <changespell spell="Diamond Dust" />
  774.                         </elseif>
  775.                         <elseif PetName="Garuda">
  776.                             <changespell spell="Aerial Blast" />
  777.                         </elseif>
  778.                         <elseif PetName="Titan">
  779.                             <changespell spell="Earthen Fury" />
  780.                         </elseif>
  781.                         <elseif PetName="Ramuh">
  782.                             <changespell spell="Judgment Bolt" />
  783.                         </elseif>
  784.                         <elseif PetName="Leviathan">
  785.                             <changespell spell="Tidal Wave" />
  786.                         </elseif>
  787.                         <elseif PetName="Carbuncle">
  788.                             <changespell spell="Searing Light" />
  789.                         </elseif>
  790.                         <elseif PetName="Fenrir">
  791.                             <changespell spell="Howling Moon" />
  792.                         </elseif>
  793.                         <elseif PetName="Diabolos">
  794.                             <changespell spell="Ruinous Omen" />
  795.                         </elseif>
  796.                     </else>
  797.                 </elseif>
  798.                 <else>
  799.                     <addtochat>Unknown ClassTrigger: [%SpellTargetRaw]</addtochat>
  800.                 </else>
  801.             </if>
  802.             <else>
  803.                 <addtochat color="112">No pet.  Changing to palette 1.</addtochat>
  804.                 <command>input /macro set 1</command>
  805.                 <cancelspell />
  806.             </else>
  807.         </if>
  808.  
  809.         <!-- Fourth: Adjust gear to account for changes in configuration -->
  810.  
  811.         <!-- Control gear sets used based on presence of an avatar. -->
  812.         <if PetIsValid="true" NotSpell="Release">
  813.             <!-- Currently have a pet, not releasing it.  Set up appropriate gear for that pet.
  814.                 This won't change until we release the pet or it otherwise dies. -->
  815.             <var cmd="set PrimaryWeapon $Staff-Avatar-%PetElement" />
  816.             <var cmd="set PrimarySub Verse Strap +1" />
  817.             <var cmd="set PetSet %PetName" />
  818.  
  819.             <var cmd="set PerpSet Perpetuation" />
  820.  
  821.             <!-- Update perpetuation sets to keep up with day and weather. -->
  822.             <if DayElement="%PetElement">
  823.                 <var cmd="set PerpSet $PerpSet|PerpDay" />
  824.             </if>
  825.  
  826.             <if mode="OR" WeatherElement="%PetElement" BuffActive="$Storm-%PetElement" Spell="$Storm-%PetElement">
  827.                 <var cmd="set PerpSet $PerpSet|PerpWeather" />
  828.             </if>
  829.         </if>
  830.         <elseif type="SummonerPact">
  831.             <!-- Don't have a pet, summoning one.  Set up appropriate gear for that pet.
  832.                 This won't change until we release the pet or it otherwise dies. -->
  833.             <var cmd="set PrimaryWeapon $Staff-Avatar-%SpellElement" />
  834.             <var cmd="set PrimarySub Verse Strap +1" />
  835.             <var cmd="set PetSet %Spell" />
  836.  
  837.             <var cmd="set PerpSet Perpetuation" />
  838.  
  839.             <if DayElement="%SpellElement">
  840.                 <var cmd="set PerpSet $PerpSet|PerpDay" />
  841.             </if>
  842.  
  843.             <if mode="OR" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement">
  844.                 <var cmd="set PerpSet $PerpSet|PerpWeather" />
  845.             </if>
  846.  
  847.             <equip when="precast" set="FastCast" />
  848.             <equip when="midcast" set="FastRecast|ConserveMP" />
  849.         </elseif>
  850.         <else>
  851.             <!-- Basic idle with no avatar, or releasing our current avatar. -->
  852.             <if mode="OR" advanced='"$PhysicalDefense" != "None"' mppgt="$OwleyesMPP">
  853.                 <var cmd="set PrimaryWeapon $Staff-PDT" />
  854.                 <var cmd="set PrimarySub Verse Strap +1" />
  855.             </if>
  856.             <else>
  857.                 <var cmd="set PrimaryWeapon Owleyes" />
  858.                 <var cmd="set PrimarySub Genbu's Shield" />
  859.             </else>
  860.  
  861.             <var cmd="set PetSet None" />
  862.             <var cmd="set PerpSet None" />
  863.         </else>
  864.  
  865.         <!-- Desert Boots for movement speed with earth weather. -->
  866.         <if Spell="*storm" NotSpell="Sandstorm">
  867.             <var cmd="set IdleFeet Serpentes Sabots" />
  868.         </if>
  869.         <elseif mode="OR" WeatherElement="Earth" Spell="Sandstorm" BuffActive="Sandstorm">
  870.             <var cmd="set IdleFeet Desert Boots" />
  871.         </elseif>
  872.         <else>
  873.             <var cmd="set IdleFeet Serpentes Sabots" />
  874.         </else>
  875.  
  876.  
  877.  
  878.         <!-- Fifth: Compile all adjustments into the final gear set. -->
  879.         <if status="engaged">
  880.             <var cmd="set BaseGroup $GroupArea-Melee" />
  881.             <var cmd="set BaseLayer Melee" />
  882.         </if>
  883.         <else>
  884.             <var cmd="set BaseGroup Common" />
  885.             <var cmd="set BaseLayer Idle-$IdleArea-$IdleMode" />
  886.         </else>
  887.  
  888.  
  889.         <!-- Compile all subsets into a single final set -->
  890.         <var cmd="set AdditionalSets $PerpSet|$PetSet|$FavorSet|$PhysicalDefense" />
  891.  
  892.         <!-- And assign to appropriate sets for idle/aftercast/etc -->
  893.         <xi:include href="Mote-Rules-Include.xml" xpointer="/includes/include[@name='HandleEquippingGear']/*" />
  894.  
  895.         <!-- ************************************************************************ -->
  896.         <!-- The following sections are solely for setting precast/midcast equipment, -->
  897.         <!-- and should not be changing any configuration options.                    -->
  898.         <!-- ************************************************************************ -->
  899.  
  900.  
  901.         <if spell="Elemental Siphon">
  902.             <if advanced='"$IdleArea"!="Town"'>
  903.                 <if petisvalid="false">
  904.                     <cancelspell />
  905.  
  906.                     <if WeatherElement="None">
  907.                         <if Subjob="Sch" DayElement="$SchStorms" advanced='$CastStorm=0'>
  908.                             <var cmd="set CastStorm 1" />
  909.                             <command>input /ma "$Storm-%DayElement" &lt;me&gt; ; wait 5; input /ja "Elemental Siphon" &lt;me&gt;</command>
  910.                             <return />
  911.                         </if>
  912.  
  913.                         <var cmd="set SiphonElement %DayElement" />
  914.                     </if>
  915.                     <elseif Weather="*x2">
  916.                         <var cmd="set SiphonElement %WeatherElement" />
  917.                     </elseif>
  918.                     <else>
  919.                         <var cmd="set SiphonElement %DayElement" />
  920.                     </else>
  921.  
  922.                     <var cmd="set CastStorm 0" />
  923.  
  924.                     <var cmd="set SiphonSpirit $Spirit-$SiphonElement" />
  925.  
  926.                     <var cmd="set CastSpirit Yes" />
  927.                     <command>input /ma "$SiphonSpirit" &lt;me&gt; ; wait 4;input /ja "Elemental Siphon" &lt;me&gt;</command>
  928.                 </if>
  929.                 <elseif PetName="*Spirit">
  930.                     <equip when="precast" setgroup="BasicJAs" set="Siphon" />
  931.                     <if advanced='"$CastSpirit"="Yes"'>
  932.                         <command when="aftercast">wait 1; input /pet release &lt;me&gt;</command>
  933.                     </if>
  934.  
  935.                     <var cmd="set CastSpirit No" />
  936.                 </elseif>
  937.             </if>
  938.         </if>
  939.         <elseif type="BloodPactWard">
  940.             <AftercastDelay Delay="4.0" />
  941.             <equip when="precast" setgroup="BasicJAs" set="PactDelay" />
  942.             <equip when="midcast" setgroup="$GroupArea-Actions" set="SummoningSkill" />
  943.         </elseif>
  944.         <elseif type="BloodPactRage">
  945.             <AftercastDelay Delay="4.0" />
  946.  
  947.             <if mode="OR" advanced='"$ClassPactType"="Physical"' Spell="$PhysicalPacts">
  948.                 <var cmd="set RageSet PetPhysical" />
  949.                 <var cmd="set ClassPactType None" />
  950.             </if>
  951.             <elseif mode="OR" advanced='"$ClassPactType"="Magical"' Spell="$MagicalPacts|$TwoHrPacts">
  952.                 <var cmd="set RageSet PetMagical" />
  953.                 <var cmd="set ClassPactType None" />
  954.             </elseif>
  955.             <else>
  956.                 <var cmd="set RageSet PetPhysical" />
  957.             </else>
  958.  
  959.             <equip when="precast" setgroup="BasicJAs" set="PactDelay" />
  960.             <equip when="midcast" setgroup="$GroupArea-Actions" set="SummoningSkill|$RageSet" />
  961.         </elseif>
  962.         <elseif skill="HealingMagic">
  963.             <if spell="Cure*|Cura*">
  964.                 <equip when="precast" setgroup="BasicMagic" set="Cure|FastCast" />
  965.                 <equip when="midcast" setgroup="BasicMagic" set="Cure" />
  966.             </if>
  967.             <else>
  968.                 <equip when="precast" setgroup="BasicMagic" set="FastCast" />
  969.             </else>
  970.         </elseif>
  971.         <elseif skill="EnhancingMagic">
  972.             <equip when="precast" setgroup="BasicMagic" set="FastCast">
  973.                 <waist>Siegel Sash</waist>
  974.             </equip>
  975.  
  976.             <if spell="Stoneskin">
  977.                 <equip when="precast">
  978.                     <hands>Carapacho Cuffs</hands>
  979.                 </equip>
  980.  
  981.                 <equip when="midcast" setgroup="BasicMagic" set="FastRecast|Stoneskin" />
  982.             </if>
  983.             <else>
  984.                 <equip when="midcast" setgroup="BasicMagic" set="FastRecast" />
  985.             </else>
  986.         </elseif>
  987.         <elseif type="JobAbility">
  988.             <if spell="Mana Cede">
  989.                 <equip when="precast" setgroup="BasicJAs" set="Mana Cede" />
  990.             </if>
  991.         </elseif>
  992.         <elseif type="BlackMagic" Spell="Sleepga" PetName="Shiva">
  993.             <if spelltargetraw="&lt;st*">
  994.                 <cancelspell />
  995.                 <return />
  996.             </if>
  997.             <else>
  998.                 <cancelspell />
  999.                 <command>input /raw /pet Sleepga &lt;lastst&gt;</command>
  1000.             </else>
  1001.         </elseif>
  1002.  
  1003.     </rules>
  1004.  </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement