The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Suggestion l skipped dead base?

Started by M Khalid · Feb 18, 2015

3 replies57,462 views
Feb 18, 2015#1

Can you please replace ''all towns'' snapshot with ''dead base snapshot and skipped base snapshot'' because some members are saying that it is skipping dead bases but they don't know that dead base searching is already working the best...also if they use ''all towns'' , it saves many space in folder ...

dead and skipped base snapshot option will help them to see that the dead base is working best and it doesn't save much space...

here is the code of dead base and skipped base snapshot it also works in background mode...

add this in main bot COC Bot.au3 at line number 38

DirCreate(@ScriptDir & "\SkippedZombies\")
DirCreate(@ScriptDir & "\AttackedZombies\")

and replace this code from line number 38 to 43 with the code in COCBot \ functions \ search \ villagesearch.au3

					If checkDeadBase() Then
						SetLog("~~~~~~~Dead Base Found!~~~~~~~", $COLOR_GREEN)
						Local $Date = @MDAY & "." & @MON & "." & @YEAR
		             	Local $Time = @HOUR & "." & @MIN & "." & @SEC
						_CaptureRegion()
						_GDIPlus_ImageSaveToFile($hBitmap, @ScriptDir & "\AttackedZombies\" & $Date & " at " & $Time & ".jpg")
						ExitLoop
					Else
						SetLog("~~~~~~~Not dead base, skipping~~~~~~~", $COLOR_ORANGE)
					    Local $Date = @MDAY & "." & @MON & "." & @YEAR ; DEBUG
						Local $Time = @HOUR & "." & @MIN & "." & @SEC ; DEBUG
						_CaptureRegion()
			            _GDIPlus_ImageSaveToFile($hBitmap, @ScriptDir & "\SkippedZombies\" & $Date & " at " & $Time & ".jpg")
						Click(750, 500) ;Click Next

i don't know about autoit so i don't know how to add this as a option in bot please add this is next version...thanks 🙂

Feb 20, 2015#2

where we add seccond code? line number please.

Feb 20, 2015#3

@neutralizer ... In bot folder go to COCBot \ functions \ Search \VillageSearch

					If checkDeadBase() Then
						SetLog("~~~~~~~Dead Base Found!~~~~~~~", $COLOR_GREEN)
						ExitLoop
					Else
						SetLog("~~~~~~~Not dead base, skipping~~~~~~~", $COLOR_ORANGE)
						Click(750, 500) ;Click Next

line number 38 to 43 replace with 2nd code

Feb 22, 2015#4

@neutralizer ... In bot folder go to COCBot \ functions \ Search \VillageSearch

 If checkDeadBase() Then
 SetLog("~~~~~~~Dead Base Found!~~~~~~~", $COLOR_GREEN)
 ExitLoop
 Else
 SetLog("~~~~~~~Not dead base, skipping~~~~~~~", $COLOR_ORANGE)
 Click(750, 500) ;Click Next

line number 38 to 43 replace with 2nd code

thank you it is working perfect 8P

Got something to add?

Log in to post a reply.

Join the conversation