filipus
Member
- Joined
- Dec 31, 2010
- Messages
- 229
- Reaction score
- 12
So, is there any way?
How does the server calculate the day and night cicle?
I'm currently using tibian time correctly (using the tíbia watch script haha) but I can't find a way to determine if its night or not. My problem is that the moment that the night activates seems to change acording to the moment you turn your server on
@Solved
Just use getWorldLight(). If you are using 0.3.6 you need to edit the sources (go to the function and instead of returning 1, return 2) because you get the wrong value from the function.
How does the server calculate the day and night cicle?
I'm currently using tibian time correctly (using the tíbia watch script haha) but I can't find a way to determine if its night or not. My problem is that the moment that the night activates seems to change acording to the moment you turn your server on
@Solved
Just use getWorldLight(). If you are using 0.3.6 you need to edit the sources (go to the function and instead of returning 1, return 2) because you get the wrong value from the function.
Last edited: