Jump to content
  • 0
Sign in to follow this  
timo0o

Day / Night Cycle settings

Question

Hi!

Where can i setup the day/night cycle in the hercules server settings?

I almost think that it changes every 2 hours between day and night.

But i want to use my own day/night script.

 

Where can i Change this?

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

conf/map/battle/misc.conf

 

Thanks. I think you mean these settings?

 

// Choose if server begin with night (yes) or day (no)
night_at_start: no

// Define duration in msec of the day (default: 7200000 = 2 hours)
// Set to 0 to disable day cycle (but not @day GM command).
// Except 0, minimum is 60000 (1 minute)
day_duration: 0

// Define duration in msec of the night (default: 1800000 = 30 min)
// Set to 0 to disable night cycle (but not @night GM command).
// Except 0, minimum is 60000 (1 minute)
night_duration: 0

 

But it is still active.

Share this post


Link to post
Share on other sites
  • 0

If you wanna have 2hours day and 2hours night,
you need to change it to:

 

// Define duration in msec of the day (default: 7200000 = 2 hours)
// Set to 0 to disable day cycle (but not @day GM command).
// Except 0, minimum is 60000 (1 minute)
day_duration: 7200000

// Define duration in msec of the night (default: 1800000 = 30 min)
// Set to 0 to disable night cycle (but not @night GM command).
// Except 0, minimum is 60000 (1 minute)
night_duration: 7200000

Share this post


Link to post
Share on other sites
  • 0

I want to deactivate it because I want to use my own script.

 

-	script	DayNight	-1,{
OnInit:
  if ((gettime(3) < 6) || (gettime(3) >= 21)) night;
  end;

OnClock0600:
  announce "The Sun is rising! [6:00]",bc_all,0xEEEEEE;
  day;
  end;

OnClock2100:
  announce "Good Night Players![21:00]",bc_all,0xEEEEEE;
  night;
  end;
}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.