Thread Tools Display Modes
02-19-17, 12:53 PM   #1
tobias1919
A Deviate Faerie Dragon
Join Date: Mar 2015
Posts: 13
Need help to detect weekly reset

Hello.

I am working on an addon to store Keystones, but how can i determine if the keystone saved is from last reset or the current?

Thanks on advance!
  Reply With Quote
02-20-17, 02:42 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Resets happen on the same day every week at the same time. Check out date() and time() to see which you could use. Both should be in the WoW API in the global namespace as the os library isn't available.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Need help to detect weekly reset


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off