Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- CoordMode, Tooltip
- CoordMode, Pixel
- CoordMode, Mouse
- F5::exitapp
- Restart:
- F2:: ;AutoSetup
- {
- opstart = 1
- i = 0
- fejl = 0
- loop1 = 0
- MASER_START = 1
- while MASER_START = 1{
- while opstart = 1 and fejl = 0{
- Run, C:\ZG farm wow\WoW1.exe
- WinWaitActive, World of Warcraft
- WinSetTitle, WoW1
- Run, C:\ZG farm wow\WoW2.exe
- WinWaitActive, World of Warcraft
- WinSetTitle, WoW2
- Run, C:\ZG farm wow\WoW3.exe
- WinWaitActive, World of Warcraft
- WinSetTitle, WoW3
- fejl = 0
- i = 0
- login3 = 1
- opstart = 0
- loop1 = 0
- login1 = 1
- login2 = 1
- venter = 0
- inviterOFF = 0
- }
- Login_Farm:
- while login3 = 1{
- if(i > 3){
- login3 = 0
- fejl = 1
- }else{
- Sleep, 1000
- WinActivate WoW3
- Sleep, 100
- Send, xdee ;account_name
- Sleep, 200
- Send, {Tab}
- Sleep, 200
- Send, 123random ;password
- Sleep, 200
- Send, {Enter}
- Sleep, 4000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
- If(ErrorLevel == 0){
- i++
- sleep, 200
- Send, {Escape}
- Sleep, 200
- Send, {Tab}
- goto Login_Farm
- }
- else{
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
- If(ErrorLevel == 0){
- sleep, 500
- Send, {Enter}
- sleep, 5000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\grupperscreen.bmp
- If(ErrorLevel == 0){
- i = 0
- Send, {1}
- sleep, 1000
- login3 = 0
- loop1 = 1
- }
- }
- else{
- i++
- sleep, 200
- Send, {Escape}
- Sleep, 200
- Send, {Tab}
- goto Login_Farm
- }
- }
- }
- }
- if (loop1 = 1 and fejl = 0){
- WinActivate WoW2
- Sleep, 300
- Send, {Enter}
- Sleep, 300
- WinActivate WoW1
- Sleep, 300
- Send, {Enter}
- Farm:
- while loop1 = 1 and fejl = 0{
- if WinActive("WoW1"){
- sleep, 200
- WinActivate WoW2
- Fejl1:
- while login2 = 1{
- if(i > 3){
- login2 = 0
- fejl = 1
- }
- else{
- Sleep, 200
- Send, {Enter}
- Sleep, 200
- Send, mikkelcom ;account_name
- Sleep, 200
- Send, {Tab}
- Sleep, 200
- Send, xd123 ;password
- Sleep, 200
- Send, {Enter}
- Sleep, 2000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
- if (ErrorLevel == 0){
- i++
- sleep, 50
- send, {Escape}
- sleep, 10
- send, {Tab}
- sleep, 10
- send, {Enter}
- goto Fejl1
- }
- else{
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
- if (ErrorLevel == 0){
- sleep, 20
- send, {Enter}
- sleep, 1000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
- while (ErrorLevel != 0){
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
- sleep, 50
- venter++
- if(venter > 300 ){
- goto GENSTART
- }
- }
- venter = 0
- sleep, 100
- send, {2}
- sleep, 500
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\inviterON
- If(ErrorLevel != 0){
- sleep, 50
- inviterOFF++
- }
- If (inviterOFF > 300){
- goto GENSTART
- }
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
- While(ErrorLevel == 0){
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
- sleep, 1000
- venter++
- if(venter++ > 600){
- goto GENSTART
- }
- }
- sleep, 50
- send, d
- sleep, 50
- send, f
- goto Farm
- }
- else{
- i++
- sleep, 50
- send, {Escape}
- sleep, 10
- send, {Tab}
- sleep, 10
- send, {Enter}
- goto Fejl1
- }
- }
- }
- }
- ; LOGIN 1
- }else{
- Fejl2:
- WinActivate WoW1
- while login1 = 1{
- if(i > 3){
- login1 = 0
- fejl = 1
- }
- else{
- Sleep, 200
- Send, {Enter}
- Sleep, 200
- Send, mikkelcom ;account_name
- Sleep, 200
- Send, {Tab}
- Sleep, 200
- Send, xd123 ;password
- Sleep, 200
- Send, {Enter}
- Sleep, 2000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
- if (ErrorLevel == 0){
- i++
- sleep, 50
- send, {Escape}
- sleep, 10
- send, {Tab}
- sleep, 10
- send, {Enter}
- goto Fejl2
- }
- else{
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
- if (ErrorLevel == 0){
- sleep, 20
- send, {Enter}
- sleep, 1000
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
- while (ErrorLevel != 0){
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
- sleep, 50
- venter++
- if(venter > 300 ){
- goto GENSTART
- }
- }
- venter = 0
- sleep, 100
- send, {2}
- sleep, 500
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\inviterON
- If(ErrorLevel != 0){
- sleep, 50
- inviterOFF++
- }
- If (inviterOFF > 300){
- goto GENSTART
- }
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
- While(ErrorLevel == 0){
- ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
- sleep, 1000
- venter++
- if(venter++ > 600){
- goto GENSTART
- }
- }
- sleep, 50
- send, {d}
- sleep, 50
- send, {f}
- goto Farm
- }
- else{
- i++
- sleep, 50
- send, {Escape}
- sleep, 10
- send, {Tab}
- sleep, 10
- send, {Enter}
- goto Fejl2
- }
- }
- }
- }
- }
- }
- }
- while fejl = 1 and opstart = 0{
- Sleep, 1000
- WinClose WoW1
- Sleep, 1000
- WinClose WoW2
- Sleep, 1000
- WinClose WoW3
- opstart = 1
- fejl = 0
- }
- RandomSleep(min, max){
- Random, rand, min, max
- Sleep rand
- }
- GENSTART:
- Sleep, 1000
- WinClose WoW1
- Sleep, 1000
- WinClose WoW2
- Sleep, 1000
- WinClose WoW3
- opstart = 1
- fejl = 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement