Jump to content

serverTime - realTime


Wes

Recommended Posts

Hey. I have a script, which is supposed to set the server time to real time.

So e.g if it's 22:00 in the real life (according to the server computer's time settings) then it supposed to set the ingame time to 21:00, to have the nighttime..

Unfortunatelly, it doesn't do that. I've added it to Admin ACL, but that doesn't work aswell...

Any solution for this? I'm sorry that I'm opening so much topic, but this is the only place where the people are willing to help in these stuff. :D

So here is the XML:

    "Benxamix2" version="1.5" type="script" name="New Real Time Script" /> 
    
        "*initialHour" value="19" friendlyname="Initial Hour" accept="0-23" desc="The hour that the game inits with when starting this resource." /> 
        "*initialMinute" value="30" friendlyname="Initial Minute" accept="0-60" desc="The minute that the game inits with when starting this resource." /> 
        "*minuteDelay" value="60000" friendlyname="Minute Delay" accept="0-9999000" desc="How much time does minutes delay its advance in miliseconds."  /> 
    
    

local minuteDelay = get ("realtime.minuteDelay") 
setMinuteDuration (minuteDelay) 
  
local hour = get ("realtime.initialHour") 
local minute = get ("realtime.initialMinute") 
setTime (hour,minute) 

Thanks for your support anyway, I hope there are some genius out there who has some spare time and willing to help the noob people xD

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...