Set up an alarm at X time of the game?
Hello, sorry my english.
I want to set up an alarm when it is X time in the game (game time), for example, I want this alarm to be at 3:00 AM in the game. I don't really have idea of how to do it, I know there is not game time actually in the game, so I don't know if this is possible. I saw this library, but I don't know if it would do what I want, and if it does, how to do it: http://www.esoui.com/downloads/info53-AceTimer.html Can anyone help me? : ) Thank you. |
This is a simple timer. In programming the job of a timer is to run code after "X seconds have passed".
So it could help you to know that you have been logged in (on this char and not reloaded the UI) for X ammount of time. We got 2 dedicated Clock addons. Look if they have a functionality like this: http://www.esoui.com/downloads/info2...ndardTime.html http://www.esoui.com/downloads/info232-TamrielTime.html I am not sure how precise thier values or moon phase prediction really is. |
There are a bunch of functions for getting time in the game. Look at the API under the global section: http://wiki.esoui.com/API#Global
I didn't test any of this -- But it should point you in the right direction You could call a function on intialize to get the time you start playing. Needed to check and see if you started playing before 3am or after 3am.Lua Code:
You could then use the following and register it to some event that happens frequently so its checked often. Lua Code:
You could also do what was suggested & take that same information & do a timer. I've never messed with anything like that except timing something for a few seconds. I don't know how accurate a zo_callLater would be for an extended period of time or if it has a time limit on it (it may not work if set for several hours I have no clue). Theres probably a better way to set a timer, but the rest of it should point you in the right direction to get the information you need to set a timer. Lua Code:
|
All times are GMT -6. The time now is 07:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI