;___________________
; [Opcje]
;___________________
StartAfk=F8
ExitApp=F12
;____________________
Hotkey,%StartAfk%,Start
Hotkey,%ExitApp%,Exit
Return
;____________________
Start:
WinMove, Minecraft, , , , 1280, 720
loop{
Command("repair")
Wait(50)
Command("freeturbo")
Wait(30)
Command("feed")
Wait(30)
Command("sellall")
SendInput {LButton}
Dig(8) ;Ilosc Okrążeń na stoniarce
}
Return
;____________________
Exit:
ExitApp
Return
;____________________
Command(string){
SendInput {T}
Wait(500)
Send /%string%
Wait(300)
SendInput {Enter}
Wait(300)
}
Wpisz(string){
SendInput {T}
Wait(500)
Send %string%
Wait(300)
SendInput {Enter}
Wait(300)
}
reJoin(){
SendInput {T}
Wait(100)
setMPos(2500, 500)
SendInput {LButton}
Wait(500)
SendInput {Enter}
Wait(200)
}
Dig(int){
SendInput {LButton down}
Move(int)
SendInput {LButton up}
}
Move(int){
loop, %int%{
Press("W", 10)
Press("A", 2)
Press("S", 10)
Press("D", 2)
}
}
InventoryChecking(){
x := 503
y := 385
l := 0
i := 0
SendInput {e}
loop, 27{ ;TODO liczba paskow
if(i = 9){
i := 0
l++
}
Wait(200)
setMPos(x +36*i, y + 35*l)
DropGold()
i++
}
SendInput {e}
Wait(100)
}
dropGold(){
goldcolor := 0x808080
color:= getColor()
if(color = goldcolor){
sendInput, {LCtrl down}{Q}
Wait(100)
SendInput {LCtrl up}
}
}
getColor(){
MouseGetPos, X,Y
PixelGetColor, color, %X%, %Y%
return color
}
Press(charkey, dist){
t := getTimeFromDis(dist)
SendInput {%charkey% down}
Wait(t)
SendInput {%charkey% up}
}
getTimeFromDis(s){
t:=0
t:= s*235
return t
}
setMPos(x, y){
MouseMove,x,y
}
Wait(s){
sleep, s
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}