The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

☢️ [SUGGESTION] Donation Bot

Started by -AC!D- · Feb 21, 2015

29 replies480,131 views
Feb 23, 2015#21

This is the type of feed back i love from the community guys! I voted.

Feb 23, 2015#22

This is the type of feed back i love from the community guys! I voted.

Thanks man! 🙂

Feb 24, 2015#23

lol I think just comment out some lines in COC Bot.au3 like:

Func runBot() ;Bot that runs everything in order
	While 1
		SaveConfig()
		readConfig()
		applyConfig()
		$Restart = False
		$fullArmy = False
		$CommandStop = -1
		If _Sleep(1000) Then Return
		checkMainScreen()
		If _Sleep(1000) Then Return
		ZoomOut()
		If _Sleep(1000) Then Return
		If BotCommand() Then btnStop()
		If _Sleep(1000) Then Return
		ReArm()
		If _Sleep(1000) Then Return
		If $CommandStop <> 0 Then
			Train()
			If _Sleep(1000) Then ExitLoop
		EndIf
		BoostBarracks()
		If _Sleep(1000) Then ExitLoop
		RequestCC()
		If _Sleep(1000) Then Return
		DonateCC()
		If _Sleep(1000) Then Return
		Collect()
		If _Sleep(1000) Then Return
		Idle()
		If _Sleep(1000) Then Return
		If $CommandStop <> 0 And $CommandStop <> 3 Then
			[b];AttackMain()[/b] ;THIS RIGHT HERE
			If _Sleep(1000) Then Return
		EndIf
	WEnd
EndFunc   ;==>runBot
Feb 24, 2015#24

lol I think just comment out some lines in COC Bot.au3 like:

Func runBot() ;Bot that runs everything in order
 While 1
 SaveConfig()
 readConfig()
 applyConfig()
 $Restart = False
 $fullArmy = False
 $CommandStop = -1
 If _Sleep(1000) Then Return
 checkMainScreen()
 If _Sleep(1000) Then Return
 ZoomOut()
 If _Sleep(1000) Then Return
 If BotCommand() Then btnStop()
 If _Sleep(1000) Then Return
 ReArm()
 If _Sleep(1000) Then Return
 If $CommandStop <> 0 Then
 Train()
 If _Sleep(1000) Then ExitLoop
 EndIf
 BoostBarracks()
 If _Sleep(1000) Then ExitLoop
 RequestCC()
 If _Sleep(1000) Then Return
 DonateCC()
 If _Sleep(1000) Then Return
 Collect()
 If _Sleep(1000) Then Return
 Idle()
 If _Sleep(1000) Then Return
 If $CommandStop <> 0 And $CommandStop <> 3 Then
 [b];AttackMain()[/b] ;THIS RIGHT HERE
 If _Sleep(1000) Then Return
 EndIf
 WEnd
EndFunc   ;==>runBot

What is this May I ask?

Feb 24, 2015#25

-AC!D- wrote:

b3n3tt3 wrote:

lol I think just comment out some lines in COC Bot.au3 like:

Func runBot() ;Bot that runs everything in order
 While 1
 SaveConfig()
 readConfig()
 applyConfig()
 $Restart = False
 $fullArmy = False
 $CommandStop = -1
 If _Sleep(1000) Then Return
 checkMainScreen()
 If _Sleep(1000) Then Return
 ZoomOut()
 If _Sleep(1000) Then Return
 If BotCommand() Then btnStop()
 If _Sleep(1000) Then Return
 ReArm()
 If _Sleep(1000) Then Return
 If $CommandStop <> 0 Then
 Train()
 If _Sleep(1000) Then ExitLoop
 EndIf
 BoostBarracks()
 If _Sleep(1000) Then ExitLoop
 RequestCC()
 If _Sleep(1000) Then Return
 DonateCC()
 If _Sleep(1000) Then Return
 Collect()
 If _Sleep(1000) Then Return
 Idle()
 If _Sleep(1000) Then Return
 If $CommandStop <> 0 And $CommandStop <> 3 Then
 [b];AttackMain()[/b] ;THIS RIGHT HERE
 If _Sleep(1000) Then Return
 EndIf
 WEnd
EndFunc   ;==>runBot

What is this May I ask?

tldr if you comment that line then it becomes a donation bot:

  1. fine COC bot.au3
  2. delete line 82: AttackMain()
  3. compile
  4. ??
  5. profit
Feb 24, 2015#26

@-AC!D-

Instead of ask for feature (which is already done and working) try to modify as you like the bot.
The bot it´s make by several routines/functions ,

  • Start
  • SaveConfig() / readconfig() - here the bot read and save the config.ini file
  • checkMainScreen() - verify if u are in the main screen
  • BotCommand() - This function it HALT option and works great ...
  • ReArm() - This routine it´s for rearm the traps
  • Train() - Here is the trainning troops part
  • BoostBarracks() - Simple function of Boost option
  • RequestCC() - Request Clan Castle troops
  • DonateCC() - Donation option
  • AttackMain() - Function goes to PrepareSearch() -> VillageSearch() -> VillageSearch -> Attack() at the end -> ReturnHome()
    etc etc ,

Try remove what you don´t want ... the organization of the functions are very good and easier to check , and if u make a mistake don´t worry replace the function again and try again ...

Feb 24, 2015#27

I'm testing y'alls suggestions

Feb 24, 2015#28

Results ended in this, Although I had troops made I get this.

[8:43:17 PM] Donating Troops
[8:43:19 PM] No troops available for donation, donating later...
[8:43:22 PM] No troops available for donation, donating later...
[8:43:27 PM] No troops available for donation, donating later...
[8:43:30 PM] Finished Donating

Feb 25, 2015#29

This method has been confirmed working but not with giants.

Feb 25, 2015#30

Giant Porblem not fixed in new version

Got something to add?

Log in to post a reply.

Join the conversation