Share Pastebin
Guest
Public paste!

Thf.xml

By: a guest | Mar 15th, 2010 | Syntax: None | Size: 9.80 KB | Hits: 134 | Expires: Never
Copy text to clipboard
  1. <?xml version="1.0" ?>
  2. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  3.     <config
  4.         RequireVersion="2.22"
  5.         HideErrors="false"
  6.         ShowGearSwaps="true"
  7.         Debug="true"
  8.         ShowspellInfo="True"
  9.         />
  10.     <variables>
  11.         <var name="highevamobs">Kirin|Suzaku|Genbu|Seiryu|Byakko</var>
  12.     </variables>
  13.     <sets>
  14.         <!-- Our main set for almost all scenarios -->
  15.         <group name="Thief" default="yes">
  16.             <set name="Standard">
  17.                 <head>Walahra Turban</head>
  18.                 <neck>Chivalrous Chain</neck>
  19.                 <lear>Brutal Earring</lear>
  20.                 <rear>Suppanomimi</rear>
  21.                 <body>Rapparee harness</body>
  22.                 <hands>War gloves</hands>
  23.                 <lring>Rajas Ring</lring>
  24.                 <rring>Thunder ring</rring>
  25.                 <back>Amemet Mantle +1</back>
  26.                 <waist>Headlong belt</waist>
  27.                 <legs>Dragon subligar</legs>
  28.                 <feet>Marine M boots</feet>
  29.             </set>
  30.             <set name="Attack" baseset="Standard">
  31.                 <body>Rapparee Harness</body>
  32.                 <hands>Dusk Gloves</hands>
  33.                 <back>Amemet Mantle +1</back>
  34.                 <feet>Dusk ledelsens</feet>
  35.             </set>
  36.             <set name="SA" baseset="Attack">
  37.                 <head>Assassin's bonnet</head>
  38.                 <neck>Spike necklace</neck>
  39.                 <lear>Forte earring</lear>
  40.                 <rear>Minuet earring</rear>
  41.                 <body>Dragon Harness</body>
  42.                 <hands>Custom m gloves</hands>
  43.                 <waist>Warwolf belt</waist>
  44.                 <legs>Dragon subligar</legs>
  45.                 <feet>Marine M boots</feet>
  46.             </set>
  47.             <set name="TA" baseset="Attack">
  48.                 <head>Empress hairpin</head>
  49.                 <body>Mirke wardecors</body>
  50.                 <hands>Dragon mittens</hands>
  51.                 <lring>Emerald Ring</lring>
  52.                 <rring>Emerald ring</rring>
  53.                 <waist>Warwolf belt</waist>
  54.             </set>
  55.             <set name="WS" baseset="Attack">
  56.                 <head>Empress hairpin</head>
  57.                 <body>Mirke wardecors</body>
  58.                 <hands>Dragon mittens</hands>
  59.                 <waist>Warwolf belt</waist>
  60.                 <legs>Dragon subligar</legs>
  61.                 <feet>Marine M boots</feet>
  62.             </set>
  63.             <set name="Resting" BaseSet="Standard">
  64.                     <neck>Orochi nodowa</neck>
  65.                 <lring>Sapphire ring</lring>
  66.                 <rring>Sapphire ring</rring>
  67.                 <waist>R.K. belt +2</waist>
  68.             </set>
  69.             <!-- I have 4 macros for range, in each macro i select the ammo -->
  70.             <!-- If you use always the same ammo set it here -->
  71.             <set name="Ranged Attack" baseset="Attack">
  72.                 <head>Optical Hat</head>
  73.                 <lring>Behemoth Ring</lring>
  74.                 <rring>Behemoth Ring</rring>
  75.             </set>
  76.             <set name="Utsusemi">
  77.                 <head>Walahra Turban</head>
  78.                 <lear>Loquacious Earring</lear>
  79.                 <body>Rapparee Harness</body>
  80.                 <hands>Dusk Gloves</hands>
  81.                 <waist>Headlong belt</waist>
  82.                 <feet>Dusk ledelsens</feet>
  83.             </set>
  84.         </group>
  85.         <!-- Our tank/kite/solo set, to use it you have to use a game macro -->
  86.         <!-- /spellcast group evasion to switch to evasion -->
  87.         <!-- /spellcast group thief to switch to main set  -->
  88.         <group name="Evasion" inherit="Thief">
  89.             <set name="Standard" baseset="Standard" basegroup="Thief">
  90.                 <head>Optical Hat</head>
  91.                 <neck>Evasion Torque</neck>
  92.                 <lear>Evasion earring</lear>
  93.                 <body>Scorpion Harness</body>
  94.                 <hands>Praefectus's gloves</hands>
  95.                 <feet>Emissary boots</feet>
  96.             </set>
  97.             <set name="Attack" baseset="Attack" basegroup="Thief">
  98.                 <head>Optical Hat</head>
  99.                 <body>Scorpion Harness</body>
  100.             </set>
  101.             <!-- Only Standard and Attack are different, other set are the same -->
  102.             <set name="SA" baseset="SA" basegroup="Thief" />
  103.             <set name="TA" baseset="TA" basegroup="Thief" />
  104.             <set name="WS" baseset="WS" basegroup="Thief" />
  105.             <set name="Ranged Attack" baseset="Ranged Attack" basegroup="Thief" />
  106.             <set name="Utsusemi" baseset="Utsusemi" basegroup="Thief" />
  107.         </group>
  108.         <!-- Are we fighting an High Evasion mob? no problem -->
  109.         <group name="Accuracy" inherit="Thief">
  110.             <set name="Attack" baseset="Attack" basegroup="Thief">
  111.                 <head>Optical Hat</head>
  112.                 <body>Scorpion Harness</body>
  113.             </set>
  114.             <set name="WS" baseset="WS" basegroup="Thief">
  115.                 <head>Optical Hat</head>
  116.             </set>
  117.         </group>
  118.     </sets>
  119.     <rules>
  120.         <!-- If we need our TH4 only need to equip thief's knife to trigger this -->
  121.         <if mode="OR" EquipMain="Thief's Knife" EquipSub="Thief's Knife">
  122.             <equip when="idle|engaged|midcast|aftercast">
  123.                 <hands lock="yes">Assassin's Armlets</hands>
  124.             </equip>
  125.         </if>
  126.  
  127.  
  128.         <equip when="resting" set="Resting" />
  129.         <!-- Sub job different than NIN, so we don't need Suppa -->
  130.         <if Subjob="DRK|WAR|SAM|RNG">
  131.             <equip>
  132.                 <rear lock="yes">Minuet Earring</rear>
  133.             </equip>
  134.         </if>
  135.         <if status="idle">
  136.             <!-- Not engaged but maybe pulling, equip Evasion for the way back to camp -->
  137.             <if Spell="Ranged">
  138.                 <equip when="precast" set="Ranged Attack" />
  139.                 <equip when="aftercast" set="Standard" setgroup="Evasion" />
  140.             </if>
  141.             <!-- While no fight we equip our "seems cool" set ^^ -->
  142.             <else>
  143.                 <equip when="idle|aftercast" set="Standard" />
  144.             </else>
  145.         </if>
  146.         <!-- Let's go fight! -->
  147.         <if status="engaged">
  148.             <if Spell="Ranged">
  149.                 <equip when="precast" set="Ranged Attack" />
  150.             </if>
  151.             <!-- This delay 5 is for keep equip changed untill we land the hit -->
  152.             <!-- Sneak Attack w/o WS, here we equip our SA set -->
  153.             <if Spell="Sneak Attack">
  154.                 <equip when="precast" set="SA" />
  155.                 <aftercastdelay delay="7" />
  156.             </if>
  157.             <!-- Trick Attack w/o WS, here we equip our TA set -->
  158.             <if Spell="Trick Attack">
  159.                 <equip when="precast" set="TA" />
  160.                 <aftercastdelay delay="7" />
  161.             </if>
  162.             <!-- Are we fighting versus an High Evasion mob? no problem -->
  163.             <if mode="OR" Target="$highevamobs" BuffActive="Blind|Flash">
  164.                 <equip when="engaged|aftercast" set="Attack" setgroup="Accuracy" />
  165.             </if>
  166.             <!-- Not an High Evasion mob, go for full attack -->
  167.             <else>
  168.                 <equip when="engaged|aftercast" set="Attack" />
  169.             </else>
  170.         </if>
  171.         <!-- If we are use a WS -->
  172.         <if type="WeaponSkill">
  173.             <castdelay delay="0.5" />
  174.             <!-- If we have SA or TA up go for full damage gear -->
  175.             <!-- No worried for the delay 5 on SA and TA in Engaged rules -->
  176.             <!-- I tested it and WS gear equip anyway ignoring the delay 5 -->
  177.             <if buffactive="Sneak Attack|Trick Attack">
  178.                 <equip set="WS" />
  179.             </if>
  180.         <if commandprefix="/weaponskill|/ws">
  181.                 <if mode="OR" advanced='%spelltargetdistance &gt; 3.9' tplt="100">
  182.                         <action type="cancelspell" />
  183.                         <action type="return" />
  184.                 </if>
  185.             <!-- If SA/TA not up and mob have high evasion we need some accuracy -->
  186.             <else>
  187.                 <if mode="OR" Target="$highevamobs" BuffActive="Blind|Flash">
  188.                     <equip when="precast" set="WS" setgroup="Accuracy" />
  189.                 </if>
  190.                 <!-- If SA/TA not up but mob not an High Evasion go full damage -->
  191.                 <else>
  192.                     <equip when="precast" set="WS" />
  193.                 </else>
  194.             </else>
  195.             <aftercastdelay delay="1" />
  196.             <!-- Equip the right gorger for each ws -->
  197.             <if Spell="Dancing Edge|Shark Bite">
  198.                 <equip>
  199.                     <neck>Breeze Gorget</neck>
  200.                 </equip>
  201.             </if>
  202.             <if Spell="Evisceration|Mandalic Stab|Mercy Stroke">
  203.                 <equip>
  204.                     <neck>Shadow Gorget</neck>
  205.                 </equip>
  206.             </if>
  207.         </if>
  208.         <if BuffActive="Silence" CommandPrefix="/ma|/magic|/ninjutsu">
  209.                 <action Type="CancelSpell" />
  210.                 <if subjob="DNC">
  211.                         <action type="command">input /ja "Healing Waltz" Nitefall</action>
  212.                 </if>
  213.                         <else>
  214.                                 <action Type="Command">input /item "Echo Drop" Nitefall</action>
  215.                         </else>
  216.         </if>
  217.         <if spell="Utsusemi:*">
  218.                 <equip when="precast" set="Utsusemi" />
  219.                 <if spell="*Ichi">
  220.                         <if advanced='"$Ut"=="Ni"'>
  221.                                 <action type="midcastdelay" delay="2.4" />
  222.                                 <action type="Command" when="midcast">cancel 66</action>
  223.                         </if>
  224.                         <action type="var" cmd="set Ut Ichi" />
  225.                 </if>
  226.                 <else>
  227.                         <action type="var" cmd="set Ut Ni" />
  228.                 </else>
  229.         </if>
  230.         <if spell="Monomi: Ichi">
  231.                 <equip when="precast" set="Sneak" />
  232.                 <action type="midcastdelay" delay="2.4"/>
  233.                 <action type="Command" when="midcast">cancel 71</action>
  234.         </if>
  235.         <if spell="Spectral Jig">
  236.                 <action type="Command" when="precast">cancel 71</action>
  237.         </if>
  238.    </if>
  239.   </rules>
  240. </spellcast>