Advertisement
Maespark

Fishing From Boat

Feb 12th, 2018
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. ////******************************************************////
  2. //Title: Fishing From a Boat
  3. //Author: Maelune
  4. //Purpose: Automatically fish from a boat! Will attempt to
  5. // move the boat forward several spaces if you
  6. // run out of fish in your immediate area.
  7. //
  8. //Requirements: A fishing pole (avoid having one with charges)
  9. // A dagger (Like the one you start with)
  10. // Optional:Full LRC set
  11. //
  12. //Instructions: Put a check in the "Loop" box in steam.
  13. // Run the macro!
  14. //
  15. //Notes: You may run into sea serpents, water elementals, and
  16. // krakens. Be prepared and attentive!.
  17. // You will need to manually turn your boat if you run
  18. // ashore!
  19. // If you have a spellbook in your pocket, it will attempt
  20. // to kill nearby critters that might obstruct your
  21. // boat.
  22. ////******************************************************////
  23. //Uncomment next if statement for trash removal
  24. //You must set up an organizer for this to work. Be careful not to allow
  25. //it to trash anything important. Organizer doesn't always descriminate
  26. //between awesome boots and trash boots.
  27. //if counttype 0x170f 0 'backpack' >= 1
  28. //organizer 'Trash'
  29. //while organizing
  30. //endwhile
  31. //waitforcontext 0x40c87654 0 15000
  32. //endif
  33. //Chops up any fishies in your bag using a dagger
  34. @getenemy 'murderer' 'enemy' 'criminal' 'gray' 'closest'
  35. if @findtype 0xefa 'any' 'backpack' and @findobject 'enemy'
  36. while @findobject 'enemy'
  37. cast 'energy bolt'
  38. waitfortarget 5000
  39. target! 'enemy'
  40. pause 200
  41. endwhile
  42. msg '[grab'
  43. endif
  44. if @findtype 0xf52 'any' 'backpack'
  45. while counttype 0x9cc 'any' 'backpack' >= 1
  46. usetype 0xf52 'any'
  47. waitfortarget 500
  48. targettype 0x9cc
  49. pause 500
  50. endwhile
  51. while counttype 0x9cf 'any' 'backpack' >= 1
  52. usetype 0xf52 'any'
  53. waitfortarget 500
  54. targettype 0x9cf
  55. pause 500
  56. endwhile
  57. while counttype 0x9ce 'any' 'backpack' >= 1
  58. usetype 0xf52 'any'
  59. waitfortarget 500
  60. targettype 0x9ce
  61. pause 500
  62. endwhile
  63. while counttype 0x9cd 'any' 'backpack' >= 1
  64. usetype 0xf52 'any'
  65. waitfortarget 500
  66. targettype 0x9cd
  67. pause 500
  68. endwhile
  69. endif
  70. //Begin using fishing pole
  71. usetype 0xdc0 'any'
  72. waitfortarget 500
  73. if direction == 0
  74. targettileoffset 0 -1 -3
  75. elseif direction == 1
  76. targettileoffset 1 -1 -3
  77. elseif direction == 2
  78. targettileoffset 1 0 -3
  79. elseif direction == 3
  80. targettileoffset 1 1 -3
  81. elseif direction == 4
  82. targettileoffset 0 1 -3
  83. elseif direction == 5
  84. targettileoffset -1 1 -3
  85. elseif direction == 6
  86. targettileoffset -1 0 -3
  87. elseif direction == 7
  88. targettileoffset -1 -1 -3
  89. endif
  90. pause 9100
  91. if @injournal 'seem to be biting' 'system'
  92. msg 'forward one'
  93. pause 800
  94. msg 'forward one'
  95. pause 800
  96. msg 'forward one'
  97. pause 800
  98. msg 'forward one'
  99. pause 800
  100. msg 'forward one'
  101. pause 800
  102. msg 'forward one'
  103. pause 800
  104. clearjournal
  105. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement