Advertisement
Guest User

Untitled

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