The Bytecode Club
Developing Bot - Printable Version

+- The Bytecode Club (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Developing Bot (/showthread.php?tid=155)



RE: Developing Bot - Antidote - 12-24-2014

(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.


RE: Developing Bot - GkevinOD - 12-24-2014




RE: Developing Bot - Antidote - 12-24-2014




RE: Developing Bot - GkevinOD - 12-24-2014

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



RE: Developing Bot - mikypark - 12-24-2014

why the bot is not skipping bases? no search


RE: Developing Bot - GkevinOD - 12-24-2014




RE: Developing Bot - GkevinOD - 12-24-2014




RE: Developing Bot - korpsx - 12-24-2014

There's so many changes and updates! This is amazing hah. Hard to keep up. Anyone have the most up to date changes ?


RE: Developing Bot - GkevinOD - 12-24-2014




RE: Developing Bot - mikypark - 12-24-2014

(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.