Advertisement
najwalaylah

Mortal Online Fishing Macro v1.2 by Energyo

Oct 31st, 2013
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. //Mortal Online Fishing Macro v1.2 by Energyo
  2. //
  3. // Works through a 1280x1024 Mortal Online window. Be sure to put the macro resolution 1280x1024 as well
  4. // by clicking Macro on the top bar and going to Set Resolution > 1280x1024.
  5. // When this loop runs it sets the active window to the Mortal Online client.
  6. // What it looks for is the fish tug and the fish pull. Fish caught is no longer important in this process.
  7. // What is important is that the Mortal Online window remains in its default position and the UI is in its default position.
  8. // Errors that may happen :
  9. // 1. It is not recognizing the Tugs. Fix : The issue here is the location of the Chat Box is different than what
  10. // is being searched. You may need to recreate the object. This is done very easily be going to the Commands and Macros
  11. // Tool Box and going to Object Commands. While at Object Commands DOUBLE CLICK Object .. End.
  12. // While fishing wait for the tug and press PrtSc (Print Screen), this will save your screen to the clipboard.
  13. // After you do that click Paste in the Object .. End. Name the object FishTug and then click where it says tugged on the img.
  14. // After having done this you will have 2 coordinates. Be sure to copy it or remember it. Click done. After it is created go ahead
  15. // and delete the old FishTug Object which can be found below. Go to the first conditional statement (IsObject FishTug at x, x).
  16. // Modify those 2 coordinates to the new ones you had just copied or remembered. This should solve that issue. You will need to do the
  17. // same thing for fish pull. It's a quick and easy process. After all is done be sure to go to Editor > Prefrences > Global Hotkeys
  18. // and set Start/Pause and Stop hot keys. I use F2 to Start/Pause and F3 to Stop. That is all...
  19.  
  20. SetActiveWindow Mortal Online
  21.  
  22. Object FishTug
  23. 138=0,2
  24. 57=2,0|183=2,2|51=2,4|59=2,6|210=2,8
  25. 78=4,2|54=4,8
  26. 210=6,2|206=6,4|210=6,6|160=6,8
  27. 127=8,8
  28. 207=10,2|204=10,4|204=10,6|204=10,8
  29. 74=12,10
  30. 168=14,2|85=14,4|142=14,6|226=14,8
  31. 178=16,2|107=16,6|224=16,8
  32. 149=18,2|91=18,8|149=18,10
  33. 79=20,2|210=20,4|96=20,6|178=20,8|174=20,10
  34. End
  35. Object FishPull
  36. 105=0,2
  37. 96=2,2|70=2,4|80=2,6|131=2,8|76=2,10
  38. 201=4,2|128=4,8
  39. 188=6,4|151=6,6
  40. 148=8,2|57=8,4|58=8,6
  41. 191=10,8
  42. 154=12,2|62=12,4|64=12,6|96=12,8
  43. 93=14,8
  44. 99=16,0|89=16,2|89=16,4|89=16,6|171=16,8
  45. 70=18,8
  46. 156=20,0|150=20,2|150=20,4|150=20,6|196=20,8
  47. End
  48.  
  49. Object FishCaught
  50. 97=0,2|106=0,6
  51. 61=2,2
  52. 64=4,6
  53. 56=6,2|113=6,4
  54. 126=8,2|169=8,4|135=8,6
  55. 182=12,2|175=12,4|166=12,6
  56. 184=16,2|179=16,4|210=16,6
  57. 203=20,2|208=20,4|158=20,6|140=20,8|167=20,10
  58. 126=22,10
  59. 146=24,2|96=24,4|203=24,8|99=24,10
  60. 52=28,0|140=28,2|51=28,4|54=28,6
  61. 82=30,2
  62. End
  63.  
  64. While 1 = 1
  65. Delay 500
  66. IsObject FishTug at 783, 1154
  67. // Do these commands if true
  68. LeftClick //If Tug happens left click
  69. Object FishTug
  70. 85=0,2|156=0,4
  71. 90=2,0|177=2,2|176=2,4
  72. 141=4,0|235=4,2
  73. 204=6,2|128=6,4
  74. 53=8,0
  75. 196=10,2
  76. 185=12,2
  77. 212=16,0|128=16,2
  78. 154=18,2
  79. 198=20,0|196=20,2
  80. End
  81.  
  82. Delay 700 // Try again in .7 secs
  83. IsObject FishPull at 445, 943 //if after the tug there is a pull
  84. LeftMouseDown // Left mouse down to reel in with 35 sec timer to ensure the catch
  85. Delay 35000
  86. // IsObject FishCaught at 405, 960 (NOT NEEDED ANYMORE COMMENTED OUT)
  87. LeftMouseUp //Left mouse released, wait 1 sec to recast. Holds for 5 secs to get a full recast
  88. Delay 1000
  89. LeftMouseDown
  90. Delay 5000
  91. LeftMouseUp //releases left mouse and loops around to beginning
  92.  
  93. // Else (Part of the unneeded that was commented out as with the next 5 lines)
  94. // Continue
  95. // Do these commands if false
  96.  
  97. // End
  98.  
  99. Else //Simply continues through the loop if condition not met.
  100. Continue
  101. End
  102.  
  103. Else //Same as above, continue through loop if conditions not met.
  104. ReloadDSWindow
  105. Continue
  106. End
  107. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement