Guest User

Untitled

a guest
Oct 14th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.88 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="False"
  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>Magnetic Earring</rear>
  90. <body>Goetia Coat +2</body>
  91. <hands>Serpentes Cuffs</hands>
  92. <lring>Diamond 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>Antivenom 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>Snow Sachet</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>Blizzard Ring</lring>
  127. <rring>Strendu Ring</rring>
  128. <back>Goetia Mantle</back>
  129. <waist>Austerity Belt</waist>
  130. <legs>Goetia Chausses +2</legs>
  131. <feet>Goetia Sabots +2</feet>
  132. </set>
  133. <set name="DarkMagic">
  134. <legs>Wizard's Tonban</legs>
  135. <lear>Gifted Earring</lear>
  136. <rear>Magnetic Earring</rear>
  137. <head>Walahra Turban</head>
  138. <hands>Goetia Gloves +2</hands>
  139. <waist>Swift Belt</waist>
  140. <body>Goetia Coat +2</body>
  141. <feet>Goetia Sabots +2</feet>
  142. <back>Goetia Mantle</back>
  143. <ammo>Clarus Stone</ammo>
  144. </set>
  145. <set name="EnfeeblingMagic">
  146. <body>Wizard's Coat</body>
  147. <sub>Bugard Strap +1</sub>
  148. <head>Igqira Tiara</head>
  149. <hands>Goetia Gloves +2</hands>
  150. <legs>Igqira Lappa</legs>
  151. <feet>Goetia Sabots +2</feet>
  152. <waist>Moblin Cest</waist>
  153. <rring>Strendu Ring</rring>
  154. <lear>Gifted Earring</lear>
  155. <ammo>Clarus Stone</ammo>
  156. </set>
  157. <set name="HealingMagic">
  158. <main>Chatoyant Staff</main>
  159. <sub>Bugard Strap +1</sub>
  160. <hands>Serpentes Cuffs</hands>
  161. <feet>Serpentes Sabots</feet>
  162. <lear>Gifted Earring</lear>
  163. <rear>Magnetic Earring</rear>
  164. <waist>Austerity Belt</waist>
  165. <ammo>Clarus Stone</ammo>
  166. </set>
  167. <set name="DivineMagic" />
  168. <set name="EnhancingMagic">
  169. <sub>Fulcio Grip</sub>
  170. <body>Errant Hpl.</body>
  171. <head>Zenith Crown</head>
  172. <legs>Errant Slops</legs>
  173. <feet>Rostrum Pumps</feet>
  174. <waist>Moblin Cest</waist>
  175. <ammo>Clarus Stone</ammo>
  176. </set>
  177. <!--Vidohunir Set, MAB and int-->
  178. <set name = "weaponskill">
  179. <ammo>Snow Sachet</ammo>
  180. <neck>Uggalepih Pendant</neck>
  181. <lear>Moldavite Earring</lear>
  182. <rear>Hecate's Earring</rear>
  183. <head>Goetia Petasos +2</head>
  184. <body>Goetia Coat +2</body>
  185. <hands>Goetia Gloves +2</hands>
  186. <lring>Blizzard Ring</lring>
  187. <rring>Strendu Ring</rring>
  188. <back>Goetia Mantle</back>
  189. <legs>Goetia Chausses +2</legs>
  190. <feet>Goetia Sabots +2</feet>
  191. </set>
  192. <set name = "tp">
  193. <head>Hakke Hachimaki</head>
  194. <waist>Swift Belt</waist>
  195. <lear>Brutal Earring</lear>
  196. </set>
  197. </group>
  198. </sets>
  199. <rules>
  200. <!--Idle condition for owleyes-->
  201. <if MPPLT="85">
  202. <var cmd="set IdleMain Owleyes" />
  203. <var cmd="set IdleSub Genbu's Shield" />
  204. </if>
  205. <else>
  206. <var cmd="set IdleMain Chthonic Staff" />
  207. <var cmd="set IdleSub Bugard Strap +1" />
  208. </else>
  209. <equip when="engaged" set="tp" />
  210. <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  211. <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  212. <changetarget target="&lt;me&gt;" />
  213. </if>
  214. <if SpellTargetType="NONE" ValidTarget="*Self*">
  215. <changetarget target="&lt;me&gt;" />
  216. </if>
  217. <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
  218. <return />
  219. </if>
  220. <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  221. <equip when="Idle|aftercast" set="Standard" />
  222. <!-- set of gear to equip when resting -->
  223. <equip when="Resting" set="Resting" />
  224. <if Spell="Stun">
  225. <!-- equip gear that helps stun, and nothing else -->
  226. <equip set="DarkMagic|FastCast">
  227. <main>Chatoyant Staff</main>
  228. <waist>Swift Belt</waist>
  229. <head>Walahra Turban</head>
  230. <feet>Goetia Sabots +2</feet>
  231. </equip>
  232. <!-- these codes just print Stun in auto translate into chat. -->
  233. <command>input /p Stun &gt;&gt; &lt;%SpellTarget&gt;</command>
  234. </if>
  235. <else>
  236. <!-- equip fast cast gear -->
  237. <equip Set="FastCast" />
  238. <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  239. <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*">
  240. <if Advanced='"$%SpellElementGrip" == "1"'>
  241. <equip when="midcast">
  242. <sub lock="true">%SpellElement Grip</sub>
  243. </equip>
  244. </if>
  245. </if>
  246. <!-- Keeping Goetia Sabots locked while under Mana Wall -->
  247. <if mode="OR" spell="Mana Wall" buffactive="Mana Wall">
  248. <equip when="precast|midcast|aftercast|idle|resting">
  249. <feet lock="true">Goetia Sabots +2</feet>
  250. </equip>
  251. </if>
  252. <!-- if were handling spells -->
  253. <if Skill="*Magic">
  254. <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  255. <if Skill="ElementalMagic">
  256. <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  257. <!-- equip elemental/INT gear for DoT's -->
  258. <equip when="precast|midcast" Set="HighResist" />
  259. </if>
  260. <else>
  261. <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  262. <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  263. <equip when="precast|midcast" Set="HighResist" />
  264. </if>
  265. <else>
  266. <!-- if mob is not high resist, is it a mid resist mob? -->
  267. <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu" NotBuffActive="Elemental Seal">
  268. <equip when="precast|midcast" Set="MidResist" />
  269. </if>
  270. <else>
  271. <!-- Normal mob, go full damage gear. -->
  272. <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
  273. <if NotBuffActive="Elemental Seal">
  274. <equip when="precast|midcast" Set="LightResist" />
  275. </if>
  276. <else>
  277. <equip when="precast|midcast" Set="FullDamage" />
  278. </else>
  279. </if>
  280. <else>
  281. <equip when="precast|midcast" Set="FullDamage" />
  282. </else>
  283. <!-- only equip pendant in situations you would equip full damage gear -->
  284. <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  285. <equip when="midcast">
  286. <neck lock="yes">Uggalepih Pendant</neck>
  287. </equip>
  288. </if>
  289. </else>
  290. <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  291. <if advanced='$Ring == 1'>
  292. <!-- make sure we have an HP variable set for current subjob -->
  293. <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
  294. <if Advanced='%HP &gt; $%SubJobRingHP'>
  295. <!-- if you have too much HP at the time of casting, equip minus hp -->
  296. <equip set="MinusHP" />
  297. </if>
  298. </if>
  299. <else>
  300. <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  301. <equip set="MinusHP" />
  302. </else>
  303. <equip when="midcast">
  304. <lring>Sorcerer's Ring</lring>
  305. </equip>
  306. </if>
  307. </else>
  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