Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[LP][LF][DD]Clash of Clans Farming Bot Cracking and Coding
I'm seeing that people are having a lot of problems on Windows 8 so I figured I'd share my code. Wrote it using coordinates, so it's completely adjustable for your dimensions/spec.
I run 1920x1080 / Windows 8.

Anyways, it's a pretty raw piece of code, but it gets the job done.
Code:
HotKeySet ("{ESC}", "Terminate")
Opt ("MouseCoordMode", 0)

Func Terminate()
  Exit
EndFunc   ;==>Terminate

$var = 0
While $var <> 1

;Starts the LF program
ShellExecute(@ProgramFilesDir & "\LFROBOT\xiaohua.exe")

;Wait for it to load (adjust for slower computers)
Sleep (3000)

;Click on the try button
MouseMove (485, 75, 0)
MouseClick ("left")

;Click on the confirm button
Sleep (2000)
MouseMove (120, 115, 0)
MouseClick ("left")

;Click on the start button
Sleep (2000)
MouseMove (480, 330, 0)
MouseClick ("left")

;Wait 55 minutes before closing and restarting again
Sleep(3300000)

;Close Program
MouseMove (1260, 330, 0)
MouseClick ("left")

Sleep (1000)

;confirm closing
Send("{ENTER}")

WEnd

Just hit f5 to start it. If you want to try running it and finding out your own coordinates, here is a script to find coordinates:
Code:
HotKeySet ("{ESC}", "Terminate")
Opt ("MouseCoordMode", 0)

While 1
  $aPos = MouseGetPos ()
  Tooltip ($aPos[0] & ", " & $aPos[1])
  Sleep (10)
WEnd


Func Terminate()
  Exit
EndFunc   ;==>Terminate

Hope this helps at least one other person here. Otherwise, the other guy's solutions look to be pretty useful/good.
Reply
 


Messages In This Thread
RE: LazyPressing Clash of Clans Farming Bot - by smelliersocks - 11-16-2014, 02:48 AM
RE: [LP][LF][DD]Clash of Clans Farming Bot Cracking and Coding - by xpiamchris - 11-25-2014, 08:35 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website