Skip to content

Commit

Permalink
* **V7.4.4**
Browse files Browse the repository at this point in the history
* Add AutoIt 3.3.14.3 support (though not advided to use, as still not all problems are resolved!)
* Add CoC shared_prefs folder support to Switch Accounts supporting also SuperCell ID accounts (saved in current users documents folder in MyBot.run-Profiles)
* Add allows account switching in the order: Donate - Shortest Active - Donate.....
* Add Automatically change the EN language when the language is wrong
* Add Not wait for Heroes when upgrade detected
* Fix DonateCC find donation button when opening donation window
* Fix Array-Error in weak-base routine
* Fix the stats for Dark Elixir using the previous account
* Fix no "External Edges" option for some languages
* Fix donate stats negative values on stats reset
* Fix unnecessary restart of CoC
* Fix ADB communication when Android is unrooted
* Fix Trouble finding research button
* Fix bot crash at launch when profile already in use
* Fix obstacles check not closing Google Play Games Accounts List
* Fix zoom-out issues and bot not working when special umlauts exist in installation path
* Fix BlueStacks not connecting ADB when ADB daemon not running before BlueStacks launch
* Improve Debug Button - Test Click Drag with user coor input, image save
* Improve Log file handling and create new log file only if none had been created in this and prior hour
* Update Arabic Language File (by @awssaad)
* Update Russian Language File (by @vlab97)
  • Loading branch information
cosote committed Feb 18, 2018
1 parent 651bb7f commit 986c5b9
Show file tree
Hide file tree
Showing 82 changed files with 1,879 additions and 738 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
* **V7.4.4**
* Add AutoIt 3.3.14.3 support (though not advided to use, as still not all problems are resolved!)
* Add CoC shared_prefs folder support to Switch Accounts supporting also SuperCell ID accounts (saved in current users documents folder in MyBot.run-Profiles)
* Add allows account switching in the order: Donate - Shortest Active - Donate.....
* Add Automatically change the EN language when the language is wrong
* Add Not wait for Heroes when upgrade detected
* Fix DonateCC find donation button when opening donation window
* Fix Array-Error in weak-base routine
* Fix the stats for Dark Elixir using the previous account
* Fix no "External Edges" option for some languages
* Fix donate stats negative values on stats reset
* Fix unnecessary restart of CoC
* Fix ADB communication when Android is unrooted
* Fix Trouble finding research button
* Fix bot crash at launch when profile already in use
* Fix obstacles check not closing Google Play Games Accounts List
* Fix zoom-out issues and bot not working when special umlauts exist in installation path
* Fix BlueStacks not connecting ADB when ADB daemon not running before BlueStacks launch
* Improve Debug Button - Test Click Drag with user coor input, image save
* Improve Log file handling and create new log file only if none had been created in this and prior hour
* Update Arabic Language File (by @awssaad)
* Update Russian Language File (by @Vlab97)

* **V7.4.3**
* Add MEmu 5 support
* Fix DonateCC find donation button and not detecting opening window sometimes
Expand Down
46 changes: 35 additions & 11 deletions COCBot/GUI/MBR GUI Control BOT Options.au3
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ Func chkSwitchAcc()
For $i = $g_hCmbTotalAccount To $g_ahChkDonate[7]
GUICtrlSetState($i, $GUI_ENABLE)
Next
chkSmartSwitch()
Else
releaseSwitchAccountMutex()
For $i = $g_hCmbTotalAccount To $g_ahChkDonate[7]
Expand Down Expand Up @@ -280,6 +281,7 @@ Func _cmbSwitchAcc($bReadSaveConfig = True)
GUICtrlSetState($i, (($bEnable) ? $GUI_ENABLE : $GUI_DISABLE))
Next
cmbTotalAcc()
chkSmartSwitch()
$s_bActive = False
EndFunc ;==>_cmbSwitchAcc

Expand All @@ -296,6 +298,15 @@ Func cmbTotalAcc()
Next
EndFunc ;==>cmbTotalAcc

Func chkSmartSwitch()
If GUICtrlRead($g_hChkSmartSwitch) = $GUI_CHECKED Then
GUICtrlSetState($g_hChkDonateLikeCrazy, $GUI_ENABLE)
Else
GUICtrlSetState($g_hChkDonateLikeCrazy, $GUI_UNCHECKED)
GUICtrlSetState($g_hChkDonateLikeCrazy, $GUI_DISABLE)
EndIf
EndFunc ;==>chkSmartSwitch

Func chkAccount($i)
If GUICtrlRead($g_ahChkAccount[$i]) = $GUI_CHECKED Then
_GUI_Value_STATE("ENABLE", $g_ahCmbProfile[$i] & "#" & $g_ahChkDonate[$i])
Expand Down Expand Up @@ -351,6 +362,10 @@ Func cmbSwitchAccProfileX()
Next
EndFunc ;==>cmbSwitchAccProfileX

Func chkSharedPrefs()
$g_bChkSharedPrefs = GUICtrlRead($g_hChkSharedPrefs) = $GUI_CHECKED
EndFunc ;==>chkSharedPrefs

; #DEBUG FUNCTION# ==============================================================================================================

Func chkDebugSetLog()
Expand Down Expand Up @@ -572,21 +587,30 @@ EndFunc ;==>btnTestAttackBar


Func btnTestClickDrag()
Local $sUserInputCoor = InputBox("Coordinators", "x1,y1,x2,y2", "650,473,323,473")
Local $asCoor = StringSplit($sUserInputCoor, ",")

Local $i
If @error Or $asCoor[0] <> 4 Then
SetLog("Please try again with the correct format...", $COLOR_ERROR)
Return
EndIf

SetLog("Testing Click drag functionality...", $COLOR_INFO)
For $i = 0 To 4
SetLog("Click x1/y1=100/600 and drag to x2/y2=150/600", $COLOR_INFO)
ClickDrag(100, 600, 150, 600)
Next
SetDebugLog("Waiting 3 Seconds...")
_SleepStatus(3000, True, True, False)
For $i = 0 To 4
SetLog("Click x1/y1=150/600 and drag to x2/y2=100/600", $COLOR_INFO)
ClickDrag(150, 600, 100, 600)
Next

SetLog("Drag from (" & $asCoor[1] & "," & $asCoor[2] & ") to (" & $asCoor[3] & "," & $asCoor[4] & ")", $COLOR_DEBUG)
ClickDrag(Int($asCoor[1]), Int($asCoor[2]), Int($asCoor[3]), Int($asCoor[4]))

SetLog("Sleep 3 seconds...", $COLOR_DEBUG)
_Sleep(3000, True, False)

SetLog("Save the image...", $COLOR_DEBUG)
DebugImageSave("TestClickDrag")

SetLog("Sleep 1 seconds...", $COLOR_DEBUG)
_Sleep(1000, True, False)

SetLog("Drag back", $COLOR_DEBUG)
ClickDrag(Int($asCoor[3]), Int($asCoor[4]), Int($asCoor[1]), Int($asCoor[2]))
EndFunc ;==>btnTestClickDrag

Func btnTestImage()
Expand Down
6 changes: 1 addition & 5 deletions COCBot/GUI/MBR GUI Control Bottom.au3
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
Global $g_aFrmBotBottomCtrlState, $g_hFrmBotEmbeddedShield = 0, $g_hFrmBotEmbeddedMouse = 0, $g_hFrmBotEmbeddedGraphics = 0

Func Initiate()
Static $bCheckLanguageFirst = False
WinGetAndroidHandle()
If $g_hAndroidWindow <> 0 And ($g_bAndroidBackgroundLaunched = True Or AndroidControlAvailable()) Then
SetLogCentered(" " & $g_sBotTitle & " Powered by MyBot.run ", "~", $COLOR_DEBUG)
Expand Down Expand Up @@ -75,10 +74,7 @@ Func Initiate()
BotDetectFirstTime()
If Not $g_bRunState Then Return

If Not $bCheckLanguageFirst And $g_bCheckGameLanguage Then
TestLanguage()
$bCheckLanguageFirst = True
EndIf
If $g_bCheckGameLanguage Then TestLanguage()
If Not $g_bRunState Then Return

runBot()
Expand Down
51 changes: 36 additions & 15 deletions COCBot/GUI/MBR GUI Control Child Misc.au3
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Func btnAddConfirm()
GUICtrlSetState($g_hBtnCancelProfileChange, $GUI_SHOW)
GUICtrlSetState($g_hBtnConfirmRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnPullSharedPrefs, $GUI_HIDE)
GUICtrlSetState($g_hBtnPushSharedPrefs, $GUI_HIDE)
Case $g_hBtnConfirmAddProfile
Local $newProfileName = StringRegExpReplace(GUICtrlRead($g_hTxtVillageName), '[/:*?"<>|]', '_')
If FileExists($g_sProfilePath & "\" & $newProfileName) Then
Expand All @@ -70,6 +72,8 @@ Func btnAddConfirm()
GUICtrlSetState($g_hBtnCancelProfileChange, $GUI_HIDE)
GUICtrlSetState($g_hBtnConfirmRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnRenameProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnPullSharedPrefs, $GUI_SHOW)
GUICtrlSetState($g_hBtnPushSharedPrefs, $GUI_SHOW)

If GUICtrlGetState($g_hBtnDeleteProfile) <> $GUI_ENABLE Then GUICtrlSetState($g_hBtnDeleteProfile, $GUI_ENABLE)
If GUICtrlGetState($g_hBtnRenameProfile) <> $GUI_ENABLE Then GUICtrlSetState($g_hBtnRenameProfile, $GUI_ENABLE)
Expand Down Expand Up @@ -106,6 +110,8 @@ Func btnDeleteCancel()
GUICtrlSetState($g_hBtnDeleteProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnConfirmRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnRenameProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnPullSharedPrefs, $GUI_SHOW)
GUICtrlSetState($g_hBtnPushSharedPrefs, $GUI_SHOW)
Case Else
SetLog("If you are seeing this log message there is something wrong.", $COLOR_ERROR)
EndSwitch
Expand All @@ -132,6 +138,8 @@ Func btnRenameConfirm()
GUICtrlSetState($g_hBtnCancelProfileChange, $GUI_SHOW)
GUICtrlSetState($g_hBtnRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnConfirmRenameProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnPullSharedPrefs, $GUI_HIDE)
GUICtrlSetState($g_hBtnPushSharedPrefs, $GUI_HIDE)
Case $g_hBtnConfirmRenameProfile
Local $newProfileName = StringRegExpReplace(GUICtrlRead($g_hTxtVillageName), '[/:*?"<>|]', '_')
If FileExists($g_sProfilePath & "\" & $newProfileName) Then
Expand All @@ -153,11 +161,21 @@ Func btnRenameConfirm()
GUICtrlSetState($g_hBtnDeleteProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnConfirmRenameProfile, $GUI_HIDE)
GUICtrlSetState($g_hBtnRenameProfile, $GUI_SHOW)
GUICtrlSetState($g_hBtnPullSharedPrefs, $GUI_SHOW)
GUICtrlSetState($g_hBtnPushSharedPrefs, $GUI_SHOW)
Case Else
SetLog("If you are seeing this log message there is something wrong.", $COLOR_ERROR)
EndSwitch
EndFunc ;==>btnRenameConfirm

Func btnPullSharedPrefs()
PullSharedPrefs()
EndFunc

Func btnPushSharedPrefs()
PushSharedPrefs()
EndFunc

Func cmbBotCond()
If _GUICtrlComboBox_GetCurSel($g_hCmbBotCond) = 15 Then
If _GUICtrlComboBox_GetCurSel($g_hCmbHoursStop) = 0 Then _GUICtrlComboBox_SetCurSel($g_hCmbHoursStop, 1)
Expand Down Expand Up @@ -240,24 +258,27 @@ EndFunc ;==>btnLocateWardenAltar

Func btnLocateTownHall()
Local $wasRunState = $g_bRunState
Local $g_iOldTownHallLevel = $g_iTownHallLevel
$g_bRunState = True
ZoomOut()
LocateTownHall()
_ExtMsgBoxSet(1 + 64, $SS_CENTER, 0x004080, 0xFFFF00, 12, "Comic Sans MS", 600)
Local $stext = @CRLF & GetTranslatedFileIni("MBR Popups", "Locating_your_TH", "If you locating your TH because you upgraded,") & @CRLF & _
GetTranslatedFileIni("MBR Popups", "Must_restart_bot", "then you must restart bot!!!") & @CRLF & @CRLF & _
GetTranslatedFileIni("MBR Popups", "OK_to_restart_bot", "Click OK to restart bot,") & @CRLF & @CRLF & GetTranslatedFileIni("MBR Popups", "Cancel_to_exit", "Or Click Cancel to exit") & @CRLF
Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Popups", "Ok_Cancel", "Ok|Cancel"), GetTranslatedFileIni("MBR Popups", "Close_Bot", "Close Bot Please!"), $stext, 120)
If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG)
If $MsgBox = 1 Then
#cs
Local $stext = @CRLF & GetTranslatedFileIni("MBR Popups", "Sure_Close Bot", "Are you 100% sure you want to restart bot ?") & @CRLF & @CRLF & _
GetTranslatedFileIni("MBR Popups", "Restart_bot", "Click OK to close bot and then restart the bot (manually)") & @CRLF & @CRLF & GetTranslatedFileIni("MBR Popups", "Cancel_to_exit", -1) & @CRLF
Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Popups", "Ok_Cancel", -1), GetTranslatedFileIni("MBR Popups", "Close_Bot", -1), $stext, 120)
If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG)
If $MsgBox = 1 Then BotClose(False)
#ce
RestartBot(False, $wasRunState)
If Not $g_iOldTownHallLevel = $g_iTownHallLevel Then
_ExtMsgBoxSet(1 + 64, $SS_CENTER, 0x004080, 0xFFFF00, 12, "Comic Sans MS", 600)
Local $stext = @CRLF & GetTranslatedFileIni("MBR Popups", "Locating_your_TH", "If you locating your TH because you upgraded,") & @CRLF & _
GetTranslatedFileIni("MBR Popups", "Must_restart_bot", "then you must restart bot!!!") & @CRLF & @CRLF & _
GetTranslatedFileIni("MBR Popups", "OK_to_restart_bot", "Click OK to restart bot,") & @CRLF & @CRLF & GetTranslatedFileIni("MBR Popups", "Cancel_to_exit", "Or Click Cancel to exit") & @CRLF
Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Popups", "Ok_Cancel", "Ok|Cancel"), GetTranslatedFileIni("MBR Popups", "Close_Bot", "Close Bot Please!"), $stext, 120)
If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG)
If $MsgBox = 1 Then
#cs
Local $stext = @CRLF & GetTranslatedFileIni("MBR Popups", "Sure_Close Bot", "Are you 100% sure you want to restart bot ?") & @CRLF & @CRLF & _
GetTranslatedFileIni("MBR Popups", "Restart_bot", "Click OK to close bot and then restart the bot (manually)") & @CRLF & @CRLF & GetTranslatedFileIni("MBR Popups", "Cancel_to_exit", -1) & @CRLF
Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Popups", "Ok_Cancel", -1), GetTranslatedFileIni("MBR Popups", "Close_Bot", -1), $stext, 120)
If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG)
If $MsgBox = 1 Then BotClose(False)
#ce
RestartBot(False, $wasRunState)
EndIf
EndIf
$g_bRunState = $wasRunState
AndroidShield("btnLocateTownHall") ; Update shield status due to manual $g_bRunState
Expand Down
11 changes: 10 additions & 1 deletion COCBot/GUI/MBR GUI Control Tab Search.au3
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ Func EnableSearchPanels($mode)
GUICtrlRead($g_hChkDBKingWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkDBQueenWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkDBWardenWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkDBNotWaitHeroes) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkDBSpellsWait) = $GUI_CHECKED Then
_GUI_Value_STATE("SHOW", $groupHerosDB)
;search
Expand Down Expand Up @@ -221,6 +222,7 @@ Func EnableSearchPanels($mode)
GUICtrlRead($g_hChkABKingWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkABQueenWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkABWardenWait) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkABNotWaitHeroes) = $GUI_CHECKED Or _
GUICtrlRead($g_hChkABSpellsWait) = $GUI_CHECKED Then
_GUI_Value_STATE("SHOW", $groupHerosAB)
;search
Expand Down Expand Up @@ -744,4 +746,11 @@ Func tsCheckAll()
GUICtrlSetState($g_hChkTHSnipe, $GUI_CHECKED)
EndIf
tabSEARCH()
EndFunc ;==>tsCheckAll
EndFunc ;==>tsCheckAll

Func chkNotWaitHeroes()
If $g_abAttackTypeEnable[$DB] Then $g_iSearchNotWaitHeroesEnable = $g_aiSearchNotWaitHeroesEnable[$DB]
If $g_abAttackTypeEnable[$LB] Then
If $g_iSearchNotWaitHeroesEnable <> 0 Then $g_iSearchNotWaitHeroesEnable = $g_aiSearchNotWaitHeroesEnable[$LB]
EndIf
EndFunc ;==>ChkNotWaitHeroes
4 changes: 2 additions & 2 deletions COCBot/GUI/MBR GUI Design About.au3
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Func CreateAboutTab()
GUICtrlCreateLabel($sText, $x - 5, $y, 410, 20, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9.5, $FW_BOLD, Default, "Arial")
GUICtrlSetColor(-1, $COLOR_NAVY)
$sText = "Cosote, Fliegerfaust, NguyenAnhHD"
$sText = "Cosote, Fliegerfaust, MHK2012, MMHK, NguyenAnhHD, TripleM"
GUICtrlCreateLabel($sText, $x + 5, $y + 15, 410, 50, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9, $FW_MEDIUM, Default, "Arial")

Expand All @@ -59,7 +59,7 @@ Func CreateAboutTab()
GUICtrlCreateLabel($sText, $x - 5, $y, 410, 20, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9.5, $FW_BOLD, Default, "Arial")
GUICtrlSetColor(-1, $COLOR_NAVY)
$sText = "Boju, Codeslinger69, Ezeck0001, Hervidero, IceCube, Kaganus, MMHK, MR.ViPeR, Sardo, TheRevenor, TripleM, Trlopes"
$sText = "Boju, Codeslinger69, Ezeck0001, Hervidero, IceCube, Kaganus, MR.ViPeR, Sardo, TheRevenor, Trlopes"
GUICtrlCreateLabel($sText, $x + 5, $y + 15, 410, 50, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9, $FW_MEDIUM, Default, "Arial")

Expand Down
11 changes: 8 additions & 3 deletions COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Global $g_hChkABActivateSearches = 0, $g_hTxtABSearchesMin = 0, $g_hTxtABSearchesMax = 0 ; Search count limit
Global $g_hChkABActivateTropies = 0, $g_hTxtABTropiesMin = 0, $g_hTxtABTropiesMax = 0 ; Trophy limit
Global $g_hChkABActivateCamps = 0, $g_hTxtABArmyCamps = 0 ; Camp limit
Global $g_hChkABKingWait = 0, $g_hChkABQueenWait = 0, $g_hChkABWardenWait = 0
Global $g_hChkABKingWait = 0, $g_hChkABQueenWait = 0, $g_hChkABWardenWait = 0, $g_hChkABNotWaitHeroes = 0
Global $g_hChkABSpellsWait = 0, $g_hChkABWaitForCastleSpell = 0, $g_hCmbABWaitForCastleSpell = 0,$g_hCmbABWaitForCastleSpell2 = 0, $g_hTxtABWaitForCastleSpell = 0, $g_hChkABWaitForCastleTroops = 0

Global $g_hLblABSearches = 0, $g_hLblABTropies = 0, $g_hLblABArmyCamps = 0
Expand Down Expand Up @@ -146,7 +146,13 @@ Func CreateAttackSearchActiveBaseSearch()
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetState(-1, $GUI_HIDE)

$y += 80
$y += 75
$x = 10
$g_hChkABNotWaitHeroes = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkNotWaitHeroes", -1), $x, $y, -1, -1)
_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkNotWaitHeroes_Info_01", -1))
GUICtrlSetOnEvent(-1, "chkNotWaitHeroes")

$y += 25
$x = 8
$g_hPicABLightSpellWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x, $y, 22, 22)
$g_hPicABHealSpellWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 23, $y, 22, 22)
Expand All @@ -158,7 +164,6 @@ Func CreateAttackSearchActiveBaseSearch()
$g_hPicABHasteSpellWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHasteSpell, $x + 161, $y, 22, 22)

$y += 22
$x = 10
$x = 10
$g_hChkABSpellsWait = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkSpellsWait", -1), $x, $y, -1, -1)
_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkSpellsWait_Info_01", -1) & @CRLF & _
Expand Down
10 changes: 8 additions & 2 deletions COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Global $g_hChkDBActivateSearches = 0, $g_hTxtDBSearchesMin = 0, $g_hTxtDBSearchesMax = 0 ; Search count limit
Global $g_hChkDBActivateTropies = 0, $g_hTxtDBTropiesMin = 0, $g_hTxtDBTropiesMax = 0 ; Trophy limit
Global $g_hChkDBActivateCamps = 0, $g_hTxtDBArmyCamps = 0 ; Camp limit
Global $g_hChkDBKingWait = 0, $g_hChkDBQueenWait = 0, $g_hChkDBWardenWait = 0
Global $g_hChkDBKingWait = 0, $g_hChkDBQueenWait = 0, $g_hChkDBWardenWait = 0, $g_hChkNotWaitHeros = 0, $g_hChkDBNotWaitHeroes = 0
Global $g_hChkDBSpellsWait = 0, $g_hChkDBWaitForCastleSpell = 0, $g_hCmbDBWaitForCastleSpell = 0, $g_hCmbDBWaitForCastleSpell = 0,$g_hCmbDBWaitForCastleSpell2 = 0, $g_hTxtDBWaitForCastleSpell = 0, $g_hChkDBWaitForCastleTroops = 0

Global $g_hLblDBSearches = 0, $g_hLblDBTropies = 0, $g_hLblDBArmyCamps = 0
Expand Down Expand Up @@ -147,7 +147,13 @@ Func CreateAttackSearchDeadBaseSearch()
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetState(-1, $GUI_HIDE)

$y += 80
$y += 75
$x = 10
$g_hChkDBNotWaitHeroes = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkNotWaitHeroes", "Not wait for Heroes when upgrade"), $x, $y, -1, -1)
_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkNotWaitHeroes_Info_01", "Continue to attack, when Upgrade heroes and enable Wait for heroes."))
GUICtrlSetOnEvent(-1, "chkNotWaitHeroes")

$y += 25
$x = 8
$g_hPicDBLightSpellWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x, $y, 22, 22)
$g_hPicDBHealSpellWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 23, $y, 22, 22)
Expand Down
2 changes: 1 addition & 1 deletion COCBot/GUI/MBR GUI Design Child Bot - Debug.au3
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Func CreateBotDebug()
$g_hBtnTestAttackBar = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Bot - Debug", "BtnTestAttackBar", "Test Attack Bar"), $x, $y, 140, 25)
$y += $yNext

$g_hBtnTestClickDrag = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Bot - Debug", "BtnTestClickDrag", "Test Click Drag (scrolling)"), $x, $y, 140, 25)
$g_hBtnTestClickDrag = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Bot - Debug", "BtnTestClickDrag", "Test Click Drag"), $x, $y, 140, 25)
$y += $yNext

$g_hBtnTestImage = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Bot - Debug", "BtnTestImage", "Test Image"), $x, $y, 140, 25)
Expand Down
Loading

0 comments on commit 986c5b9

Please sign in to comment.