Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.83 KB | None | 0 0
  1. //////////////////////////
  2. //////////////////////////
  3. //////////////////////////
  4. ///Setup
  5. if not @findobject 'weapon'
  6. headmsg 'Please target your Weapon'
  7. promptalias 'weapon' 15000
  8. endif
  9. if not @findobject 'shield'
  10. headmsg 'Please target your Shield'
  11. promptalias 'shield' 15000
  12. endif
  13. if not @findobject 'lootbag'
  14. headmsg 'Please target your Lootbag'
  15. promptalias 'lootbag' 15000
  16. endif
  17. if not @findobject 'regkey'
  18. headmsg 'Please target your REAGENT key'
  19. promptalias 'regkey' 15000
  20. endif
  21. if not @findobject 'ingotkey'
  22. headmsg 'Please target your INGOT Key
  23. promptalias 'ingotkey' 15000
  24. endif
  25. if not @findobject 'evokey'
  26. headmsg 'Please target your EVOkey'
  27. promptalias 'evokey' 15000
  28. endif
  29. if not @findalias 'portableforge'
  30. headmsg 'Please target your Portable Forge'
  31. promptalias 'portableforge' 15000
  32. endif
  33. if not @findalias 'portabank'
  34. headmsg 'Please target your Bank Crystal'
  35. promptalias 'portabank' 15000
  36. endif
  37. //////////////////////////////////////
  38. //////////////////////////////////////
  39. //////////////////////////////////////
  40. // Lists
  41. if not @listexists 'regs'
  42. createlist 'regs'
  43. pushlist 'regs' 0xf7a // Black Pearl
  44. pushlist 'regs' 0xf7b // Blood Moss
  45. pushlist 'regs' 0xf86 // Mandrake Root
  46. pushlist 'regs' 0xf84 // Garlic
  47. pushlist 'regs' 0xf85 // Ginseng
  48. pushlist 'regs' 0xf88 // Nightshade
  49. pushlist 'regs' 0xf8d // Spider's Silk
  50. pushlist 'regs' 0xf8c // Sulphurous Ash
  51. pushlist 'regs' 0xf8e // Nox Crystal
  52. pushlist 'regs' 0xf8a // Pig Iron
  53. pushlist 'regs' 0xf8f // Grave Dust
  54. pushlist 'regs' 0xf78 // Bat Wing
  55. pushlist 'regs' 0xf7d // Daemon Blood
  56. pushlist 'regs' 0xf7e // Bone
  57. pushlist 'regs' 0xef3 // Blank Scrolls
  58. pushlist 'regs' 0x4077 // Dragon Blood
  59. // pushlist 'regs' 12345 //
  60. endif
  61. ////////////////////////
  62. if not @listexists 'Jewelry'
  63. @createlist 'Jewelry'
  64. endif
  65. if list 'Jewelry' == 0
  66. @pushlist 'Jewelry' 0x108a
  67. @pushlist 'Jewelry' 0x1f09
  68. @pushlist 'Jewelry' 0x1086
  69. @pushlist 'Jewelry' 0x1f06
  70. endif
  71. @removelist 'tailorclips'
  72. if not @listexists 'tailorclips'
  73. createlist 'tailorclips'
  74. pushlist 'tailorclips' 0x1079 //hide
  75. pushlist 'tailorclips' 0x1b0a //bones
  76. pushlist 'tailorclips' 0x1b0d //bones
  77. pushlist 'tailorclips' 0x1b0f //bones
  78. pushlist 'tailorclips' 0x1b0c //bones
  79. pushlist 'tailorclips' 0x1b17 //bones
  80. pushlist 'tailorclips' 0x1b0b //bones
  81. pushlist 'tailorclips' 0x1b0e //bones
  82. pushlist 'tailorclips' 0x1b10 //bones
  83. pushlist 'tailorclips' 0x1b09 //bones
  84. endif
  85. ///////////////////////////////////////
  86. ///////////////////////////////////////
  87. ///////////////////////////////////////
  88. //Timers
  89. if not timerexists 'consecratetimer'
  90. createtimer 'consecratetimer'
  91. settimer 'consecratetimer' 0
  92. endif
  93. if not timerexists 'discotimer'
  94. createtimer 'discotimer'
  95. settimer 'discotimer' 0
  96. endif
  97. if not timerexists 'bandagetimer'
  98. createtimer 'bandagetimer'
  99. settimer 'bandagetimer' 0
  100. endif
  101. if not timerexists 'abilitytimer'
  102. createtimer 'abilitytimer'
  103. settimer 'abilitytimer' 0
  104. endif
  105. /////////
  106. /////////
  107. /////////
  108. ///////// Main Loop
  109. //equip weapon
  110. if not @findobject 'righthand'
  111. equipitem 'weapon' 2
  112. pause 500
  113. endif
  114. //equip shield
  115. if not @findobject 'lefthand' and @findobject 'righthand'
  116. equipitem 'shield' 2
  117. pause 500
  118. endif
  119. @getenemy 'murderer' 'enemy' 'criminal' 'gray' 'closest'
  120. pause 400
  121. if @findobject 'enemy'
  122. @clearjournal
  123. if @inrange 'enemy' 10
  124. if hits 'enemy' == maxhits 'enemy'
  125. virtue 'honor'
  126. waitfortarget 5000
  127. target! 'enemy' 2000
  128. pause 1000
  129. canceltarget
  130. attack 'enemy'
  131. endif
  132. ////////////////////////////////////////
  133. //use ability
  134. // comment out the one you wish not to use
  135. if mana >= 44 and timer 'abilitytimer' > 500
  136. //primary
  137. //setability 'primary' 'on'
  138. //secondary
  139. setability 'secondary' 'on'
  140. //
  141. endif
  142. ///////////////////////////
  143. ///////////////////////////
  144. ///////////////////////////
  145. /////Disco target
  146. if not @injournal 'jarring' and not @injournal 'already' and not @injournal 'would have no effect'
  147. if timer 'discotimer' >= 2050 and @inrange 'enemy' 6
  148. useskill 'Discordance'
  149. waitfortarget 1000
  150. target! 'enemy' 2000
  151. settimer 'discotimer' 0
  152. pause 126
  153. canceltarget
  154. endif
  155. canceltarget
  156. endif
  157. ////////////////
  158. ////////////////
  159. ////////////////
  160. //// Enemy of one
  161. if not buffexists 'Enemy of One'
  162. cast 'Enemy of One'
  163. pause 250
  164. endif
  165. ////////////////
  166. ////////////////
  167. ////////////////
  168. // Divine Fury
  169. if not buffexists "divine fury"
  170. cast 'Divine Fury'
  171. pause 500
  172. if @injournal 'not yet recovered' 'system' or @injournal 'you are already' 'system'
  173. replay
  174. endif
  175. endif
  176. /////////////////////
  177. /////////////////////
  178. /////////////////////
  179. ///// Consecrate Weapon
  180. if timer 'consecratetimer' >= 9000
  181. if not buffexists "Consecrate Weapon"
  182. cast "Consecrate Weapon"
  183. pause 500
  184. settimer 'consecratetimer' 0
  185. if @injournal 'not yet recovered' 'system' or @injournal 'you are already' 'system'
  186. replay
  187. endif
  188. endif
  189. endif
  190. attack 'enemy'
  191. endif
  192. endif
  193. ////////////////////////////////////////
  194. ////////////////////////////////////////
  195. ////////////////////////////////////////
  196. /// Healing
  197. if timer 'bandagetimer' >= 10250
  198. //poisoned
  199. if poisoned 'self'
  200. bandageself
  201. waitfortarget 1500
  202. target! 'self'
  203. settimer 'bandagetimer' 0
  204. elseif diffhits > 8
  205. bandageself
  206. waitfortarget 1500
  207. target! 'self'
  208. settimer 'bandagetimer' 0
  209. endif
  210. pause 200
  211. endif
  212. ///////////////////////////////////////////
  213. ///////////////////////////////////////////
  214. ///////////////////////////////////////////
  215. // smelt ore's
  216. if @usetype! 0x19b9 'any' 'backpack'
  217. waitfortarget 1500
  218. @target! 'portableforge'
  219. elseif @usetype! 0x19b8 'any' 'backpack'
  220. waitfortarget 1500
  221. @target! 'portableforge'
  222. elseif @usetype! 0x19ba 'any' 'backpack'
  223. waitfortarget 1500
  224. @target! 'portableforge'
  225. endif
  226. ///////////////////////////////
  227. //clip hides to leather
  228. for 0 to 'tailorclips'
  229. while @findtype 'tailorclips[]'
  230. @usetype 0xf9f
  231. waitfortarget 15000
  232. @target! 'found'
  233. endwhile
  234. endfor
  235. ///////////////////////////////////////////
  236. ///////////////////////////////////////////
  237. ///////////////////////////////////////////
  238. // Use Storage Key's
  239. ////////////////////////////////
  240. //store ingots
  241. if @findtype 0x1bf2
  242. waitforcontext 'ingotkey' 2 15000
  243. waitforgump 0x6abce12 15000
  244. replygump 0x6abce12 0
  245. endif
  246. /////////////////////////////////////
  247. //store reagents
  248. for 0 to 'regs'
  249. while @findtype 'regs[]' 'backpack'
  250. waitforcontext 'regkey' 2 15000
  251. waitforgump 0x6abce12 15000
  252. replygump 0x6abce12 0
  253. pause 200
  254. break
  255. endwhile
  256. endfor
  257. /////////////////////////////////////////
  258. ////store hides in bank (temp)
  259. if @findtype 0x1081
  260. @useobject 'portabank'
  261. pause 300
  262. organizer 'bank'
  263. endif
  264. ////////////////////////////////
  265. ////////////////////////////////
  266. ////////////////////////////////
  267. ///Loot Jewelry
  268. /////////////////////////
  269. //Find Corpse
  270. if @findtype '0x2006' 'any' 'ground' '1' '1'
  271. @setalias '0' 'found'
  272. @useobject '0'
  273. pause 300
  274. //////////////////////////
  275. //Locate Jewelry
  276. for 0 to Jewelry
  277. for 2
  278. if @findtype Jewelry[] 0 '0'
  279. @setalias 'Skills' 'found'
  280. waitforproperties 'Skills' 3000
  281. if @property 'Swordsmanship' 'Skills' >= 12
  282. sysmsg 'Swords!' '1990'
  283. @moveitem 'Skills' 'LootBag'
  284. pause 1000
  285. elseif @property 'Parry' 'Skills' >= 14
  286. sysmsg 'Parry!' '1990'
  287. @moveitem 'Skills' 'LootBag'
  288. pause 1000
  289. elseif @property 'Tactics' 'Skills' >= 14
  290. sysmsg 'Tactics' '1990'
  291. @moveitem 'Skills' 'LootBag'
  292. pause 1000
  293. elseif @property 'Animal Taming' 'Skills' >= 14
  294. sysmsg 'Taming' '1990'
  295. @moveitem 'Skills' 'LootBag'
  296. pause 1000
  297. elseif @property 'Archery' 'Skills' >= 14
  298. sysmsg 'Archery' '1990'
  299. @moveitem 'Skills' 'LootBag'
  300. pause 1000
  301. elseif @property 'Anatomy' 'Skills' >= 14
  302. sysmsg 'Anatomy' '1990'
  303. @moveitem 'Skills' 'LootBag'
  304. pause 1000
  305. elseif @property 'Bushido' 'Skills' >= 14
  306. sysmsg 'Bushido' '1990'
  307. @moveitem 'Skills' 'LootBag'
  308. pause 1000
  309. elseif @property 'Animal Lore' 'Skills' >= 14
  310. sysmsg 'Animal Lore' '1990'
  311. @moveitem 'Skills' 'LootBag'
  312. pause 1000
  313. elseif @property 'Evaluating Intelligence' 'Skills' >= 14
  314. sysmsg 'Evaluating Intelligence' '1990'
  315. @moveitem 'Skills' 'LootBag'
  316. pause 1000
  317. elseif @property 'Lower Reagent Cost' 'Skills' >= 17
  318. sysmsg 'Lower Reagent Cost' '1990'
  319. @moveitem 'Skills' 'LootBag'
  320. pause 1000
  321. elseif @property 'Faster Cast Recovery' 'Skills' >= 2 and @property 'Faster Casting' 'Skills' >=1
  322. sysmsg 'FCR/FC' '1990'
  323. @moveitem 'Skills' 'LootBag'
  324. pause 1000
  325. endif
  326. endif
  327. endfor
  328. endfor
  329. endif
  330. //Close Corpse
  331. ignoreobject '0'
  332. ////////////////////////////////
  333. // checks and gold
  334. if @findtype 0xeed 0x0 'backpack'
  335. useobject 0x42c79fe3
  336. waitforgump 0x9021dd59 1500
  337. replygump 0x9021dd59 5 2
  338. waitfortarget 1500
  339. targettype! 0xeed 0x0
  340. pause 100
  341. canceltarget
  342. pause 400
  343. replygump 0x9021dd59 0 2
  344. elseif @findtype 0x14f0 52 'backpack'
  345. useobject 0x42c79fe3
  346. waitforgump 0x9021dd59 1500
  347. replygump 0x9021dd59 5 2
  348. waitfortarget 1500
  349. targettype! 0x14f0 52
  350. pause 100
  351. canceltarget
  352. pause 400
  353. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement