Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. StartAfk=F12
  2. ExitApp=F8
  3. Hotkey,%StartAfk%,Start
  4. Hotkey,%ExitApp%,Exit
  5. Return
  6. Start:
  7. loop{
  8. Command("/repair all")
  9. Command("/sellall")
  10. Command("/heal")
  11. Command("/freeturbo")
  12. Command("Kopanko by << YT Ytaru >> << link.do/636WC >>")
  13. Dig(5)
  14. }
  15. Return
  16. Exit:
  17. ExitApp
  18. Return
  19. Command(string){
  20. SendInput {t}
  21. Wait(1125)
  22. Send %string%
  23. Wait(1125)
  24. SendInput {Enter}
  25. Wait(500)
  26. }
  27. reJoin(){
  28. SendInput {T}
  29. Wait(1500)
  30. setMPos(500, 420)
  31. SendInput {LButton}
  32. Wait(1125)
  33. SendInput {Enter}
  34. Wait(500)
  35. Wait(1125)
  36. }
  37. Dig(int){
  38. SendInput {LButton down}
  39. Move(int)
  40. SendInput {LButton up}
  41. }
  42. Move(int){
  43. loop, %int%{
  44. Press("W", 10)
  45. Press("D", 2)
  46. Press("S", 10)
  47. Press("A", 2)
  48. }
  49. }
  50. getColor(){
  51. MouseGetPos, X,Y
  52. PixelGetColor, color, %X%, %Y%
  53. return color
  54. }
  55. Press(charkey, dist){
  56. t := getTimeFromDis(dist)
  57. SendInput {%charkey% down}
  58. Wait(t)
  59. SendInput {%charkey% up}
  60. }
  61. getTimeFromDis(s){
  62. t:=0
  63. t:= s*235
  64. return t
  65. }
  66. setMPos(x, y){
  67. MouseMove,x,y
  68. }
  69. Wait(s){
  70. sleep, s
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement