hmmm.. maybe they can add another else if somewhere in the search codes like if the checkTownhall() returns "-" , the bot will click next? I am not sure about this code, but maybe something like this ``` ElseIf checkTownhall() = "-" Then SetLog("~~~~~~~Unable to detect Townhall,
Feb 25, 2015you are very much welcome. :D
Feb 25, 2015Ok lets compile all the codes into one. This will work if you check the search for dead base function. First your bot will find a base that meets your resources preference, then will check if the base is a dead base or has its town hall located outside or has a town hall level 7
Feb 24, 2015you mean something like this? ``` ElseIf $searchTH <= 7 And $THLoc = "Outside" Then SetLog("~~~~~~~Weak Farming Town Hall Found!~~~~~~~", $COLOR_GREEN) ExitLoop ``` This will attack a town hall that is level 7 and below with its town hall located outside its base.
Feb 24, 2015Hi! I am sorry, I think the right variable is $searchTH not checkTownhall() checkTownhall() I think is a function which returns if the th is outside or inside. And I think $searchTH is variable which has the th level of the current base your raid is looking at. so instead of chec
Feb 24, 2015in your bot folder open COCBot>functions>Search then open the file VillageSearch find line 38, which will contain this code ``` If checkDeadBase() Then SetLog("~~~~~~~Dead Base Found!~~~~~~~", $COLOR_GREEN) ExitLoop ``` then under that, add this code ``` ElseIf checkTownhall() =
Feb 24, 2015I think that it is possible, by editing the bots code. I have edited mine to attack either a dead base or a base that has th level 7 and below.
Feb 24, 2015Hi! first of all thank you for making this bot. I have been using this for a couple of days now. I was thinking if you can make the attack options more complex, like your bot will search for dead base or a base that meets your resources condition which TH level is low or provided
Feb 17, 2015