Help! Save hour
#1

Hello,
How do I create a script that works as follows: (?)
The script would be a watch that every 1 minute in real life was 1 hour in the game.
Also, I would like to stay the time saved in some database for when i restart server, he returned at the same time you stopped.
example:
Rebooted my server to 14:00, when I open it again, it starts at the same time they stopped, in this case at 14 o'clock.
In case, would add the weekdays too? Whenever I arrive at 00:00, the day changes.

It would be possible to create something? I really do not know because I do not understand almost nothing about it.

Sorry for ignorance and my bad English, I used ****** translate.

Thanks
Reply
#2

It sounds like you are asking someone to script this for you which in that case, good luck. However, this is possible but also very complex to do. It will require alot of math and calculations as well as scripting all this too. To save anything (Such as a in game date and time), you will need to learn how to read and write to files that would have these varibles to be saved and loaded from. You will also need to learn how to create and use a timer for the script to know the in game date and time compared to the real date and time (1 real minute = 1 game hour, for example). I have made a complex system such as this that 5 real minutes = 1 game hour which supports:

Seconds (Every real second for 12 game seconds), Minutes, Hours, Military Format, AM/PM, Day (Monday just for example), Date, Month and Years. Even weather that changes smoothly every game hour (Storm and Fog are rare).

Remember to update the world time each game second though, would want a smooth day/night cycle...

But take all this one step at a time, start with a timer and make 1 game hour every 1 real minute etc.
Reply
#3

No, you got me wrong!
I'm not asking you to do for me, I asked if it would be possible to create or if anyone knew a script already in the system, just that. I do not know much about PWN, but I'll try to do, even though complex.
Do not want to be known as loose here in the forum, if I can, post here.

Thank you.

Sorry for my bad english!

Closed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)