Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Developing Bot
(12-24-2014, 05:56 AM)AlexXxuTzZu Wrote:  I just tried the bot now and my first search was just dropped 1 barb and then nothing... I returned home and bot start himself, checked the troops and then he start searching for enemy with succes just that i only had 3 giants and rest barbs and archs.
Keep it up!
Yes for a very small amount of search (2 or 3 for me after 6 hours run), it will fail to read gold and stuck in search check. I will look into it but I'll have to ask GkevinOD if he can figure that out, in the mean time I will add some check to bypass to the next village.
I manage to fix it I believe. It will just skip the base if gold is not found. I will make it more efficient later, but this should also work:

Code:
Func CheckSearch()
    Sleep(2000)
    Local $countY = 0
    Local $countExit = 0
    $GoldCheck = getGold($x_default, $y_default + $countY)
    While $GoldCheck = ""
        If $countY >= 5 Then $countY = 0
        $countY += 1
        $countExit += 1
        $GoldCheck = getGold($x_default, $y_default + $countY)
        Sleep(200)
        If $countExit >= 50 Then
            ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
            $countExit = 0
        EndIf
        If $RunState = False Then
            ExitLoop
        EndIf
    WEnd
   ;GUICtrlSetData($Results, "Finish check" & @CRLF, -1)
EndFunc
why the bot is not skipping bases? no search
There's so many changes and updates! This is amazing hah. Hard to keep up. Anyone have the most up to date changes ?
(12-24-2014, 08:07 AM)GkevinOD Wrote:  @mikypark Can you list the steps that the bot takes?

For Example:
1. Start bot
2. Zoom Out
3. Train Troops
4. Start Search

Also tell us what code you added or used so we can specifically tell what the problem may be.

Ok so,since my english is not good,i made a screenshot for explain my problems,hope you can help me,thank you and keep it up.

[Image: 111nz47.png]

Sometimes it just doesn't search opponents,sometimes skip forever,last time i saw 270000 gold 100k elisir and the bot just skipped.

Im using the last version of the bot.
 


Forum Jump:


Users browsing this thread: 11 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