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