Advertisement
Guest User

ultimate farming

a guest
Jan 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.28 KB | None | 0 0
  1. while not dead
  2. //Pop Pouch
  3. if paralyzed 'self'
  4. usetype '0xe79'
  5. endif
  6. // Auto Strength Buff if carrying too much
  7. if @injournal 'to move' 'system'
  8. cast 'Strength'
  9. waitfortarget 3000
  10. target! 'self'
  11. clearjournal
  12. if @findtype 0xf0b 0 'backpack'
  13. @setalias 'Refresh' 'found'
  14. useobject! 'Refresh'
  15. else
  16. headmsg 'NO REFRESH POTS'
  17. endif
  18. endif
  19. //Auto Protection --- DELETE FROM HERE IF YOU DONT WANT TO USE PROTECTION//
  20. if not timerexists 'Protect'
  21. createtimer 'Protect'
  22. settimer 'Protect' 300000
  23. endif
  24. if timer 'Protect' >= 300000
  25. cast 'Protection'
  26. settimer 'Protect' 0
  27. endif
  28. //End Auto Protection --- DELETE UP TO HERE IF YOU DONT WANT TO USE PROTECTION//
  29. //SET PET ONE AND PET TWO -- DOUBLE TARGET FOR SPIDER//
  30. if not findalias 'pet1'
  31. headmsg 'Select first pet'
  32. promptalias 'pet1'
  33. endif
  34. if not findalias 'pet2'
  35. headmsg 'Select second pet'
  36. promptalias 'pet2'
  37. endif
  38. //START ANTI THIEF MACRO---------------------------------------------------------------------------------------------------------------------------------------------------//
  39. //Safebox script
  40. //Safebox script
  41. if not findalias 'safebox'
  42. if @findtype 0x9aa 'any'
  43. setalias 'safebox' found
  44. elseif @findtype 0xe7d 'any' 'backpack'
  45. setalias 'safebox' found
  46. headmsg 'safebox set'
  47. endif
  48. endif
  49. if @findtype 0x2aa4 1153 'backpack' 1 0
  50. moveitem found 'safebox'
  51. headmsg 'You got a relic!!!'
  52. endif
  53. if @findtype 0x2aa4 1196 'backpack' 1 0
  54. moveitem found 'safebox'
  55. headmsg 'You got a relic!!!'
  56. endif
  57. if @findtype 0x2aa4 1368 'backpack' 1 0
  58. moveitem found 'safebox'
  59. headmsg 'You got a relic!!!'
  60. endif
  61. if @findtype 0x2aa4 1157 'backpack' 1 0
  62. moveitem found 'safebox'
  63. headmsg 'You got a relic!!!'
  64. endif
  65. if @findtype 0x2aa4 1157 'backpack' 1 0
  66. moveitem found 'safebox'
  67. headmsg 'You got a relic!!!'
  68. endif
  69. if @findtype 0x2aa4 1360 'backpack' 1 0
  70. moveitem found 'safebox'
  71. headmsg 'You got a relic!!!'
  72. endif
  73. if @findtype 0x2aa4 1372 'backpack' 1 0
  74. moveitem found 'safebox'
  75. headmsg 'You got a relic!!!'
  76. endif
  77. if @findtype 0x2aa4 2955 'backpack' 1 0
  78. moveitem found 'safebox'
  79. headmsg 'You got a relic!!!'
  80. endif
  81. if @findtype 0x2aa4 'any' 'backpack' 1 0
  82. moveitem found 'safebox'
  83. headmsg 'You got a relic!!!'
  84. endif
  85. if @findtype 0x14f0 1153 'backpack' 1 0
  86. moveitem found 'safebox'
  87. headmsg 'You got a PS'
  88. endif
  89. if @findtype 0x14f0 1153 'backpack' 1 0
  90. moveitem found 'safebox'
  91. headmsg 'You got a PS'
  92. endif
  93. if @findtype 0x14f0 1153 'backpack' 1 0
  94. moveitem found 'safebox'
  95. headmsg 'You got a PS'
  96. endif
  97. if @findtype 0x14f0 1153 'backpack' 1 0
  98. moveitem found 'safebox'
  99. headmsg 'You got a PS'
  100. endif
  101. if @findtype 0x14f0 1153 'backpack' 1 0
  102. moveitem found 'safebox'
  103. headmsg 'You got a PS'
  104. endif
  105. if @findtype 0x47e6 'any' 'backpack' 1 0
  106. moveitem found 'safebox'
  107. headmsg 'You got an egg'
  108. endif
  109. if @findtype 0xf21 1161 'backpack' 1 0
  110. moveitem found 'safebox'
  111. headmsg 'You got a portal frag'
  112. endif
  113. if @findtype 0x2260 'any' 'backpack' 1 0
  114. moveitem found 'safebox'
  115. headmsg 'You got a SS scroll'
  116. endif
  117. if @findtype 0x1ae1 'any' 'backpack' 1 0
  118. moveitem found 'safebox'
  119. headmsg 'You got a skull'
  120. endif
  121. if @findtype 0x1f19 'any' 'backpack' 1 0
  122. moveitem found 'safebox'
  123. headmsg 'champ crystal'
  124. endif
  125. if @findtype 0x35da 'any' 'backpack' 1 0
  126. moveitem found 'safebox'
  127. headmsg 'meta crystal'
  128. endif
  129. if not @findobject 'safebox' 'any' 'backpack' and @findalias 'safebox'
  130. unsetalias 'safebox'
  131. headmsg 'safebox gone'
  132. endif
  133. //END ANTI THIEF MACRO------------------------------------------------------------------------------------------------------------------------------------------------------//
  134. //END SET PET ONE AND TWO -- DOUBLE TARGET FOR SPIDER//
  135. //3. ATTACKING CLOSEST//
  136. //----------------------------------------------------------------------------------------------//
  137. Getenemy! 'Enemy' 'criminal' 'gray' 'closest'
  138. while @graphic 'enemy' == 400 or @graphic 'enemy' == 401
  139. getenemy 'criminal' 'gray'
  140. //Drink Cure Potion
  141. if poisoned
  142. if @findtype 0xf07 0 'backpack'
  143. @setalias 'Cure' 'found'
  144. useobject! 'Cure'
  145. else
  146. //Pop Pouch
  147. if paralyzed 'self'
  148. usetype '0xe79'
  149. endif
  150. //Cast cure if no potion
  151. headmsg 'NO CURE POTS'
  152. cast 'cure'
  153. waitfortarget 2000
  154. target! 'self'
  155. else
  156. //Pop Pouch
  157. if paralyzed 'self'
  158. usetype '0xe79'
  159. endif
  160. //cast mini heal if low damage
  161. if diffhits >= 10
  162. cast! 'Heal'
  163. waitfortarget 2000
  164. target! 'self'
  165. else
  166. //drink heal potion if high damage
  167. if diffhits >= 30
  168. if @findtype 0xf0c 0 'backpack'
  169. @setalias 'Heal' 'found'
  170. useobject! 'Heal'
  171. else
  172. headmsg 'NO HEAL POTS'
  173. cast! 'Heal'
  174. waitfortarget 2000
  175. target! 'self'
  176. endif
  177. endif
  178. endif
  179. endif
  180. endif
  181. //Drink Cure Potion
  182. if poisoned
  183. if @findtype 0xf07 0 'backpack'
  184. @setalias 'Cure' 'found'
  185. useobject! 'Cure'
  186. else
  187. //Pop Pouch
  188. if paralyzed 'self'
  189. usetype '0xe79'
  190. endif
  191. //Cast cure if no potion
  192. headmsg 'NO CURE POTS'
  193. cast 'cure'
  194. waitfortarget 2000
  195. target! 'self'
  196. endif
  197. endif
  198. else
  199. endwhile
  200. //Drink Cure Potion
  201. if poisoned
  202. if @findtype 0xf07 0 'backpack'
  203. @setalias 'Cure' 'found'
  204. useobject! 'Cure'
  205. else
  206. //Pop Pouch
  207. if paralyzed 'self'
  208. usetype '0xe79'
  209. endif
  210. //Cast cure if no potion
  211. headmsg 'NO CURE POTS'
  212. cast 'cure'
  213. waitfortarget 2000
  214. target! 'self'
  215. endif
  216. endif
  217. //Pop Pouch
  218. if paralyzed 'self'
  219. usetype '0xe79'
  220. endif
  221. //cast mini heal if low damage
  222. if diffhits >= 10
  223. cast! 'Heal'
  224. waitfortarget 2000
  225. target! 'self'
  226. endif
  227. //drink heal potion if high damage
  228. if diffhits >= 30
  229. if @findtype 0xf0c 0 'backpack'
  230. @setalias 'Heal' 'found'
  231. useobject! 'Heal'
  232. else
  233. headmsg 'NO HEAL POTS'
  234. cast! 'Heal'
  235. waitfortarget 2000
  236. target! 'self'
  237. endif
  238. endif
  239. //Drink Cure Potion
  240. if poisoned
  241. if @findtype 0xf07 0 'backpack'
  242. @setalias 'Cure' 'found'
  243. useobject! 'Cure'
  244. else
  245. //Pop Pouch
  246. if paralyzed 'self'
  247. usetype '0xe79'
  248. endif
  249. //Cast cure if no potion
  250. headmsg 'NO CURE POTS'
  251. cast 'cure'
  252. waitfortarget 2000
  253. target! 'self'
  254. endif
  255. endif
  256. attack! 'enemy'
  257. pause 200
  258. @clearusequeue
  259. @cancelautotarget
  260. //FINISHED ATTACKING CLOSEST//
  261. // VET PET HEALING MACRO--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
  262. //Start Healing Pet//
  263. //sets backup bandie timer just in case
  264. if not timerexists 'bandie'
  265. settimer 'bandie' 9999
  266. endif
  267. //provoke protection if target cursor exists
  268. if not targetexists
  269. //Pop Pouch
  270. if paralyzed 'self'
  271. usetype '0xe79'
  272. endif
  273. //Starts healing your pets
  274. // Checks sysmsg to see if you've finished healing
  275. if @injournal "little" 'system' or @injournal "finish" 'system'
  276. @clearjournal
  277. settimer "bandie" 9999
  278. elseif @injournal "barely" 'system' or @injournal "close" 'system'
  279. @clearjournal
  280. settimer "bandie" 9999
  281. endif
  282. //If vet started over 3 seconds ago it tries to cure
  283. if timer "bandie" > 3000 and timer "bandie" < 3500
  284. //checks to see if pets are poisoned and within range
  285. if poisoned 'healme' and @inrange 'healme' 1
  286. @autotargetobject! 'healme'
  287. cast 'Cure'
  288. waitfortarget 1000
  289. endif
  290. endif
  291. //if timer is up it checks to heal
  292. if timer "bandie" > 5400
  293. @cleartargetqueue
  294. ////////// Sets Macro to heal first pet
  295. @setalias 'healme' 'pet1'
  296. if @diffhits 'pet1' > diffhits 'pet2' and @inrange 'pet1' 1
  297. elseif not @inrange 'pet2' 1
  298. else
  299. //If Pet2 is more hurt or Pet1 is too far it heals pet2
  300. @setalias 'healme' 'pet2'
  301. endif
  302. //starts healing for real
  303. if diffhits 'healme' > 0 and @inrange 'healme' 1
  304. usetype 0xe21 'any' 'backpack'
  305. waitfortarget 3500
  306. target! 'healme'
  307. settimer 'bandie' 0
  308. endif
  309. clearjournal
  310. endif
  311. endif
  312. if @injournal 'too far away' 'system'
  313. @clearjournal
  314. headmsg 'GET CLOSER'
  315. playmacro 'Ultimate Farming'
  316. elseif @injournal 'stay close enough' 'system'
  317. @clearjournal
  318. headmsg 'GET CLOSER'
  319. playmacro 'Ultimate Farming'
  320. endif
  321. // FINISHED VET PET HEALING MACRO-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
  322. //Pop Pouch
  323. if paralyzed 'self'
  324. usetype '0xe79'
  325. endif
  326. // Auto Strength Buff if carrying too much
  327. if @injournal 'to move' 'system'
  328. cast 'Strength'
  329. waitfortarget 3000
  330. target! 'self'
  331. clearjournal
  332. if @findtype 0xf0b 0 'backpack'
  333. @setalias 'Refresh' 'found'
  334. useobject! 'Refresh'
  335. else
  336. headmsg 'NO REFRESH POTS'
  337. endif
  338. endif
  339. // to avoid getting lost in the time adding routine if pet is moving
  340. if not inrange 'Pet1' 2
  341. playmacro 'Ultimate Farming'
  342. endif
  343. if not inrange 'Pet2' 2
  344. playmacro 'Ultimate Farming'
  345. endif
  346. if @injournal 'not damaged' 'system'
  347. clearjournal
  348. playmacro 'Ultimate Farming'
  349. headmsg 'GET CLOSER'
  350. endif
  351. if @injournal 'did not' 'system'
  352. clearjournal
  353. headmsg 'GET CLOSER'
  354. playmacro 'Ultimate Farming'
  355. endif
  356. //endwhile pet-health check
  357. playmacro 'Ultimate Farming'
  358. endwhile
  359. //endwhile for living check
  360. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement