Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. set %pick NPF
  2. set #sysmsgcol 1170
  3. set %counter 1
  4. set %food HND ; fish steaks
  5. set %eat 1 ; turns eating on
  6. set #SCNT 0
  7. set %start 29
  8. set %end 55
  9. set %side 2800
  10. set %badores LNVPSTE
  11. set %goodores LNVPSTE
  12. loop:
  13. finditem %pick C_ , #BACKPACKID
  14. if #findkind <> -1
  15. {
  16. set #LOBJECTID #findid
  17. }
  18. else
  19. {
  20. event sysmessage Can't find pick
  21. halt
  22. }
  23. ; -------- Target Relative --------------
  24. repeat
  25. tile Init
  26. set #LTARGETX ( #RANDOM % 4 ) - 2 + #CHARPOSX
  27. set #LTARGETY ( #RANDOM % 4 ) - 2 + #CHARPOSY
  28. set #LTARGETZ 17
  29. tile Cnt #LTARGETX #LTARGETY 1
  30. tile Get #LTARGETX #LTARGETY #TILECNT 1
  31. until #TILENAME = rock
  32. set #LTARGETZ #TILEZ
  33. set #LTARGETTILE #TILETYPE
  34. set #LTARGETKIND 3
  35. target:
  36. event macro 17 0
  37. target
  38. event macro 22 0
  39.  
  40. until You_start_mining in #sysmsg
  41. ; --------- End Target Relative ---------
  42. a:
  43. repeat
  44. until ( There_is_no_ore_here_to_mine. in #sysmsg ) || ( There_is_no_more_ore_to_mine_here. in #sysmsg ) || ( Finished_Saving_World_Status in #sysmsg )
  45.  
  46. if ( Finished_Saving_World_Status in #sysmsg )
  47. {
  48. goto a
  49.  
  50. }
  51.  
  52. if ( There_is_no_ore_here_to_mine. in #sysmsg ) || ( There_is_no_more_ore_to_mine_here in #sysmsg )
  53. {
  54. gosub ores
  55. if %eat = 1
  56. {
  57. if #SCNT >= 3600
  58. {
  59. set #SCNT 0
  60. finditem %food G_3
  61.  
  62. if #findkind <> -1
  63. {
  64. set #LOBJECTID #findid
  65. event macro 17 0
  66. }
  67. }
  68. }
  69.  
  70. set %counter ( %counter + 1 )
  71. if %counter < 7
  72. {
  73. event sysmessage Attempt: %counter at this location
  74. goto loop
  75. }
  76. else
  77. {
  78. set %counter 1
  79.  
  80. set %current #charposy
  81. if %current >= %end
  82. {
  83. msg raise anchor$
  84. msg back$
  85. repeat
  86. until #charposy <= %start
  87.  
  88. msg right$
  89. repeat
  90. until #charposx >= %side
  91. msg drop anchor$
  92. goto mine
  93. }
  94.  
  95. msg raise anchor$
  96. wait 10
  97. msg forward$
  98.  
  99. repeat
  100. until #charposy <> %current
  101.  
  102. msg right$
  103. repeat
  104. until #charposx = %side
  105. msg drop anchor$
  106. }
  107. }
  108. goto loop
  109.  
  110. sub ores
  111. ores:
  112. finditem DWJ C_ , #BACKPACKID
  113. if #FINDKIND <> -1
  114. {
  115. if #FINDCOL <> 16 || #FINDCOL <> 80 || #FINDCOL <> 55 || #FINDCOL <> 35
  116. {
  117. exevent drag #FINDID #FINDSTACK
  118. wait 5
  119. exevent dropc %Goodores
  120. wait 10
  121. goto ores
  122. }
  123. exevent drag #FINDID #FINDSTACK
  124. wait 5
  125. exevent dropc %badores
  126. wait 10
  127. goto ores
  128. }
  129. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement