Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. ;___________________
  2. ; [Opcje]
  3. ;___________________
  4. StartAfk=F8
  5. ExitApp=F9
  6.  
  7.  
  8. ;____________________
  9. Hotkey,%StartAfk%,Start
  10. Hotkey,%ExitApp%,Exit
  11. Return
  12. ;____________________
  13.  
  14. Start:
  15. WinMove, Minecraft, , , , 1280, 720
  16. loop{
  17. reJoin() ;Wbijanie na serwer
  18. Command("skyblock") ;\
  19. Command("skyblock") ; Komendy
  20. Command("skyblock") ; Komendy
  21. Command("skyblock") ; Komendy
  22. Command("repair") ;/
  23. InventoryChecking() ;Sprawdza Eq
  24. Eat(2) ;Ilosc zjedzonego mięska
  25. Dig(70) ;Ilosc Okrążeń na stoniarce
  26. }
  27. Return
  28.  
  29. ;____________________
  30. Exit:
  31. ExitApp
  32. Return
  33. ;____________________
  34.  
  35.  
  36. Command(string){
  37. SendInput {T}
  38. Wait(500)
  39. Send /%string%
  40. Wait(1000)
  41. SendInput {Enter}
  42. Wait(200)
  43. }
  44.  
  45. reJoin(){
  46. SendInput {T}
  47. Wait(100)
  48. setMPos(500, 420)
  49. SendInput {LButton}
  50. Wait(500)
  51. SendInput {Enter}
  52. Wait(200)
  53. }
  54. Eat(int){
  55. SendInput {2}
  56. loop, %int%{
  57. SendInput {RButton down}
  58. Wait(1600)
  59. SendInput {RButton up}
  60. Wait(200)
  61. }
  62. SendInput {3}
  63. }
  64.  
  65. Dig(int){
  66. SendInput {LButton down}
  67. Move(int)
  68. SendInput {LButton up}
  69. }
  70.  
  71. Move(int){
  72. loop, %int%{
  73. Press("D", 13)
  74. Press("A", 13)
  75. }
  76. }
  77.  
  78. InventoryChecking(){
  79. x := 503
  80. y := 385
  81. l := 0
  82. i := 0
  83. SendInput {e}
  84. loop, 27{ ;TODO liczba paskow
  85. if(i = 9){
  86. i := 0
  87. l++
  88. }
  89. Wait(200)
  90. setMPos(x +36*i, y + 35*l)
  91. DropGold()
  92. i++
  93. }
  94. SendInput {e}
  95. Wait(100)
  96. }
  97.  
  98. dropGold(){
  99. goldcolor := 0x808080
  100. color:= getColor()
  101. if(color = goldcolor){
  102. sendInput, {LCtrl down}{Q}
  103. Wait(100)
  104. SendInput {LCtrl up}
  105. }
  106. }
  107. getColor(){
  108. MouseGetPos, X,Y
  109. PixelGetColor, color, %X%, %Y%
  110. return color
  111. }
  112.  
  113. Press(charkey, dist){
  114. t := getTimeFromDis(dist)
  115. SendInput {%charkey% down}
  116. Wait(t)
  117. SendInput {%charkey% up}
  118. }
  119.  
  120.  
  121. getTimeFromDis(s){
  122. t:=0
  123. t:= s*235
  124. return t
  125. }
  126.  
  127. setMPos(x, y){
  128. MouseMove,x,y
  129. }
  130.  
  131.  
  132. Wait(s){
  133. sleep, s
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement