View Single Post
02-15-24, 10:29 PM   #7
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 128
Originally Posted by Xrystal View Post
What exactly were you hoping to do ?

Maybe knowing what you wanted to happen when the timer triggers every 1 hr 30 minutes would let us know what part of your code is and isn't necessary with access to the timer functions.
Code:
if time() <= ZAMRO_release then
MP_D = floor((ZAMRO_release-time())/86400)
MP_H = floor(((ZAMRO_release-time())-(MP_D*86400))/1440)
MP_M = floor(((ZAMRO_release-time())-((MP_D*86400)+(MP_H*1440)))/60)
MP_S = floor((ZAMRO_release-time())-((MP_D*86400)+(MP_H*1440)+(MP_M*60)))
ZAMROTime_MP = ZAM..o..MP_D..w..D..o..MP_H..w..H..o..MP_M..w..M..o..MP_S..w..S
ZAMROTime_MP_Report = ZAMROUnc..MP_D..D..MP_H..H..MP_M..M..MP_S..S
else
MP_D = floor((time()-ZAMRO_release)/85500)
MP_H = floor(((time()-ZAMRO_release)-(MP_D*85500))/1440)
MP_M = floor(((time()-ZAMRO_release)-((MP_D*85500)+(MP_H*1440)))/60)
MP_S = floor((time()-ZAMRO_release)-((MP_D*85500)+(MP_H*1440)+(MP_M*60)))
ZAMROTime_MP = ZAM..o..MP_D..w..D..o..MP_H..w..H..o..MP_M..w..M..o..MP_S..w..S
ZAMROTime_MP_Report = ZAMROlastsUnc..MP_D..D..MP_H..H..MP_M..M..MP_S..S
end
I understand that this part of the code is responsible for time. But it's just a countdown to a certain time. How do I change this code so that it is reset to zero every 1 hour and 30 minutes?
  Reply With Quote