Facebook
From aadada, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 143
  1. ExitApp=F12
  2.  
  3.  
  4. ;____________________
  5. Hotkey,%StartAfk%,Start
  6. Hotkey,%ExitApp%,Exit
  7. Return
  8. ;____________________
  9.  
  10. Start:
  11. WinMove, Minecraft, , , , 1280, 720
  12.         loop{
  13.                 Command("repair")
  14.                 Wait(50)
  15.                 Command("freeturbo")
  16.         Command("feed")
  17.                 Wait(30)
  18.                 Command("sklep")
  19.                 Wait(50)
  20.                 Click  532,288  ;
  21.                 SendInput {LButton}
  22.                 Wait(500)
  23.                 Click  640,342  ;
  24.                 Wait(20)
  25.                 SendInput {LButton}
  26.                 Wait(20)
  27.                 SendInput {Esc}
  28.                 Wait(500)
  29.                 SendInput {LButton}
  30.                                 Dig(7)                                  ;Ilosc Okrążeń na stoniarce
  31.                        
  32.                                
  33.                                                        
  34.         }
  35. Return
  36.  
  37. ;____________________
  38. Exit:  
  39. ExitApp
  40. Return
  41. ;____________________
  42.  
  43.  
  44. Command(string){
  45.         SendInput {T}
  46.         Wait(500)
  47.         Send /%string%
  48.         Wait(300)
  49.         SendInput {Enter}
  50.         Wait(300)
  51. }
  52. Wpisz(string){
  53.         SendInput {T}
  54.         Wait(500)
  55.         Send %string%
  56.         Wait(300)
  57.         SendInput {Enter}
  58.         Wait(300)
  59. }
  60. reJoin(){
  61.         SendInput {T}
  62.         Wait(100)
  63.         setMPos(2500, 500)
  64.         SendInput {LButton}
  65.         Wait(500)
  66.         SendInput {Enter}
  67.         Wait(200)
  68. }
  69.  
  70. Dig(int){
  71.         SendInput {LButton down}
  72.         Move(int)
  73.         SendInput {LButton up}
  74. }
  75.  
  76. Move(int){
  77.         loop, %int%{
  78.                 Press("W", 10)
  79.                 Press("A", 2)
  80.                 Press("S", 10)
  81.                 Press("D", 2)
  82.         }
  83. }
  84.  
  85. InventoryChecking(){
  86. x := 503
  87. y := 385
  88. l := 0
  89. i := 0
  90.         SendInput {e}
  91.         loop, 27{  ;TODO liczba paskow
  92.                 if(i = 9){
  93.                         i := 0
  94.                         l++
  95.                 }
  96.                 Wait(200)
  97.                 setMPos(x +36*i, y + 35*l)
  98.                 DropGold()
  99.                 i++
  100.         }
  101.         SendInput {e}
  102.         Wait(100)
  103. }
  104.  
  105.  
  106. dropGold(){
  107. goldcolor := 0x808080
  108. color:= getColor()
  109. if(color = goldcolor){
  110.                 sendInput, {LCtrl down}{Q}
  111.                 Wait(100)
  112.                 SendInput {LCtrl up}
  113.         }
  114. }
  115. getColor(){
  116.         MouseGetPos, X,Y
  117.         PixelGetColor, color, %X%, %Y%
  118.         return color
  119. }
  120.  
  121. Press(charkey, dist){
  122.         t := getTimeFromDis(dist)
  123.         SendInput {%charkey% down}
  124.         Wait(t)
  125.         SendInput {%charkey% up}
  126. }
  127.  
  128.  
  129. getTimeFromDis(s){
  130. t:=0
  131. t:= s*235
  132. return t
  133. }
  134.  
  135. setMPos(x, y){
  136.         MouseMove,x,y
  137. }
  138.  
  139.  
  140. Wait(s){
  141.         sleep, s
  142. }