Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Farm looking for Th outside OR dead base
#11
Ok 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 and below. If any of this 3 condition is true, it will attack that base.
just add this under the dead base if clause
Code:
ElseIf $searchTH <= 6 Then
                        SetLog("~~~~~~~Weak Town Hall Found!~~~~~~~", $COLOR_GREEN)
                        ExitLoop
                     ElseIf $THLoc = "Outside" Then
                        SetLog("~~~~~~~Farming Base Found!~~~~~~~", $COLOR_GREEN)
                        ExitLoop


Wink
Reply
#12
TH10 in champions league, searching for a deadbase <= 9 then Outside , can be too long the search and spend alot of gold ....
Reply
#13
thanks notme really appreciate it, im gonna try it tonight!

Promac, its intended to be used in crystal up, best leagues to farm with th10, and its just searching for a dead base, OR a outside th, Or a low th, cant be too long to find just one of these, and thats the point
Reply
#14
you are very much welcome. :D
Reply
#15
I've tried the codes.

TH detection is still buggy with the latest version. The issue is when the bot cannot detect TH, but the loot is meeting the requirement. Then the bot will attack as it consider that particular case as weak base.
Reply
#16
I'm just wondering....if the bot cannot detect TH, is it possible to tell the bot to skip that base? In that way we'll be solving the issue k3iroll has found.

I've noticed that the bot sometimes says TH outside or TH inside...However sometimes it just says "..." and I guess that "..." means the bot has been unable to detect TH.
Reply
#17
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
Code:
ElseIf checkTownhall() = "-" Then
SetLog("~~~~~~~Unable to detect Townhall, skipping~~~~~~~", $COLOR_ORANGE)
Click(750, 500)

tried the code above, it didn't work. I'm about to try this code next. Still going to put this in the villageSearch under the deadbase if clause.

Code:
                     ElseIf $searchTH = "-" And $THLoc  = "-" Then
                        SetLog("~~~~~~~Unable to detect Townhall, skipping~~~~~~~", $COLOR_ORANGE)
                        Click(750, 500)
I am still using 5.5. Wink
Reply
#18
try this ?
Code:
ElseIf $iradAttackMode = 0 or $THLoc = "Outside" Then
                    If checkDeadBase() Then
                        SetLog("~~~~~~~Dead Base Found!~~~~~~~", $COLOR_GREEN)
                        ExitLoop
                    Elseif $THLoc = "Outside" Then
                        SetLog("~~~~~~~Outside Townhall Found!~~~~~~~", $COLOR_PURPLE)
                        ExitLoop
                    Else
                        SetLog("~~~~~~~Not dead base, skipping~~~~~~~", $COLOR_ORANGE)
                        Click(750, 500) ;Click Next
                    EndIf
Reply
 


Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community forum 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