Skip to content

Commit

Permalink
* v8.1.7
Browse files Browse the repository at this point in the history
* Added Fireball equipment support.
* Improved Donation system.
* Fixed Overgrowth spell donate strings translation.
* Improved Builder count.
* Updated donateCCWBL.
* Added Space Scenery support (attack only).
* Typo
* Added Blacksmith level 7/8 template.
* Improved Super Dragon detection in attack bar.
* Improved Space Scenery detection (Attack only).
* Improved Hog puppet equipment detection.
* Improved Pet level OCR (3 and 1).
* Improved Hero heal status detection.
* Updated Hero heal time OCR area.
* Improved Boost button detection.
* Improved Army cap OCR (0).
* Improved Open donate window detection.
* Added DE Drill level 10 template.
* Added ClanGamesRewards.ini creating if missing.
* Updated Upgrade in progress color detection.
* Improved CG events detection.
* Improved Troops upgrade cost detection (3 white OCR).
* Fixed Share replay function.
* Fixed Unbreakable function.
* Improved Remaining training time OCR (7/9).
* Improved Donate button detection.
* Improved Elixir collector level 16 detection (Dead base and smart).
* Improved Giant and wall breaker detection for donation.
* Fixed Battle Copter window detection.
* Fixed Bob Control upgrades white zeros detection.
* Added Builder boost perks to bob control upgrades prices.
* Improved EQ spell detection for donation.
* Improved Laboratory status detection.
* Added Full support for Magic and Egypt Scenery.
* Changed Loot Cart templates for detection.
* Improved Obstacles remove.
* Improved Buildings info OCR.
* Added New pet support (Angry Jelly).
* Added Support for Eagle level 7 and Monolith level 3.
* Update Flame Flinger max level.
* Added Equipment challenges to Clan Games (Code Only).
* Updated some GUI images.
** Added support for COC 16.253.15.
* Fixed Donations.
* Fixed CC Status Detection.
* Fixed missing _FilloBldgLevels() call.
* Updated CC Spells/Sieges remove.
* Change Egypt and Magic scenery fixed point detection.
* Improved egyptian boat detection.
* Increased cc spells/sieges speed detection.
* Added Hog Gliders clan games event template.
* Added Dead Eagle level 6 template.
* Reduced Equipment updgrade display to 10 equipment.
* Improved Donate window position detection.
* Updated Siege switching detection area.
* Fixed siege switching.
* Fixed 6 red OCR for queue troops.
* Added support for Streak Event in bonus calculation.
* Improved Super Troops Count OCR in Army Overview.
* Improved Egypt and Magic Scenery Zoom Out.
* Fixed donation (COC 16.253.25).
* Added Spiky Ball equipment support.
* Fixed CC Sieges Removing array issue.
* Added Football scenery support (Attack Only).
* Added Pressure and zoom out script randomization (Minitouch).
* Added Rocket Spear Equipment support.
* Added Wild West scenery (Attack Only).
* Improved Sieges training ClickDrag.
* Improved Blacksmith auto location.
* Improved TH16 detection.
* Improved Army count OCR.
* Improved Donate detection for : SWall, ETitan, FFlinger, SDrag, Wizard.
* Improved BatSpell detection in Army Overview.
* Improved few obstacles detection.
* Added Full Support for Druid Troop.
* Updated Pets Cost.
* Fixed SCID Switch.
* Added Builder's Apprentice Support.
* Updated Walls Cost.
* Added Streak Event Window Support.
* Added Choice To Finish Current Equipment Upgrade first.
* Added New Survey Window Detection.
* Updated Ban Window Detection.
* Typo
* Improved Builder's Apprentice Cooldown OCR.
* Added Magic Mirror Equipment Support.
* Added Clash Game Stadium and Anime Sceneries Support (Attack Only).
* Added More Builder's Apprentice Options.
* Updated Close SCID Window Button Coordinates.
* Updated Trader Menu Coordinates.
* Updated Clan Capital Buildings OCR Area (Menu).
* Improved Daily Challenge Collect.
* Updated Nox Version Support.
* Improved Few OCR Libs.
* Improved few Sceneries Detection (Attack Only).
* Improved Heroes Status Detection.
* Fixed Super Archer Donation.
* Improved Anime Scenery Detection (Attack Only).
* Fixed BS5 Shared Folder Mounting.
* Updated Nox and BS5 Supported Versions.
* Fixed Clan Games Rewards Collect (6th column + BOE).
* Fixed SCID Switch (COC 16.517.4).
* Added Auto-Deny for Personnal Datas Sharing.
* Updated Building Info Position.
* Fixed App Builder Assign Button detection.
* Improved Apprentice Builder Time OCR.
* Added support for dynamic building info position (Supercharge).
* Improved Builder Base Upgrade Detection.
* Added Treasury Hunt Event Window Support.
* Fixed Shared_Prefs Switch Method.
* Removed Google Play Switch.
* Improved DonateWindowCap().
* Updated Use Boost Potion Button Position.
* Improved Daily Challenges Collect.
* Added Clash of Dragons Scenery Support (Attack Only).
* Added Special Event Attack Button Support.
* Improved Chest Room Support.
* Added Collect Resources only if not full.
* Improved Build lib ("O" and "E").
* Improved few time controlers.
* Improved Treasury chest control.
* Improved Attack! Button management.
* Improved Claim Reward Button detection.
* Improved Donation System.
* Improved 8 digit detection for GuardShield.
* Added WaitForClanMessage for donation.
* Improved MakingDonatedTroops().
* Improved IsDonateQueueOnly().
* Improved Clan Games Event Purge Cooldown Management.
* Hidden Clan Games Equipement Challenges.
* Changed Defaut Scenery Detection Points (Allows broken boat).
* Improved BB Troops Upgrade Red Cost OCR.
* Fixed BB Broken Buildings OCR.
* Added Dont Collect Loot Cart And Treasury If Resources are Full.
* Updated Legend League support.
* Improved Profil Report.
* Added Supercharge Collector Detection (Dead Bases).
* Added Support For 7 Extra Troops
* Improved CC Building names OCR in Menu.
* Added Support For Lavaloon Puppet Equipment.
* Added Doomed Scenery Support (Attack Only).
  • Loading branch information
MonkeyHunter committed Oct 19, 2024
1 parent c6ca238 commit 6551cc4
Show file tree
Hide file tree
Showing 585 changed files with 6,476 additions and 4,667 deletions.
145 changes: 144 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,147 @@
* v8.1.6
* v8.1.7
* Added Fireball equipment support.
* Improved Donation system.
* Fixed Overgrowth spell donate strings translation.
* Improved Builder count.
* Updated donateCCWBL.
* Added Space Scenery support (attack only).
* Typo
* Added Blacksmith level 7/8 template.
* Improved Super Dragon detection in attack bar.
* Improved Space Scenery detection (Attack only).
* Improved Hog puppet equipment detection.
* Improved Pet level OCR (3 and 1).
* Improved Hero heal status detection.
* Updated Hero heal time OCR area.
* Improved Boost button detection.
* Improved Army cap OCR (0).
* Improved Open donate window detection.
* Added DE Drill level 10 template.
* Added ClanGamesRewards.ini creating if missing.
* Updated Upgrade in progress color detection.
* Improved CG events detection.
* Improved Troops upgrade cost detection (3 white OCR).
* Fixed Share replay function.
* Fixed Unbreakable function.
* Improved Remaining training time OCR (7/9).
* Improved Donate button detection.
* Improved Elixir collector level 16 detection (Dead base and smart).
* Improved Giant and wall breaker detection for donation.
* Fixed Battle Copter window detection.
* Fixed Bob Control upgrades white zeros detection.
* Added Builder boost perks to bob control upgrades prices.
* Improved EQ spell detection for donation.
* Improved Laboratory status detection.
* Added Full support for Magic and Egypt Scenery.
* Changed Loot Cart templates for detection.
* Improved Obstacles remove.
* Improved Buildings info OCR.
* Added New pet support (Angry Jelly).
* Added Support for Eagle level 7 and Monolith level 3.
* Update Flame Flinger max level.
* Added Equipment challenges to Clan Games (Code Only).
* Updated some GUI images.
** Added support for COC 16.253.15.
* Fixed Donations.
* Fixed CC Status Detection.
* Fixed missing _FilloBldgLevels() call.
* Updated CC Spells/Sieges remove.
* Change Egypt and Magic scenery fixed point detection.
* Improved egyptian boat detection.
* Increased cc spells/sieges speed detection.
* Added Hog Gliders clan games event template.
* Added Dead Eagle level 6 template.
* Reduced Equipment updgrade display to 10 equipment.
* Improved Donate window position detection.
* Updated Siege switching detection area.
* Fixed siege switching.
* Fixed 6 red OCR for queue troops.
* Added support for Streak Event in bonus calculation.
* Improved Super Troops Count OCR in Army Overview.
* Improved Egypt and Magic Scenery Zoom Out.
* Fixed donation (COC 16.253.25).
* Added Spiky Ball equipment support.
* Fixed CC Sieges Removing array issue.
* Added Football scenery support (Attack Only).
* Added Pressure and zoom out script randomization (Minitouch).
* Added Rocket Spear Equipment support.
* Added Wild West scenery (Attack Only).
* Improved Sieges training ClickDrag.
* Improved Blacksmith auto location.
* Improved TH16 detection.
* Improved Army count OCR.
* Improved Donate detection for : SWall, ETitan, FFlinger, SDrag, Wizard.
* Improved BatSpell detection in Army Overview.
* Improved few obstacles detection.
* Added Full Support for Druid Troop.
* Updated Pets Cost.
* Fixed SCID Switch.
* Added Builder's Apprentice Support.
* Updated Walls Cost.
* Added Streak Event Window Support.
* Added Choice To Finish Current Equipment Upgrade first.
* Added New Survey Window Detection.
* Updated Ban Window Detection.
* Typo
* Improved Builder's Apprentice Cooldown OCR.
* Added Magic Mirror Equipment Support.
* Added Clash Game Stadium and Anime Sceneries Support (Attack Only).
* Added More Builder's Apprentice Options.
* Updated Close SCID Window Button Coordinates.
* Updated Trader Menu Coordinates.
* Updated Clan Capital Buildings OCR Area (Menu).
* Improved Daily Challenge Collect.
* Updated Nox Version Support.
* Improved Few OCR Libs.
* Improved few Sceneries Detection (Attack Only).
* Improved Heroes Status Detection.
* Fixed Super Archer Donation.
* Improved Anime Scenery Detection (Attack Only).
* Fixed BS5 Shared Folder Mounting.
* Updated Nox and BS5 Supported Versions.
* Fixed Clan Games Rewards Collect (6th column + BOE).
* Fixed SCID Switch (COC 16.517.4).
* Added Auto-Deny for Personnal Datas Sharing.
* Updated Building Info Position.
* Fixed App Builder Assign Button detection.
* Improved Apprentice Builder Time OCR.
* Added support for dynamic building info position (Supercharge).
* Improved Builder Base Upgrade Detection.
* Added Treasury Hunt Event Window Support.
* Fixed Shared_Prefs Switch Method.
* Removed Google Play Switch.
* Improved DonateWindowCap().
* Updated Use Boost Potion Button Position.
* Improved Daily Challenges Collect.
* Added Clash of Dragons Scenery Support (Attack Only).
* Added Special Event Attack Button Support.
* Improved Chest Room Support.
* Added Collect Resources only if not full.
* Improved Build lib ("O" and "E").
* Improved few time controlers.
* Improved Treasury chest control.
* Improved Attack! Button management.
* Improved Claim Reward Button detection.
* Improved Donation System.
* Improved 8 digit detection for GuardShield.
* Added WaitForClanMessage for donation.
* Improved MakingDonatedTroops().
* Improved IsDonateQueueOnly().
* Improved Clan Games Event Purge Cooldown Management.
* Hidden Clan Games Equipement Challenges.
* Changed Defaut Scenery Detection Points (Allows broken boat).
* Improved BB Troops Upgrade Red Cost OCR.
* Fixed BB Broken Buildings OCR.
* Added Dont Collect Loot Cart And Treasury If Resources are Full.
* Updated Legend League support.
* Improved Profil Report.
* Added Supercharge Collector Detection (Dead Bases).
* Added Support For 7 Extra Troops
* Improved CC Building names OCR in Menu.
* Added Support For Lavaloon Puppet Equipment.
* Added Doomed Scenery Support (Attack Only).

* v8.1.6 **
* Added "Before you upgrade" window support.
* Improved Blacksmith equipement upgrade.
* Fixed BB Repair Building.
Expand Down
6 changes: 1 addition & 5 deletions COCBot/GUI/MBR GUI Control Android.au3
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ Func getAllEmulators()

Local $aEmulator = StringSplit($sEmulatorString, "|", $STR_NOCOUNT)
If $sEmulatorString <> "" Then
If UBound($aEmulator) = 1 Then
Setlog("Emulator Found In Your Machine :")
Else
Setlog(UBound($aEmulator) & " Emulators Found In Your Machine :")
EndIf
Setlog("Emulator" & (UBound($aEmulator) > 1 ? "s" : "") & " Found In Your Machine :")
For $i = 0 To UBound($aEmulator) - 1
Local $emuVer = ""
If StringInStr($aEmulator[$i], "BlueStacks") Then $emuVer = $__BlueStacks_Version
Expand Down
4 changes: 2 additions & 2 deletions COCBot/GUI/MBR GUI Control Attack Scripted.au3
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Func ApplyScriptDB()
Local $iApply = 0
Local $iApplySieges = 0
Local $iSlot = 0
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
Expand Down Expand Up @@ -422,7 +422,7 @@ Func ApplyScriptAB()
Local $iApply = 0
Local $iApplySieges = 0
Local $iSlot = 0
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0]
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0]
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
Expand Down
14 changes: 7 additions & 7 deletions COCBot/GUI/MBR GUI Control BOT Options.au3
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Func chkDebugFunc()
SetDebugLog("DebugFunc " & ($bDebugFunc ? "enabled" : "disabled"))
EndFunc ;==>chkDebugFunc

Func chkDebugDisableZoomout()
Func chkDebugDisableZoomOut()
$g_bDebugDisableZoomout = (GUICtrlRead($g_hChkDebugDisableZoomout) = $GUI_CHECKED)
SetDebugLog("DebugDisableZoomout " & ($g_bDebugDisableZoomout ? "enabled" : "disabled"))
EndFunc ;==>chkDebugDisableZoomout
Expand Down Expand Up @@ -437,7 +437,7 @@ Func btnTestDonateCC()
$g_aiCurrentSiegeMachines[$eSiegeLogLauncher] = 1
$g_aiCurrentSiegeMachines[$eSiegeFlameFlinger] = 1
$g_aiCurrentSiegeMachines[$eSiegeBattleDrill] = 1
DonateCC()
DonateCC(False)
SetLog(_PadStringCenter(" Test DonateCC end ", 54, "="), $COLOR_INFO)

$g_bRunState = $currentRunState
Expand Down Expand Up @@ -625,6 +625,8 @@ Func btnTestVillageSize()
EndFunc ;==>btnTestVillageSize

Func btnTestDeadBase()
_GUICtrlTab_ClickTab($g_hTabMain, 0)

Local $hBMP = 0, $hHBMP = 0
Local $sImageFile = FileOpenDialog("Select CoC screenshot to test, cancel to use live screenshot", $g_sProfileTempPath, "Image (*.png)", $FD_FILEMUSTEXIST, "", $g_hFrmBot)
If @error <> 0 Then
Expand Down Expand Up @@ -652,7 +654,7 @@ Func btnTestDeadBase()
SetLog("$g_sImglocRedline = " & $g_sImglocRedline, $COLOR_INFO)

SetLog("Testing checkDeadBase()", $COLOR_INFO)
SetLog("Result checkDeadBase() = " & checkDeadBase(), $COLOR_INFO)
SetLog("Result checkDeadBase() = " & checkDeadBase(True), $COLOR_INFO)
SetLog("Testing checkDeadBase() DONE", $COLOR_INFO)

If $hHBMP <> 0 Then
Expand All @@ -664,17 +666,15 @@ Func btnTestDeadBase()
EndFunc ;==>btnTestDeadBase

Func btnTestDeadBaseFolder()
_GUICtrlTab_ClickTab($g_hTabMain, 0)

;Local $directory = FileOpenDialog("Select folder of CoC village screenshot to test for dead base", $g_sProfileTempPath, "Image (*.png)", $FD_PATHMUSTEXIST, "", $g_hFrmBot)
Local $directory = FileSelectFolder("Select folder of CoC village screenshot to test for dead base", "", $FSF_NEWDIALOG, @ScriptDir, $g_hFrmBot)
If @error <> 0 Then
SetLog("btnTestDeadBaseFolder cancelled", $COLOR_INFO)
EndIf

;checkDeadBaseFolder($directory, "checkDeadBaseNew()", "checkDeadBaseSuperNew()")
Local $oldFill = 'checkDeadBaseSuperNew(False, "' & @ScriptDir & "\imgxml\deadbase\elix\fill\old\" & '")'
Local $newFill = 'checkDeadBaseSuperNew(False, "' & @ScriptDir & "\imgxml\deadbase\elix\fill\new\" & '")'
checkDeadBaseFolder($directory, $oldFill, $newFill)
checkDeadBaseFolder($directory)

EndFunc ;==>btnTestDeadBaseFolder

Expand Down
2 changes: 2 additions & 0 deletions COCBot/GUI/MBR GUI Control Bottom.au3
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Func Initiate()

$g_bInitiateSwitchAcc = True
$g_sLabUpgradeTime = ""
$g_sPetUpgradeTime = ""
$g_sBSmithUpgradeTime = ""
For $i = 0 To $eLootCount - 1
$g_abFullStorage[$i] = False
Next
Expand Down
8 changes: 4 additions & 4 deletions COCBot/GUI/MBR GUI Control Child Army.au3
Original file line number Diff line number Diff line change
Expand Up @@ -1525,10 +1525,10 @@ Func RemoveAllTmpTrain($sWhat = "All")
EndFunc ;==>RemoveAllTmpTrain

Func HideAllTroops()
For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopAppWard]
For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopDruid]
GUICtrlSetState($i, $GUI_HIDE)
Next
For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopAppWard]
For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopDruid]
GUICtrlSetState($i, $GUI_HIDE)
Next
For $i = $g_ahPicTrainArmyTroop[$eTroopBarbarian] To $g_ahPicTrainArmyTroop[$eTroopRootRider]
Expand Down Expand Up @@ -1590,10 +1590,10 @@ EndFunc ;==>BtnElixirTroops

Func BtnDarkElixirTroops()
HideAllTroops()
For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopAppWard]
For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopDruid]
GUICtrlSetState($i, $GUI_SHOW)
Next
For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopAppWard]
For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopDruid]
GUICtrlSetState($i, $GUI_SHOW)
Next
SetBtnSelector("DarkElixirTroops")
Expand Down
31 changes: 31 additions & 0 deletions COCBot/GUI/MBR GUI Control Child Misc.au3
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,15 @@ Func chkActivateClangames()
GUICtrlSetState($i, $GUI_ENABLE)
Next
GUICtrlSetState($g_hChkClanGamesCollectRewards, $GUI_ENABLE)
GUICtrlSetState($g_hTxtClanGamesLog, $GUI_ENABLE)
Else
GUICtrlSetState($g_hBtnCGRewardsSettingsOpen, $GUI_DISABLE)
GUICtrlSetState($g_hBtnCGSettingsOpen, $GUI_DISABLE)
For $i = $g_hChkClanGamesAllTimes To $g_hChkClanGamesNoOneDay
GUICtrlSetState($i, $GUI_DISABLE)
Next
GUICtrlSetState($g_hChkClanGamesCollectRewards, $GUI_DISABLE)
GUICtrlSetState($g_hTxtClanGamesLog, $GUI_DISABLE)
EndIf
EndFunc ;==>chkActivateClangames

Expand Down Expand Up @@ -1202,6 +1204,33 @@ Func CGMainGroundTVItem()
Next
EndFunc ;==>CGMainGroundTVItem

Func CGEquipmentTVRoot()
If BitAND(GUICtrlRead($g_hChkCGEquipment), $GUI_CHECKED) And GUICtrlRead($g_hChkCGRootEnabledAll) = $GUI_CHECKED Then ;root Clangames MainVillage Equipment Challenges
For $i = 0 To UBound($g_ahCGEquipmentItem) - 1
GUICtrlSetState($g_ahCGEquipmentItem[$i], $GUI_CHECKED)
Next
EndIf
If Not BitAND(GUICtrlRead($g_hChkCGEquipment), $GUI_CHECKED) And GUICtrlRead($g_hChkCGRootEnabledAll) = $GUI_CHECKED Then ;root Clangames MainVillage Equipment Challenges
For $i = 0 To UBound($g_ahCGEquipmentItem) - 1
GUICtrlSetState($g_ahCGEquipmentItem[$i], $GUI_UNCHECKED)
Next
EndIf
GUICtrlSetData($g_hLabelClangamesDesc, "Enable/Disable Main Village Equipment Challenges")
EndFunc ;==>CGEquipmentTVRoot

Func CGEquipmentTVItem()
Local $tmpChallenges = ClanGamesChallenges("$EquipmentChallenges")
For $i = 0 To UBound($g_ahCGEquipmentItem) - 1
If GUICtrlRead($g_hClanGamesTV) = $g_ahCGEquipmentItem[$i] Then
GUICtrlSetData($g_hLabelClangamesDesc, $tmpChallenges[$i][4] & @CRLF & "Required TH Level : " & $tmpChallenges[$i][2] _
& @CRLF & "Difficulty : " & $tmpChallenges[$i][3])
ExitLoop
Else
GUICtrlSetData($g_hLabelClangamesDesc, "")
EndIf
Next
EndFunc ;==>CGEquipmentTVItem

Func CGMainMiscTVRoot()
If BitAND(GUICtrlRead($g_hChkCGMainMisc), $GUI_CHECKED) And GUICtrlRead($g_hChkCGRootEnabledAll) = $GUI_CHECKED Then ;root Clangames MainVillage Miscellaneous Challenges
For $i = 0 To UBound($g_ahCGMainMiscItem) - 1
Expand Down Expand Up @@ -1423,11 +1452,13 @@ Func EnableAutoUpgradeCC()
For $i = $g_hChkAutoUpgradeCCPriorArmy To $g_hChkAutoUpgradeCCWallIgnore
GUICtrlSetState($i, $GUI_ENABLE)
Next
GUICtrlSetState($g_hTxtAutoUpgradeCCLog, $GUI_ENABLE)
Else
$g_bChkEnableAutoUpgradeCC = False
For $i = $g_hChkAutoUpgradeCCPriorArmy To $g_hChkAutoUpgradeCCWallIgnore
GUICtrlSetState($i, $GUI_DISABLE)
Next
GUICtrlSetState($g_hTxtAutoUpgradeCCLog, $GUI_DISABLE)
EndIf
EndFunc ;==>EnableAutoUpgradeCC

Expand Down
Loading

0 comments on commit 6551cc4

Please sign in to comment.