Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StartAfk=F12
- ExitApp=F8
- Hotkey,%StartAfk%,Start
- Hotkey,%ExitApp%,Exit
- Return
- Start:
- loop{
- Command("/repair all")
- Command("/sellall")
- Command("/heal")
- Command("/freeturbo")
- Command("Kopanko by << YT Ytaru >> << link.do/636WC >>")
- Dig(5)
- }
- Return
- Exit:
- ExitApp
- Return
- Command(string){
- SendInput {t}
- Wait(1125)
- Send %string%
- Wait(1125)
- SendInput {Enter}
- Wait(500)
- }
- reJoin(){
- SendInput {T}
- Wait(1500)
- setMPos(500, 420)
- SendInput {LButton}
- Wait(1125)
- SendInput {Enter}
- Wait(500)
- Wait(1125)
- }
- Dig(int){
- SendInput {LButton down}
- Move(int)
- SendInput {LButton up}
- }
- Move(int){
- loop, %int%{
- Press("W", 10)
- Press("D", 2)
- Press("S", 10)
- Press("A", 2)
- }
- }
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement