Don't like ads? PRO users don't see any ads ;-)

Samurai Spellcast

By: Caranthir on Aug 22nd, 2012  |  syntax: XML  |  size: 7.18 KB  |  hits: 144  |  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" ?>
  2. <!-- Defective spellcast? Check my pastebin for a new version because I probably already fixed it. http://pastebin.com/u/Caranthir -->
  3. <!-- Spellcast information: http://forums.windower.net/topic/21364-spellcast/ -->
  4. <spellcast>
  5.         <config>
  6.                 <!-- http://forums.windower.net/files/download/4-spellcast/ -->
  7.                 RequireVersion="2.48"
  8.                 debug="false"
  9.                 showgearswaps="false"
  10.                 HideErrors="false"
  11.                 quickcommands="true"
  12.                 showspellinfo="false"
  13.                 NormalSet="Idle"
  14.                 RestingSet="Idle"
  15.                 EngagedSet="Engaged"
  16.         </config>
  17.         <!-- These variables sort WS by properties. -->
  18.         <variables>
  19.                 <!-- Physical damage WS. -->
  20.                 <var name="RegularWS">Tachi: Enpi|Tachi: Yukikaze|Tachi: Gekko|Tachi: Kasha|Tachi: Rana|Tachi: Shoha|Vorpal Blade|Double Thrust|Penta Thrust|Skullbreaker|True Strike|Judgment</var>
  21.                 <!-- Magical damage WS w/ STR mod. -->
  22.                 <var name="RegularMagicWS">Tachi: Hobaku|Tachi: Goten|Tachi:Kagero|Tachi: Jinpu|Tachi: Koki|Earth Crusher|Red Lotus Blade|Seraph Blade|Sanguine Blade|Seraph Strike|Flash Nova|Raiden Thrust</var>
  23.                 <!-- Magical damage WS w/ other mods. -->
  24.                 <var name="MagicWS">Cyclone|Aeolian Edge</var>
  25.         </variables>
  26.         <sets>
  27.         <!-- Basic status sets -->
  28.                 <group default="yes" name="Samurai">
  29.                         <set name="Idle">
  30.                                 <ammo>Thew Bomblet</ammo>
  31.                                 <head>Ogier's Helm</head>
  32.                                 <neck>Ganesha's Mala</neck>
  33.                                 <lear>Brutal Earring</lear>
  34.                                 <rear>Unkai Mimikazari</rear>
  35.                                 <body>Ogier's Surcoat</body>
  36.                                 <hands>Ogier's Gauntlets</hands>
  37.                                 <lring>Rajas Ring</lring>
  38.                                 <rring>Tyrant's Ring</rring>
  39.                                 <back>Atheling Mantle</back>
  40.                                 <waist>Goading Belt</waist>
  41.                                 <legs>Ogier's Breeches</legs>
  42.                                 <feet>Danzo Sune-Ate</feet>
  43.                         </set>
  44.                         <set name="Engaged">
  45.                                 <ammo>Thew Bomblet</ammo>
  46.                                 <head>Phorcys Salade</head>
  47.                                 <neck>Ganesha's Mala</neck>
  48.                                 <lear>Brutal Earring</lear>
  49.                                 <rear>Kemas Earring</rear>
  50.                                 <body>Porthos Byrnie</body>
  51.                                 <hands>Phorcys Mitts</hands>
  52.                                 <lring>Rajas Ring</lring>
  53.                                 <rring>Tyrant's Ring</rring>
  54.                                 <back>Atheling Mantle</back>
  55.                                 <waist>Goading Belt</waist>
  56.                                 <legs>Phorcys Dirs</legs>
  57.                                 <feet>Ace's Leggings</feet>
  58.                         </set>
  59.                         <set name="VWEngaged" baseset="engaged">
  60.                                 <waist>Windbuffet Belt</waist>
  61.                         </set>
  62.                         <set name="Resting" baseset="Idle">
  63.                         </set>
  64.                         <!-- WS sets -->
  65.                         <set name="WS">
  66.                                 <ammo>Thew Bomblet</ammo>
  67.                                 <head>Twilight Helm</head>
  68.                                 <neck>Ganesha's Mala</neck>
  69.                                 <lear>Brutal Earring</lear>
  70.                                 <rear>Kemas Earring</rear>
  71.                                 <body>Phorcys Korazin</body>
  72.                                 <hands>Phorcys Mitts</hands>
  73.                                 <lring>Rajas Ring</lring>
  74.                                 <rring>Pyrosoul Ring</rring>
  75.                                 <back>Atheling Mantle</back>
  76.                                 <waist>Windbuffet Belt</waist>
  77.                                 <legs>Ogier's Breeches</legs>
  78.                                 <feet>Unkai Sune-Ate +2</feet>
  79.                         </set>
  80.                         <!-- "set name" will use the base set and then change what is specified -->
  81.                         <set name="STRMagicWS" baseset="WS">
  82.                                 <neck>Stoicheion Medal</neck>
  83.                                 <lear>Hecate's Earring</lear>
  84.                                 <rear>Strophadic Earring</rear>
  85.                                 <lring>Demon's Ring</lring>
  86.                         </set>
  87.                         <set name="MagicWS" baseset="WS">
  88.                                 <ammo>Snow Sachet</ammo>
  89.                                 <neck>Stoicheion Medal</neck>
  90.                                 <lear>Hecate's Earring</lear>
  91.                                 <rear>Strophadic Earring</rear>
  92.                                 <lring>Demon's Ring</lring>
  93.                                 <rring>Icesoul Ring</rring>
  94.                                 <legs>Phorcys Dirs</legs>
  95.                                 <feet>Dilaram's Sollerets</feet>
  96.                         </set>
  97.                         <set name="MagicAttack">
  98.                                 <ammo>Snow Sachet</ammo>
  99.                                 <head>Twilight Helm</head>
  100.                                 <neck>Stoicheion Medal</neck>
  101.                                 <lear>Hecate's Earring</lear>
  102.                                 <rear>Strophadic Earring</rear>
  103.                                 <body>Phorcys Korazin</body>
  104.                                 <lring>Demon's Ring</lring>
  105.                                 <rring>Icesoul Ring</rring>
  106.                         </set>
  107.                         <set name="Fastcast">
  108.                                 <lear>Loquacious Earring</lear>
  109.                                 <lring>Prolix Ring</lring>
  110.                         </set>
  111.                         <set name="Waltz">
  112.                                 <ammo>Bibiki Seashell</ammo>
  113.                                 <head>Twilight Helm</head>
  114.                                 <neck>Dualism Collar</neck>
  115.                                 <lear>Kemas Earring</lear>
  116.                                 <rear>Enchntr. Earring</rear>
  117.                                 <body>Phorcys Korazin</body>
  118.                                 <hands>Phorcys Mitts</hands>
  119.                                 <lring>Dawnsoul Ring</lring>
  120.                                 <rring>Valseur's Ring</rring>
  121.                                 <back>Aisance Mantle +1</back>
  122.                                 <waist>Corsette +1</waist>
  123.                                 <legs>Phorcys Dirs</legs>
  124.                                 <feet>Dilaram's Sollerets</feet>
  125.                         </set>
  126.                 </group>
  127.         </sets>
  128.         <rules>
  129.         <!-- Basic status rules -->
  130.                 <if status = "dead">
  131.                         <cancelspell/>
  132.                         <return/>
  133.                 </if>
  134.                 <if BuffActive="Sleep|Petrification|Stun|Terror|Charm">
  135.                         <return/>
  136.                 </if>
  137.                 <if Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence">
  138.                         <return/>
  139.                 </if>  
  140.                 <if Type="Weaponskill|JobAbility|PetCommand" BuffActive="Amnesia">
  141.                         <cancelspell/>
  142.                         <return/>
  143.                 </if>
  144.                 <!-- You always return to your engaged set when you do something while engaged -->
  145.                 <if Status="engaged">
  146.                         <if BuffActive="Voidwatcher">
  147.                                 <equip when="engaged|aftercast" set="VWEngaged"/>
  148.                         </if>
  149.                         <else>
  150.                                 <equip when="engaged|aftercast" Set="Engaged"/>
  151.                         </else>
  152.                 </if>
  153.                 <!-- You always return to your idle set when you do something while idle -->
  154.                 <if status="idle">
  155.                         <equip when="idle|aftercast" set="Idle"/>
  156.                 </if>
  157.                 <if status="resting">
  158.                         <equip when="resting" set="Resting"/>
  159.                 </if>
  160.                 <!-- Casting rules -->
  161.                 <if type="Ninjutsu">
  162.                         <if spell="Utsusemi: Ichi">
  163.                                 <defaulttarget target="&lt;me&gt;"/>
  164.                                 <!-- Next 4 lines are used to cancel shadows in case you have Ni up -->
  165.                                 <!-- 66 is for 1 shadow, 446 is for 2 shadows, 445 is for 3 shadows -->
  166.                                 <!-- No way for Spellcast to tell if Ichi or Ni is up, deal with it -->
  167.                                 <command when="midcast">cancel 66</command>
  168.                                 <command when="midcast">cancel 446</command>
  169.                                 <command when="midcast">cancel 445</command>
  170.                         </if>
  171.                         <elseif spell="Utsusemi: Ni">
  172.                                 <defaulttarget target="&lt;me&gt;"/>
  173.                         </elseif>
  174.                 </if>
  175.                 <!-- You'll cast spells in the right set at the right time-->
  176.                 <if Type="*Magic">
  177.                         <equip when="midcast" Set="Fastcast"/>
  178.                         <if skill="ElementalMagic">
  179.                                 <equip when="precast" set="MagicAttack"/>
  180.                         </if>
  181.                 </if>
  182.                 <!-- Using a JA will automatically change you into the right set -->
  183.                 <if type="JobAbility">
  184.                         <equip when="precast" Set="%status"/>
  185.                         <if Spell="Sengikori">
  186.                                 <!-- You can use a single piece of gear instead of a unique set -->
  187.                                 <equip when="precast">
  188.                                         <feet>Unkai Sune-Ate +2</feet>
  189.                                 </equip>
  190.                         </if>
  191.                         <if Spell="Sekkanoki">
  192.                                 <equip when="precast">
  193.                                         <hands>Unkai Kote +2</hands>
  194.                                 </equip>
  195.                         </if>
  196.                 </if>
  197.                 <if Type="Waltz">
  198.                         <if Spell="Curing Waltz*">
  199.                                 <equip when="precast" set="Waltz"/>
  200.                         </if>
  201.                 </if>
  202.                 <if type="Weaponskill">
  203.                         <!-- You won't lose TP or change gear if you can't WS -->
  204.                         <if SpellTargetDistanceGT="5">
  205.                                 <addtochat color="121">Target out of range!!</addtochat>
  206.                                 <cancelspell />
  207.                                 <return />
  208.                         </if>
  209.                         <if tplt="100">
  210.                                 <addtochat color="121">Not enough TP!!</addtochat>
  211.                                 <cancelspell />
  212.                                 <return />
  213.                         </if>
  214.                         <!-- This is where the WS variables defined previously come into play. -->
  215.                         <if Spell="$RegularWS">
  216.                                 <equip when="precast" set="WS"/>
  217.                         </if>
  218.                         <if Spell="$RegularMagicWS">
  219.                                 <equip when="precast" set="STRMagicWS"/>
  220.                         </if>
  221.                         <if Spell="$MagicWS">
  222.                                 <equip when="precast" set="MagicWS"/>
  223.                         </if>
  224.                 </if>
  225.         </rules>
  226. </spellcast>