From 6365fb9d3a8853a16e2f37262c726431ad2275b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo?= Date: Fri, 11 Sep 2026 15:12:14 -0300 Subject: [PATCH] fix: Initialize player cooldown timers on login This updates the player login script to initialize stamina, XP stamina, and concoction cooldown timers using the current Unix time instead of a hardcoded 1. This ensures cooldown tracking starts from the actual login moment and prevents immediate reuse or incorrect timing behavior. --- data/scripts/creaturescripts/player/login.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/scripts/creaturescripts/player/login.lua b/data/scripts/creaturescripts/player/login.lua index cd9c26787..4235a1e38 100644 --- a/data/scripts/creaturescripts/player/login.lua +++ b/data/scripts/creaturescripts/player/login.lua @@ -166,9 +166,9 @@ function playerLoginGlobal.onLogin(player) end local playerId = player:getId() - _G.NextUseStaminaTime[playerId] = 1 - _G.NextUseXpStamina[playerId] = 1 - _G.NextUseConcoctionTime[playerId] = 1 + _G.NextUseStaminaTime[playerId] = os.time() + _G.NextUseXpStamina[playerId] = os.time() + _G.NextUseConcoctionTime[playerId] = os.time() DailyReward.init(playerId) local stats = player:inBossFight()