diff --git a/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/event.lua b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/event.lua new file mode 100644 index 0000000..4a52d96 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/event.lua @@ -0,0 +1,5 @@ +-- PINKY_BPASS_OPEN +function(allstates, e) + aura_env.DisplayString = aura_env.GetAllTimeLeft() + return true +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/init.lua b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/init.lua new file mode 100644 index 0000000..1c51f86 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/init.lua @@ -0,0 +1,28 @@ +if WeakAurasSaved.Cyka == nil then WeakAurasSaved.Cyka = {} end +if WeakAurasSaved.Cyka.LoginInfo == nil then WeakAurasSaved.Cyka.LoginInfo = {} end + +Today = date("%Y-%m-%d") +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] == nil then WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] = {} end +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then + WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] = { + isClaimed = false, + timeLeft = 120, + } +end + +---@param unit string +---@return number +aura_env.GetTimeLeft = function(unit) + local timeLeft = WeakAurasSaved.Cyka.LoginInfo[unit][Today].timeLeft + if timeLeft == nil then return 120 end + return timeLeft +end +---@return string +aura_env.GetAllTimeLeft = function() + local out = "" + for unit, _ in pairs(WeakAurasSaved.Cyka.LoginInfo) do + local timeLeft = aura_env.GetTimeLeft(unit) + out = out .. unit .. ": " .. timeLeft .. "\n" + end + return out +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/text.lua b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/text.lua new file mode 100644 index 0000000..579e731 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassAccountWideTimer/text.lua @@ -0,0 +1,4 @@ +function() + -- TODO: Display completed chars in green or something + return aura_env.DisplayString +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassFrameController/event.lua b/FreshShit/BattlePassTimer/BattlePassFrameController/event.lua new file mode 100644 index 0000000..e7b5b95 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassFrameController/event.lua @@ -0,0 +1,4 @@ +-- TICKER_10000 +function() + aura_env.Tick() +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassFrameController/init.lua b/FreshShit/BattlePassTimer/BattlePassFrameController/init.lua new file mode 100644 index 0000000..acdb4af --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassFrameController/init.lua @@ -0,0 +1,21 @@ +aura_env.BattlePass = { + Show = function() + if not uDailyRewFrame:IsVisible() then + -- uDailyRewFrame:Show() + udailyRewardIcon:Click() + end + end, + Hide = function() + if uDailyRewFrame:IsVisible() then + uDailyRewFrame:Hide() + end + end, +} + +local aura_env = aura_env +aura_env.Tick = function() + aura_env.BattlePass.Show() + C_Timer.After(0.1, function() + WeakAuras.ScanEvents("PINKY_BPASS_OPEN") + end) +end diff --git a/FreshShit/BattlePassTimer/BattlePassTimeDisplay/duration.lua b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/duration.lua new file mode 100644 index 0000000..66dbfd3 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/duration.lua @@ -0,0 +1,3 @@ +function(e) + return 120 - aura_env.GetTimeLeft(), 120, 1 +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassTimeDisplay/event.lua b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/event.lua new file mode 100644 index 0000000..a39fe8c --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/event.lua @@ -0,0 +1,4 @@ +-- PINKY_BPASS_OPEN +function() + return aura_env.GetTimeLeft() > 0 +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassTimeDisplay/init.lua b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/init.lua new file mode 100644 index 0000000..2aa0777 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassTimeDisplay/init.lua @@ -0,0 +1,17 @@ +if WeakAurasSaved.Cyka == nil then WeakAurasSaved.Cyka = {} end +if WeakAurasSaved.Cyka.LoginInfo == nil then WeakAurasSaved.Cyka.LoginInfo = {} end + +Today = date("%Y-%m-%d") +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] == nil then WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] = {} end +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then + WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] = { + isClaimed = false, + timeLeft = 120, + } +end + +aura_env.GetTimeLeft = function() + local timeLeft = WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today].timeLeft + if timeLeft == nil then return 120 end + return timeLeft +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassTimeReader/event.lua b/FreshShit/BattlePassTimer/BattlePassTimeReader/event.lua new file mode 100644 index 0000000..7d52d7e --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassTimeReader/event.lua @@ -0,0 +1,4 @@ +-- PINKY_BPASS_OPEN +function() + aura_env.Tick() +end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/BattlePassTimeReader/init.lua b/FreshShit/BattlePassTimer/BattlePassTimeReader/init.lua new file mode 100644 index 0000000..659ba33 --- /dev/null +++ b/FreshShit/BattlePassTimer/BattlePassTimeReader/init.lua @@ -0,0 +1,79 @@ +if WeakAurasSaved.Cyka == nil then WeakAurasSaved.Cyka = {} end +if WeakAurasSaved.Cyka.LoginInfo == nil then WeakAurasSaved.Cyka.LoginInfo = {} end + +Today = date("%Y-%m-%d") +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] == nil then WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] = {} end +if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then + WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] = { + isClaimed = false, + timeLeft = 120, + } +end + +aura_env.BattlePass = { + Hide = function() + uDailyRewFrame:Hide() + end, + ---@param day number + ---@return Frame, string|nil + GetDayCard = function(day) + local frame = _G[string.format("card%d", day)] + if frame == nil then + return UIParent, string.format("card%d is nil", day) + end + return frame, nil + end, + ---@return {day: number, text: Frame, button: Frame}, string|nil + GetActiveDayInfo = function() + for i = 1, 7 do + local dayCard, err = aura_env.BattlePass.GetDayCard(i) + if err ~= nil then return { day = i, text = nil, button = nil }, err end + + local textFrame = dayCard.text_w + if textFrame ~= nil then + if textFrame:GetText() ~= nil then + return { day = i, text = textFrame, button = nil }, nil + end + else + print(string.format("card%d.text_w is nil", i)) + end + + local button = _G[string.format("uDRWbutton_get%d", i)] + if button ~= nil then + return { day = i, text = nil, button = button }, nil + end + end + return { day = 0, text = nil, button = nil }, "No active days found" + end, + GetRemainingTime = function() + local activeDayInfo, err = aura_env.BattlePass.GetActiveDayInfo() + if err ~= nil then return 0, err end + if activeDayInfo.text == nil then return 0, "No time text found" end + local minutes = tonumber(activeDayInfo.text:GetText():match("(%d+) minutes")) + if minutes == nil then return 0, "No time text found" end + return minutes, nil + end +} + +local aura_env = aura_env +aura_env.Tick = function() + -- TODO: If cannot find time text try find claim button + -- If claim button then click claim button and set isClaimed to true + -- OR better yet change the click handler to one that updates isClaimed to true + -- And THEN click the button + -- idk if that works though + -- uDRWbutton_get is the button + local remainingTime = aura_env.BattlePass.GetRemainingTime() + if remainingTime == 0 then + local activeDayInfo, err = aura_env.BattlePass.GetActiveDayInfo() + if activeDayInfo.button ~= nil then + activeDayInfo.button:Click() + WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today].isClaimed = true + end + end + WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today].timeLeft = remainingTime + aura_env.BattlePass.Hide() + C_Timer.After(0.1, function() + aura_env.BattlePass.Hide() + end) +end diff --git a/FreshShit/BattlePassTimer/event.lua b/FreshShit/BattlePassTimer/event.lua deleted file mode 100644 index 7344131..0000000 --- a/FreshShit/BattlePassTimer/event.lua +++ /dev/null @@ -1,18 +0,0 @@ --- PLAYER_ENTERING_WORLD PLAYER_LEAVING_WORLD -function(e) - local index = #WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] - - if e == "PLAYER_ENTERING_WORLD" then - WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today][index + 1] = {LoginTime = time()} - if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today][index] ~= nil then - WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today][index].LogoutTime = time() - end - elseif e == "PLAYER_LEAVING_WORLD" then - WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today][index].LogoutTime = time() - end -end - ---/run WeakAuras.ScanEvents("PLAYER_ENTERING_WORLD") ---/run WeakAurasSaved.Cyka.LoginInfo[UnitName("player")]["2024-03-23"] = WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] - ---/run WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] = {} \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/event2.lua b/FreshShit/BattlePassTimer/event2.lua deleted file mode 100644 index 6bbeef1..0000000 --- a/FreshShit/BattlePassTimer/event2.lua +++ /dev/null @@ -1,4 +0,0 @@ --- TICKER_1000 -function(e) - return true -end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/event2duration.lua b/FreshShit/BattlePassTimer/event2duration.lua deleted file mode 100644 index 437f7a6..0000000 --- a/FreshShit/BattlePassTimer/event2duration.lua +++ /dev/null @@ -1,4 +0,0 @@ --- TICKER_1000 -function(e) - return math.floor(aura_env.CalculateOnlineTime()), 7200, 1 -end \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/export b/FreshShit/BattlePassTimer/export index 570de16..43f7b99 100644 --- a/FreshShit/BattlePassTimer/export +++ b/FreshShit/BattlePassTimer/export @@ -1 +1 @@ -!DJvB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jG)CoDW9OZrAkN8zeb)WleI7H8TWN7QSTId5i2P1(YGuMVFb)Y8(ZXwMqcz44QvFHWExz2EqvVYixqM18yxRkdYnmhZb5lLergTKlveXlxmGhWuiEYpIAwr1bFDfv88w2krfFQin9s5XeZtrzpRAQkCQiVezslKeztEpsz7JDzQ))5 \ No newline at end of file diff --git a/FreshShit/BattlePassTimer/init.lua b/FreshShit/BattlePassTimer/init.lua deleted file mode 100644 index f4c67b4..0000000 --- a/FreshShit/BattlePassTimer/init.lua +++ /dev/null @@ -1,19 +0,0 @@ -if WeakAurasSaved.Cyka == nil then WeakAurasSaved.Cyka = {} end -if WeakAurasSaved.Cyka.LoginInfo == nil then WeakAurasSaved.Cyka.LoginInfo = {} end - -Today = date("%Y-%m-%d") -if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] == nil then WeakAurasSaved.Cyka.LoginInfo[UnitName("player")] = {} end -if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] = {} end - - -aura_env.CalculateOnlineTime = function() - local loggedTime = 0 - for k, info in ipairs(WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today]) do - if info.LogoutTime ~= nil then - loggedTime = loggedTime + (info.LogoutTime - info.LoginTime) - else - loggedTime = loggedTime + (time() - info.LoginTime) - end - end - return loggedTime -end