Advertisement
Guest User

Untitled

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