diff --git a/Idle Runner.au3 b/Idle Runner.au3 index 9a01999..d71ad72 100644 --- a/Idle Runner.au3 +++ b/Idle Runner.au3 @@ -1,8 +1,8 @@ #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Resources\Icon.ico -#AutoIt3Wrapper_Outfile=D:\Idle Macro\idleslayer\Idle Runner_x32.exe -#AutoIt3Wrapper_Outfile_x64=D:\Idle Macro\idleslayer\Idle Runner_x64.exe +#AutoIt3Wrapper_Outfile=Idle Runner_x32.exe +#AutoIt3Wrapper_Outfile_x64=Idle Runner_x64.exe #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y @@ -37,6 +37,11 @@ #AutoIt3Wrapper_Res_File_Add=Resources\CraftDimensionalStaff.jpg, RT_RCDATA, DIMENSIONAL,0 #AutoIt3Wrapper_Res_File_Add=Resources\PerfectChestHunt.jpg, RT_RCDATA, PERFECTCHESTHUNT,0 #AutoIt3Wrapper_Res_File_Add=Resources\DisableRage.jpg, RT_RCDATA, DISABLERAGE,0 +#AutoIt3Wrapper_Res_File_Add=Resources\Armory.jpg, RT_RCDATA, ARMORY,0 +#AutoIt3Wrapper_Res_File_Add=Resources\SellExcVictorRing.jpg, RT_RCDATA, SELLVICTORRING,0 +#AutoIt3Wrapper_Res_File_Add=Resources\SellNonExcellentArmor.jpg, RT_RCDATA, SELLNOEXCELENT,0 +#AutoIt3Wrapper_Res_File_Add=Resources\SellExcellentArmor.jpg, RT_RCDATA, SELLEXCELENT,0 +#AutoIt3Wrapper_Res_File_Add=Resources\RestartGame.jpg, RT_RCDATA, RESTARTGAME,0 #AutoIt3Wrapper_Res_File_Add=Resources\0.jpg, RT_RCDATA, NUM0,0 #AutoIt3Wrapper_Res_File_Add=Resources\10.jpg, RT_RCDATA, NUM10,0 #AutoIt3Wrapper_Res_File_Add=Resources\20.jpg, RT_RCDATA, NUM20,0 @@ -84,6 +89,7 @@ #include "Libraries\Common.au3" #include "Libraries\AscendingHeights.au3" #include "Libraries\Chesthunt.au3" +#include "Libraries\Armory.au3" #include #include #include @@ -95,6 +101,11 @@ #include #include #include +#include + + + + setSetting() _AuThread_Startup() @@ -126,6 +137,8 @@ Func Main() ControlFocus("Idle Slayer", "", "") EndIf + + ; Silver box collect PixelSearch(650, 36, 650, 36, 0xCA9700) If Not @error Then @@ -155,6 +168,15 @@ Func Main() ControlSend("Idle Slayer", "", "", "{r}") EndIf + ; SellArmory + PixelSearch(169, 104, 169, 104, 0xFFF272) + If Not @error Then + SyncProcess(False) + SellArmory($bArmoryExcVictorState, $bArmoryNonExcellentState , $bArmoryExcellentState) + SyncProcess(True) + EndIf + + ; Collect minions PixelSearch(99, 113, 99, 113, 0xFFFF7A) If Not @error Then @@ -171,6 +193,8 @@ Func Main() If Not @error Then SyncProcess(False) Chesthunt($bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) + Sleep(1000) + RestartIdleSlayerGame("Idle Slayer") SyncProcess(True) EndIf @@ -631,6 +655,25 @@ Func ClaimQuests() MouseClick("left", 1000, 690, 1, 0) Sleep(50) + + ; daily Quest + Sleep(500) + PixelSearch(1073, 174, 1073, 174, 0x379D37) + If Not @error Then + ;Click on +2 daily Quest + Sleep(500) + MouseClick("left", 1073, 174, 1, 0) + EndIf + + ; weekly Quest + Sleep(500) + PixelSearch(1067, 230, 1067, 230, 0x379D37) + If Not @error Then + ;Click on +2 daily Quest + Sleep(500) + MouseClick("left", 1067, 230, 1, 0) + EndIf + ; Top of scrollbar MouseMove(1254, 272, 0) Do @@ -737,3 +780,47 @@ Func ShootAndBoost() ControlSend("Idle Slayer", "", "", "{Up}{Right}") WEnd EndFunc ;==>ShootAndBoost + + +Func RestartIdleSlayerGame($WindowTitle) + + ; Check if restart activated GUI + If $bRestartGameState Then + + ; Check if X hours select at GUI to continue + If TimerDiff($iTimerRestartGame) < ($iRestartGameTimer * 3600000) Then + Return ; Exit function, do not continue + EndIf + + ; If we are here, X hours have passed. + ; RESET the timer immediately for the next cycle. + $iTimerRestartGame = TimerInit() + + ; Close Game + If WinExists($WindowTitle) Then + WinClose($WindowTitle) + WinWaitClose($WindowTitle, "", 5) + + EndIf + Sleep(10000) + + + ;Open Game + ShellExecute("steam://rungameid/1353300") + Sleep(10000) + + ;Start screen Click + MouseClick("left", 550, 320, 1, 0) + Sleep(10000) + + ;Wind Dash Click + MouseMove(113, 644, 0) + MouseDown("right") + Sleep(4000) + MouseUp("right") + + WriteInLogs("Game restarted") + + EndIf + +EndFunc ;==>RestartIdleSlayerGame diff --git a/Libraries/Armory.au3 b/Libraries/Armory.au3 new file mode 100644 index 0000000..d3b63ce --- /dev/null +++ b/Libraries/Armory.au3 @@ -0,0 +1,182 @@ +#include-once +#include "Common.au3" + + + +Func SellArmory($bArmoryExcVictorState, $bArmoryNonExcellentState , $bArmoryExcellentState) + + ; Open Armory and scroll up + ; Scroll down searching red ! + ; When find a red !, drag to shell + ; Depending on the choices made in the GUI, you will either sell or keep the items. + + Local $aCoord + ;Click armory button + MouseClick("left", 169, 104, 1, 0) + Sleep(500) + ;Click armory tab + MouseClick("left", 359, 694, 1, 0) + Sleep(500) + ;Exit Key Items + MouseClick("left", 81, 610, 1, 0) + Sleep(500) + ;Click for scroll + MouseClick("left", 476, 525, 1, 0) + Sleep(500) + ;Scroll TOP + MouseWheel("up", 50) + Sleep(500) + + ; Scroll in Armory 7 times + For $i = 1 To 7 + + ; Search red ! + While 1 + ; Red pixel ! + $aCoord = PixelSearch(31, 239, 472, 500, 0xE41111) + + If Not @error Then + WriteInLogs("SellArmory 1 New Item Found") + + ; Drag to sell + Sleep(500) + MouseClickDrag("left", $aCoord[0], $aCoord[1]+10, 133, 618, 10) + Sleep(500) + + + ; Check if Victor Ring + ; If GUI is checked Break if not Cancel Break + If $bArmoryExcVictorState Then + ;Search pattern for Exc Victor Ring 0x51E294 Positions : 711,518 . 629,519 . 687,515 . + Sleep(500) + PixelSearch(711, 518, 711, 518, 0x51E294) + If Not @error Then + PixelSearch(629, 519, 629, 519, 0x51E294) + If Not @error Then + PixelSearch(687, 515, 687, 515, 0x51E294) + If Not @error Then + WriteInLogs("SellArmory Excelent Victor Ring sold") + + ;Click Break 510,578 0x00A400 + MouseClick("left", 510, 578, 1, 0) + Sleep(500) + EndIf + EndIf + EndIf + Else + ; Dont sell + ;Search pattern for Exc Victor Ring Positions : 711,518 . 629,519 . 687,515 . + Sleep(500) + PixelSearch(711, 518, 711, 518, 0x51E294) + If Not @error Then + PixelSearch(629, 519, 629, 519, 0x51E294) + If Not @error Then + PixelSearch(687, 515, 687, 515, 0x51E294) + If Not @error Then + WriteInLogs("SellArmory Excelent Victor Ring wasn´t sold") + + ;Click Cancel DONT SELL 676,580 0xAF0000 + MouseClick("left", 676,580, 1, 0) + EndIf + EndIf + EndIf + + EndIf + + ; Check if Non-Excellent Item + ; If GUI is checked Break if not Cancel Break + If $bArmoryNonExcellentState Then + ;Not Excelent Item (since 478,507, to 776,530) 0xFFFFFF White + Sleep(500) + PixelSearch(478,507, 776,530, 0xFFFFFF) + If Not @error Then + WriteInLogs("SellArmory Not Excelent Item sold") + + ;Click Break 510,578 0x00A400 + MouseClick("left", 510, 578, 1, 0) + Sleep(500) + EndIf + Else + ;Not Excelent Item (since 478,507, to 776,530) 0xFFFFFF White + Sleep(500) + PixelSearch(478,507, 776,530, 0xFFFFFF) + If Not @error Then + WriteInLogs("SellArmory > Not Excelent Item wasn´t sold") + + ;Click Cancel DONT SELL 676,580 0xAF0000 + MouseClick("left", 676,580, 1, 0) + EndIf + + EndIf + + ; Check if Non-Excellent Item + ; If GUI is checked Break if not Cancel Break + If $bArmoryNonExcellentState Then + ;Not Excelent Item (since 478,507, to 776,530) 0x738FE3 Blue + Sleep(500) + PixelSearch(478,507, 776,530, 0x738FE3) + If Not @error Then + WriteInLogs("SellArmory Not Excelent Item sold") + + ;Click Break 510,578 0x00A400 + MouseClick("left", 510, 578, 1, 0) + Sleep(500) + EndIf + Else + ;Not Excelent Item (since 478,507, to 776,530) 0x738FE3 Blue + Sleep(500) + PixelSearch(478,507, 776,530, 0x738FE3) + If Not @error Then + WriteInLogs("SellArmory > Not Excelent Item wasn´t sold") + + ;Click Cancel DONT SELL 676,580 0xAF0000 + MouseClick("left", 676,580, 1, 0) + EndIf + + EndIf + + ; Check if Excellent Item + ; If GUI is checked Break if not Cancel Break + If $bArmoryExcellentState Then + ;Excelent Item (since 478,507, to 776,530) GREEN 0x51E294 + Sleep(500) + PixelSearch(478,507, 776,530, 0x51E294) + If Not @error Then + WriteInLogs("SellArmory Excelent Item sold") + + ;Click Break 510,578 0x00A400 + MouseClick("left", 510, 578, 1, 0) + Sleep(500) + EndIf + Else + ;Excelent Item (since 478,507, to 776,530) GREEN 0x51E294 + Sleep(500) + PixelSearch(478,507, 776,530, 0x51E294) + If Not @error Then + WriteInLogs("SellArmory Excelent Item wasn´t sold") + + ;Click Cancel DONT SELL 676,580 0xAF0000 + MouseClick("left", 676,580, 1, 0) + Sleep(500) + EndIf + + EndIf + + + + Else + ExitLoop + EndIf + WEnd + + ;Click for scroll + MouseClick("left", 476, 525, 1, 0) + Sleep(500) + ; Scroll down + MouseWheel("down", 2) + Sleep(500) + + Next + WriteInLogs("SellArmory Finish") + MouseClick("left", 467, 698, 1, 0) +EndFunc ;==>SellArmory diff --git a/Libraries/ChestHunt.au3 b/Libraries/ChestHunt.au3 index 56e56a2..e311cf2 100644 --- a/Libraries/ChestHunt.au3 +++ b/Libraries/ChestHunt.au3 @@ -5,13 +5,13 @@ Enum $eRewardChest = 0, $eMimicChest = 1, $e2xChest = 2, $eChestHuntEnd = 3, $eL Enum $eStateNoMimic = 0, $eStateOneMimic = 1, $eStateTwoMimics = 2, $eStateOpenLifeSaver = 3, $eStateNormal = 4 Func Chesthunt($bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) - Local $iCurrentState = $eStateNoMimic - WriteInLogs("Chesthunt") + WriteInLogs("Chesthunt Started") If $bNoLockpickingState Then Sleep(4000) Else Sleep(2000) EndIf + Local $iSaverX = 0 Local $iSaverY = 0 Local $iPixelX = 185 @@ -30,10 +30,45 @@ Func Chesthunt($bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrys $iPixelY += 95 $iPixelX = 185 Next + ; Actual chest hunt - $iPixelX = 185 - $iPixelY = 325 + ProcessChestGrid($iSaverX, $iSaverY, $bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) + + ; Look for close button or perfect chest until found + Local $bPerfectChest = False + Local $iEndScreenAttempts = 0 + While True + Sleep(50) + $iEndScreenAttempts += 1 + + PixelSearch(550, 694, 550, 694, 0xAF0000) + If Not @error Then + ExitLoop + EndIf + ; Look for Perfect Chest + PixelSearch(457, 439, 457, 439, 0xF68F37) + If Not @error Then + $bPerfectChest = True + MouseClick("left", 457, 439, 1, 0) + EndIf + + If $iEndScreenAttempts > 200 Then + WriteInLogs("Chsthunt Blocked divinity X, Start Again ") + ProcessChestGrid($iSaverX, $iSaverY, $bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) + $iEndScreenAttempts = 0 + EndIf + WEnd + + If $bPerfectChest Then WriteInLogs("Perfect ChestHunt Completed") + MouseClick("left", 643, 693, 1, 0) +EndFunc + +Func ProcessChestGrid($iSaverX, $iSaverY, $bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) + Local $iPixelX = 185 + Local $iPixelY = 325 Local $iCount = 0 + Local $iCurrentState = $eStateNoMimic + For $iY = 1 To 3 For $iX = 1 To 10 ; Skip saver no matter what @@ -50,7 +85,7 @@ Func Chesthunt($bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrys Local $iChestResult = OpenChest($iPixelX, $iPixelY, $bNoLockpickingState) If $iChestResult == $eChestHuntEnd Then - ExitLoop (2) + Return EndIF $iCurrentState = GetUpdatedState($iCount, $iCurrentState, $iChestResult, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) @@ -65,25 +100,8 @@ Func Chesthunt($bNoLockpickingState, $bPerfectChestHuntState, $bNoReinforcedCrys $iPixelY += 95 $iPixelX = 185 Next - ; Look for close button or perfect chest until found - Local $bPerfectChest = False - While True - Sleep(50) - PixelSearch(550, 694, 550, 694, 0xAF0000) - If Not @error Then - ExitLoop - EndIf - ; Look for Perfect Chest - PixelSearch(457, 439, 457, 439, 0xF68F37) - If Not @error Then - $bPerfectChest = True - MouseClick("left", 457, 439, 1, 0) - EndIf - WEnd +EndFunc - If $bPerfectChest Then WriteInLogs("Perfect ChestHunt Completed") - MouseClick("left", 643, 693, 1, 0) -EndFunc ;==>Chesthunt Func GetUpdatedState($iCount, $iCurrentState, $iChest, $bPerfectChestHuntState, $bNoReinforcedCrystalSaverState) @@ -208,4 +226,4 @@ Func OpenChest($iPixelX, $iPixelY, $bNoLockpickingState) EndIf Return $eRewardChest -EndFunc ;==>OpenChest \ No newline at end of file +EndFunc ;==>OpenChest diff --git a/Libraries/GUI.au3 b/Libraries/GUI.au3 index 7504aca..4da5642 100644 --- a/Libraries/GUI.au3 +++ b/Libraries/GUI.au3 @@ -27,10 +27,14 @@ Global $bAutoBuyUpgradeState = False, _ $bDisableRageState = False, _ $bAutoAscendState = False, _ $bPerfectChestHuntState = False, _ - $bTogglePause = False + $bTogglePause = False, _ + $bArmoryExcVictorState = False, _ + $bArmoryNonExcellentState = False, _ + $bArmoryExcellentState = False, _ + $bRestartGameState = False Global $sVersion = "3.5.5" -Global $iJumpSliderValue = 150, _ +Global $iJumpSliderValue = 0, _ $iCirclePortalsCount = 7, _ $iAutoAscendTimer = 10, _ $iAutoBuyTimer = 10, _ @@ -39,17 +43,27 @@ Global $iJumpSliderValue = 150, _ $iTimerAutoBuy = TimerInit(), _ $iTimerAutoAscend = TimerInit(), _ $iTimerFocusGame = TimerInit(), _ - $iLastCheckTimeLoop = TimerInit() -Global $aSettingGlobalVariables[16] = ["iAutoBuyTimer", "iAutoAscendTimer", "bAutoAscendState", "bAutoBuyUpgradeState", "bCraftSoulBonusState", "bSkipBonusStageState", "bCraftRagePillState", "bCirclePortalsState", "iJumpSliderValue", "bNoLockpickingState", "iCirclePortalsCount", "bDimensionalState", "bBiDimensionalState", "bDisableRageState", "bNoReinforcedCrystalSaverState", "bPerfectChestHuntState"] -Global $aSettingCheckBoxes[12] = ["bAutoAscendState", "bAutoBuyUpgradeState", "bCraftSoulBonusState", "bSkipBonusStageState", "bCraftRagePillState", "bCirclePortalsState", "bNoLockpickingState", "bBiDimensionalState", "bDimensionalState", "bDisableRageState", "bNoReinforcedCrystalSaverState", "bPerfectChestHuntState"] + $iLastCheckTimeLoop = TimerInit(), _ + $iTimerRestartGame = TimerInit(), _ + $iRestartGameTimer = 3 + + + + +Global $aSettingGlobalVariables[21] = ["iAutoBuyTimer", "iAutoAscendTimer", "bAutoAscendState", "bAutoBuyUpgradeState", "bCraftSoulBonusState", "bSkipBonusStageState", "bCraftRagePillState", "bCirclePortalsState", "iJumpSliderValue", "bNoLockpickingState", "iCirclePortalsCount", "bDimensionalState", "bBiDimensionalState", "bDisableRageState", "bNoReinforcedCrystalSaverState", "bPerfectChestHuntState", "bArmoryExcVictorState", "bArmoryNonExcellentState", "bArmoryExcellentState","iRestartGameTimer","bRestartGameState"] +Global $aSettingCheckBoxes[16] = ["bAutoAscendState", "bAutoBuyUpgradeState", "bCraftSoulBonusState", "bSkipBonusStageState", "bCraftRagePillState", "bCirclePortalsState", "bNoLockpickingState", "bBiDimensionalState", "bDimensionalState", "bDisableRageState", "bNoReinforcedCrystalSaverState", "bPerfectChestHuntState", "bArmoryExcVictorState", "bArmoryNonExcellentState", "bArmoryExcellentState","bRestartGameState"] + + ; #FUNCTION# ==================================================================================================================== ; Return values .: Succes - A windows handle ; Failure - 0 if the window cannot be created and sets the @error flag to 1. ; =============================================================================================================================== Func CreateGUI() + ; Create GUI - Global $hGUIForm = GUICreate("Idle Runner", 898, 164, @DesktopWidth / 2 - 500, @DesktopHeight - 250, $WS_BORDER + $WS_POPUP) + Global $hGUIForm = GUICreate("Idle Runner", 898, 190, @DesktopWidth / 2 - 500, @DesktopHeight - 250, $WS_BORDER + $WS_POPUP) + GUISetBkColor(0x202225) ; Titlebar @@ -60,7 +74,8 @@ Func CreateGUI() _Resource_SetToCtrlID($iIcon, 'ICON') ; Create iTabControl - Global $iTabControl = GUICtrlCreateTab(159, -4, 745, 173, BitOR($TCS_FORCELABELLEFT, $TCS_FIXEDWIDTH, $TCS_BUTTONS)) + Global $iTabControl = GUICtrlCreateTab(159, -4, 745, 200, BitOR($TCS_FORCELABELLEFT, $TCS_FIXEDWIDTH, $TCS_BUTTONS)) + GUICtrlSetBkColor(-1, 0x2F3136) GUISetOnEvent(-1, "EventTabFocus") Global $hTabHandle = GUICtrlGetHandle($iTabControl) @@ -71,6 +86,7 @@ Func CreateGUI() Global $iTabMinigames = CreateMinigamesSheet($hGUIForm, $iTabControl) Global $iTabCrafting = CreateCraftingSheet($hGUIForm, $iTabControl) Global $iTabLog = CreateLogSheet($hGUIForm, $iTabControl) + Global $iTabArmory = CreateArmorySheet($hGUIForm, $iTabControl) ; Set Tab Focus Home GUICtrlSetState($iTabHome, $GUI_SHOW) @@ -105,15 +121,25 @@ Func CreateGUI() GUICtrlCreateMenuItem("Clear Logs", $iLogContextMenu) GUICtrlSetOnEvent(-1, "EventMenuClearLogsClick") + ; Create Armory Button + Local $iButtonArmory = GUICtrlCreatePicCustom('Resources\Armory.jpg', 1, 140, 160, 24, $SS_NOTIFY + $SS_BITMAP) + _Resource_SetToCtrlID($iButtonArmory, 'ARMORY') + GUICtrlSetOnEvent(-1, "EventButtonCustomClickArmory") + ; Create Start / Pause Button - Global $iButtonStartStop = GUICtrlCreatePicCustom('Resources\Stop.jpg', 1, 140, 80, 24, $SS_NOTIFY + $SS_BITMAP) + Global $iButtonStartStop = GUICtrlCreatePicCustom('Resources\Stop.jpg', 1, 165, 80, 24, $SS_NOTIFY + $SS_BITMAP) _Resource_SetToCtrlID($iButtonStartStop, 'STOP') GUICtrlSetOnEvent(-1, "Pause") ; Create Exit Button - Local $iButtonExit = GUICtrlCreatePicCustom('Resources\Exit.jpg', 81, 140, 80, 24, $SS_NOTIFY + $SS_BITMAP) + Local $iButtonExit = GUICtrlCreatePicCustom('Resources\Exit.jpg', 81, 165, 80, 24, $SS_NOTIFY + $SS_BITMAP) _Resource_SetToCtrlID($iButtonExit, 'EXIT') GUICtrlSetOnEvent(-1, "IdleClose") + + + + + Return $hGUIForm EndFunc ;==>CreateGUI @@ -191,6 +217,16 @@ Func CreateGeneralSheet($hGUIForm, $iTabControl) GUICtrlSetOnEvent(-1, "EventAutoAscendTimer") GUICtrlSetTip(-1, "Auto Ascend after a certain amount of time. The number is in minutes") + ; Create Restart Game Checkbox + Global $iCheckBoxbRestartGameState = GUICtrlCreatePicCustom('Resources\CheckboxUnchecked.jpg', 181, 160, 16, 16, $SS_BITMAP + $SS_NOTIFY) + GUICtrlSetOnEvent(-1, "EventGlobalCheckBox") + Local $iRestartGame = GUICtrlCreatePicCustom('Resources\RestartGame.jpg', 207, 160, 230, 16, $SS_BITMAP + $SS_NOTIFY) + _Resource_SetToCtrlID($iRestartGame, 'RESTARTGAME') + GUICtrlSetTip(-1, "Restart the game after X hours") + Global $iRestartGameNumber = GUICtrlCreateInput($iRestartGameTimer, 450, 160, 50, 20, $ES_NUMBER) + GUICtrlSetOnEvent(-1, "EventRestartGameTimer") + GUICtrlSetTip(-1, "Restart the game after X hours") + Return $iTabGeneral EndFunc ;==>CreateGeneralSheet @@ -281,6 +317,37 @@ Func CreateLogSheet($hGUIForm, $iTabControl) EndFunc ;==>CreateLogSheet +Func CreateArmorySheet($hGUIForm, $iTabControl) + Local $iTabArmory = GUICtrlCreateTabItem("Armory") + EventTabSetBkColor($hGUIForm, $iTabControl, 0x36393F) + + ;Sell Excellent NEW Victor Rings + Global $iCheckBoxbArmoryExcVictorState = GUICtrlCreatePicCustom('Resources\CheckboxUnchecked.jpg', 181, 52, 16, 16, $SS_BITMAP + $SS_NOTIFY) + GUICtrlSetOnEvent(-1, "EventGlobalCheckBox") + Local $iArmoryExcVictor = GUICtrlCreatePicCustom('Resources\SellExcVictorRing.jpg', 207, 50, 300, 20, $SS_BITMAP + $SS_NOTIFY) + _Resource_SetToCtrlID($iArmoryExcVictor, 'SELLVICTORRING') + GUICtrlSetTip(-1, "Determines if you want to Sell Excellent NEW Victor Rings") + + ;Sell Non-Excellent NEW Armor + Global $iCheckBoxbArmoryNonExcellentState = GUICtrlCreatePicCustom('Resources\CheckboxUnchecked.jpg', 181, 97, 16, 16, $SS_BITMAP + $SS_NOTIFY) + GUICtrlSetOnEvent(-1, "EventGlobalCheckBox") + Local $iArmoryNonExcellent = GUICtrlCreatePicCustom('Resources\SellNonExcellentArmor.jpg', 207, 94, 290, 20, $SS_BITMAP + $SS_NOTIFY) + _Resource_SetToCtrlID($iArmoryNonExcellent, 'SELLNOEXCELENT') + GUICtrlSetTip(-1, "Determines if you want to Sell Non-Excellent NEW Armor") + + ;Sell Excellent NEW Armor + Global $iCheckBoxbArmoryExcellentState = GUICtrlCreatePicCustom('Resources\CheckboxUnchecked.jpg', 181, 138, 16, 16, $SS_BITMAP + $SS_NOTIFY) + GUICtrlSetOnEvent(-1, "EventGlobalCheckBox") + Local $iArmoryExcellent = GUICtrlCreatePicCustom('Resources\SellExcellentArmor.jpg', 207, 136, 240, 20, $SS_BITMAP + $SS_NOTIFY) + _Resource_SetToCtrlID($iArmoryExcellent, 'SELLEXCELENT') + GUICtrlSetTip(-1, "Determines if you want to Sell Excellent NEW Armor") + + Return $iTabArmory +EndFunc ;==>CreateArmorySheet + + + + #Region GUI.au3 - #EVENTS# Func EventButtonHomeClick() GUICtrlSetState($iTabHome, $GUI_SHOW) @@ -304,6 +371,21 @@ Func EventButtonLogClick() LoadDataLog($iLogData) EndFunc ;==>EventButtonLogClick +; Armory event click +Func EventButtonCustomClickArmory() + GUICtrlSetState($iTabArmory, $GUI_SHOW) +EndFunc ;==>EventButtonCustomClickArmory + +Func EventRestartGameTimer() + $iRestartGameTimer = GUICtrlRead($iRestartGameNumber) + ; Validate if empty or 0 + If $iRestartGameTimer == 0 Or $iRestartGameTimer == "" Then + $iRestartGameTimer = 1 ; Default fallback + GUICtrlSetData($iRestartGameNumber, 1) + EndIf + SaveSettings() ; Saves to the .ini file if you have that system set up +EndFunc ;==>EventRestartGameTimer + Func EventMenuClearLogsClick() if FileExists("IdleRunnerLogs\Logs.txt") Then FileDelete("IdleRunnerLogs\Logs.txt") LoadLog($iLog) @@ -485,6 +567,8 @@ Func LoadSettings() GUICtrlSetData($iAutoAscendNumber, $iAutoAscendTimer) GUICtrlSetData($iAutoBuyNumber, $iAutoBuyTimer) $iAutoBuyTempTimer = $iAutoBuyTimer + GUICtrlSetData($iRestartGameNumber, $iRestartGameTimer) + EndFunc ;==>LoadSettings Func EventButtonUpdateClick() diff --git a/Resources/Armory.jpg b/Resources/Armory.jpg new file mode 100644 index 0000000..1c444f7 Binary files /dev/null and b/Resources/Armory.jpg differ diff --git a/Resources/RestartGame.jpg b/Resources/RestartGame.jpg new file mode 100644 index 0000000..7232722 Binary files /dev/null and b/Resources/RestartGame.jpg differ diff --git a/Resources/SellExcVictorRing.jpg b/Resources/SellExcVictorRing.jpg new file mode 100644 index 0000000..935f652 Binary files /dev/null and b/Resources/SellExcVictorRing.jpg differ diff --git a/Resources/SellExcellentArmor.jpg b/Resources/SellExcellentArmor.jpg new file mode 100644 index 0000000..d4f3cd2 Binary files /dev/null and b/Resources/SellExcellentArmor.jpg differ diff --git a/Resources/SellNonExcellentArmor.jpg b/Resources/SellNonExcellentArmor.jpg new file mode 100644 index 0000000..4c94d69 Binary files /dev/null and b/Resources/SellNonExcellentArmor.jpg differ