Advertisement
Guest User

Untitled

a guest
Mar 30th, 2019
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. //requires osbuddy color settings on second notch + windowed mode
  2.  
  3. CheckInventory28thSlot(){
  4.  
  5. PixelSearch, Q1, Q2, 654, 466, 675, 484, 0x2F190F, 1, RGB Fast
  6. if (ErrorLevel = 0){ ;Found in 27th Slot
  7. ItemDropper()
  8. GoTo, CheckOre1
  9. }else{
  10. PixelSearch, X1, Y1, 696, 466, 719, 485, 0x2F190F, 1, RGB Fast
  11. if (ErrorLevel = 0){
  12. ItemDropper()
  13. GoTo, CheckOre1
  14. }else{
  15. GoTo, CheckOre1
  16. }
  17.  
  18. }
  19.  
  20.  
  21. }
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. CheckOre1:
  29.  
  30. CheckInventory28thSlot()
  31.  
  32. PixelSearch, X2, Y2, 246, 162, 268, 178, 0x402217, 1, RGB Fast
  33. if (ErrorLevel = 1){
  34. GoTo, CheckOre2
  35. }else{
  36. Random, Var1, 246, 268
  37. Random, Var2, 162, 178
  38. MouseMove, %Var1%, %Var2%
  39. sleep 50
  40. click left
  41.  
  42. looping := true
  43. while(looping = true){
  44. PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
  45. if(ErrorLevel = 0){
  46. looping := false
  47. }else{
  48. sleep 100
  49. }
  50. }
  51.  
  52. }
  53.  
  54.  
  55.  
  56. CheckOre2:
  57. CheckInventory28thSlot()
  58. sleep 100
  59.  
  60. PixelSearch, X3, X4, 246, 222, 272, 242, 0x22110C, 1, RGB Fast
  61. if (ErrorLevel = 1){
  62. GoTo, CheckOre1
  63. }else{
  64. Random, Var3, 246, 272
  65. Random, Var4, 222, 242
  66. MouseMove, %Var3%, %Var4%
  67. sleep 50
  68. click left
  69.  
  70. looping := true
  71. while(looping = true){
  72. PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
  73. if(ErrorLevel = 0){
  74. looping := false
  75. }else{
  76. sleep 100
  77. }
  78. }
  79.  
  80. }
  81.  
  82.  
  83. CheckOre3:
  84. CheckInventory28thSlot()
  85. sleep 100
  86.  
  87. PixelSearch, X7, X8, 246, 222, 272, 242, 0x321411, 1, RGB Fast
  88. if (ErrorLevel = 1){
  89. GoTo, CheckOre1
  90. }else{
  91. Random, Var5, 246, 272
  92. Random, Var6, 222, 242
  93. MouseMove, %Var5%, %Var6%
  94. sleep 50
  95. click left
  96.  
  97. looping := true
  98. while(looping = true){
  99. PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
  100. if(ErrorLevel = 0){
  101. looping := false
  102. }else{
  103. sleep 100
  104. }
  105. }
  106.  
  107. }
  108.  
  109.  
  110.  
  111. GoTo, CheckOre1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement