Advertisement
Guest User

Untitled

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