;___________________
; [Opcje]
;___________________
StartAfk=F8
ExitApp=F9
;____________________
Hotkey,%StartAfk%,Start
Hotkey,%ExitApp%,Exit
Return
;____________________
Start:
WinMove, Minecraft, , , , 1280, 720
loop{
reJoin() ;Wbijanie na serwer
Command("cx") ;\
Command("cx") ; Komendy
Command("naprawkilof") ;/
InventoryChecking() ;Sprawdza Eq
Eat(2) ;Ilosc zjedzonego mięska
Dig(10) ;Ilosc Okrążeń na stoniarce
}
Return
;____________________
Exit:
ExitApp
Return
;____________________
Command(string){
SendInput {T}
Wait(500)
Send /%string%
Wait(1000)
SendInput {Enter}
Wait(200)
}
reJoin(){
SendInput {T}
Wait(100)
setMPos(500, 420)
SendInput {LButton}
Wait(500)
SendInput {Enter}
Wait(200)
}
Eat(int){
SendInput {2}
loop, %int%{
SendInput {RButton down}
Wait(1600)
SendInput {RButton up}
Wait(200)
}
SendInput {1}
}
Dig(int){
SendInput {LButton down}
Move(int)
SendInput {LButton up}
}
Move(int){
loop, %int%{
Press("D", 10)
Press("S", 2)
Press("A", 10)
Press("W", 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}{G}
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"}