Originally Posted by sinnereso
Hi i'm looking to add a very basic slash command to my addon that basically subtracts current time from GetNextForwardCampRespawnTime() to give me a value I can convert to seconds or something but... all the GetTimeStamp() or GetTimeStamp32() etc api functions I can find return a 10 digit number vs GetNextForwardCampRespawnTime() returning a 7 digit number. Is there another api function I should use for this or is the GetNextForwardCampRespawnTime() being rounded up to the nearest minute or something?
|
This is what RDK does for its Camp Respawn Timer:
Code:
local respawnTime = GetNextForwardCampRespawnTime()
local seconds = (respawnTime - GetGameTimeMilliseconds()) / 1000
if seconds < 0 then
respawnTime = "-"
else
respawnTime = ZO_FormatTimeAsDecimalWhenBelowThreshold(seconds)
end