Guest User

Apoc drk xml

a guest
Dec 7th, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.75 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2.  
  3. <!-- This template requires the use of of AutoExec in order to trigger a gear swap to standard TP gear when Aftermath wears off while engaged, as I use two different gear sets depending upon if the buff is active or not. -->
  4.  
  5. <spellcast>
  6. <config RequireVersion="2.18" />
  7. <variables>
  8. <!-- Sleep timers, announces to echo when sleep is wearing off. Set to 0 to not use. -->
  9. <var name="SleepTimers">1</var>
  10. <var name="DarkObi">1</var>
  11. </variables>
  12. <sets>
  13. <group name="Main" default="yes">
  14. <set name="Standard">
  15. <main>Apocalypse</main>
  16. <sub>Pole Grip</sub>
  17. <ammo>Bomb core</ammo>
  18. <head>Twilight helm</head>
  19. <neck>Wiglen gorget</neck>
  20. <lear>Brutal earring</lear>
  21. <rear>Loquac. earring</rear>
  22. <body>Twilight mail</body>
  23. <hands>Magma gauntlets</hands>
  24. <lring>Jelly ring</lring>
  25. <rring>Dark ring</rring>
  26. <back>Shadow Mantle</back>
  27. <waist>Nierenschutz</waist>
  28. <legs>Blood Cuisses</legs>
  29. <feet>Jingang greaves</feet>
  30. </set>
  31. <set name="Melee">
  32. <main>Apocalypse</main>
  33. <sub>Pole Grip</sub>
  34. <ammo>Bomb core</ammo>
  35. <head>Bale Burgeonet +2</head>
  36. <neck>Bale choker</neck>
  37. <lear>Brutal earring</lear>
  38. <rear>Bale earring</rear>
  39. <body>Bale cuirass +2</body>
  40. <hands>Bale gauntlets +2</hands>
  41. <lring>Rajas Ring</lring>
  42. <rring>Mars's ring</rring>
  43. <back>Atheling mantle</back>
  44. <waist>Goading belt</waist>
  45. <legs>Ace's hose</legs>
  46. <feet>Ace's leggings</feet>
  47. </set>
  48. <set name="MeleeAftermath" BaseSet="Melee">
  49. <ammo>Bomb core</ammo>
  50. <head>Bale Burgeonet +2</head>
  51. <neck>Bale choker</neck>
  52. <lear>Brutal earring</lear>
  53. <rear>Bale earring</rear>
  54. <body>Bale cuirass +2</body>
  55. <hands>Bale gauntlets +2</hands>
  56. <lring>Rajas Ring</lring>
  57. <rring>Mars's ring</rring>
  58. <back>Atheling mantle</back>
  59. <waist>Goading belt</waist>
  60. <legs>Bale Flanchard +2</legs>
  61. <feet>Jingang greaves</feet>
  62. </set>
  63. <set name="Souleater" BaseSet="Melee">
  64. <ammo>Bomb core</ammo>
  65. <head>Bale Burgeonet +2</head>
  66. <neck>Bale choker</neck>
  67. <lear>Brutal earring</lear>
  68. <rear>Bale earring</rear>
  69. <body>Bale cuirass +2</body>
  70. <hands>Bale gauntlets +2</hands>
  71. <lring>Rajas Ring</lring>
  72. <rring>Mars's ring</rring>
  73. <back>Atheling mantle</back>
  74. <waist>Goading belt</waist>
  75. <legs>Ace's hose</legs>
  76. <feet>Ace's leggings</feet>
  77. </set>
  78. <set name="SouleaterAftermath" BaseSet="Melee">
  79. <ammo>Bomb core</ammo>
  80. <head>Bale Burgeonet +2</head>
  81. <neck>Bale choker</neck>
  82. <lear>Brutal earring</lear>
  83. <rear>Bale earring</rear>
  84. <body>Bale cuirass +2</body>
  85. <hands>Bale gauntlets +2</hands>
  86. <lring>Rajas Ring</lring>
  87. <rring>Mars's ring</rring>
  88. <back>Atheling mantle</back>
  89. <waist>Swift belt</waist>
  90. <legs>Bale Flanchard +2</legs>
  91. <feet>Jingang greaves</feet>
  92. </set>
  93. <set name="WSAres" BaseSet="Melee">
  94. <ammo>Bomb core</ammo>
  95. <head>Twilight helm</head>
  96. <neck>Shadow Gorget</neck>
  97. <lear>Brutal earring</lear>
  98. <rear>Bale earring</rear>
  99. <body>Twilight mail</body>
  100. <hands>Perle Moufles</hands>
  101. <lring>Spiral ring</lring>
  102. <rring>Mars's ring</rring>
  103. <back>Atheling mantle</back>
  104. <waist>Shadow belt</waist>
  105. <legs>Bale Flanchard +2</legs>
  106. <feet>Bale sollerets +2</feet>
  107. </set>
  108. <set name="WSHecatomb" BaseSet="Melee">
  109. <ammo>Bomb core</ammo>
  110. <head>Twilight helm</head>
  111. <neck>Snow gorget</neck>
  112. <lear>Brutal earring</lear>
  113. <rear>Bale earring</rear>
  114. <body>Grim cuirass +1</body>
  115. <hands>Heafoc mitts</hands>
  116. <lring>Rajas Ring</lring>
  117. <rring>Mars's ring</rring>
  118. <back>Atheling mantle</back>
  119. <waist>Snow belt</waist>
  120. <legs>Bale Flanchard +2</legs>
  121. <feet>Bale sollerets +2</feet>
  122. </set>
  123. <set name="EnfeeblingMagic">
  124. <head>Bale Burgeonet +2</head>
  125. <neck>Enfeebling Torque</neck>
  126. <lear>Enfeebling earring</lear>
  127. <rear>Loquacious Earring</rear>
  128. <body>Bale cuirass +2</body>
  129. <hands>Bale gauntlets +2</hands>
  130. <lring>Omega Ring</lring>
  131. <rring>Blitz Ring</rring>
  132. <back>Atheling mantle</back>
  133. <waist>Goading belt</waist>
  134. <legs>Homam Cosciales</legs>
  135. <feet>Abyss sollerets</feet>
  136. </set>
  137. <set name="DarkMagic">
  138. <head>Chaos Burgeonet +1</head>
  139. <neck>Prudence Torque</neck>
  140. <lear>Hirudinea earring</lear>
  141. <rear>Loquacious Earring</rear>
  142. <body>Bale cuirass +2</body>
  143. <hands>Bale gauntlets +2</hands>
  144. <lring>Omega Ring</lring>
  145. <rring>Blitz Ring</rring>
  146. <back>Merciful Cape</back>
  147. <waist>Goading belt</waist>
  148. <legs>Bale Flanchard +2</legs>
  149. <feet>Bale sollerets +2</feet>
  150. </set>
  151. <set name="Stun" BaseSet="DarkMagic">
  152. <head lock>Bale burgeonet +2</head>
  153. <rear lock>Loquacious Earring</rear>
  154. <hands lock>Bale gauntlets +2</hands>
  155. <lring lock>Omega Ring</lring>
  156. <rring lock>Blitz Ring</rring>
  157. <back lock>Merciful Cape</back>
  158. <waist lock>Goading belt</waist>
  159. <legs lock>Homam Cosciales</legs>
  160. <feet lock>Ace's leggings</feet>
  161. </set>
  162. <set name="DreadSpikes">
  163. <ammo>Egoist's tathlum</ammo>
  164. <head lock>Walahra Turban</head>
  165. <neck lock>Ritter Gorget</neck>
  166. <lear lock>Bloodgem earring</lear>
  167. <rear lock>Loquacious earring</rear>
  168. <body lock>Bale cuirass +2</body>
  169. <hands lock>Bale gauntlets +2</hands>
  170. <lring lock>Bomb Queen Ring</lring>
  171. <rring lock>Meridian ring</rring>
  172. <back lock>Shadow Mantle</back>
  173. <waist lock>Goading belt</waist>
  174. <legs lock>Homam Cosciales</legs>
  175. <feet lock>Homam gambieras</feet>
  176. </set>
  177. </group>
  178. </sets>
  179. <rules>
  180. <!-- utility: if you have no target currently, and casting a spell that can be cast on self, then cast on self (buffs). -->
  181. <if ValidTargets="*Self*" TargetType="None" SpellTarget="&lt;t&gt;">
  182. <action type="ChangeTarget" target="&lt;me&gt;" />
  183. </if>
  184. <!-- utility: if targetting a monster, but casting a spell that can not be cast on monsters, then cast on self (buffs). -->
  185. <if SpellTarget="&lt;t&gt;" TargetType="MONSTER" NotValidTarget="*Enemy*" ValidTarget="*Self*">
  186. <action type="changetarget" target="&lt;me&gt;" />
  187. </if>
  188. <!-- dont parse this file if under level 73... ie capped areas -->
  189. <if MLVLLT="73"> <action type="return" /> </if>
  190. <!-- set of gear to equip when finished casting a spell or coming back from resting mp (idle set) -->
  191. <action type="equip" when="Idle" set="Standard" />
  192.  
  193. <if status="engaged">
  194. <if BuffActive="Aftermath">
  195. <if BuffActive="Souleater">
  196. <action type="equip" when="engaged" set="SouleaterAftermath" />
  197. </if>
  198. <else>
  199. <action type="equip" when="engaged" set="MeleeAftermath" />
  200. </else>
  201. </if>
  202. <else>
  203. <if BuffActive="Souleater">
  204. <action type="equip" when="engaged" set="Souleater" />
  205. </if>
  206. <else>
  207. <action type="equip" when="engaged" set="Melee" />
  208. </else>
  209. </else>
  210. </if>
  211.  
  212. <rule Spell="Stun">
  213. <action type="equip" set="Stun" when="precast" />
  214. <!-- Drop Hasso during Stun to reduce recast time and reapplies Hasso. Requires Cancel plugin. -->
  215. <!-- Hasso is in a text file as opposed to just a command because it requires an additional 1.5s delay to use the ability, but I want the gear swapped back earlier. -->
  216. <!-- <if BuffActive="Hasso">
  217. <action type="command" when="precast">cancel 353</action>
  218. <action type="Command" when="aftercast">exec hasso.txt</action>
  219. </if> -->
  220. <if status="engaged">
  221. <if BuffActive="Aftermath">
  222. <if BuffActive="Souleater">
  223. <action type="equip" when="done" set="SouleaterAftermath" />
  224. </if>
  225. <else>
  226. <action type="equip" when="done" set="MeleeAftermath" />
  227. </else>
  228. </if>
  229. <else>
  230. <if BuffActive="Souleater">
  231. <action type="equip" when="done" set="Souleater" />
  232. </if>
  233. <else>
  234. <action type="equip" when="done" set="Melee" />
  235. </else>
  236. </else>
  237. </if>
  238. <if status="idle">
  239. <action type="equip" when="done" set="Standard" />
  240. </if>
  241. </rule>
  242.  
  243. <rule Spell="Dread Spikes">
  244. <action type="equip" set="DreadSpikes" when="precast" />
  245. <if mode="AND" TimeGT="5.59" TimeLT="18.00">
  246. <action type="equip" when="midcast"><ammo>Fenrir's Stone</ammo></action>
  247. </if>
  248. <!-- <action type="equip" when="aftercast"> -->
  249. <if status="engaged">
  250. <if BuffActive="Aftermath">
  251. <if BuffActive="Souleater">
  252. <action type="equip" when="done" set="SouleaterAftermath" />
  253. </if>
  254. <else>
  255. <action type="equip" when="done" set="MeleeAftermath" />
  256. </else>
  257. </if>
  258. <else>
  259. <if BuffActive="Souleater">
  260. <action type="equip" when="done" set="Souleater" />
  261. </if>
  262. <else>
  263. <action type="equip" when="done" set="Melee" />
  264. </else>
  265. </else>
  266. </if>
  267. <if status="idle">
  268. <action type="equip" when="done" set="Standard" />
  269. </if>
  270. </rule>
  271.  
  272. <rule Skill="DarkMagic">
  273. <if mode="AND" spellNOT="Stun" spellNOT="Dread Spikes">
  274. <action type="equip" set="DarkMagic" when="precast" />
  275. <if Spell="Absorb-ACC|Absorb-STR|Absorb-DEX|Absorb-VIT|Absorb-AGI|Absorb-INT|Absorb-MND|Absorb-CHR">
  276. <action when="midcast" type="command">input /equip Hands "Vicious Mufflers"</action>
  277. </if>
  278. <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  279. <if Element="Dark">
  280. <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
  281. </if>
  282. </if>
  283. <if status="engaged">
  284. <if BuffActive="Aftermath">
  285. <if BuffActive="Souleater">
  286. <action type="equip" when="done" set="SouleaterAftermath" />
  287. </if>
  288. <else>
  289. <action type="equip" when="done" set="MeleeAftermath" />
  290. </else>
  291. </if>
  292. <else>
  293. <if BuffActive="Souleater">
  294. <action type="equip" when="done" set="Souleater" />
  295. </if>
  296. <else>
  297. <action type="equip" when="done" set="Melee" />
  298. </else>
  299. </else>
  300. </if>
  301. <if status="idle">
  302. <action type="equip" when="done" set="Standard" />
  303. </if>
  304. </if>
  305. </rule>
  306.  
  307. <rule Skill="EnfeeblingMagic">
  308. <action type="equip" when="precast" Set="EnfeeblingMagic" />
  309. <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  310. <if Element="Dark">
  311. <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
  312. </if>
  313. </if>
  314. <if status="engaged">
  315. <if BuffActive="Aftermath">
  316. <if BuffActive="Souleater">
  317. <action type="equip" when="done" set="SouleaterAftermath" />
  318. </if>
  319. <else>
  320. <action type="equip" when="done" set="MeleeAftermath" />
  321. </else>
  322. </if>
  323. <else>
  324. <if BuffActive="Souleater">
  325. <action type="equip" when="done" set="Souleater" />
  326. </if>
  327. <else>
  328. <action type="equip" when="done" set="Melee" />
  329. </else>
  330. </else>
  331. </if>
  332. <if status="idle">
  333. <action type="equip" when="done" set="Standard" />
  334. </if>
  335. </rule>
  336.  
  337. <if Spell="Souleater">
  338. <action type="equip" Set="Souleater" />
  339. </if>
  340.  
  341. <rule CommandPrefix="/weaponskill">
  342. <if Spell="Catastrophe">
  343. <action type="Equip" when="Precast" set="WSAres" />
  344. <action when="done" type="command">input /ma "Fire V" Narse</action>
  345. </if>
  346. <else>
  347. <action type="Equip" when="Precast" set="WSHecatomb" />
  348. <if BuffActive="Aftermath">
  349. <action type="Equip" when="done" set="MeleeAftermath" />
  350. </if>
  351. <else>
  352. <action type="Equip" when="done" set="Melee" />
  353. </else>
  354. </else>
  355. </rule>
  356.  
  357. <!-- Dummy Spell for AutoExec to fire off in order to switch to melee gear from aftermath melee gear when Aftermath wears off while in combat. -->
  358.  
  359. <if spell="Water V">
  360. <if status="engaged">
  361. <if BuffActive="Souleater">
  362. <action type="equip" when="precast" set="Souleater" />
  363. </if>
  364. <else>
  365. <action type="equip" when="precast" set="Melee" />
  366. </else>
  367. </if>
  368. <action type="cancelspell"/>
  369. <action type="return"/>
  370. </if>
  371.  
  372. <!-- Dummy Spell for after Catastrophe, since it will check for the presence of aftermath before weaponskill executes otherwise. -->
  373.  
  374. <if spell="Fire V">
  375. <if status="engaged">
  376. <if BuffActive="Aftermath">
  377. <if BuffActive="Souleater">
  378. <action type="equip" when="precast" set="SouleaterAftermath" />
  379. </if>
  380. <else>
  381. <action type="equip" when="precast" set="MeleeAftermath" />
  382. </else>
  383. </if>
  384. <else>
  385. <if BuffActive="Souleater">
  386. <action type="equip" when="precast" set="Souleater" />
  387. </if>
  388. <else>
  389. <action type="equip" when="precast" set="Melee" />
  390. </else>
  391. </else>
  392. <action type="cancelspell"/>
  393. <action type="return"/>
  394. </if>
  395.  
  396. <!-- Handle Elemental Obi's -->
  397. <!--
  398. <if Advanced='("%SpellElement" = "%WeatherElement" OR "%SpellElement" = "%DayElement") AND "$%SpellElementObi" = "1"'>
  399. <if Element="Dark">
  400. <action type="equip" when="midcast"><waist lock="yes">Anrin Obi</waist></action>
  401. </if>
  402. </if>
  403. -->
  404. <!-- Timers for when sleep is wearing off. -->
  405.  
  406. <if advanced='"$SleepTimers"="1"'>
  407. <if Spell="Sleep II">
  408. <action type="command" when="aftercast">spellcast var inc sleepid;wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; off in 45sec</action>
  409. <action type="command" when="aftercast">wait 75;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15sec</action>
  410. <action type="command" when="aftercast">wait 85;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5sec;spellcast var dec sleepid;</action>
  411. </if>
  412. <elseif Spell="Sleep">
  413. <action type="command" when="aftercast">spellcast var inc sleepid;wait 30;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 30sec</action>
  414. <action type="command" when="aftercast">wait 45;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 15sec;spellcast var dec sleepid;</action>
  415. <action type="command" when="aftercast">wait 55;input /echo [$sleepid:%spell] &lt;%target&gt; Wearing off in 5sec;spellcast var dec sleepid;</action>
  416. </elseif>
  417. </if>
  418.  
  419.  
  420. </rules>
  421. </spellcast>
  422.  
Advertisement
Add Comment
Please, Sign In to add comment