private static bool ClaimDailies() { if (!Main.CheckSameDay(GlobalVariables.LAST_RAN)) { Main.LogConsole($"Bot Hasn't Been Ran Since {GlobalVariables.LAST_RAN} Completing Daily Tasks"); GlobalVariables.tasksSettings = new TasksModel(); //Resets Everything back to default GlobalVariables.LAST_RAN = DateTime.Now; } else { Main.LogConsole($"Bot Already Ran Today. No Need To Re-Do Everything"); } if (GlobalVariables.EVENTS_COMPLETED) { return(true); } TasksModel tasks = GlobalVariables.tasksSettings; DailyModel daily = GlobalVariables.dailySettings; if (!tasks.FriendsClaimed && daily.SendHearts) { Main.LogConsole("Claiming Friend Requests"); if (UpdatePlayerInfo.ClaimFriends()) { tasks.FriendsClaimed = true; tasks.SentHears = true; } } if (!tasks.DailyClaimed) { Main.LogConsole("Claiming Daily Privalege"); tasks.DailyClaimed = UpdatePlayerInfo.ClaimPrivellage();; } if (!tasks.Defeat3Claimed) { Main.LogConsole("Defeating Daily 3 waves"); tasks.Defeat3Claimed = UpdatePlayerInfo.Defeat3Main(); } if (!tasks.AlchemyClaimed && daily.Alchemy) { Main.LogConsole("Claiming Alchemy"); tasks.AlchemyClaimed = UpdatePlayerInfo.ClaimAlchemy(); } if (!tasks.SpunWheel && daily.SpinWheel) { Main.LogConsole("Spinning Daily Wheel"); tasks.SpunWheel = UpdatePlayerInfo.SpinWheel(); } if (!tasks.CompletedTavern && daily.DailyTavern) { Main.LogConsole("Completing Daily Tavern Quests"); tasks.CompletedTavern = UpdatePlayerInfo.ClaimTavernQuest(); } if (!tasks.CombinedEquip && daily.CombineEquip) { Main.LogConsole("Combining 3 Equipment"); tasks.CombinedEquip = UpdatePlayerInfo.CombineEquipment(); } if (!tasks.PerformedCommon && daily.CommonSummon) { Main.LogConsole("Performing Common Summon"); tasks.PerformedCommon = UpdatePlayerInfo.SummonCommonKey(); } if (!tasks.PerformedGrand && daily.GrandSummon) { Main.LogConsole("Performing Grand Summon"); tasks.PerformedGrand = UpdatePlayerInfo.SummonGrandKey(); } if (!tasks.CompletedBrave && daily.DailyBrave) { Main.LogConsole("Attacking Brave"); Attack.BraveAttackHandler(); Attack.BraveAttackHandler(); tasks.CompletedBrave = true; } if (!tasks.CompletedEvents) { Main.LogConsole("Attacking Daily Events"); tasks.CompletedEvents = UpdatePlayerInfo.ClaimEvents(); } if (tasks.CombinedEquip && tasks.AlchemyClaimed && tasks.SentHears && tasks.SentHears && tasks.SpunWheel && tasks.CompletedTavern && tasks.PerformedCommon && tasks.PerformedGrand && tasks.Defeat3Claimed && tasks.CompletedEvents) { Main.LogConsole("All Daily Quests Finishes. Claiming Rewards."); tasks.CompletedQuests = true; UpdatePlayerInfo.ClaimQuestReward(); } UpdatePlayerInfo.MineGuildGold(); UpdatePlayerInfo.SetGuildTeam(); GlobalVariables.LAST_RAN = DateTime.Now; //Claim Mail UpdatePlayerInfo.ClaimMail(); //Update Global Variables Settings GlobalVariables.tasksSettings = tasks; GlobalVariables.LAST_RAN = DateTime.Now; Ini.WriteIni.UpdateConfig(GlobalVariables.attackSettings, GlobalVariables.dailySettings); return(true); }