Denmark

BLM_XML

Jun 19th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.54 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <!--
  3. ===================================================
  4. ||
  5. || Aikar's BLM SpellCast Template
  6. ||
  7. || This file is designed to be easily used by others.
  8. || Simply editing in your own gear and modifying the variables up top
  9. || should be all that is needed to make use of this file.
  10. ||
  11. || Please be sure to configure the variables prior to use.
  12. ||
  13. || If you have any questions - Please post on the forums.
  14. ===================================================
  15. -->
  16. <spellcast>
  17. <config RequireVersion="2.22" />
  18. <variables>
  19. <!-- Sleep timers, announces to chat when sleep is wearing off. Set to 0 to not use. -->
  20. <!-- (note: this is sort of very obvious usage of 3rd party programs, so turn off when around people you dont trust -->
  21. <var name="SleepTimers">0</var>
  22. <!-- use BLM AF2 pants or not? Set to 0 if you do not have it -->
  23. <var name="BLMAF2Pants">1</var>
  24. <!-- use Sorc ring or not? set to 0 if you do not have it or dangerous location -->
  25. <var name="Ring">1</var>
  26. <!-- use Ugg Pendant or not? set to 0 if you do not have it. -->
  27. <var name="UggPendant">1</var>
  28. <!-- Set HP Variables for what the maximum amount of HP you can have to trigger sorc ring is for each subjob -->
  29. <var name="RDMRingHP">597</var>
  30. <var name="WHMRingHP">583</var>
  31. <var name="NINRingHP">597</var>
  32. <!-- Elemental Staffs, input what staff to use for each element here -->
  33. <var name="IceStaff">Varuna's Staff +2</var>
  34. <var name="DarkStaff">Pluto's Staff</var>
  35. <var name="ThunderStaff">Jupiter's Staff</var>
  36. <var name="WindStaff">Auster's Staff</var>
  37. <var name="FireStaff">Vulcan's staff</var>
  38. <var name="EarthStaff">Terra's staff</var>
  39. <var name="LightStaff">Light Staff</var>
  40. <var name="WaterStaff">Neptune's staff</var>
  41. <!-- Elemental Obi's, set to 1 for the ones you have. -->
  42. <var name="DarkObi">1</var>
  43. <var name="LightObi">1</var>
  44. <var name="ThunderObi">1</var>
  45. <var name="IceObi">1</var>
  46. <var name="FireObi">0</var>
  47. <var name="WindObi">0</var>
  48. <var name="WaterObi">0</var>
  49. <var name="EarthObi">0</var>
  50. </variables>
  51. <sets>
  52. <group name="Main" default="yes">
  53. <set name="Standard">
  54. <main>$EarthStaff</main>
  55. <sub>Bugard Strap +1</sub>
  56. <ammo>Phantom Tathlum</ammo>
  57. <head>Goetia Petasos +2</head>
  58. <neck>Goetia Chain</neck>
  59. <lear>Novio earring</lear>
  60. <rear>Hecate's Earring</rear>
  61. <body>Goetia Coat +2</body>
  62. <hands>Serpentes cuffs</hands>
  63. <lring>Dark ring</lring>
  64. <rring>Dark Ring</rring>
  65. <back>Goetia Mantle</back>
  66. <waist>Cognition Belt</waist>
  67. <legs>Goetia Chausses +2</legs>
  68. <feet>Herald's gaiters</feet>
  69. </set>
  70. <set name="FastCast">
  71. <waist>Swift Belt</waist>
  72. <rear>Loquac. Earring</rear>
  73. </set>
  74. <set name="Resting" BaseSet="Standard">
  75. <body>Wizard's Coat +1</body>
  76. <main>$DarkStaff</main>
  77. <sub>Bugard Strap +1</sub>
  78. <head>Goliard chapeau</head>
  79. <waist>Qiqirn Sash +1</waist>
  80. <feet>Goliard clogs</feet>
  81. <hands>Oracle's Gloves</hands>
  82. <neck>Grandiose chain</neck>
  83. <lear>Magnetic earring</lear>
  84. <rear>Moldavite Earring</rear>
  85. <legs>Sagacity Lappas</legs>
  86. <back>Gleeman's cape</back>
  87. </set>
  88. <set name="MinusHP">
  89. <lring>Bifrost Ring</lring>
  90. <head>Zenith Crown</head>
  91. <back>Geotia mantle</back>
  92. <hands>Brook Gages</hands>
  93. <legs>Zenith slacks</legs>
  94. <waist>Penitent's rope</waist>
  95. </set>
  96. <set name="FullINT" Baseset="FullDamage">
  97. <head>Goetia Petasos +2</head>
  98. </set>
  99. <set name="FullDamage" BaseSet="Standard">
  100. <legs>Goetia Chausses +2</legs>
  101. <ammo>Phantom Tathlum</ammo>
  102. <neck>Goetia Chain</neck>
  103. <lear>Novio earring</lear>
  104. <rear>Hecate's Earring</rear>
  105. <head>Goetia Petasos +2</head>
  106. <body>Goetia coat +2</body>
  107. <hands>Goetia Gloves +2</hands>
  108. <lring>Diamond ring</lring>
  109. <rring>Sorcerer's Ring</rring>
  110. <back>Goetia Mantle</back>
  111. <sub>Bugard Strap +1</sub>
  112. <feet>Goetia Sabots +2</feet>
  113. </set>
  114. <set name="HighResist" BaseSet="FullDamage">
  115. <hands>Wizard's Gloves +1</hands>
  116. <neck>Elemental Torque</neck>
  117. <back>Gleeman's cape</back>
  118. <head>Goetia Petasos +1</head>
  119. <feet>Goliard clogs</feet>
  120. </set>
  121. <set name="MidResist" BaseSet="FullDamage">
  122. <head>Goetia Petasos +2</head>
  123. <hands>Zenith mitts</hands>
  124. </set>
  125. <set name="DarkMagic">
  126. <feet>Goetia Sabots +2</feet>
  127. <legs>Portent pants</legs>
  128. <lear>Abyssal Earring</lear>
  129. <head>Walahra Turban</head>
  130. <neck>Dark Torque</neck>
  131. <hands>Sorcerer's Gloves</hands>
  132. <body>Nashira manteel</body>
  133. <waist>Swift Belt</waist>
  134. <rring>Balrahn's ring</rring>
  135. </set>
  136. <set name="EnfeeblingMagic">
  137. <feet>Goliard Clogs</feet>
  138. <body>Wizard's Coat +1</body>
  139. <head>Igqira Tiara</head>
  140. <neck>Enfeebling Torque</neck>
  141. <hands>Oracle's Gloves</hands>
  142. <legs>Portent pants</legs>
  143. <rring>Balrahn's ring</rring>
  144. </set>
  145. <set name="HealingMagic">
  146. </set>
  147. <set name="DivineMagic">
  148. </set>
  149. <set name="Mana Wall">
  150. <feet>Goetia Sabots +2</feet>
  151. </set>
  152. <set name="EnhancingMagic">
  153. <main lock="yes">Kirin's Pole</main>
  154. <sub>Bugard Strap +1</sub>
  155. <body>Augur's Jaseran</body>
  156. <neck>Promise badge</neck>
  157. <head>Teal chapeau</head>
  158. <feet>Goliard clogs</feet>
  159. <back>Aslan cape</back>
  160. <rring>Sapphire ring</rring>
  161. <hands>yigit gages</hands>
  162. <waist>Penitent's rope</waist>
  163. </set>
  164. </group>
  165. </sets>
  166. <rules>
  167.  
  168. <!--Manawall with Goetia Sabots +2-->
  169. <if mode="OR" buffactive="Mana wall" Spell="Mana Wall">
  170. <equip when="Precast|Midcast|Aftercast|Autoset"><Feet lock="true">Goetia Sabots +2</Feet></equip>
  171. </if>
  172.  
  173. <!--Tiny delay to ensure Sorc. Ring activates-->
  174. <if notspell="Stun|Sleep*|bind|gravity|drain|aspir|escape|warp*|retrace|teleport-*|reraise|raise|tractor|poison*|bio*|burn|shock|choke|rasp|frost|drown">
  175. <castdelay delay="0.2" />
  176. </if>
  177.  
  178. <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  179. <if SpellTargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  180. <action type="changetarget" target="&lt;me&gt;" />
  181. </if>
  182. <if SpellTargetType="NONE" ValidTarget="*Self*">
  183. <action type="changetarget" target="&lt;me&gt;" />
  184. </if>
  185. <if Spell="Escape|Warp|Warp II|Retrace|Teleport-*|Reraise|Tractor"> <action type="return" /> </if>
  186. <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  187. <action type="equip" when="Idle|aftercast" set="Standard" />
  188. <!-- set of gear to equip when resting -->
  189. <action type="equip" when="Resting" set="Resting" />
  190.  
  191. <if Spell="Stun">
  192. <!-- equip gear that helps stun, and nothing else -->
  193. <action type="equip" set="DarkMagic|FastCast">
  194. <main>$ThunderStaff</main>
  195. </action>
  196. <!-- these codes just print Stun in auto translate into chat. -->
  197. <action type="command">input /p \xFD\x07\x02\x12\xFC\xFD &gt;&gt; &lt;%SpellTarget&gt;</action>
  198. </if>
  199. <else>
  200. <!-- equip fast cast gear -->
  201. <action type="equip" Set="FastCast" />
  202. <!-- Elemental Grip checks. Are we casting an enfeeble, or are we casting on a resistant mob? -->
  203. <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">
  204. <if Advanced='"$%SpellElementGrip" == "1"'>
  205. <action type="equip" when="midcast">
  206. <sub lock="true">%SpellElement Grip</sub>
  207. </action>
  208. </if>
  209. </if>
  210. <!-- if were handling spells -->
  211. <if Skill="*Magic">
  212. <!-- if this is elemental magic (nukes/dot's, then do special handling -->
  213. <if Skill="ElementalMagic">
  214. <if Spell="Frost|Drown|Rasp|Burn|Shock|Choke">
  215. <!-- equip elemental/INT gear for DoT's -->
  216. <action type="equip" when="precast|midcast" Set="FullINT" />
  217. </if>
  218. <else>
  219. <!-- this is an actual nuke. Check target to be a known high resist mob (and that ES is not active) -->
  220. <if SpellTargetName="Tiamat|Genbu|Suzaku|Seiryu|Byakko|Kirin|Jormungand|Vrtra|Cerberus|Khimaira|Tyger|Jailer of Love|Sarameya" NotBuffActive="Elemental Seal">
  221. <action type="equip" when="precast|midcast" Set="HighResist" />
  222. </if>
  223. <else>
  224. <!-- if mob is not high resist, is it a mid resist mob? -->
  225. <if SpellTargetName="Fafnir|Nidhogg|Aspidochelone|King Behemoth|Tinnin|Ouryu" NotBuffActive="Elemental Seal">
  226. <action type="equip" when="precast|midcast" Set="MidResist" />
  227. </if>
  228. <else>
  229. <!-- Normal mob, go full damage gear. -->
  230. <if mode="or" Area="Dynamis *|Hazhalm*" SpellTargetName="Lambton Worm|Sandworm|Guivre|King Arthro|Serket">
  231. <if NotBuffActive="Elemental Seal">
  232. <action type="equip" when="precast|midcast" Set="LightResist" />
  233. </if>
  234. <else>
  235. <action type="equip" when="precast|midcast" Set="FullDamage" />
  236. </else>
  237. </if>
  238. <else>
  239. <action type="equip" when="precast|midcast" Set="FullDamage" />
  240. </else>
  241. <!-- only equip pendant in situations you would equip full damage gear -->
  242. <if MPPAfterCastLT="50" Advanced="$UggPendant==1">
  243. <action type="equip" when="midcast">
  244. <neck lock="yes">Uggalepih Pendant</neck>
  245. </action>
  246. </if>
  247. </else>
  248. <!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
  249. <if advanced='$Ring == 1'>
  250. <!-- make sure we have an HP variable set for current subjob -->
  251. <if Advanced='"$%SubJobRingHP" !="\$%SubJobRingHP"'>
  252. <if Advanced='%HP &gt; $%SubJobRingHP'>
  253. <!-- if you have too much HP at the time of casting, equip minus hp -->
  254. <action type="equip" set="MinusHP" />
  255. </if>
  256. </if>
  257. <else>
  258. <!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
  259. <action type="equip" set="MinusHP" />
  260. </else>
  261.  
  262. <action type="equip" when="midcast">
  263. <rring>Sorcerer's Ring</rring>
  264. </action>
  265. </if>
  266. </else>
  267. </else>
  268. </if>
  269. <else>
  270. <!-- for any other type of spell, just equip matching set name. -->
  271. <action type="equip" when="precast|midcast" Set="Standard|%Skill" />
  272. </else>
  273. </if>
  274. <else>
  275. <action type="equip" when="precast|midcast" Set="Standard" />
  276. </else>
  277. <!-- so i can see in general how much my drain did. If Ring=0 then its a dangerous spot and shouldnt drop HP. -->
  278. <if Spell="Drain" Advanced="$Ring==1">
  279. <action type="equip" set="MinusHP" />
  280. </if>
  281. <!-- Handle Elemental Obi's -->
  282. <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  283. <if Element="Dark"><action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action></if>
  284. <elseif Element="Light"><action type="equip" when="midcast"><waist lock="yes">Korin Obi</waist></action></elseif>
  285. <elseif Element="Thunder"><action type="equip" when="midcast"><waist lock="yes">Rairin Obi</waist></action></elseif>
  286. <elseif Element="Ice"><action type="equip" when="midcast"><waist lock="yes">Hyorin Obi</waist></action></elseif>
  287. <elseif Element="Fire"><action type="equip" when="midcast"><waist lock="yes">Karin Obi</waist></action></elseif>
  288. <elseif Element="Wind"><action type="equip" when="midcast"><waist lock="yes">Furin Obi</waist></action></elseif>
  289. <elseif Element="Water"><action type="equip" when="midcast"><waist lock="yes">Suirin Obi</waist></action></elseif>
  290. <elseif Element="Earth"><action type="equip" when="midcast"><waist lock="yes">Dorin Obi</waist></action></elseif>
  291. </if>
  292. <!-- 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. -->
  293. <if Advanced='(!((bool)strmatch("* x2","%Weather") AND "%WeatherElement" = "%SpellElement" AND "$%SpellElementObi" = "1") OR !("%WeatherElement" = "%spellElement")) AND ("%SpellElement" = "%DayElement" AND "$BLMAF2Pants" = "1") AND ("%skill"="ElementalMagic")'>
  294. <equip when="midcast">
  295. <legs lock="yes">sorcerer's tonban</legs>
  296. </equip>
  297. </if>
  298. <!-- Timers for when sleep is wearing off. -->
  299. <if advanced='"$SleepTimers"="1"'>
  300. <if Spell="Sleep II|Sleepga II">
  301. <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 45s</action>
  302. <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</action>
  303. <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</action>
  304. </if>
  305. <elseif Spell="Sleep|Sleepga">
  306. <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15s</action>
  307. <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5s;spellcast var dec sleepid;</action>
  308. </elseif>
  309. </if>
  310.  
  311. <!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
  312. <if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
  313. <action type="command" when="midcast">cancel 71</action>
  314. <action type="midcastdelay" delay="1.8" />
  315. </if>
  316. <if spell="Utsusemi: Ichi" BuffActive="Copy Image">
  317. <action type="midcastdelay" delay="3.0" />
  318. <action type="Command" when="midcast">cancel 66</action>
  319. </if>
  320. <elseif Spell="Stoneskin" BuffActive="Stoneskin">
  321. <action type="command" when="midcast">cancel 37</action>
  322. <action type="midcastdelay" delay="4.8" />
  323. </elseif>
  324. <elseif Spell="Blink" BuffActive="Blink">
  325. <action type="command" when="midcast">cancel 36</action>
  326. <action type="midcastdelay" delay="4.5" />
  327. </elseif>
  328. <!-- finally, equip our staff! -->
  329. <action type="equip" when="midcast">
  330. <main>$%SpellElementStaff</main>
  331. </action>
  332. </else>
  333. <!--Job Abilities-->
  334. <if type="JobAbility">
  335. <if spell="Enmity Douse"><equip when="precast"><hands>Goetia Gloves +2</hands></equip></if>
  336. </if>
  337. <!--End-->
  338. </rules>
  339. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment