This is the type of feed back i love from the community guys! I voted.
Video Game Reverse Engineering
☢️ [SUGGESTION] Donation Bot
Started by -AC!D- · Feb 21, 2015
This is the type of feed back i love from the community guys! I voted.
Thanks man! 🙂
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
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?
-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 ;==>runBotWhat is this May I ask?
tldr if you comment that line then it becomes a donation bot:
- fine COC bot.au3
- delete line 82: AttackMain()
- compile
- ??
- profit
@-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 ...
I'm testing y'alls suggestions
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
This method has been confirmed working but not with giants.
Giant Porblem not fixed in new version
Got something to add?
Join the conversationLog in to post a reply.