Skip to content

Commit

Permalink
* **V7.6.5**
Browse files Browse the repository at this point in the history
* Add Ice Golem Support @ViperZ
* Add Bat Spell Support @ViperZ
* Add Stone Slammer Support @ViperZ
* Fixed Snow Theme Detection (December 2018 Update)
* Fixed Request Clan Castle (December 2018 Update)
* Fixed Edit/Remove Army (December 2018 Update)
* Fixed Clan Games not opening due to snow (December 2018 Update)
* Fixed Switch Account (December 2018 Update)
* Fixed Laboratory (December 2018 Update)
* Fixed Collectors Level 13 Snow Theme (December 2018 Update)
* Fixed Laboratory Time Position Change, reported/fixed by Fahid.Mahmood (October 2018 Update)
* Fixed new elixir collector level 13 (October 2018 Update)
* Fixed new dark elixir drill level 7 (October 2018 Update)
* Fixed error "Cannot open Army Overview window" when "Wait for Clan Castle" enabled and Castle is not full, fixed by @demen
* Fixed switch account never switch back to the account in personal break, fixed by @demen
* Fixed clan chat did not open when donating CC, fixed by @demen
* Fixed Nox 6.2.5.3 in DirectX rendering mode
* Improved clan games, new challenges added
* Improved the attack bar getting spells levels and quantities when exist heroes or not
* Improved Laboratory, updates selected troop to max possible
 If no further upgrade possible, or "Any" selected, cheapest upgrade will be done next
 1 Dark Elixir is worth 50 Elixir in comparism context
* Increased Android Launch Timout to 10 min
  • Loading branch information
cosote committed Dec 14, 2018
1 parent 2dbb598 commit 9d35715
Show file tree
Hide file tree
Showing 123 changed files with 2,698 additions and 2,046 deletions.
29 changes: 27 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
* **V7.6.5**
* Add Ice Golem Support @ViperZ
* Add Bat Spell Support @ViperZ
* Add Stone Slammer Support @ViperZ
* Fixed Snow Theme Detection (December 2018 Update)
* Fixed Request Clan Castle (December 2018 Update)
* Fixed Edit/Remove Army (December 2018 Update)
* Fixed Clan Games not opening due to snow (December 2018 Update)
* Fixed Switch Account (December 2018 Update)
* Fixed Laboratory (December 2018 Update)
* Fixed Collectors Level 13 Snow Theme (December 2018 Update)
* Fixed Laboratory Time Position Change, reported/fixed by Fahid.Mahmood (October 2018 Update)
* Fixed new elixir collector level 13 (October 2018 Update)
* Fixed new dark elixir drill level 7 (October 2018 Update)
* Fixed error "Cannot open Army Overview window" when "Wait for Clan Castle" enabled and Castle is not full, fixed by @Demen
* Fixed switch account never switch back to the account in personal break, fixed by @Demen
* Fixed clan chat did not open when donating CC, fixed by @Demen
* Fixed Nox 6.2.5.3 in DirectX rendering mode
* Improved clan games, new challenges added
* Improved the attack bar getting spells levels and quantities when exist heroes or not
* Improved Laboratory, updates selected troop to max possible
If no further upgrade possible, or "Any" selected, cheapest upgrade will be done next
1 Dark Elixir is worth 50 Elixir in comparism context
* Increased Android Launch Timout to 10 min

* **V7.6.4**
* October Update Fixed Drop Trophies , Now the slots are not selected by default
* October Update Fixed Heroes Recover timer when is boosted
Expand Down Expand Up @@ -29,7 +54,7 @@
* Improved double train with less open & close army window

* **V7.6.2**
* Fixed Bluestacks 4.x and CoC PB message , different font and place.
* Fixed Bluestacks 4.x and CoC PB message , different font and place.
* Fixed Siege Build when queued empty and camp is full, making a double sieges.
* Fixed Conflict with Balloons and siege on attack bar, reported by @Black-sTyle-Vii
* Fixed Donate only - Switch account and a second train army reported by @hrishikesh
Expand Down Expand Up @@ -83,7 +108,7 @@
* Added Telegram - Shutdown , Hibernate and Standby with a confirm message, just to avoid user errors
* Added Telegram and invalid commands
* Added Profile button to save current setting without having to start bot
* Fixed Reset last command on Telegram
* Fixed Reset last command on Telegram
* Fixed UI Responsiveness when the telegram is checked
* Fixed Forced PBT for Normal Switch
* Fixed Some issues in switch from-to Builder base - Main Village, Get village measuring and zoomout
Expand Down
1 change: 1 addition & 0 deletions COCBot/GUI/MBR GUI Control Attack Scripted.au3
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ Func AttackNow()
Local $tempSieges = $g_aiCurrentSiegeMachines
$g_aiCurrentSiegeMachines[$eSiegeWallWrecker] = 1
$g_aiCurrentSiegeMachines[$eSiegeBattleBlimp] = 1
$g_aiCurrentSiegeMachines[$eSiegeStoneSlammer] = 1
$g_aiAttackAlgorithm[$LB] = 1 ; Select Scripted Attack
$g_sAttackScrScriptName[$LB] = GuiCtrlRead($g_hCmbScriptNameAB) ; Select Scripted Attack File From The Combo Box, Cos it wasn't refreshing until pressing Start button
$g_iMatchMode = $LB ; Select Live Base As Attack Type
Expand Down
21 changes: 13 additions & 8 deletions COCBot/GUI/MBR GUI Control BOT Options.au3
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ Func chkDisableNotifications()
EndFunc ;==>chkDisableNotifications

Func chkUseRandomClick()
$g_bRunState = True
getArmySiegeMachines()
$g_bRunState = False
;$g_bUseRandomClick = (GUICtrlRead($g_hChkUseRandomClick) = $GUI_CHECKED)
$g_bUseRandomClick = (GUICtrlRead($g_hChkUseRandomClick) = $GUI_CHECKED)
EndFunc ;==>chkUseRandomClick
#cs
Func chkUpdatingWhenMinimized()
Expand Down Expand Up @@ -519,11 +516,11 @@ Func btnTestDonateCC()
Return False
EndIf
SetLog("Detecting Troops...")
DetectSlotTroop($eBowl)
DetectSlotTroop($eIceG)
SetLog("Detecting Sieges...")
DetectSlotSiege($eSiegeBattleBlimp)
DetectSlotSiege($eSiegeStoneSlammer)
SetLog("Detecting Spells...")
DetectSlotSpell($eSkSpell)
DetectSlotSpell($eBtSpell)
SetLog(_PadStringCenter(" Test DonateCC end ", 54, "="), $COLOR_INFO)
ShellExecute($g_sProfileTempDebugPath & "donateCC_")

Expand Down Expand Up @@ -561,6 +558,12 @@ Func btnTestAttackBar()
$g_bDebugImageSave = True
$g_bRunState = True

If MsgBox($MB_YESNO, "Screenshot or Live Image", "Do you want to use a Screenshot instead of a Live Image?") = $IDYES Then
Local $sImageFile = BeginImageTest() ; get image for testing
If $sImageFile = False Then $sImageFile = "Live Screenshot"
EndIf


SetLog(_PadStringCenter(" Begin AttackBar Detection", 54, "="), $COlOR_INFO)

Local $aAttackBar = StringSplit(AttackBarCheck(False, $DB, True), "|", $STR_NOCOUNT)
Expand All @@ -570,11 +573,13 @@ Func btnTestAttackBar()
SetLog("Found " & UBound($aAttackBar, 1) & " Slots", $COlOR_SUCCESS)
For $i = 0 To UBound($aAttackBar, 1) - 1
$aTroop = StringSplit($aAttackBar[$i], "#", $STR_NOCOUNT)
If IsArray($aTroop) And UBound($aTroop, 1) = 3 Then SetLog("- Slot " & $aTroop[1] & ": " & $aTroop[2] & " " & GetTroopName($aTroop[0], $aTroop[2]), $COLOR_SUCCESS)
If IsArray($aTroop) And UBound($aTroop, 1) = 4 Then SetLog("- Slot " & $aTroop[1] & ": " & $aTroop[2] & " " & GetTroopName($aTroop[0], $aTroop[2]), $COLOR_SUCCESS)
Next
EndIf
SetLog(_PadStringCenter(" End AttackBar Detection ", 54, "="), $COlOR_INFO)

EndImageTest() ; clear test image handle

$g_bDebugOcr = $bCurrentOCR
$g_bDebugImageSave = $bCurrentDebugImage
$g_bRunState = $bCurrentRunState
Expand Down
21 changes: 12 additions & 9 deletions COCBot/GUI/MBR GUI Control Child Army.au3
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Func lblTotalCountTroop2()
Local $TotalTotalTimeTroop = 0
Local $NbrOfBarrack = 4 ;For the moment fix to 4 until fine detect level of each Barrack
Local $NbrOfDarkBarrack = 2 ;For the moment fix to 2 until fine detect level of each Barrack
For $i = $eTroopBarbarian To $eTroopElectroDragon
For $i = $eTroopBarbarian To $eTroopIceGolem
Local $NbrOfTroop = GUICtrlRead($g_ahTxtTrainArmyTroopCount[$i])
Local $LevOfTroop = $g_aiTrainArmyTroopLevel[$i]

Expand All @@ -136,7 +136,7 @@ Func lblTotalCountTroop2()
EndIf
Next

For $i = $eTroopMinion To $eTroopBowler
For $i = $eTroopMinion To $eTroopIceGolem
Local $NbrOfTroop = GUICtrlRead($g_ahTxtTrainArmyTroopCount[$i])
Local $LevOfTroop = $g_aiTrainArmyTroopLevel[$i]

Expand Down Expand Up @@ -187,7 +187,7 @@ Func lblTotalCountSiege()

GUICtrlSetData($g_hLblTotalTimeSiege, CalculTimeTo($iTotalTotalTimeSiege))
GUICtrlSetData($g_hLblCountTotalSiege, $g_iTotalTrainSpaceSiege)
GUICtrlSetBkColor($g_hLblCountTotalSiege, $g_iTotalTrainSpaceSiege <= 2 ? $COLOR_MONEYGREEN : $COLOR_RED)
GUICtrlSetBkColor($g_hLblCountTotalSiege, $g_iTotalTrainSpaceSiege <= 3 ? $COLOR_MONEYGREEN : $COLOR_RED)

CalCostSiege()
; prepared for some new TH level !!
Expand Down Expand Up @@ -219,7 +219,7 @@ Func TotalSpellCountClick()
If $g_iTownHallLevel > 5 Or $g_iTownHallLevel = 0 Then
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellHeal] > 0 ? $groupHeal : $groupIcnHeal)
Else
For $i = $eSpellRage To $eSpellSkeleton
For $i = $eSpellRage To $eSpellBat
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$i], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$i], 0)
Next
Expand All @@ -228,7 +228,7 @@ Func TotalSpellCountClick()
If $g_iTownHallLevel > 6 Or $g_iTownHallLevel = 0 Then
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellRage] > 0 ? $groupRage : $groupIcnRage)
Else
For $i = $eSpellJump To $eSpellSkeleton
For $i = $eSpellJump To $eSpellBat
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$i], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$i], 0)
Next
Expand All @@ -243,18 +243,21 @@ Func TotalSpellCountClick()
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellClone], 0)
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellHaste], 0)
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellSkeleton], 0)
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellBat], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellJump], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellFreeze], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellClone], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellHaste], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellSkeleton], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellBat], 0)
EndIf

If $g_iTownHallLevel > 8 Or $g_iTownHallLevel = 0 Then
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellJump] > 0 ? $groupJumpSpell : $groupIcnJumpSpell)
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellFreeze] > 0 ? $groupFreeze : $groupIcnFreeze)
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellHaste] > 0 ? $groupHaste : $groupIcnHaste)
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellSkeleton] > 0 ? $groupSkeleton : $groupIcnSkeleton)
_GUI_Value_STATE("SHOW", $g_aiTrainArmySpellLevel[$eSpellBat] > 0 ? $groupSkeleton : $groupIcnBat)
Else
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellClone], 0)
GUICtrlSetData($g_ahLblTrainArmySpellLevel[$eSpellClone], 0)
Expand Down Expand Up @@ -516,7 +519,7 @@ Func BtnSpellsOrderSet()
Local $bMissingTroop = False ; flag for when troops are not assigned by user
Local $aiBrewOrder[$eSpellCount] = [ _
$eSpellLightning, $eSpellHeal, $eSpellRage, $eSpellJump, $eSpellFreeze, $eSpellClone, _
$eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton]
$eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton, $eSpellBat]

; check for duplicate combobox index and take action
For $i = 0 To UBound($g_ahCmbSpellsOrder) - 1
Expand Down Expand Up @@ -603,7 +606,7 @@ Func BtnTroopOrderSet()
Local $aiUsedTroop[$eTroopCount] = [ _
$eTroopBarbarian, $eTroopArcher, $eTroopGiant, $eTroopGoblin, $eTroopWallBreaker, $eTroopBalloon, $eTroopWizard, _
$eTroopHealer, $eTroopDragon, $eTroopPekka, $eTroopBabyDragon, $eTroopMiner, $eTroopElectroDragon, $eTroopMinion, $eTroopHogRider, _
$eTroopValkyrie, $eTroopGolem, $eTroopWitch, $eTroopLavaHound, $eTroopBowler]
$eTroopValkyrie, $eTroopGolem, $eTroopWitch, $eTroopLavaHound, $eTroopBowler, $eTroopIceGolem]

; check for duplicate combobox index and take action
For $i = 0 To UBound($g_ahCmbTroopOrder) - 1
Expand Down Expand Up @@ -974,7 +977,7 @@ Func CalCostCamp()
$iElixirCostCamp += $g_aiArmyCompTroops[$i] * $g_aiTroopCostPerLevel[$i][$g_aiTrainArmyTroopLevel[$i]]
Next

For $i = $eTroopMinion To $eTroopBowler
For $i = $eTroopMinion To $eTroopIceGolem
$iDarkCostCamp += $g_aiArmyCompTroops[$i] * $g_aiTroopCostPerLevel[$i][$g_aiTrainArmyTroopLevel[$i]]
Next

Expand All @@ -989,7 +992,7 @@ Func CalCostSpell()
$iElixirCostSpell += $g_aiArmyCompSpells[$i] * $g_aiSpellCostPerLevel[$i][$g_aiTrainArmySpellLevel[$i]]
Next

For $i = $eSpellPoison To $eSpellSkeleton
For $i = $eSpellPoison To $eSpellBat
$iDarkCostSpell += $g_aiArmyCompSpells[$i] * $g_aiSpellCostPerLevel[$i][$g_aiTrainArmySpellLevel[$i]]
Next

Expand Down
6 changes: 3 additions & 3 deletions COCBot/GUI/MBR GUI Control Collectors.au3
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Func checkCollectors($log = False, $showLabel = True)
Local $anyCollectorsEnabled = 0
For $i = 6 To 12
For $i = 6 To 13
If $g_abCollectorLevelEnabled[$i] Then
$anyCollectorsEnabled = 1
ExitLoop
Expand All @@ -38,7 +38,7 @@ Func checkCollectors($log = False, $showLabel = True)
EndFunc ;==>checkCollectors

Func chkDBCollector()
For $i = 6 To 12
For $i = 6 To 13
If $g_ahChkDBCollectorLevel[$i] = @GUI_CtrlId Then
If $i = 6 Then
$g_abCollectorLevelEnabled[6] = False
Expand All @@ -54,7 +54,7 @@ Func chkDBCollector()
EndFunc ;==>chkDBCollector

Func cmbDBCollector()
For $i = 6 To 12
For $i = 6 To 13
If $g_ahCmbDBCollectorLevel[$i] = @GUI_CtrlId Then
$g_aiCollectorLevelFill[$i] = _GUICtrlComboBox_GetCurSel($g_ahCmbDBCollectorLevel[$i])
ExitLoop
Expand Down
4 changes: 2 additions & 2 deletions COCBot/GUI/MBR GUI Control Tab Village.au3
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ EndFunc ;==>CmbClanCastleTroop

Func CmbClanCastleSpell()
For $i = 0 To UBound($g_ahCmbClanCastleSpell) - 1
If _GUICtrlComboBox_GetCurSel($g_ahCmbClanCastleSpell[$i]) = $eCSpell - $eLSpell Then _GUICtrlComboBox_SetCurSel($g_ahCmbClanCastleSpell[$i], $eSkSpell - $eLSpell + 1)
If _GUICtrlComboBox_GetCurSel($g_ahCmbClanCastleSpell[$i]) <= $eSkSpell - $eLSpell Then
If _GUICtrlComboBox_GetCurSel($g_ahCmbClanCastleSpell[$i]) = $eCSpell - $eLSpell Then _GUICtrlComboBox_SetCurSel($g_ahCmbClanCastleSpell[$i], $eBtSpell - $eLSpell + 1)
If _GUICtrlComboBox_GetCurSel($g_ahCmbClanCastleSpell[$i]) <= $eBtSpell - $eLSpell Then
GUICtrlSetState($g_ahTxtClanCastleSpell[$i], $GUI_ENABLE)
Else
GUICtrlSetState($g_ahTxtClanCastleSpell[$i], $GUI_DISABLE)
Expand Down
14 changes: 11 additions & 3 deletions COCBot/GUI/MBR GUI Design Child Attack - Activebase-Attack.au3
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
; Attack with
Global $g_hCmbABAlgorithm = 0, $g_hCmbABSelectTroop = 0, $g_hChkABKingAttack = 0, $g_hChkABQueenAttack = 0, $g_hChkABWardenAttack = 0, $g_hChkABDropCC = 0
Global $g_hChkABLightSpell = 0, $g_hChkABHealSpell = 0, $g_hChkABRageSpell = 0, $g_hChkABJumpSpell = 0, $g_hChkABFreezeSpell = 0, $g_hChkABCloneSpell = 0, _
$g_hChkABPoisonSpell = 0, $g_hChkABEarthquakeSpell = 0, $g_hChkABHasteSpell = 0, $g_hChkABSkeletonSpell = 0
$g_hChkABPoisonSpell = 0, $g_hChkABEarthquakeSpell = 0, $g_hChkABHasteSpell = 0, $g_hChkABSkeletonSpell = 0, $g_hChkABBatSpell = 0

Global $g_hGrpABAttack = 0, $g_hPicABKingAttack = 0, $g_hPicABQueenAttack = 0, $g_hPicABWardenAttack = 0, $g_hPicABDropCC = 0
Global $g_hPicABLightSpell = 0, $g_hPicABHealSpell = 0, $g_hPicABRageSpell = 0, $g_hPicABJumpSpell = 0, $g_hPicABFreezeSpell = 0, $g_hPicABCloneSpell = 0, _
$g_hPicABPoisonSpell = 0, $g_hPicABEarthquakeSpell = 0, $g_hPicABHasteSpell = 0, $g_hPicABSkeletonSpell = 0
$g_hPicABPoisonSpell = 0, $g_hPicABEarthquakeSpell = 0, $g_hPicABHasteSpell = 0, $g_hPicABSkeletonSpell = 0, $g_hPicABBatSpell = 0

; TH Snipe
Global $g_hChkTHSnipeBeforeLBEnable = 0, $g_hTxtTHSnipeBeforeLBTiles = 0, $g_hCmbTHSnipeBeforeLBScript = 0
Expand Down Expand Up @@ -160,6 +160,13 @@ Func CreateAttackSearchActiveBaseAttack()
_GUICtrlSetTip(-1, $sTxtTip)
$g_hChkABSkeletonSpell = GUICtrlCreateCheckbox("", $x + 27, $y, 17, 17)
_GUICtrlSetTip(-1, $sTxtTip)

$x += 46
$g_hPicABBatSpell = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x, $y, 24, 24)
$sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Chk-Use-Bat_Info_01", -1)
_GUICtrlSetTip(-1, $sTxtTip)
$g_hChkABBatSpell = GUICtrlCreateCheckbox("", $x + 27, $y, 17, 17)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Local $x = 10, $y = 268
Expand Down Expand Up @@ -195,7 +202,8 @@ Func CreateAttackSearchActiveBaseAttack()
$g_hCmbABSiege = GUICtrlCreateCombo("", $x, $y + 14, 130, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", -1) & "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_02", -1) & "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_03", -1), GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", -1))
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_03", -1) & "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_04", "Stone Slammer"), GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", -1))
GUICtrlSetOnEvent(-1, "cmbABSiege")

GUICtrlCreateGroup("", -99, -99, 1, 1)
Expand Down
16 changes: 12 additions & 4 deletions COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Attack.au3
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
; Attack with
Global $g_hCmbDBAlgorithm = 0, $g_hCmbDBSelectTroop = 0, $g_hChkDBKingAttack = 0, $g_hChkDBQueenAttack = 0, $g_hChkDBWardenAttack = 0, $g_hChkDBDropCC = 0
Global $g_hChkDBLightSpell = 0, $g_hChkDBHealSpell = 0, $g_hChkDBRageSpell = 0, $g_hChkDBJumpSpell = 0, $g_hChkDBFreezeSpell = 0, $g_hChkDBCloneSpell = 0, _
$g_hChkDBPoisonSpell = 0, $g_hChkDBEarthquakeSpell = 0, $g_hChkDBHasteSpell = 0, $g_hChkDBSkeletonSpell = 0
$g_hChkDBPoisonSpell = 0, $g_hChkDBEarthquakeSpell = 0, $g_hChkDBHasteSpell = 0, $g_hChkDBSkeletonSpell = 0, $g_hChkDBBatSpell = 0

Global $g_hPicDBKingAttack = 0, $g_hPicDBQueenAttack = 0, $g_hPicDBWardenAttack = 0, $g_hPicDBDropCC = 0
Global $g_hPicDBLightSpell = 0, $g_hPicDBHealSpell = 0, $g_hPicDBRageSpell = 0, $g_hPicDBJumpSpell = 0, $g_hPicDBFreezeSpell = 0, $g_hPicDBCloneSpell = 0, _
$g_hPicDBPoisonSpell = 0, $g_hPicDBEarthquakeSpell = 0, $g_hPicDBHasteSpell = 0, $g_hPicDBSkeletonSpell = 0
$g_hPicDBPoisonSpell = 0, $g_hPicDBEarthquakeSpell = 0, $g_hPicDBHasteSpell = 0, $g_hPicDBSkeletonSpell = 0, $g_hPicDBBatSpell = 0

; TH Snipe
Global $g_hChkTHSnipeBeforeDBEnable = 0, $g_hTxtTHSnipeBeforeDBTiles = 0, $g_hCmbTHSnipeBeforeDBScript = 0
Expand Down Expand Up @@ -158,10 +158,17 @@ Func CreateAttackSearchDeadBaseAttack()

$x += 46
$g_hPicDBSkeletonSpell = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSkeletonSpell, $x, $y, 24, 24)
$sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Chk-Use-Skeleton_Info_01", "Use your Skeletons Spells when Attacking...")
$sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Chk-Use-Skeleton_Info_01", "Use your Bats Spells when Attacking...")
_GUICtrlSetTip(-1, $sTxtTip)
$g_hChkDBSkeletonSpell = GUICtrlCreateCheckbox("", $x + 27, $y, 17, 17)
_GUICtrlSetTip(-1, $sTxtTip)

$x += 46
$g_hPicDBBatSpell = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x, $y, 24, 24)
$sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Chk-Use-Bat_Info_01", "Use your Bats Spells when Attacking...")
_GUICtrlSetTip(-1, $sTxtTip)
$g_hChkDBBatSpell = GUICtrlCreateCheckbox("", $x + 27, $y, 17, 17)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlCreateGroup("", -99, -99, 1, 1)

Local $x = 10, $y = 268
Expand Down Expand Up @@ -197,7 +204,8 @@ Func CreateAttackSearchDeadBaseAttack()
$g_hCmbDBSiege = GUICtrlCreateCombo("", $x, $y + 14, 130, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", "Castle only") & "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_02", "Wall Wrecker") & "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_03", "Battle Blimp"), GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", -1))
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_03", "Battle Blimp")& "|" & _
GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_04", "Stone Slammer"), GetTranslatedFileIni("MBR GUI Design Child Attack - Attack", "Cmb-Siege_Item_01", -1))
GUICtrlSetOnEvent(-1, "cmbDBSiege")

GUICtrlCreateGroup("", -99, -99, 1, 1)
Expand Down
Loading

0 comments on commit 9d35715

Please sign in to comment.