Guest User

Untitled

a guest
Oct 27th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.30 KB | None | 0 0
  1.  
  2. <?xml version="1.0" ?>
  3. <!--
  4. ===================================================
  5. ||
  6. || Aikar's BLM SpellCast Template
  7. ||
  8. || This file is designed to be easily used by others.
  9. || Simply editing in your own gear and modifying the variables up top
  10. || should be all that is needed to make use of this file.
  11. ||
  12. || Please be sure to configure the variables prior to use.
  13. ||
  14. || If you have any questions - Please post on the forums.
  15. ===================================================
  16. -->
  17. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  18. <config
  19. RequireVersion="2.30"
  20. Debug="True"
  21. ShowGearSwaps="True"
  22. quickcommands="True"
  23. showspellinfo="False"
  24. />
  25. <variables>
  26. <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
  27. <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
  28. <var name="SleepTimers">1</var>
  29. <!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
  30. <var name="BLMAF2Pants">1</var>
  31. <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
  32. <var name="Ring">0</var>
  33. <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
  34. <var name="UggPendant">1</var>
  35. <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
  36. <var name="RDMRingHP">597</var>
  37. <var name="WHMRingHP">583</var>
  38. <var name="NINRingHP">597</var>
  39. <!-- Elemental Grips, set to 1 for each you have -->
  40. <var name="LightGrip">0</var>
  41. <var name="DarkGrip">0</var>
  42. <var name="ThunderGrip">0</var>
  43. <var name="IceGrip">0</var>
  44. <var name="FireGrip">1</var>
  45. <var name="WindGrip">0</var>
  46. <var name="WaterGrip">0</var>
  47. <var name="EarthGrip">0</var>
  48. <!-- Elemental Staffs, input what staff to use for each element here -->
  49. <var name="Staff-Ice">Varuna's Staff</var>
  50. <var name="Staff-Dark">Chatoyant Staff</var>
  51. <var name="Staff-Thunder">Chatoyant Staff</var>
  52. <var name="Staff-Light">Chatoyant Staff</var>
  53. <var name="Staff-Wind">Chatoyant Staff</var>
  54. <var name="Staff-Fire">Chatoyant Staff</var>
  55. <var name="Staff-Earth">Chatoyant Staff</var>
  56. <var name="Staff-Water">Chatoyant Staff</var>
  57. <!-- Obis, name them if you have, otherwise leave at 0 -->
  58. <var name="Obi-Ice">Hyorin Obi</var>
  59. <var name="Obi-Dark">Anrin Obi</var>
  60. <var name="Obi-Thunder">Rairin Obi</var>
  61. <var name="Obi-Light">Korin Obi</var>
  62. <var name="Obi-Wind">Furin Obi</var>
  63. <var name="Obi-Fire">Karin Obi</var>
  64. <var name="Obi-Earth">Dorin Obi</var>
  65. <var name="Obi-Water">Suirin Obi</var>
  66. <!-- Elemental Obi's, set to 1 for the ones you have. -->
  67. <var name="DarkObi">0</var>
  68. <var name="LightObi">0</var>
  69. <var name="ThunderObi">1</var>
  70. <var name="IceObi">1</var>
  71. <var name="FireObi">0</var>
  72. <var name="WindObi">1</var>
  73. <var name="WaterObi">0</var>
  74. <var name="EarthObi">0</var>
  75. <!--DD and Owleyes -->
  76. <var name="IdleMain">Owleyes</var>
  77. <var name="IdleSub">Genbu's Shield</var>
  78. <var name="DDStaff">Chthonic Staff</var>
  79. </variables>
  80. <sets>
  81. <group name="Main" default="yes">
  82. <set name="Standard">
  83. <main>$IdleMain</main>
  84. <sub>$idleSub</sub>
  85. <ammo>Snow Sachet</ammo>
  86. <head>Goetia Petasos +2</head>
  87. <neck>Orochi Nodowa</neck>
  88. <lear>Gifted Earring</lear>
  89. <rear>Moonshade Earring</rear>
  90. <body>Goetia Coat +2</body>
  91. <hands>Serpentes Cuffs</hands>
  92. <lring>Sheltered Ring</lring>
  93. <rring>Dark Ring</rring>
  94. <back>Twilight Cape</back>
  95. <waist>Austerity Belt</waist>
  96. <legs>Tatsumaki Sitagoromo</legs>
  97. <feet>Serpentes Sabots</feet>
  98. </set>
  99. <set name="FastCast">
  100. <feet>Rostrum Pumps</feet>
  101. <waist>Moblin Cest</waist>
  102. </set>
  103. <set name="Resting" BaseSet="Standard">
  104. <body>Errant Hpl.</body>
  105. <main>Chatoyant Staff</main>
  106. <head>Wizard's Petasos +1</head>
  107. <waist>Austerity Belt</waist>
  108. <hands>Serpentes Cuffs</hands>
  109. <neck>Eidolon Pendant</neck>
  110. <rear>Magnetic Earring</rear>
  111. <lear>Moonshade Earring</lear>
  112. <legs>Sorcerer's tonban</legs>
  113. <feet>Oracle's Pigaches</feet>
  114. <back>Merciful Cape</back>
  115. </set>
  116. <set name="MinusHP" />
  117. <set name="FullDamage" BaseSet="Standard">
  118. <sub>Bugard Strap +1</sub>
  119. <ammo>Witchstone</ammo>
  120. <neck>Elemental Torque</neck>
  121. <lear>Moldavite Earring</lear>
  122. <rear>Hecate's Earring</rear>
  123. <head>Goetia Petasos +2</head>
  124. <body>Goetia Coat +2</body>
  125. <hands>Goetia Gloves +2</hands>
  126. <lring>Diamond Ring</lring>
  127. <rring>Strendu Ring</rring>
  128. <back>Goetia Mantle</back>
  129. <waist>Sorcerer's Belt</waist>
  130. <legs>Goetia Chausses +2</legs>
  131. <feet>Goetia Sabots +2</feet>
  132. </set>
  133. <set name="Int" BaseSet="Standard">
  134. <sub>Bugard Strap +1</sub>
  135. <ammo>Snow Sachet</ammo>
  136. <neck>Uggalepih Pendant</neck>
  137. <lear>Abyssal Earring</lear>
  138. <rear>Hecate's Earring</rear>
  139. <head>Goetia Petasos +2</head>
  140. <body>Goetia Coat +2</body>
  141. <hands>Goetia Gloves +2</hands>
  142. <lring>Diamond Ring</lring>
  143. <rring>Strendu Ring</rring>
  144. <back>Goetia Mantle</back>
  145. <waist>Sorcerer's Belt</waist>
  146. <legs>Sorcerer's Tonban</legs>
  147. <feet>Goetia Sabots +2</feet>
  148. </set>
  149. <set name="DarkMagic">
  150. <legs>Wizard's Tonban</legs>
  151. <lear>Abyssal Earring</lear>
  152. <rear>Magnetic Earring</rear>
  153. <head>Walahra Turban</head>
  154. <hands>Goetia Gloves +2</hands>
  155. <waist>Swift Belt</waist>
  156. <body>Goetia Coat +2</body>
  157. <feet>Goetia Sabots +2</feet>
  158. <back>Goetia Mantle</back>
  159. <ammo>Clarus Stone</ammo>
  160. </set>
  161. <set name="EnfeeblingMagic">
  162. <body>Wizard's Coat</body>
  163. <sub>Bugard Strap +1</sub>
  164. <head>Igqira Tiara</head>
  165. <hands>Goetia Gloves +2</hands>
  166. <legs>Igqira Lappa</legs>
  167. <feet>Goetia Sabots +2</feet>
  168. <waist>Moblin Cest</waist>
  169. <rring>Strendu Ring</rring>
  170. <lear>Gifted Earring</lear>
  171. <ammo>Clarus Stone</ammo>
  172. </set>
  173. <set name="HealingMagic">
  174. <sub>Bugard Strap +1</sub>
  175. <hands>Serpentes Cuffs</hands>
  176. <feet>Serpentes Sabots</feet>
  177. <lear>Gifted Earring</lear>
  178. <rear>Magnetic Earring</rear>
  179. <waist>Austerity Belt</waist>
  180. <ammo>Clarus Stone</ammo>
  181. </set>
  182. <set name="DivineMagic" />
  183. <set name="EnhancingMagic">
  184. <sub>Fulcio Grip</sub>
  185. <body>Errant Hpl.</body>
  186. <head>Zenith Crown</head>
  187. <legs>Errant Slops</legs>
  188. <feet>Rostrum Pumps</feet>
  189. <waist>Siegel Sash</waist>
  190. <ammo>Clarus Stone</ammo>
  191. </set>
  192. <!--Vidohunir Set, MAB and int-->
  193. <set name = "weaponskill">
  194. <neck>Uggalepih Pendant</neck>
  195. <lear>Moldavite Earring</lear>
  196. <rear>Hecate's Earring</rear>
  197. <head>Goetia Petasos +2</head>
  198. <body>Goetia Coat +2</body>
  199. <hands>Goetia Gloves +2</hands>
  200. <lring>Blizzard Ring</lring>
  201. <rring>Strendu Ring</rring>
  202. <back>Goetia Mantle</back>
  203. <legs>Goetia Chausses +2</legs>
  204. <feet>Goetia Sabots +2</feet>
  205. </set>
  206. <set name = "tp">
  207. <head>Hakke Hachimaki</head>
  208. <waist>Swift Belt</waist>
  209. <lear>Brutal Earring</lear>
  210. </set>
  211. </group>
  212. </sets>
  213. <rules>
  214. <!--Idle condition for owleyes-->
  215. <if MPPLT="85">
  216. <var cmd="set IdleMain Owleyes" />
  217. <var cmd="set IdleSub Genbu's Shield" />
  218. </if>
  219. <else>
  220. <var cmd="set IdleMain Chthonic Staff" />
  221. <var cmd="set IdleSub Bugard Strap +1" />
  222. </else>
  223. <equip when="engaged" set="tp" />
  224. <if status="engaged">
  225. <main lock="true"></main>
  226. <sub lock="tru"></sub>
  227. </if>
  228. <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  229. <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  230. <changetarget target="&lt;me&gt;" />
  231. </if>
  232. <if SpellTargetType="NONE" ValidTarget="*Self*">
  233. <changetarget target="&lt;me&gt;" />
  234. </if>
  235. <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
  236. <return />
  237. </if>
  238. <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  239. <equip when="Idle|aftercast" set="Standard" />
  240. <!-- set of gear to equip when resting -->
  241. <equip when="Resting" set="Resting" />
  242. <if Spell="Stun">
  243. <!-- equip gear that helps stun, and nothing else -->
  244. <equip set="DarkMagic|FastCast">
  245. <main>Chatoyant Staff</main>
  246. <waist>Swift Belt</waist>
  247. <head>Walahra Turban</head>
  248. <feet>Goetia Sabots +2</feet>
  249. </equip>
  250. <!-- these codes just print Stun in auto translate into chat. -->
  251. <command>input /p Stun &gt;&gt; &lt;%SpellTarget&gt;</command>
  252. </if>
  253. <else>
  254. <!-- equip fast cast gear -->
  255. <equip Set="FastCast" />
  256. <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  257. <if mode="OR" NotSkill="ElementalMagic" Spell="Frost|Drown|Rasp|Burn|Shock|Choke" SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Ouryu|Vrtra|Cerberus|Khimaira|Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Sarameya|Tyger|Jailer of Love|Kindred*">
  258. <if Advanced='"$%SpellElementGrip" == "1"'>
  259. <equip when="midcast">
  260. <sub lock="true">%SpellElement Grip</sub>
  261. </equip>
  262. </if>
  263. </if>
  264. <!-- Keeping Goetia Sabots locked while under Mana Wall -->
  265. <if mode="OR" spell="Mana Wall" buffactive="Mana Wall">
  266. <equip when="precast|midcast|aftercast|idle|resting">
  267. <feet lock="true">Goetia Sabots +2</feet>
  268. </equip>
  269. </if>
  270. <!-- if were handling spells -->
  271. <if Skill="*Magic">
  272. <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  273. <if Skill="ElementalMagic">
  274. <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke|*helix">
  275. <!-- equip elemental/INT gear for DoT's -->
  276. <equip when="precast|midcast" Set="Int" />
  277. </if>
  278. <else>
  279. <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  280. <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  281. <equip when="precast|midcast" Set="Int" />
  282. </if>
  283. <else>
  284. <!-- only equip pendant in situations you would equip full damage gear -->
  285. <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  286. <equip when="midcast">
  287. <neck lock="yes">Uggalepih Pendant</neck>
  288. </equip>
  289. </if>
  290. </else>
  291. <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  292. <if advanced='$Ring == 1'>
  293. <!-- make sure we have an HP variable set for current subjob -->
  294. <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
  295. <if Advanced='%HP &gt; $%SubJobRingHP'>
  296. <!-- if you have too much HP at the time of casting, equip minus hp -->
  297. <equip set="MinusHP" />
  298. </if>
  299. </if>
  300. <else>
  301. <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  302. <equip set="MinusHP" />
  303. </else>
  304. <equip when="midcast">
  305. <lring>Sorcerer's Ring</lring>
  306. </equip>
  307. </if>
  308. </else>
  309. </if>
  310. <else>
  311. <!-- for any other type of spell, just equip matching set name. -->
  312. <equip when="precast|midcast" Set="Standard|%Skill" />
  313. </else>
  314. </if>
  315. <else>
  316. <equip when="precast|midcast" Set="Standard" />
  317. </else>
  318. <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
  319. <if Spell="Drain" Advanced="$Ring==1">
  320. <equip set="MinusHP" />
  321. </if>
  322. <!-- Handle Elemental Obi's -->
  323. <if Element="%DayElement|%WeatherElement" advanced='"$Obi-%spellelement"!="0"' notspell="*helix">
  324. <equip when="midcast">
  325. <waist>$Obi-%Spellelement</waist>
  326. <back>Twilight Cape</back>
  327. </equip>
  328. </if>
  329. <!-- Handle AFv2 Pants, but do not equip pants if we already have Weather x2 and day bonuses from obi alone as obi alone hits the 35% damage cap. -->
  330. <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  331. <equip when="midcast">
  332. <legs lock="yes">Sorcerer's Tonban</legs>
  333. </equip>
  334. </if>
  335. <!-- Handle Zenith Ring -->
  336.  
  337. <!-- Timers for when sleep is wearing off. -->
  338. <if advanced='"$SleepTimers"="1"'>
  339. <if Spell="Sleep II|Sleepga II">
  340. <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</command>
  341. <command when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  342. <command when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  343. </if>
  344. <elseif Spell="Sleep|Sleepga">
  345. <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  346. <command when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  347. </elseif>
  348. </if>
  349. <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  350. <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  351. <command when="midcast">cancel 71</command>
  352. <midcastdelay delay="1.8" />
  353. </if>
  354. <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  355. <midcastdelay delay="3.0" />
  356. <command when="midcast">cancel 66</command>
  357. </if>
  358. <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  359. <command when="midcast">cancel 37</command>
  360. <midcastdelay delay="4.8" />
  361. </elseif>
  362. <elseif Spell="Blink" BuffActive="Blink">
  363. <command when="midcast">cancel 36</command>
  364. <midcastdelay delay="4.5" />
  365. </elseif>
  366. <!-- finally, equip our staff! -->
  367. <equip when="precast|midcast">
  368. <main>$Staff-%SpellElement</main>
  369. </equip>
  370. </else>
  371. <if Spell = "Vidohunir|Cataclysm">
  372. <equip when = "precast" set = "weaponskill" />
  373. </if>
  374. </rules>
  375. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment