Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. ///start bank hides
  2. //if not @findobject 'bankcrystal'
  3. // headmsg 'Please select your bank crystal'
  4. // promptalias 'bankcrystal' 15000
  5. //endif
  6. //if @findtype 0x1079 'any' 'lootbag'
  7. // useobject 'bankcrystal'
  8. // msg '[moveitems'
  9. // waitfortarget 15000
  10. // target! 'found'
  11. // waitfortarget 15000
  12. // target! 0x430285a3
  13. // // target! 'bank'
  14. //endif
  15. //endofbankhides
  16. //
  17. if color < 33918 or color > 33918
  18. cast 'vampiric embrace'
  19. endif
  20. //
  21. if not buffexists 'protection'
  22. cast 'protection'
  23. pause 500
  24. endif
  25. //
  26. //////////////////////////
  27. ////////Combat v6
  28. //////////////////////////
  29. ///Setup
  30. if not @findobject 'weapon'
  31. headmsg 'Please target your Weapon'
  32. promptalias 'weapon' 15000
  33. endif
  34. if not @findobject 'shield'
  35. headmsg 'Please target your Shield'
  36. promptalias 'shield' 15000
  37. endif
  38. if not @findobject 'lootbag'
  39. headmsg 'Please target your Lootbag'
  40. promptalias 'lootbag' 15000
  41. endif
  42. if not @findalias 'portableforge'
  43. headmsg 'Please target your Portable Forge'
  44. promptalias 'portableforge' 15000
  45. endif
  46. if not @findalias 'portabank'
  47. headmsg 'Please target your Bank Crystal'
  48. promptalias 'portabank' 15000
  49. endif
  50. //////////////////////////////////////
  51. //////////////////////////////////////
  52. //////////////////////////////////////
  53. if @findtype 0x1079 'any' 0x40e2ffd4 'any' 0
  54. msg '[ffp'
  55. endif
  56. ////////////////////////
  57. ////////////////////////
  58. @removelist 'tailorclips'
  59. if not @listexists 'tailorclips'
  60. createlist 'tailorclips'
  61. pushlist 'tailorclips' 0x1b0a //bones
  62. pushlist 'tailorclips' 0x1b0d //bones
  63. pushlist 'tailorclips' 0x1b0f //bones
  64. pushlist 'tailorclips' 0x1b0c //bones
  65. pushlist 'tailorclips' 0x1b17 //bones
  66. pushlist 'tailorclips' 0x1b0b //bones
  67. pushlist 'tailorclips' 0x1b0e //bones
  68. pushlist 'tailorclips' 0x1b10 //bones
  69. pushlist 'tailorclips' 0x1b09 //bones
  70. pushlist 'tailorclips' 0x1b18 //bones
  71. endif
  72. ////////////////////////
  73. ///////////////////////////////
  74. //clip hides to leather
  75. for 0 to 'tailorclips'
  76. while @findtype 'tailorclips[]'
  77. @usetype 0xf9f
  78. waitfortarget 1000
  79. @target! 'found'
  80. endwhile
  81. endfor
  82. ///////////////////////////////////////////
  83. ///////////////////////////////////////
  84. ///////////////////////////////////////
  85. //Timers
  86. if not timerexists 'consecratetimer'
  87. createtimer 'consecratetimer'
  88. settimer 'consecratetimer' 0
  89. endif
  90. if not timerexists 'discotimer'
  91. createtimer 'discotimer'
  92. settimer 'discotimer' 0
  93. endif
  94. if not timerexists 'bandagetimer'
  95. createtimer 'bandagetimer'
  96. settimer 'bandagetimer' 0
  97. endif
  98. if not timerexists 'abilitytimer'
  99. createtimer 'abilitytimer'
  100. settimer 'abilitytimer' 0
  101. endif
  102. if not timerexists 'cursetimer'
  103. createtimer 'cursetimer'
  104. settimer 'cursetimer' 0
  105. endif
  106. /////////
  107. /////////
  108. /////////
  109. ///////// Main Loop
  110. if not @serial 'lefthand' == 0x409ec477
  111. //equip weapon
  112. if not @findobject 'righthand'
  113. equipitem 'weapon' 2
  114. pause 500
  115. endif
  116. //equip shield
  117. if not @findobject 'lefthand' and @findobject 'righthand'
  118. equipitem 'shield' 2
  119. pause 500
  120. endif
  121. endif
  122. @getenemy 'murderer' 'enemy' 'criminal' 'gray' 'closest'
  123. pause 400
  124. if @findobject 'enemy'
  125. @clearjournal
  126. if @inrange 'enemy' 10
  127. if hits 'enemy' == maxhits 'enemy'
  128. virtue 'honor'
  129. waitfortarget 5000
  130. target! 'enemy' 200
  131. pause 300
  132. canceltarget
  133. @attack 'enemy'
  134. endif
  135. ////////////////////////////////////////
  136. ////////////////////////////////////////
  137. if @injournal 'you defend with Shield of Spikes!'
  138. replygump 0x4239a64f 1004
  139. clearjournal
  140. endif
  141. ////////////////////////////////////////
  142. ////////////////////////////////////////
  143. ////////////////////////////////////////
  144. ////////////////////////////////////////
  145. ////////////////////////////////////////
  146. ////////////////////////////////////////
  147. ////////////////////////////////////////
  148. ////////////////////////////////////////
  149. //use ability
  150. // comment out the one you wish not to use
  151. if mana >= 64 and timer 'abilitytimer' > 500
  152. //primary
  153. @setability 'primary' 'on'
  154. //secondary
  155. //setability 'secondary' 'on'
  156. ////////////////////////////////////////
  157. ////////////////////////////////////////
  158. ////////////////////////////////////////
  159. ////////////////////////////////////////
  160. ////////////////////////////////////////
  161. ////////////////////////////////////////
  162. ////////////////////////////////////////
  163. ////////////////////////////////////////
  164. ////////////////////////////////////////
  165. ////////////////////////////////////////
  166. endif
  167. if mana >= 5
  168. if @injournal 'You attack' 'system'
  169. cast 'Lightning Strike'
  170. cast 'Counter Attack'
  171. if @injournal 'you defend with Shield of Spikes!'
  172. replygump 0x4239a64f 1004
  173. endif
  174. clearjournal
  175. endif
  176. endif
  177. ///////////////////////////
  178. ///////////////////////////
  179. ///////////////////////////
  180. /////Disco target
  181. if not @injournal 'jarring' and not @injournal 'already' and not @injournal 'would have no effect'
  182. if timer 'discotimer' >= 2050 and @inrange 'enemy' 6
  183. useskill 'Discordance'
  184. waitfortarget 1000
  185. target! 'enemy' 2000
  186. settimer 'discotimer' 0
  187. pause 126
  188. canceltarget
  189. endif
  190. clearjournal
  191. endif
  192. ////////////////
  193. ////////////////
  194. ////////////////
  195. // Divine Fury
  196. if not buffexists "divine fury"
  197. @cast 'Divine Fury'
  198. pause 500
  199. if @injournal 'not yet recovered' 'system' or @injournal 'you are already' 'system'
  200. replay
  201. endif
  202. clearjournal
  203. endif
  204. /////////////////////
  205. /////////////////////
  206. /////////////////////
  207. ///// Consecrate Weapon
  208. if timer 'consecratetimer' >= 9000
  209. if not buffexists "Consecrate Weapon"
  210. @cast "Consecrate Weapon"
  211. pause 500
  212. settimer 'consecratetimer' 0
  213. if @injournal 'not yet recovered' 'system' or @injournal 'you are already' 'system'
  214. replay
  215. endif
  216. clearjournal
  217. endif
  218. endif
  219. @attack 'enemy'
  220. endif
  221. endif
  222. ///////////////////////////////////////////
  223. ////////////////////////////////
  224. // checks and gold
  225. if @findtype 0xeed 0x0 'backpack'
  226. @usetype 0xeed 0x0 'backpack'
  227. pause 400
  228. elseif @findtype 0x14f0 52 'backpack'
  229. useobject 0x42c79fe3
  230. waitforgump 0x9021dd59 1500
  231. replygump 0x9021dd59 5 2
  232. waitfortarget 1500
  233. targettype! 0x14f0 52 500
  234. pause 100
  235. canceltarget
  236. pause 400
  237. replygump 0x9021dd59 0 2
  238. endif
  239. if @contents 'tokenbag' >= 1
  240. waitforcontext 0x42c79fe7 0 1500
  241. endif
  242. clearignorelist
  243. while @findtype 0xeef 'any' 'ground'
  244. headmsg 'Leprechan Gold!' 2125 'found'
  245. if @inrange 'found' 1
  246. useobject! 'found'
  247. endif
  248. endwhile
  249. while @findtype 0xeed 'any' 'ground' or @findtype 0xeef 'any' 'ground'
  250. useobject! 'found'
  251. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement