Advertisement
kakel_anders

UOS - Piratefisher

Jan 18th, 2022 (edited)
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.72 KB | None | 0 0
  1. ///////Automated Pirate fisherman by kakel_anders (Player - UOG:Demise)///////
  2. //
  3. //When using it for the first time, start this script at your loot dropofflocation.
  4. //Thereafter always start on the boat, just behind the mast (Outside of monster reach)
  5. //--Have the following secured in reach from the loot dropoffrune -
  6. //1. Lootbag
  7. //2. Trashbarrel
  8. //--Have the following in your bag -
  9. //1. Fishingpole
  10. //2. Dagger
  11. //3. Shipkey
  12. //4. Runebook with rune to loot dropoff (set as default)
  13. //
  14. //This script will -
  15. //1. Fish, fish and fish some more!
  16. //2. Cure and heal using chivalry.
  17. //3. Offload your loot when reaching certain weight (Configure at line 258)
  18. //4. Restock from 'lootbag' when running low on arrows.
  19. //5. Kill seaserpents and waterelementals and navigate within lootingdistance of their corpses.
  20. //6. Probably have flaws, it works well for me but i'm still pretty new to scipting.
  21. //
  22. //----A few requirements!----//
  23. //1. Boat must be heading west, macro must be set up in the macroline (Look at map)
  24. //2. Character must have Chivalry and archery.
  25. //3. Stock up on Tithing and preferably a reptileslayer bow. (Don't forget to insure, just in case!)
  26. //4. Autolooting is forbidden on Demise where i play. If you play on a shard where it is allowed, uncomment the lines 427 through 445.
  27. //5. Always be in warmode.
  28. //6. Don't gather unattended.
  29. //----End of requirements----//
  30. //// Aliases
  31. ////-- If any of these change you need to remove the aliases manually in UOSteam to change them.
  32. if not findalias 'fishingpole'
  33. headmsg "Arr! Where's me fishstick?" 4321 "self"
  34. promptalias 'fishingpole'
  35. endif
  36. if not findalias 'dagger'
  37. headmsg "Arr! Where's me stabber?" 4321 "self"
  38. promptalias 'dagger'
  39. endif
  40. if not findalias 'lootbag'
  41. headmsg "Arr! Where's me lootbag? (Dropoff)" 4321 "self"
  42. promptalias 'lootbag'
  43. endif
  44. if not findalias 'trashbarrel'
  45. headmsg "Arr! Where's me shitcan?" 4321 "self"
  46. promptalias 'trashbarrel'
  47. endif
  48. if not findalias 'fishbook'
  49. headmsg "Arr! Where's me runebook fer home?" 4321 "self"
  50. promptalias 'fishbook'
  51. endif
  52. if not findalias 'shipkey'
  53. headmsg "Arr! Where's me shipkey for... ship!?" 4321 "self"
  54. promptalias 'shipkey'
  55. pause 500
  56. cast 'sacred journey'
  57. pause 2000
  58. target! shipkey
  59. pause 1000
  60. useobject self
  61. warmode 'on'
  62. headmsg "Arr! Kraken beware, i'm coming fer ya!" 4321 "self"
  63. endif
  64. //// Lists
  65. //Fishtypes
  66. if not listexists 'fish'
  67. createlist 'fish'
  68. pushlist 'fish' 0x9cd
  69. pushlist 'fish' 0x9cc
  70. pushlist 'fish' 0x9ce
  71. pushlist 'fish' 0x9cf
  72. endif
  73. //Specialfishtypes
  74. if not listexists 'specialfish'
  75. createlist 'specialfish'
  76. pushlist 'specialfish' 0xdd6
  77. endif
  78. //Boottypes
  79. if not listexists 'boots'
  80. createlist 'boots'
  81. pushlist 'boots' 0x170f
  82. pushlist 'boots' 0x1711
  83. pushlist 'boots' 0x170d
  84. pushlist 'boots' 0x170b
  85. endif
  86. if not listexists 'quotes'
  87. createlist 'quotes'
  88. pushlist 'quotes' 'Why is the rum gone?!'
  89. pushlist 'quotes' 'App! Found it! This calls for a song!'
  90. pushlist 'quotes' 'I thought I heard the Old Man say ~♫'
  91. pushlist 'quotes' '"Leave her, Johnny, leave her" ~♫'
  92. pushlist 'quotes' 'Tomorrow ye will get your pay ~♫'
  93. pushlist 'quotes' "And it's time for us to leave her ~♫"
  94. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  95. pushlist 'quotes' 'Oh, leave her, Johnny, leave her ~♫'
  96. pushlist 'quotes' "For the voyage is long and the winds don't blow ~♫"
  97. pushlist 'quotes' "And it's time for us to leave her ~♫"
  98. pushlist 'quotes' 'Oh, the wind was foul and the sea ran high ~♫'
  99. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  100. pushlist 'quotes' 'She shipped it green and none went by ~♫'
  101. pushlist 'quotes' "And it's time for us to leave her ~♫"
  102. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  103. pushlist 'quotes' 'Oh, leave her, Johnny, leave her ~♫'
  104. pushlist 'quotes' "For the voyage is long and the winds don't blow ~♫"
  105. pushlist 'quotes' "And it's time for us to leave her ~♫"
  106. pushlist 'quotes' 'I hate to sail on this rotten tub ~♫'
  107. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  108. pushlist 'quotes' 'No grog allowed and rotten grub ~♫'
  109. pushlist 'quotes' "And it's time for us to leave her ~♫"
  110. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  111. pushlist 'quotes' 'Oh, leave her, Johnny, leave her ~♫'
  112. pushlist 'quotes' "For the voyage is long and the winds don't blow ~♫"
  113. pushlist 'quotes' "And it's time for us to leave her ~♫"
  114. pushlist 'quotes' 'We swear by rote for want of more ~♫'
  115. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  116. pushlist 'quotes' "But now we're through so we'll go on shore ~♫"
  117. pushlist 'quotes' "And it's time for us to leave her ~♫"
  118. pushlist 'quotes' 'Leave her, Johnny, leave her ~♫'
  119. pushlist 'quotes' 'Oh, leave her, Johnny, leave her ~♫'
  120. pushlist 'quotes' "For the voyage is long and the winds don't blow ~♫"
  121. pushlist 'quotes' "And it's time for us to leave her ~♫"
  122. pushlist 'quotes' 'A friend can betray you, but an enemy will always stay the same'
  123. pushlist 'quotes' 'Real pirates play on UOG:Demise! Arr!'
  124. pushlist 'quotes' 'Take what you can, give nothing back! Arr!'
  125. pushlist 'quotes' 'Its the trustworthy you can’t trust'
  126. pushlist 'quotes' 'Arr, There comes a time in most men’s lives where they feel the need to raise the Black Flag'
  127. pushlist 'quotes' 'If ye can’t trust a pirate, ye damn well can’t trust a merchant either!'
  128. pushlist 'quotes' 'Not all treasure is silver and gold..'
  129. pushlist 'quotes' 'The rougher the seas, the smoother we sail. Ahoy!'
  130. pushlist 'quotes' 'Give me freedom or give me the rope!'
  131. pushlist 'quotes' 'Why are pirates pirates? cuz they arrrrrr!!'
  132. pushlist 'quotes' 'Now and then we had a hope that if we lived and were good, God would permit us to be pirates..'
  133. pushlist 'quotes' 'Drink up me hearties yoho …a pirates life for me'
  134. pushlist 'quotes' 'STOP BLOWING HOLES IN MY SHIP!!!'
  135. pushlist 'quotes' 'Real pirates play on UOG:Demise! Arr!'
  136. pushlist 'quotes' 'To err is human but to arr is pirate!!'
  137. pushlist 'quotes' 'Where there is a sea there are pirates.'
  138. pushlist 'quotes' 'Suddenly you’re like a pirate, you’re 65 years old and you’ve got an ear- ring..'
  139. pushlist 'quotes' 'If ye thinks he be ready to sail a beauty, ye better be willin’ to sink with her!'
  140. pushlist 'quotes' 'Real pirates play on UOG:Demise! Arr!'
  141. pushlist 'quotes' 'The Code is more like guidelines, really...'
  142. pushlist 'quotes' 'Work like a captain, play like a pirate!'
  143. pushlist 'quotes' 'Fetch me another Cabin Boy…This one be split!'
  144. pushlist 'quotes' 'Damnation seize my soul if I give you quarters, or take any from you!'
  145. pushlist 'quotes' 'Real pirates play on UOG:Demise! Arr!'
  146. pushlist 'quotes' 'Shivarrrrrr me timbers!'
  147. pushlist 'quotes' 'Under a black flag we sail and the sea shall be our empire'
  148. pushlist 'quotes' 'Keep calm and say ‘ARRRR’'
  149. pushlist 'quotes' 'How much does the pirate pay for an ear piercing? … A buccaneer!'
  150. pushlist 'quotes' 'Loot is first and wimmen second. Because if ye have the first ye’ll have the second!'
  151. pushlist 'quotes' 'If rum can’t fix it, you are not using enough rum!'
  152. pushlist 'quotes' 'Whats a pirates favorite fast food restaurant? Arrrrbys!'
  153. pushlist 'quotes' 'Land was created to provide a place for boats to visit'
  154. pushlist 'quotes' 'There is nothing like the smell of cannon fire in the morning!'
  155. pushlist 'quotes' 'Why are pirates better than every one else? They just Arhhhhhhhhh!'
  156. pushlist 'quotes' 'Ahoy! lets trouble the water!'
  157. pushlist 'quotes' 'May your anchor be tight, your cork be loose, your rum be spiced and your compass be true!'
  158. pushlist 'quotes' 'Be who you arrrr…!'
  159. pushlist 'quotes' 'Avast ye landlubbers! Ye can throw ye lunch in Davy Jones’ locker, but not yer homework!'
  160. pushlist 'quotes' 'May your blade always be wet, and powder dry!'
  161. pushlist 'quotes' 'It’s more fun to be a pirate than to join the navy'
  162. pushlist 'quotes' 'In politics and in trade, bruisers and pirates are of better promise than talkers and clerks'
  163. pushlist 'quotes' "Life's pretty good, and why wouldn’t it be? I'm a pirate, after all!"
  164. pushlist 'quotes' 'Real pirates play on UOG:Demise! Arr!'
  165. endif
  166. if not listexists 'quotehues'
  167. createlist 'quotehues'
  168. pushlist 'quotehues' 8
  169. pushlist 'quotehues' 13
  170. pushlist 'quotehues' 18
  171. pushlist 'quotehues' 23
  172. pushlist 'quotehues' 28
  173. pushlist 'quotehues' 33
  174. pushlist 'quotehues' 38
  175. pushlist 'quotehues' 43
  176. pushlist 'quotehues' 48
  177. pushlist 'quotehues' 53
  178. pushlist 'quotehues' 58
  179. endif
  180. //
  181. //
  182. // Poisoned? Cleanse by FIAH!
  183. if poisoned self
  184. cast 'cleanse by fire'
  185. pause 2000
  186. target self
  187. pause 2000
  188. endif
  189. //
  190. //
  191. //// Low health? Heal up!
  192. if hits < 80
  193. cast 'close wounds'
  194. pause 2000
  195. target! self
  196. pause 2000
  197. endif
  198. //
  199. //
  200. //// fishing
  201. @clearjournal
  202. useobject 'fishingpole'
  203. pause 1000
  204. targettilerelative 'self' 1 'false'
  205. pause 1000
  206. if @injournal "The fish don't seem to be biting here." "system"
  207. msg 'forward'
  208. pause 4000
  209. msg 'stop'
  210. @clearjournal
  211. endif
  212. pause 8000
  213. //
  214. //
  215. //// Boat stopped? Go a bit to the left!
  216. if @injournal "Ar, we've stopped sir." "system"
  217. @clearjournal
  218. msg 'left'
  219. pause 2000
  220. msg 'stop'
  221. endif
  222. //// Boat stopped again?.. Go right?
  223. if @injournal "Ar, we've stopped sir." "system"
  224. @clearjournal
  225. msg 'right'
  226. pause 2000
  227. msg 'stop'
  228. endif
  229. //
  230. //
  231. //// Boat anchored? Raise anchor!
  232. if @injournal "Ar, the anchor is down sir!" "system"
  233. msg 'raise anchor'
  234. @clearjournal
  235. endif
  236. //
  237. //
  238. //// Got fish? Chop em up!
  239. for 0 to 'fish'
  240. while @findtype 'fish[]' 'any' 'backpack'
  241. useobject dagger
  242. pause 1000
  243. target! found
  244. endwhile
  245. endfor
  246. //
  247. //
  248. //// Got specialfish? Eat em!
  249. for 0 to 'specialfish'
  250. while @findtype 'specialfish[]' 'any' 'backpack'
  251. useobject found
  252. pause 500
  253. endwhile
  254. endfor
  255. //
  256. //
  257. //// Overloaded? Drop off items at home!
  258. if weight > 300
  259. // or whitepearls > 10 - Godda prudect dem valuables
  260. // or maximum items in backpack
  261. cast 'sacred journey'
  262. pause 2000
  263. target! fishbook
  264. pause 500
  265. //fishsteaks
  266. movetype 0x97a 'backpack' 'lootbag'
  267. pause 500
  268. while @findtype 0xdca
  269. movetype 0xdca 'backpack' 'lootbag' //nets
  270. endwhile
  271. while @findtype 0x1079
  272. movetype 0x1079 'backpack' 'lootbag' //leather
  273. endwhile
  274. while @findtype 0x26b4
  275. movetype 0x26b4 'backpack' 'lootbag' //scales
  276. endwhile
  277. while @findtype 0x14ec
  278. movetype 0x14ec 'backpack' 'lootbag' //maps
  279. endwhile
  280. while @findtype 0xeed
  281. movetype 0xeed 'backpack' 'lootbag' //gold
  282. endwhile
  283. while @findtype 0x99f
  284. movetype 0x99f 'backpack' 'lootbag' //MiB
  285. endwhile
  286. while @findtype 0x3196
  287. movetype 0x3196 'backpack' 'lootbag' // Pearl
  288. endwhile
  289. for 0 to boots
  290. while @findtype 'boots[]'
  291. movetype 'boots[]' 'backpack' 'trashbarrel' // If any boots made it along, throw em in the trash
  292. endwhile
  293. endfor
  294. pause 500
  295. cast 'sacred journey'
  296. pause 2000
  297. target! shipkey
  298. pause 500
  299. endif
  300. //
  301. //
  302. //// Low on arrows? Go home and resupply!
  303. if @counttype 0xf3f 'any' 'backpack' < 50
  304. cast 'sacred journey'
  305. pause 2000
  306. target! fishbook
  307. pause 1000
  308. useobject lootbag
  309. pause 500
  310. movetype 0xf3f 'lootbag' 'backpack' 100
  311. pause 500
  312. cast 'sacred journey'
  313. pause 2000
  314. target! shipkey
  315. endif
  316. //
  317. //
  318. //// Seaserpent detected? Stop boat and kill! Short range! While(cure/heal)
  319. while @findtype 0x96 0 0 0 15 // Focus during fight
  320. attack! found
  321. msg 'Arr! Seaserpent!'
  322. //Keep heals up
  323. if hits < 70
  324. cast 'close wounds'
  325. pause 2000
  326. target! self
  327. pause 2000
  328. endif
  329. //Keep cures up
  330. if poisoned self
  331. cast 'cleanse by fire'
  332. pause 2000
  333. target! self
  334. pause 2000
  335. endif
  336. msg 'Die serpent!'
  337. endwhile
  338. //
  339. //
  340. //// Waterelemental detected? Stop boat and kill! Long range! While(cure/heal)
  341. // Update "type"
  342. while @findtype 0x96 0 0 0 15 // Focus during fight
  343. attack! found
  344. //Keep heals up
  345. if hits < 70
  346. cast 'close wounds'
  347. pause 2000
  348. target! self
  349. pause 2000
  350. endif
  351. //Keep cures up
  352. if poisoned self
  353. cast 'cleanse by fire'
  354. pause 2000
  355. target! self
  356. pause 2000
  357. endif
  358. msg 'Die serpent!'
  359. endwhile
  360. //
  361. //
  362. //// Sea serpent body detected? Go to it and skin + loot leather/nets/mib's
  363. //
  364. if @findtype '0x2006' 'any' 'ground' 'any' '15' //(finds corpse within 12 tiles)
  365. setalias 'Dead' 'found'
  366. //
  367. // If the boat is pointing West proceed, else use the secondary movementtable
  368. // if @findtype '0x3e50' 'any' 'ground' 'any' '10'?? Tillergraphic decides direction
  369. while not @inrange 'Dead' 2
  370. if @x 'Dead' > x 'self' and @y 'Dead' > y 'self'
  371. pause 700
  372. msg 'back one'
  373. pause 700
  374. msg 'left one'
  375. pause 700
  376. elseif @x 'Dead' < x 'self' and @y 'Dead' > y 'self'
  377. pause 700
  378. msg 'forward one'
  379. pause 700
  380. msg 'left one'
  381. pause 700
  382. elseif @x 'Dead' > x 'self' and @y 'Dead' < y 'self'
  383. pause 700
  384. msg 'back one'
  385. pause 700
  386. msg 'right one'
  387. pause 700
  388. elseif @x 'Dead' < x 'self' and @y 'Dead' < y 'self'
  389. pause 700
  390. msg 'forward one'
  391. pause 700
  392. msg 'right one'
  393. pause 700
  394. elseif @x 'Dead' > x 'self' and @y 'Dead' == y 'self'
  395. pause 700
  396. msg 'back one'
  397. pause 700
  398. elseif @x 'Dead' < x 'self' and @y 'Dead' == y 'self'
  399. pause 700
  400. msg 'forward one'
  401. pause 700
  402. elseif @x 'Dead' == x 'self' and @y 'Dead' > y 'self'
  403. pause 700
  404. msg 'left one'
  405. pause 700
  406. elseif @x 'Dead' == x 'self' and @y 'Dead' < y 'self'
  407. pause 700
  408. msg 'right one'
  409. pause 700
  410. endif
  411. endwhile
  412. endif
  413. // Is in lootingrange?
  414. if @inrange 'Dead' 2
  415. //
  416. //Skin 'er up!'
  417. //
  418. useobject dagger
  419. pause 1500
  420. target! Dead
  421. pause 500
  422. //
  423. //Loot 'er dry!'
  424. //
  425. useobject Dead
  426. pause 10000
  427. //// Lootscript - Does NOT work on UOG Demise
  428. // Leather
  429. //movetype 0x1079 'Dead' 'backpack'
  430. //pause 500
  431. // Scales
  432. //movetype 0x26b4 'Dead' 'backpack'
  433. //pause 500
  434. // Map
  435. //movetype 0x14ec 'Dead' 'backpack'
  436. //pause 500
  437. // Net
  438. //movetype 0xdca 'Dead' 'backpack'
  439. //pause 500
  440. // MiB
  441. //movetype 0x99f 'Dead' 'backpack'
  442. //pause 500
  443. // Gold
  444. //movetype 0xeed 'Dead' 'backpack'
  445. //pause 500
  446. ignoreobject Dead
  447. // Travel far enough forward so that the corpse don't mess up the continuation.
  448. msg 'forward'
  449. pause 8000
  450. msg 'stop'
  451. pause 500
  452. clearignorelist
  453. endif
  454. if list 'quotes' > 0
  455. pushlist 'quotes' 'quotes[0]
  456. pushlist 'quotehues' 'quotehues[0]'
  457. msg quotes[0] quotehues[0]
  458. @poplist 'quotes' 'front'
  459. @poplist 'quotehues' 'front'
  460. endif
  461.  
  462.  
  463.  
  464.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement