Hello, I am looking for help since I cannot find the correct logic to do the following:
Â
I want to make certain player variables reset automatically when there is a change of day on the server.
Â
For example, a variable called "dungeon entries" that has a value of 3. Each time the player enters the dungeon it will decrease by 1 until it reaches 0.
Â
That same variable must be reset when the server time is 00:00
Â
I found a way to do it but it only works if the player is online at the time of the time change, but if they are offline and log in right after the change, the variable is not reset.
Â
how can I do it?
Â
Thanks for the help.
Â
I apologize for the English, I am using Google Translate
Question
EspectroW
Hello, I am looking for help since I cannot find the correct logic to do the following:
Â
I want to make certain player variables reset automatically when there is a change of day on the server.
Â
For example, a variable called "dungeon entries" that has a value of 3. Each time the player enters the dungeon it will decrease by 1 until it reaches 0.
Â
That same variable must be reset when the server time is 00:00
Â
I found a way to do it but it only works if the player is online at the time of the time change, but if they are offline and log in right after the change, the variable is not reset.
Â
how can I do it?
Â
Thanks for the help.
Â
I apologize for the English, I am using Google Translate
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now