Guest User

blm

a guest
Nov 5th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.66 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="IceStaff">Teiwaz</var>
  50. <var name="DarkStaff">Pluto's Staff</var>
  51. <var name="ThunderStaff">Jupiter's Staff</var>
  52. <var name="WindStaff">Wind Staff</var>
  53. <var name="FireStaff">Vulcan's Staff</var>
  54. <var name="EarthStaff">Terra's Staff</var>
  55. <var name="LightStaff">Apollo's Staff</var>
  56. <var name="WaterStaff">Water Staff</var>
  57. <!-- Elemental Obi's, set to 1 for the ones you have. -->
  58. <var name="DarkObi">0</var>
  59. <var name="LightObi">0</var>
  60. <var name="ThunderObi">1</var>
  61. <var name="IceObi">1</var>
  62. <var name="FireObi">0</var>
  63. <var name="WindObi">1</var>
  64. <var name="WaterObi">0</var>
  65. <var name="EarthObi">0</var>
  66. <!--DD and Owleyes -->
  67. <var name="StandardMain">Owleyes</var>
  68. <var name="StandardSub">Genbu's Shield</var>
  69. <var name="DDStaff">Chthonic Staff</var>
  70. </variables>
  71. <sets>
  72. <group name="Main" default="yes">
  73. <set name="Standard">
  74. <main>$IdleMain</main>
  75. <sub>$idleSub</sub>
  76. <ammo>Snow Sachet</ammo>
  77. <head>Goetia Petasos +2</head>
  78. <neck>Orochi Nodowa</neck>
  79. <lear>Antivenom Earring</lear>
  80. <rear>Magnetic Earring</rear>
  81. <body>Goetia Coat +2</body>
  82. <hands>Serpentes Cuffs</hands>
  83. <lring>Diamond Ring</lring>
  84. <rring>Dark Ring</rring>
  85. <back>Twilight Cape</back>
  86. <waist>Austerity Belt</waist>
  87. <legs>Tatsumaki Sitagoromo</legs>
  88. <feet>Serpentes Sabots</feet>
  89. </set>
  90. <set name="FastCast">
  91. <feet>Rostrum Pumps</feet>
  92. <waist>Moblin Cest</waist>
  93. </set>
  94. <set name="Resting" BaseSet="Standard">
  95. <body>Errant Hpl.</body>
  96. <main>$DarkStaff</main>
  97. <head>Wizard's Petasos +1</head>
  98. <waist>Austerity Belt</waist>
  99. <hands>Serpentes Cuffs</hands>
  100. <neck>Eidolon Pendant</neck>
  101. <rear>Magnetic Earring</rear>
  102. <lear>Antivenom Earring</lear>
  103. <legs>Sorcerer's tonban</legs>
  104. <feet>Oracle's Pigaches</feet>
  105. <back>Merciful Cape</back>
  106. </set>
  107. <set name="MinusHP" />
  108. <set name="FullDamage" BaseSet="Standard">
  109. <sub>Bugard Strap +1</sub>
  110. <ammo>Clarus Stone</ammo>
  111. <neck>Elemental Torque</neck>
  112. <lear>Moldavite Earring</lear>
  113. <rear>Hecate's Earring</rear>
  114. <head>Goetia Petasos +2</head>
  115. <body>Goetia Coat +2</body>
  116. <hands>Goetia Gloves +2</hands>
  117. <lring>Blizzard Ring</lring>
  118. <rring>Blizzard Ring</rring>
  119. <back>Goetia Mantle</back>
  120. <waist>Austerity Belt</waist>
  121. <legs>Goetia Chausses +2</legs>
  122. <feet>Goetia Sabots +2</feet>
  123. </set>
  124. <set name="HighResist" BaseSet="FullDamage">
  125. <hands>Wizard's Gloves +1</hands>
  126. <feet>Goetia Sabots +2</feet>
  127. <back>Goetia Mantle</back>
  128. <neck>Elemental Torque</neck>
  129. </set>
  130. <set name="MidResist" BaseSet="FullDamage">
  131. <back>Merciful Cape</back>
  132. <hands>Wizard's Gloves +1</hands>
  133. </set>
  134. <set name="LightResist" BaseSet="FullDamage" />
  135. <set name="DarkMagic">
  136. <legs>Wizard's Tonban</legs>
  137. <lear>Gifted Earring</lear>
  138. <rear>Magnetic Earring</rear>
  139. <head>Walahra Turban</head>
  140. <hands>Goetia Gloves +2</hands>
  141. <waist>Swift Belt</waist>
  142. <body>Goetia Coat +2</body>
  143. <feet>Goetia Sabots +2</feet>
  144. <back>Goetia Mantle</back>
  145. <ammo>Clarus Stone</ammo>
  146. </set>
  147. <set name="EnfeeblingMagic">
  148. <body>Wizard's Coat</body>
  149. <sub>Bugard Strap +1</sub>
  150. <head>Igqira Tiara</head>
  151. <hands>Goetia Gloves +2</hands>
  152. <legs>Igqira Lappa</legs>
  153. <feet>Goetia Sabots +2</feet>
  154. <waist>Moblin Cest</waist>
  155. <lear>Gifted Earring</lear>
  156. <ammo>Clarus Stone</ammo>
  157. </set>
  158. <set name="HealingMagic">
  159. <hands>Serpentes Cuffs</hands>
  160. <feet>Serpentes Sabots</feet>
  161. <lear>Gifted Earring</lear>
  162. <waist>Austerity Belt</waist>
  163. <ammo>Clarus Stone</ammo>
  164. </set>
  165. <set name="DivineMagic" />
  166. <set name="EnhancingMagic">
  167. <main lock="yes">$WaterStaff</main>
  168. <sub>Bugard Strap +1</sub>
  169. <body>Errant Hpl.</body>
  170. <head>Zenith Crown</head>
  171. <legs>Errant Slops</legs>
  172. <feet>Rostrum Pumps</feet>
  173. <waist>Moblin Cest</waist>
  174. <ammo>Clarus Stone</ammo>
  175. </set>
  176. <!--Vidohunir Set, MAB and int-->
  177. <set name = "weaponskill">
  178. <ammo>Snow Sachet</ammo>
  179. <neck>Uggalepih Pendant</neck>
  180. <lear>Moldavite Earring</lear>
  181. <rear>Hecate's Earring</rear>
  182. <head>Goetia Petasos +2</head>
  183. <body>Goetia Coat +2</body>
  184. <hands>Goetia Gloves +2</hands>
  185. <lring>Blizzard Ring</lring>
  186. <rring>Blizzard Ring</rring>
  187. <back>Goetia Mantle</back>
  188. <legs>Goetia Chausses +2</legs>
  189. <feet>Goetia Sabots +2</feet>
  190. </set>
  191. <set name = "tp">
  192. <head>Hakke Hachimaki</head>
  193. <waist>Swift Belt</waist>
  194. <lear>Brutal Earring</lear>
  195. </set>
  196. </group>
  197. </sets>
  198. <rules>
  199. <!--Idle condition for owleyes-->
  200. <if MPPLT="85">
  201. <var cmd="set StandardMain Owleyes" />
  202. <var cmd="set StandardSub Genbu's Shield" />
  203. </if>
  204. <else>
  205. <var cmd="set StandardMain Chthonic Staff" />
  206. <var cmd="set StandardSub Buggard Leather Strap" />
  207. </else>
  208. <equip when="engaged" set="tp" />
  209. <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  210. <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  211. <changetarget target="&lt;me&gt;" />
  212. </if>
  213. <if SpellTargetType="NONE" ValidTarget="*Self*">
  214. <changetarget target="&lt;me&gt;" />
  215. </if>
  216. <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor">
  217. <return />
  218. </if>
  219. <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  220. <equip when="Idle|aftercast" set="Standard" />
  221. <!-- set of gear to equip when resting -->
  222. <equip when="Resting" set="Resting" />
  223. <if Spell="Stun">
  224. <!-- equip gear that helps stun, and nothing else -->
  225. <equip set="DarkMagic|FastCast">
  226. <main>$ThunderStaff</main>
  227. <waist>Swift Belt</waist>
  228. <head>Walahra Turban</head>
  229. <feet>Rostrum Pumps</feet>
  230. </equip>
  231. <!-- these codes just print Stun in auto translate into chat. -->
  232. <command>input /p Stun &gt;&gt; &lt;%SpellTarget&gt;</command>
  233. </if>
  234. <else>
  235. <!-- equip fast cast gear -->
  236. <equip Set="FastCast" />
  237. <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  238. <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*">
  239. <if Advanced='"$%SpellElementGrip" == "1"'>
  240. <equip when="midcast">
  241. <sub lock="true">%SpellElement Grip</sub>
  242. </equip>
  243. </if>
  244. </if>
  245. <!-- Keeping Goetia Sabots locked while under Mana Wall -->
  246. <if mode="OR" spell="Mana Wall" buffactive="Mana Wall">
  247. <equip when="precast|midcast|aftercast|idle|resting">
  248. <feet lock="true">Goetia Sabots +2</feet>
  249. </equip>
  250. </if>
  251. <!-- if were handling spells -->
  252. <if Skill="*Magic">
  253. <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  254. <if Skill="ElementalMagic">
  255. <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  256. <!-- equip elemental/INT gear for DoT's -->
  257. <equip when="precast|midcast" Set="HighResist" />
  258. </if>
  259. <else>
  260. <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  261. <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  262. <equip when="precast|midcast" Set="HighResist" />
  263. </if>
  264. <else>
  265. <!-- if mob is not high resist, is it a mid resist mob? -->
  266. <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu" NotBuffActive="Elemental Seal">
  267. <equip when="precast|midcast" Set="MidResist" />
  268. </if>
  269. <else>
  270. <!-- Normal mob, go full damage gear. -->
  271. <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
  272. <if NotBuffActive="Elemental Seal">
  273. <equip when="precast|midcast" Set="LightResist" />
  274. </if>
  275. <else>
  276. <equip when="precast|midcast" Set="FullDamage" />
  277. </else>
  278. </if>
  279. <else>
  280. <equip when="precast|midcast" Set="FullDamage" />
  281. </else>
  282. <!-- only equip pendant in situations you would equip full damage gear -->
  283. <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  284. <equip when="midcast">
  285. <neck lock="yes">Uggalepih Pendant</neck>
  286. </equip>
  287. </if>
  288. </else>
  289. <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  290. <if advanced='$Ring == 1'>
  291. <!-- make sure we have an HP variable set for current subjob -->
  292. <if Advanced='"$%SubJobRingHP" !="$%SubJobRingHP"'>
  293. <if Advanced='%HP &gt; $%SubJobRingHP'>
  294. <!-- if you have too much HP at the time of casting, equip minus hp -->
  295. <equip set="MinusHP" />
  296. </if>
  297. </if>
  298. <else>
  299. <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  300. <equip set="MinusHP" />
  301. </else>
  302. <equip when="midcast">
  303. <lring>Sorcerer's Ring</lring>
  304. </equip>
  305. </if>
  306. </else>
  307. </else>
  308. </if>
  309. <else>
  310. <!-- for any other type of spell, just equip matching set name. -->
  311. <equip when="precast|midcast" Set="Standard|%Skill" />
  312. </else>
  313. </if>
  314. <else>
  315. <equip when="precast|midcast" Set="Standard" />
  316. </else>
  317. <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
  318. <if Spell="Drain" Advanced="$Ring==1">
  319. <equip set="MinusHP" />
  320. </if>
  321. <!-- Handle Elemental Obi's -->
  322. <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  323. <if Element="Dark">
  324. <equip when="midcast">
  325. <waist lock="yes">Anrin Obi</waist>
  326. </equip>
  327. </if>
  328. <elseif Element="Light">
  329. <equip when="midcast">
  330. <waist lock="yes">Korin Obi</waist>
  331. </equip>
  332. </elseif>
  333. <elseif Element="Thunder">
  334. <equip when="midcast">
  335. <waist lock="yes">Rairin Obi</waist>
  336. </equip>
  337. </elseif>
  338. <elseif Element="Ice">
  339. <equip when="midcast">
  340. <waist lock="yes">Hyorin Obi</waist>
  341. </equip>
  342. </elseif>
  343. <elseif Element="Fire">
  344. <equip when="midcast">
  345. <waist lock="yes">Karin Obi</waist>
  346. </equip>
  347. </elseif>
  348. <elseif Element="Wind">
  349. <equip when="midcast">
  350. <waist lock="yes">Furin Obi</waist>
  351. </equip>
  352. </elseif>
  353. <elseif Element="Water">
  354. <equip when="midcast">
  355. <waist lock="yes">Suirin Obi</waist>
  356. </equip>
  357. </elseif>
  358. <elseif Element="Earth">
  359. <equip when="midcast">
  360. <waist lock="yes">Dorin Obi</waist>
  361. </equip>
  362. </elseif>
  363. </if>
  364. <!-- 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. -->
  365. <if Advanced='(!((bool)regex("%Weather","^.* x2$") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  366. <equip when="midcast">
  367. <legs lock="yes">Sorcerer's Tonban</legs>
  368. </equip>
  369. </if>
  370. <!-- Timers for when sleep is wearing off. -->
  371. <if advanced='"$SleepTimers"="1"'>
  372. <if Spell="Sleep II|Sleepga II">
  373. <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</command>
  374. <command when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  375. <command when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  376. </if>
  377. <elseif Spell="Sleep|Sleepga">
  378. <command when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</command>
  379. <command when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</command>
  380. </elseif>
  381. </if>
  382. <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  383. <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  384. <command when="midcast">cancel 71</command>
  385. <midcastdelay delay="1.8" />
  386. </if>
  387. <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  388. <midcastdelay delay="3.0" />
  389. <command when="midcast">cancel 66</command>
  390. </if>
  391. <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  392. <command when="midcast">cancel 37</command>
  393. <midcastdelay delay="4.8" />
  394. </elseif>
  395. <elseif Spell="Blink" BuffActive="Blink">
  396. <command when="midcast">cancel 36</command>
  397. <midcastdelay delay="4.5" />
  398. </elseif>
  399. <!-- finally, equip our staff! -->
  400. <equip when="precast|midcast">
  401. <main>$%SpellElementStaff</main>
  402. </equip>
  403. </else>
  404. <if Spell = "Vidohunir|Cataclysm">
  405. <equip when = "precast" set = "weaponskill" />
  406. </if>
  407. <if advanced='("%SpellElement"=="%DayElement")||("%SpellElement"=="%WeatherElement")'>
  408. <action type="equip" when="midcast">
  409. <back>Twilight Cape</back>
  410. </action>
  411. </if>
  412. </rules>
  413. </spellcast>
  414.  
Advertisement
Add Comment
Please, Sign In to add comment