Jump to content
  • Announcements

    • Fliegerfaust

      Malicious and Banned Links   10/09/2016

      Please be careful of downloading ANY LINKS that are not originating from a MyBot.Run URL or another trusted URL (such as apkmirror.com, bluestacks, memu, xda-developers, etc).   We have banned ALL telegram links and other verified malicious links we have come across already. Users attempting to do this or get around this ban will be banned permanently.   Please report ANY suspicious links to MyBot Staff or pm me directly
    • monkeyhunter

      MyBot.run V7.6.2 RELEASED!   08/25/2018

      MyBot.run continues the legacy again with release of V7.6.2!!   This release supports the June 2018 game update and has some new features hidden inside as well   Get your copy in thread below!!   Click here to get to the release thread MyBot.run v7.6.2 Release

Argentino

Member
  • Content count

    42
  • Avg. Content Per Day

    1.3
  • Joined

  • Last visited

Community Reputation

11 Good

About Argentino

  1. add WaitMainScreen () to the end of the code after attacking.
  2. Drop Trophies in BuildersBase

    ; #FUNCTION# ==================================================================================================================== ; Name ..........: BB_DropTrophies ; Description ...: ; Author ........: Chackall++ ; Modified ......: ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2016 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== Global $g_iLoopCount = 0 Func BB_DropTrophies() Local $iCheck = 0 Local $iClickMachineX = 0 Local $iClickMachineY = 0 Local $i = 0 Local $j = 0 $g_iLoopCount = 0 Local $cPixColor = '' Local $Nside = 1 Local $SIDESNAMES = "TR|TL" Local $bDegug = False Local $bContinue = True Local $OkButtom[4] = [ 400, 495 + $g_iBottomOffsetY, 0xE2F98B, 20 ] Local $OkBatleEnd[4] = [ 630, 400 + $g_iBottomOffsetY, 0xE2FA8C, 20 ] Local $TroopSlot[4] = [ 40, 638 + $g_iBottomOffsetY, 0x404040, 20 ] Local $NextSlotActive[7] = [0x4C92D3, 0x5298E0, 0x4C92D3, 0x5598E0, 0x5498E0, 0x5198E0, 0x5094D8] Local $NextSlotOff[7] = [0x464646, 0x454545, 0x454545, 0x464646, 0x454545, 0x5198E0, 0x5198E0] Local $NextSlotAdd = 72 Local $TroopsToDrop = 0 If _Sleep($DELAYRESPOND) Then Return If $g_iTxtBB_DropTrophies > 0 Then $g_aiCurrentLootBB[$eLootTrophyBB] = getTrophyMainScreen(67, 84) If _Sleep($DELAYRESPOND) Then Return If $g_bChkBB_DropTrophies Then ; Click attack button and find a match If $g_iTxtBB_DropTrophies > 0 Then $i = $g_aiCurrentLootBB[$eLootTrophyBB] - $g_iTxtBB_DropTrophies Endif If $i > 0 Then If BB_PrepareAttack() Then If _Sleep($DELAYCHECKOBSTACLES3 * 2) Then Return ; Deploy All Troops From Slot's Setlog(" ====== BB Attack ====== ", $COLOR_INFO) For $i = 0 to 6 If ($i > 0) Then $TroopSlot[0] += $NextSlotAdd $TroopSlot[2] = $NextSlotOff[$i] EndIf $j = 0 $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) $TroopsToDrop = getTroopCountBig( $TroopSlot[0]+24, $TroopSlot[1]-7 ) If ($i > 0) Then If _Sleep(120) Then Return If Not _ColorCheck( $cPixColor, Hex($NextSlotOff[$i], 25), $TroopSlot[3]) Then ClickP($TroopSlot, 1, 0, "#0000") Local $x = $TroopSlot[0] Local $y = $TroopSlot[1] $bContinue = False For $b = 0 to 6 $x += $NextSlotAdd If _ColorCheck(_GetPixelColor($x, $y), Hex($NextSlotActive[$b], 25), 25) Then $bContinue = True EndIf Next EndIf EndIf If $bContinue Then While Not _ColorCheck( $cPixColor, Hex($TroopSlot[2], 25), $TroopSlot[3]) BB_Attack($Nside, $SIDESNAMES, 8) If $g_iLoopCount >= 8 Then ExitLoop If $bDegug Then SetLog("BB: Drop Troops - Slot[ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $j ) & " ] Num:[ " & $TroopsToDrop & " ]", $COLOR_DEBUG) If _Sleep(12) Then Return $j += 1 If $j > 6 Then ExitLoop $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) WEnd If $bDegug Then SetLog("BB: Last Slot Color [ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $i + 1 ) & " ]", $COLOR_DEBUG) EndIf Next While $bContinue = True If _Sleep(500) Then Return ; Okay pixel If _Sleep(500) Then Return Local $iOkayColor[3][3] = [[0xBEE758, 0, 1], [0xA8DD49, 0, 1], [0x7BC726, 0, 1]] Local $iOkayPixel = _MultiPixelSearch(279, 378, 646, 685, 1, 1, Hex(0xBFE85A, 6), $iOkayColor, 35) If IsArray($iOkayPixel) Then Setlog("Exit battle", $COLOR_INFO) Click($iOkayPixel[0], $iOkayPixel[1]) Local $iOkayPixel2 = _MultiPixelSearch(86, 436, 822, 544, 1, 1, Hex(0xBFE85A, 6), $iOkayColor, 35) If _Sleep(500) Then Return If IsArray($iOkayPixel2) Then Setlog("Click: Okay button", $COLOR_INFO) Click($iOkayPixel2[0], $iOkayPixel2[1]) $bContinue = False If _Sleep(500) Then Return ClickP($aAway, 1, 0, "#0000") $bContinue = False EndIf ; --- Else If _Sleep(500) Then Return Local $iOffColor[3][3] = [[0x4C49D5, 0, 1], [0x4C49D5, 0, 1], [0x4C49D5, 0, 1]] Local $iButtonPixel = _MultiPixelSearch(22, 658, 472, 726, 1, 1, Hex(0x4C49D5, 6), $iOffColor, 35) If IsArray($iButtonPixel) Then If $iCheck = 0 Then Setlog("Boy on map", $COLOR_GREEN) $iClickMachineX = $iButtonPixel[0] $iClickMachineY = $iButtonPixel[1] ClickP($iButtonPixel, 100, 0, "#0000") ; Drop Troop If _Sleep($DELAYDROPTROOP1 / 5) Then Return AttackClick(557, 251, 1, SetSleep(0), 0, "#0000") $iCheck = 0 ElseIf $iCheck = 1 Then AttackClick($iClickMachineX + 20, $iClickMachineY + 20, 1, SetSleep(0), 0, "#0000") EndIf EndIf EndIf WEnd SetLog("Finished attack",$COLOR_GREEN) WaitMainScreen() If _Sleep($DELAYCHECKOBSTACLES4) Then Return EndIf If _Sleep($DELAYCHECKOBSTACLES4) Then Return ClickP($aAway, 1, 0, "#0000") Else Setlog("Ignore BB Drop Trophies: [Not Needed] [ " & String( $g_iTxtBB_DropTrophies ) & " ]", $COLOR_INFO) EndIf Else Setlog("Ignore BB Drop Trophies [ Disabled ]", $COLOR_INFO) Endif EndFunc ;==> BB_DropTrophies Func ChkBB_DropTrophies() $g_bChkBB_DropTrophies = (GUICtrlRead($g_hChkBB_DropTrophies) = $GUI_CHECKED) ? 1 : 0 EndFunc ;==>ChkBB_DropTrophies Func TxtBB_DropTrophies() $g_iTxtBB_DropTrophies = GUICtrlRead($g_hTxtBB_DropTrophies) EndFunc ;==>TxtBB_DropTrophies ""drop trophy""", because the truth is that when it works it is quite effective.
  3. Transparent logo MOD

    Pickpocket? just save the work that rulesss eliminated. It's my personal version and I'm deleting your mods that do not interest me and all those that are not published, they never asked me for authorization to put my mods, it's something unusual.
  4. Drop Trophies in BuildersBase

    it attack now, test, It is said to drop trophy but in 50% of cases it is able to win, even 100%. Test this with minions and balloons. Will you let me use this mod and be? because I did not know that to edit linux you had to ask permission from Linus Torvalds. ----------- Updated: Fixed okay button ; Okay pixel If _Sleep(500) Then Return Local $iOkayColor[3][3] = [[0xBEE758, 0, 1], [0xA8DD49, 0, 1], [0x7BC726, 0, 1]] Local $iOkayPixel = _MultiPixelSearch(279, 378, 646, 685, 1, 1, Hex(0xBFE85A, 6), $iOkayColor, 35) If IsArray($iOkayPixel) Then Local $ClickOkX = $iOkayPixel[0], $ClickOkY = $iOkayPixel[1] Setlog("Exit battle", $COLOR_INFO) Click($ClickOkX, $ClickOkY) ; ---
  5. Drop Trophies in BuildersBase

    I forgot to add that. Func BB_Attack($Nside = 1, $SIDESNAMES = "TR|TL", $iTroopToDeploy = 4 ) $g_iLoopCount += 1 ----------- Updated: Fixed okay button Setlog("Exit battle", $COLOR_INFO) Click($ClickOkX, $ClickOkY)
  6. Transparent logo MOD

    It is my personal version, I am in my right. I did not publish it with anyone. GPL, like linux, microsoft does not ask linux for permission to add its code to its kernel, do not bother me go to do their work, and delete the foreign code of the mod and only leave the code of the people who have permission, rulesss not I asked for permission to add my mods, it's an example, this could not work, you accuse me of something you do. I have no way to privatize the git, of which I was administrator and the first developer outside of rulesss. the GPL license enables me, sorry, there is no way to make private gits on github for free. And I do not think to eliminate this post. Limit your texts to criticize the mod, are they all boyfriends? My idea about the laboratory goes in another direction, that the person can choose the order, I would never have done that, I prefer democracy and free code.
  7. Transparent logo MOD

    ClmDownBi I can not steal myself. You copied the mod to ZerGo0 and nobody complained. I will eliminate any code that presumes that it can generate conflicts, just because I am a good person, I would not have to. I will try to do all the mods of 0 completely as I have been doing, but yours does not interest me. $WS_EX_TRANSPARENT, WTF I become a millionaire. So much so that sam relied on my mod to update his mod and help fix it, along with spartan, to such an extent that people ask me to please update it. You do not understand how free code Works. the only thing I did is keep the mods alive, because immediately I stop giving support if it exists in its official version….
  8. Drop Trophies in BuildersBase

    no, it does not work, only if you are in a village with 6 slots. Deploy king +6 slots and and click for the pixel of his ability. Updated fix search okay button and exit ; #FUNCTION# ==================================================================================================================== ; Name ..........: BB_DropTrophies ; Description ...: ; Author ........: Chackall++ ; Modified ......: ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2016 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== Global $g_iLoopCount = 0 Func BB_DropTrophies() Local $iCheck = 0 Local $iClickMachineX = 0 Local $iClickMachineY = 0 Local $i = 0 Local $j = 0 $g_iLoopCount = 0 Local $cPixColor = '' Local $Nside = 1 Local $SIDESNAMES = "TR|TL" Local $bDegug = False Local $bContinue = True Local $OkButtom[4] = [ 400, 495 + $g_iBottomOffsetY, 0xE2F98B, 20 ] Local $OkBatleEnd[4] = [ 630, 400 + $g_iBottomOffsetY, 0xE2FA8C, 20 ] Local $TroopSlot[4] = [ 40, 638 + $g_iBottomOffsetY, 0x404040, 20 ] Local $NextSlotActive[7] = [0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8] Local $NextSlotOff[7] = [0x464646, 0x454545, 0x454545, 0x464646, 0x454545, 0x5198E0, 0x5198E0] Local $NextSlotAdd = 72 Local $TroopsToDrop = 0 If _Sleep($DELAYRESPOND) Then Return If $g_iTxtBB_DropTrophies > 0 Then $g_aiCurrentLootBB[$eLootTrophyBB] = getTrophyMainScreen(67, 84) If _Sleep($DELAYRESPOND) Then Return If $g_bChkBB_DropTrophies Then ; Click attack button and find a match If $g_iTxtBB_DropTrophies > 0 Then $i = $g_aiCurrentLootBB[$eLootTrophyBB] - $g_iTxtBB_DropTrophies Endif If $i > 0 Then If _Sleep($DELAYCHECKOBSTACLES1) Then Return If BB_PrepareAttack() Then If _Sleep($DELAYCHECKOBSTACLES3 * 2) Then Return ; Deploy All Troops From Slot's Setlog(" ====== BB Attack ====== ", $COLOR_INFO) For $i = 0 to 6 If ($i > 0) Then $TroopSlot[0] += $NextSlotAdd $TroopSlot[2] = $NextSlotOff[$i] EndIf $j = 0 $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) $TroopsToDrop = getTroopCountBig( $TroopSlot[0]+24, $TroopSlot[1]-7 ) If ($i > 0) Then If _Sleep(120) Then Return If Not _ColorCheck( $cPixColor, Hex($NextSlotOff[$i], 20), $TroopSlot[3]) Then ClickP($TroopSlot, 1, 0, "#0000") Local $x = $TroopSlot[0] Local $y = $TroopSlot[1] $bContinue = False For $b = 0 to 6 $x += $NextSlotAdd If _ColorCheck(_GetPixelColor($x, $y), Hex($NextSlotActive[$b], 20), 20) Then $bContinue = True EndIf Next EndIf EndIf If $bContinue Then While Not _ColorCheck( $cPixColor, Hex($TroopSlot[2], 20), $TroopSlot[3]) BB_Attack($Nside, $SIDESNAMES, 8) If $g_iLoopCount >= 8 Then ExitLoop If $bDegug Then SetLog("BB: Drop Troops - Slot[ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $j ) & " ] Num:[ " & $TroopsToDrop & " ]", $COLOR_DEBUG) If _Sleep(12) Then Return $j += 1 If $j > 6 Then ExitLoop $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) WEnd If $bDegug Then SetLog("BB: Last Slot Color [ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $i + 1 ) & " ]", $COLOR_DEBUG) EndIf Next While $g_bRunState = True If _Sleep(500) Then Return ; Okay pixel If _Sleep(500) Then Return Local $iOkayColor[3][3] = [[0xBEE758, 0, 1], [0xA8DD49, 0, 1], [0x7BC726, 0, 1]] Local $iOkayPixel = _MultiPixelSearch(279, 378, 646, 685, 1, 1, Hex(0xBFE85A, 6), $iOkayColor, 35) If IsArray($iOkayPixel) Then Local $ClickOkX = $iOkayPixel[0], $ClickOkY = $iOkayPixel[1] Setlog("Exit battle", $COLOR_INFO) Click($ClickOkX + 279, $ClickOkY + 378) ExitLoop ; --- Else If _Sleep(500) Then Return Local $iOffColor[3][3] = [[0x4C49D5, 0, 1], [0x4C49D5, 0, 1], [0x4C49D5, 0, 1]] Local $iButtonPixel = _MultiPixelSearch(22, 658, 472, 726, 1, 1, Hex(0x4C49D5, 6), $iOffColor, 35) If IsArray($iButtonPixel) Then If $iCheck = 0 Then Setlog("Boy on map", $COLOR_GREEN) $iClickMachineX = $iButtonPixel[0] $iClickMachineY = $iButtonPixel[1] ClickP($iButtonPixel, 100, 0, "#0000") ; Drop Troop If _Sleep($DELAYDROPTROOP1 / 5) Then Return AttackClick(557, 251, 1, SetSleep(0), 0, "#0000") $iCheck = 0 ElseIf $iCheck = 1 Then AttackClick($iClickMachineX + 20, $iClickMachineY + 20, 1, SetSleep(0), 0, "#0000") EndIf EndIf EndIf WEnd If _Sleep($DELAYCHECKOBSTACLES4) Then Return ; wait $OkButtom to appear $j = 0 $cPixColor = _GetPixelColor($OkButtom[0], $OkButtom[1], True) While Not _ColorCheck( $cPixColor, Hex($OkButtom[2], 20), $OkButtom[3]) If $bDegug Then SetLog("BB: Click Okay Buttom. [Ok]. code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) If _Sleep($DELAYCHECKOBSTACLES4) Then Return $j += 1 If $j > 10 Then ExitLoop $cPixColor = _GetPixelColor($OkButtom[0], $OkButtom[1], True) WEnd If $j < 10 Then SetLog("BB: Click Okay Buttom. [Ok]. code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) ClickP($OkButtom, 1, 0, "#0000") Else SetLog("BB: Can't Find Okay Buttom [Ok]. code: 0x" & $cPixColor, $COLOR_ERROR) EndIf If _Sleep($DELAYCHECKOBSTACLES4) Then Return ; wait $OkBatleEnd to appear If $j < 10 Then $j = 0 $cPixColor = _GetPixelColor($OkBatleEnd[0], $OkBatleEnd[1], True) While Not _ColorCheck( $cPixColor, Hex($OkBatleEnd[2], 20), $OkBatleEnd[3]) If $bDegug Then SetLog("BB: Try Click Okay Buttom [end], code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) If _Sleep($DELAYCHECKOBSTACLES3) Then Return $j += 1 If $j > 30 Then ExitLoop $cPixColor = _GetPixelColor($OkBatleEnd[0], $OkBatleEnd[1], True) WEnd If $j < 30 Then SetLog("BB: Click Okay Buttom [end], code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) ClickP($OkBatleEnd, 1, 0, "#0000") Else SetLog("BB: Can't Find Okay Buttom [End]. code: 0x" & $cPixColor, $COLOR_ERROR) EndIf Else If _Sleep(12) Then Return ClickP($aAway, 1, 0, "#0000") EndIf EndIf If _Sleep(12) Then Return ClickP($aAway, 1, 0, "#0000") Else Setlog("Ignore BB Drop Trophies: [Not Needed] [ " & String( $g_iTxtBB_DropTrophies ) & " ]", $COLOR_INFO) EndIf Else Setlog("Ignore BB Drop Trophies [ Disabled ]", $COLOR_INFO) Endif EndFunc ;==> BB_DropTrophies Func ChkBB_DropTrophies() $g_bChkBB_DropTrophies = (GUICtrlRead($g_hChkBB_DropTrophies) = $GUI_CHECKED) ? 1 : 0 EndFunc ;==>ChkBB_DropTrophies Func TxtBB_DropTrophies() $g_iTxtBB_DropTrophies = GUICtrlRead($g_hTxtBB_DropTrophies) EndFunc ;==>TxtBB_DropTrophies
  9. Drop Trophies in BuildersBase

    ; #FUNCTION# ==================================================================================================================== ; Name ..........: BB_DropTrophies ; Description ...: ; Author ........: Chackall++ ; Modified ......: ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2016 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== Func BB_DropTrophies() Local $iBoy = 0 Local $i = 0 Local $j = 0 Local $cPixColor = '' Local $Nside = 1 Local $SIDESNAMES = "TR|TL" Local $bDegug = False Local $bContinue = True Local $OkButtom[4] = [ 400, 495 + $g_iBottomOffsetY, 0xE2F98B, 20 ] Local $OkBatleEnd[4] = [ 630, 400 + $g_iBottomOffsetY, 0xE2FA8C, 20 ] Local $OkWaitBattle[4] = [ 400, 500 + $g_iBottomOffsetY, 0xF0F0F0, 20 ] Local $TroopSlot[4] = [ 40, 638 + $g_iBottomOffsetY, 0x404040, 20 ] Local $NextSlotActive[6] = [0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8, 0x5094D8] Local $NextSlotOff[6] = [0x464646, 0x454545, 0x454545, 0x464646, 0x454545, 0x5198E0] Local $NextSlotAdd = 72 Local $TroopsToDrop = 0 Local $iKing = 0x251CC6 If _Sleep($DELAYRESPOND) Then Return If $g_iTxtBB_DropTrophies > 0 Then $g_aiCurrentLootBB[$eLootTrophyBB] = getTrophyMainScreen(67, 84) If _Sleep($DELAYRESPOND) Then Return If $g_bChkBB_DropTrophies Then ; Click attack button and find a match If $g_iTxtBB_DropTrophies > 0 Then $i = $g_aiCurrentLootBB[$eLootTrophyBB] - $g_iTxtBB_DropTrophies Endif If $i > 0 Then If _Sleep($DELAYCHECKOBSTACLES1) Then Return If BB_PrepareAttack() Then If _Sleep($DELAYCHECKOBSTACLES3 * 2) Then Return ; Deploy All Troops From Slot's Setlog(" ====== BB Attack ====== ", $COLOR_INFO) For $i = 0 to 5 If ($i > 0) Then $TroopSlot[0] += $NextSlotAdd $TroopSlot[2] = $NextSlotOff[$i] EndIf $j = 0 $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) $TroopsToDrop = getTroopCountBig( $TroopSlot[0]+24, $TroopSlot[1]-7 ) If ($i > 0) Then If _Sleep(120) Then Return If Not _ColorCheck( $cPixColor, Hex($NextSlotOff[$i], 20), $TroopSlot[3]) Then ClickP($TroopSlot, 1, 0, "#0000") Local $x = $TroopSlot[0] Local $y = $TroopSlot[1] $bContinue = False For $b = 0 to 5 $x += $NextSlotAdd If _ColorCheck(_GetPixelColor($x, $y), Hex($NextSlotActive[$b], 20), 20) Then $bContinue = True EndIf Next EndIf EndIf If $bContinue Then While Not _ColorCheck( $cPixColor, Hex($TroopSlot[2], 20), $TroopSlot[3]) If $iBoy = 0 Then If _Sleep($DELAYRESPOND*3) Then Return If QuickMIS("BC1", $g_sImgMachine, 0, 652, 835, 724, True, False) Then KeepClicks() Local $aBoyDropPoint[2] = [0, 0] $aBoyDropPoint[0] = $g_iQuickMISX $aBoyDropPoint[1] = (652 + $g_iQuickMISY) Setlog("Drop boy on map", $COLOR_GREEN) ClickP($aBoyDropPoint, 1, 0, "#0000") ; Drop Troop If _Sleep($DELAYDROPTROOP1 / 5) Then Return AttackClick(557, 251, 1, SetSleep(0), 0, "#0000") If _Sleep($DELAYDROPTROOP2 / 5) Then Return $iBoy = 1 EndIf ReleaseClicks() EndIf BB_Attack($Nside, $SIDESNAMES, 8) If $bDegug Then SetLog("BB: Drop Troops - Slot[ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $j ) & " ] Num:[ " & $TroopsToDrop & " ]", $COLOR_DEBUG) If _Sleep(12) Then Return $j += 1 If $j > 5 Then ExitLoop $cPixColor = _GetPixelColor($TroopSlot[0], $TroopSlot[1], True) WEnd If $bDegug Then SetLog("BB: Last Slot Color [ " & String( $i + 1 ) & " ], code: 0x" & $cPixColor & " [ " & String( $i + 1 ) & " ]", $COLOR_DEBUG) EndIf Next Setlog("Will Wait End Battle for " & String( $DELAYCHECKOBSTACLES4 / 60000 / 2 ) & " minutes then continue", $COLOR_INFO) If _Sleep($DELAYCHECKOBSTACLES4 / 2 ) Then Return ; If $OkWaitBattle Exists $cPixColor = _GetPixelColor($OkWaitBattle[0], $OkWaitBattle[1], True) If _ColorCheck( $cPixColor, Hex($OkWaitBattle[2], 20), $OkWaitBattle[3]) Then If $bDegug Then SetLog("BB: Click Okay Buttom for no wait battle end, code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) ClickP($OkWaitBattle, 1, 0, "#0000") EndIf If _Sleep(12) Then Return ; wait $OkButtom to appear $j = 0 $cPixColor = _GetPixelColor($OkButtom[0], $OkButtom[1], True) While Not _ColorCheck( $cPixColor, Hex($OkButtom[2], 20), $OkButtom[3]) If $bDegug Then SetLog("BB: Click Okay Buttom. [Ok]. code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) If _Sleep(12) Then Return $j += 1 If $j > 10 Then ExitLoop $cPixColor = _GetPixelColor($OkButtom[0], $OkButtom[1], True) WEnd If $j < 10 Then SetLog("BB: Click Okay Buttom. [Ok]. code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) ClickP($OkButtom, 1, 0, "#0000") Else SetLog("BB: Can't Find Okay Buttom [Ok]. code: 0x" & $cPixColor, $COLOR_ERROR) EndIf If _Sleep(12) Then Return ; wait $OkBatleEnd to appear If $j < 10 Then $j = 0 $cPixColor = _GetPixelColor($OkBatleEnd[0], $OkBatleEnd[1], True) While Not _ColorCheck( $cPixColor, Hex($OkBatleEnd[2], 20), $OkBatleEnd[3]) If $bDegug Then SetLog("BB: Try Click Okay Buttom [end], code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) If _Sleep($DELAYCHECKOBSTACLES3) Then Return $j += 1 If $j > 30 Then ExitLoop $cPixColor = _GetPixelColor($OkBatleEnd[0], $OkBatleEnd[1], True) WEnd If $j < 30 Then SetLog("BB: Click Okay Buttom [end], code: 0x" & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) ClickP($OkBatleEnd, 1, 0, "#0000") Else SetLog("BB: Can't Find Okay Buttom [End]. code: 0x" & $cPixColor, $COLOR_ERROR) EndIf Else If _Sleep(12) Then Return ClickP($aAway, 1, 0, "#0000") EndIf EndIf If _Sleep(12) Then Return ClickP($aAway, 1, 0, "#0000") Else Setlog("Ignore BB Drop Trophies: [Not Needed] [ " & String( $g_iTxtBB_DropTrophies ) & " ]", $COLOR_INFO) EndIf Else Setlog("Ignore BB Drop Trophies [ Disabled ]", $COLOR_INFO) Endif EndFunc ;==> BB_DropTrophies Func ChkBB_DropTrophies() $g_bChkBB_DropTrophies = (GUICtrlRead($g_hChkBB_DropTrophies) = $GUI_CHECKED) ? 1 : 0 EndFunc ;==>ChkBB_DropTrophies Func TxtBB_DropTrophies() $g_iTxtBB_DropTrophies = GUICtrlRead($g_hTxtBB_DropTrophies) EndFunc ;==>TxtBB_DropTrophies ; #FUNCTION# ==================================================================================================================== ; Name ..........: BB_PrepareAttack ; Description ...: ; Syntax ........: BB_PrepareAttack() ; Author ........: Chackall++ ; Modified ......: ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2016 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== Func BB_PrepareAttack() ; Click attack button and find a match Local $Result = getAttackDisable(346, 182) ; Grab Ocr for TakeABreak check Local $cPixColor = "" Local $i = 0 Local $j = 0 Local $bCanAttack = False Local $TroopsOk[4] = [ 310, 355 + $g_iBottomOffsetY, 0xDAF482 , 10 ] Local $ReturnFromAttack[4] = [697, 474 + $g_iBottomOffsetY, 0xC3EA6B ,20] Local $bDegug = False SetLog("BH: Going to Attack... [ " & String( $g_iTxtBB_DropTrophies ) & " ]", $COLOR_INFO) If IsMainPageBuilderBase() Then If $g_bUseRandomClick = False Then ClickP($aAttackButton, 1, 0, "#0149") ; Click Attack Button Else ClickR($aAttackButtonRND, $aAttackButton[0], $aAttackButton[1], 1, 0) EndIf EndIf If _Sleep($DELAYPREPARESEARCH1) Then Return ; If $TroopsOk is ready $cPixColor = _GetPixelColor($TroopsOk[0], $TroopsOk[1], True) If _ColorCheck( $cPixColor, Hex($TroopsOk[2], 6), $TroopsOk[3]) Then SetLog("BB: Troops Not Ready [Stop Attack], code: " & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) Else SetLog("BB: Troops Ready, code: " & $cPixColor & " [ " & String( $j ) & " ]", $COLOR_DEBUG) $bCanAttack = True EndIf If _Sleep($DELAYCHECKFULLARMY1) Then Return If $bCanAttack Then ; If $aBB_FindMatchButton appear $cPixColor = _GetPixelColor($aBB_FindMatchButton[0], $aBB_FindMatchButton[1], True) If _ColorCheck( $cPixColor, Hex($aBB_FindMatchButton[2], 6), $aBB_FindMatchButton[3]) Then If $bDegug Then SetLog("BB: aBB_FindMatchButton, code: [ " & $cPixColor & " ][ " & String( $j ) & " ]", $COLOR_DEBUG) If _Sleep($DELAYCHECKFULLARMY1) Then Return If $g_bUseRandomClick = False Then ClickP($aBB_FindMatchButton, 1, 0, "#0000") ;Click Find a Match Button Else ClickR($aBB_FindMatchButtonRND, $aFindMatchButton[0], $aFindMatchButton[1], 1, 0) EndIf Else If _CheckPixel($ReturnFromAttack, $g_bCapturePixel) Then ; Click on Green Join Button on Donate Window SetLog("Click okay button.", $COLOR_INFO) ClickP($ReturnFromAttack) Else SetLog("BB: Can't Find Match Buttom. Color Was: 0x" & $cPixColor, $COLOR_ERROR) $bCanAttack = False EndIf EndIf If _Sleep($DELAYPREPARESEARCH2) Then Return checkAttackDisable($g_iTaBChkAttack, $Result) ;See If TakeABreak msg on screen If $g_bDebugSetlog Then SetDebugLog("BB: PrepareAttack exit check $g_bRestart= " & $g_bRestart, $COLOR_DEBUG) If $g_bRestart Then ; If we errors, then return $g_bIsClientSyncError = False ; reset fast restart flag to stop OOS mode, and rearm, collecting resources etc. Return EndIf Endif Return $bCanAttack EndFunc ;==>BB_PrepareSearch ; #FUNCTION# ==================================================================================================================== ; Name ..........: BB_Attack ; Description ...: ; Syntax ........: ; Parameters ....: ; Return values .: ; Author ........: ; Modified ......: ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2016 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== Func BB_Attack($Nside = 1, $SIDESNAMES = "TR|TL", $iTroopToDeploy = 4 ) Local $aBB_DiamondTop[4] = [440, 30 + $g_iBottomOffsetY, 0x294949, 10] Local $aBB_DiamondBottom[4] = [440, 730 + $g_iBottomOffsetY, 0x2B4847, 10] Local $aBB_DiamondLeft[4] = [ 30, 330 + $g_iBottomOffsetY, 0x213E3E, 10] Local $aBB_DiamondRight[4] = [830, 330 + $g_iBottomOffsetY, 0x2F5351, 10] Local $aBB_LineCenter[2] = [ 0, 0] Local $i = 0 Local $iHalf = 0 Local $iRest = 0 Local $aDropCoord[2] = [ 0, 0] Local $aDropPointX[4] = [ 0, 0, 0x294949, 10] Local $aDropPointY[4] = [ 0, 0, 0x294949, 10] Local $iBB_MaxDrop = 20 If $iTroopToDeploy < 4 Then $iTroopToDeploy = 4 If $iTroopToDeploy > 8 Then $iTroopToDeploy = 8 $iHalf = INT( $iTroopToDeploy / 2 ) $iRest = $iTroopToDeploy - ( $iHalf * 2 ) $iHalf += $iRest SetLog("BB: Attacking on a single side", $COLOR_INFO) $aBB_LineCenter[0] = INT( ( $aBB_DiamondTop[0] + $aBB_DiamondRight[0] ) / 2 ) $aBB_LineCenter[1] = INT( ( $aBB_DiamondTop[1] + $aBB_DiamondRight[1] ) / 2 ) $aDropCoord[0] = INT( ( ( $aBB_LineCenter[0] - $aBB_DiamondTop[0] ) * 0.9 ) / $iHalf ) $aDropCoord[1] = INT( ( ( $aBB_LineCenter[1] - $aBB_DiamondTop[1] ) * 0.9 ) / $iHalf ) KeepClicks() For $i = $iHalf To 1 Step -1 $aDropPointX[0] = $aBB_LineCenter[0] + ( $i * $aDropCoord[0] ) $aDropPointX[1] = $aBB_LineCenter[1] + ( $i * $aDropCoord[1] ) $aDropPointY[0] = $aBB_LineCenter[0] - ( $i * $aDropCoord[0] ) $aDropPointY[1] = $aBB_LineCenter[1] - ( $i * $aDropCoord[1] ) ClickP($aDropPointX, 1, 0, "#0000") ; Drop Troop If _Sleep($DELAYDROPTROOP1 / 5) Then Return AttackClick($aDropPointY[0], $aDropPointY[1], 1, SetSleep(0), 0, "#0000") If _Sleep($DELAYDROPTROOP2 / 5) Then Return Next ReleaseClicks() If _Sleep($DELAYDROPTROOP2) Then Return EndFunc ;==>BB_Attack
  10. Transparent logo MOD

    Transparent logo MOD How to transparent logo tutorial Find in \COCBot\GUI\MBR GUI Design Splash.au3 Func CreateSplashScreen($iSteps = Default) and select to... EndFunc ;==>CreateSplashScreen Delete and remplace by it Func CreateSplashScreen($iSteps = Default) Local $iGuiState = @SW_SHOWNOACTIVATE Local $bDisableSplash = $g_bDisableSplash If $iSteps = Default Then $g_iSplashTotalSteps = 10 Else $iGuiState = @SW_SHOW $bDisableSplash = False $g_iSplashTotalSteps = $iSteps $g_iSplashCurrentStep = 0 $g_hSplashTimer = 0 EndIf Local $sSplashImg = $g_sLogoPath Local $hImage, $iX, $iY Local $iT = 0 ; Top of logo (additional space) was 20 White On Top Of Colorfull image does not look good. EDITED By Simple Mod Local $iB = 10 ; Bottom of logo (additional space) Switch $g_iGuiMode ; in Mini GIU or GUI less mode we have less steps Case 0 ; No GUI $g_iSplashTotalSteps = 3 Case 2 ; Mini GUI $g_iSplashTotalSteps = 4 EndSwitch ; Launch only one bot at a time... it simply consumes too much CPU $g_hSplashMutex = AcquireMutexTicket("Launching", 1, Default, False) If $bDisableSplash = False Then Local $hSplashImg = _GDIPlus_BitmapCreateFromFile($sSplashImg) ; Determine dimensions of splash image $iX = _GDIPlus_ImageGetWidth($hSplashImg) $iY = _GDIPlus_ImageGetHeight($hSplashImg) Local $iHeight = $iY + $iT + $iB + 60 ; size = image+Top space+Bottom space+60 Local $iCenterX = @DesktopWidth / 2 ; find center of main display Local $iCenterY = @DesktopHeight / 2 If $g_bMyBotDance Then Local $iTop = @DesktopHeight - 50 - $iHeight ; position splash UI near task bar Else Local $iTop = $iCenterY - $iHeight / 2 EndIf Local $iLeft = $iCenterX - $iX / 2 ; position splash UI centered on width ; Create Splash container $g_hSplash = GUICreate("", $iX, $iHeight, $iLeft, $iTop, $WS_POPUP, BitOR($WS_EX_TOPMOST, $WS_EX_WINDOWEDGE, $WS_EX_TOOLWINDOW)) GUISetBkColor($COLOR_WHITE, $g_hSplash) WinSetTrans($g_hSplash, "", 170) $g_lSplashPic = _GUICtrlCreatePic($hSplashImg, 0, $iT) ; Splash Image GUICtrlSetOnEvent(-1, "MoveSplashScreen") $g_lSplashTitle = GUICtrlCreateLabel($g_sBotTitle, 15, $iY + $iT + $iB + 3, $iX - 30, 15, $SS_CENTER) ; Splash Title ;GUICtrlSetOnEvent(-1, "MoveSplashScreen") ;$g_hSplashProgress = GUICtrlCreateProgress(15, $iY + $iT + $iB + 20, $iX - 30, 10, $PBS_SMOOTH, BitOR($WS_EX_TOPMOST, $WS_EX_WINDOWEDGE, $WS_EX_TOOLWINDOW)) ; Splash Progress ;$g_lSplashStatus = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design - Loading", "SplashStep_Loading", "Loading..."), 15, $iY + $iT + $iB + 38, $iX - 30, 15, $SS_CENTER) ; Splash Title ;GUICtrlSetOnEvent(-1, "MoveSplashScreen") ; Cleanup GDI resources _GDIPlus_BitmapDispose($hSplashImg) ; Show Splash GUISetState($iGuiState, $g_hSplash) If $g_bDebugSetlog Then SetDebugLog("Splash created: $g_hSplash=" & $g_hSplash & ", $g_lSplashPic=" & $g_lSplashPic & ", $g_lSplashTitle=" & $g_lSplashTitle & ", $g_hSplashProgress=" & $g_hSplashProgress & ", $g_lSplashStatus=" & $g_lSplashStatus) $g_hSplashTimer = __TimerInit() EndIf EndFunc ;==>CreateSplashScreen FIND \images\Logo.png and Edit and Save in 32 bits.
  11. Drop Trophies in BuildersBase

    Mira https://mega.nz/#!D4diHSQa!hBmgkVu0VEz4CPXJzqoxj46JyM-P_iVjQTuhsrVnXrc Pruébalo I let you use everything that mod has, I participate in the modification. more color tolerance for slots and it work fine
  12. Drop Trophies in BuildersBase

    If isOnBuilderBase() Or (($g_bChkCollectBuilderBase Or $g_bChkStartClockTowerBoost Or $g_iChkBBSuggestedUpgrades Or $g_bChkBB_DropTrophies) And SwitchBetweenBases()) Then CollectBuilderBase() BuilderBaseReport() StartClockTowerBoost() MainSuggestedUpgradeCode() If $g_bChkBB_DropTrophies Then BuilderBaseReport() BB_DropTrophies() ;------------------ADDED By RK MOD - by Chacal GYN - Drop Trophies (ID70) ------------------ EndIf SwitchBetweenBases() ; Switch back to normal village, If not DT EndIf
  13. ¿? ijust wanted to say that the bot writes again all the time it would be good if this is in the official version.
×