Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. setability 'primary' 'on'
  2. pause 600
  3. getenemy 'enemy' 'criminal' 'gray' 'closest'
  4. if friend 'found' or infriendlist 'found'
  5. endif
  6. pause 600
  7. attack 'enemy'
  8. pause 600
  9. if poisoned 'self' and counttype 0xf07 0 'backpack' > 0
  10. usetype! '0xf07'
  11. endif
  12. //Author: Traxex
  13. //Lists
  14. @createlist 'config'
  15. @clearlist 'config'
  16. pushlist! 'config' 'enemy paralyze check'
  17. pushlist! 'config' 'display enemy status'
  18. pushlist! 'config' 'use bandages'
  19. pushlist! 'config' 'self paralyze check'
  20. pushlist! 'config' 'display self status'
  21. //Timers
  22. if not timerexists 'heal potion'
  23. settimer 'heal potion' 11250
  24. endif
  25. if not timerexists 'enchanted apple'
  26. settimer 'enchanted apple' 121250
  27. endif
  28. if not dead
  29. if usequeue == 0
  30. // Queued sequence
  31. if skill 'magery' < 50
  32. if stam <= 80
  33. // Refresh potion
  34. if not @usetype 0xf0b
  35. @feed 'self' 'any'
  36. endif
  37. endif
  38. elseif stam <= 14
  39. // Refresh potion
  40. if not @usetype 0xf0b
  41. @feed 'self' 'any'
  42. endif
  43. endif
  44. if poisoned 'self' and hits < 120
  45. // Cure potion
  46. @usetype 0xf07
  47. endif
  48. if buffexists 'evil omen'
  49. //poison to deal with evil omem
  50. @usetype 0xf0a
  51. endif
  52. if paralyzed 'self'
  53. //check paralyze fields around
  54. if not @findtype 0x3979 0 'ground' any 1
  55. //use inv pot to help paralyzed status
  56. usetype 0xf06 306 'backpack'
  57. endif
  58. endif
  59. if not yellowhits 'self'
  60. if timer 'heal potion' >= 11250
  61. if skill 'magery' < 50
  62. if diffhits >= 50
  63. // Heal potion
  64. if @usetype 0xf0c
  65. settimer 'heal potion' 0
  66. endif
  67. endif
  68. elseif diffhits >= 20
  69. // Heal potion
  70. if @usetype 0xf0c
  71. settimer 'heal potion' 0
  72. endif
  73. endif
  74. endif
  75. // Enchanted apple
  76. elseif timer 'enchanted apple' >= 121250
  77. if @usetype 0x2fd8
  78. settimer 'enchanted apple' 0
  79. endif
  80. endif
  81. // Strength potion
  82. if @findobject 'enemy' any 'ground' any 15
  83. if str < 140
  84. if @usetype 0xf09
  85. settimer 'strength potion' 0
  86. pause 600
  87. endif
  88. endif
  89. endif
  90. //Stamina enemy spoted
  91. if @findobject 'enemy' any 'ground' any 15
  92. if skill 'magery' < 50
  93. if stam <= 80
  94. // Refresh potion
  95. if not @usetype 0xf0b
  96. @feed 'self' 'any'
  97. endif
  98. endif
  99. elseif stam <= 14
  100. // Refresh potion
  101. if not @usetype 0xf0b
  102. @feed 'self' 'any'
  103. endif
  104. endif
  105. endif
  106. // Agility potion
  107. if @findobject 'enemy' any 'ground' any 15
  108. if dex < 140 and skill 'magery' < 50
  109. if @usetype 0xf08
  110. settimer 'agility potion' 0
  111. pause ¨600
  112. endif
  113. endif
  114. endif
  115. // Healing
  116. if @inlist 'config' 'use bandages' and skill 'healing' >= 80
  117. if not timerexists 'healing'
  118. createtimer 'healing'
  119. endif
  120. @unsetalias 'bandage'
  121. // Check healing delay
  122. if dex >= 140 and timer 'healing' >= 4500
  123. @setalias 'bandage' 'self'
  124. elseif dex >= 120 and timer 'healing' >= 5500
  125. @setalias 'bandage' 'self'
  126. elseif dex >= 100 and timer 'healing' >= 6500
  127. @setalias 'bandage' 'self'
  128. elseif dex >= 80 and timer 'healing' >= 7500
  129. @setalias 'bandage' 'self'
  130. elseif dex >= 60 and timer 'healing' >= 8500
  131. @setalias 'bandage' 'self'
  132. elseif dex >= 40 and timer 'healing' >= 9500
  133. @setalias 'bandage' 'self'
  134. elseif dex >= 20 and timer 'healing' >= 10500
  135. @setalias 'bandage' 'self'
  136. elseif timer 'healing' >= 11500
  137. @setalias 'bandage' 'self'
  138. endif
  139. // Apply bandage
  140. if @findalias 'bandage'
  141. if hits != maxhits
  142. if @usetype 0xe21 'any' 'backpack'
  143. autotargetself
  144. @settimer 'healing' 0
  145. endif
  146. endif
  147. endif
  148. endif
  149. endif
  150. // Enemy checks
  151. if @inrange 'enemy' 12 and not dead 'enemy'
  152. // Paralyze warmode toggle
  153. if @inlist 'config' 'enemy paralyze check' and paralyzed 'enemy'
  154. warmode 'on'
  155. warmode 'off'
  156. endif
  157. // Display enemy status
  158. if @inlist 'config' 'display enemy status'
  159. if not timerexists 'enemy status'
  160. createtimer 'enemy status'
  161. endif
  162. if timer 'enemy status' >= 500
  163. if paralyzed 'enemy'
  164. headmsg '* Paralyzed *' 110 'enemy'
  165. @setalias 'clear enemy status' 'enemy'
  166. elseif yellowhits 'enemy'
  167. headmsg '* Mortaled *' 55 'enemy'
  168. @setalias 'clear enemy status' 'enemy'
  169. elseif poisoned 'enemy'
  170. headmsg '* Poisoned *' 64 'enemy'
  171. @setalias 'clear enemy status' 'enemy'
  172. elseif @findalias 'clear enemy status'
  173. for 3
  174. headmsg '' 0 'enemy'
  175. endfor
  176. @unsetalias 'clear enemy status'
  177. endif
  178. @settimer 'enemy status' 0
  179. endif
  180. endif
  181. endif
  182. //Self Checks Display self status
  183. if paralyzed 'self'
  184. headmsg '* Paralyzed *' 110 'self'
  185. @setalias 'clear self status' 'self'
  186. elseif yellowhits 'self'
  187. headmsg '* Mortaled *' 55 'self'
  188. @setalias 'clear self status' 'self'
  189. elseif buffexists 'curse'
  190. headmsg '* Cursed *' 33 'self'
  191. @setalias 'clear self status' 'self'
  192. elseif poisoned 'self'
  193. headmsg '* Poisoned *' 64 'self'
  194. @setalias 'clear self status' 'self'
  195. elseif @findalias 'clear self status'
  196. for 3
  197. headmsg '' 0 'self'
  198. endfor
  199. @unsetalias 'clear self status'
  200. endif
  201. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement