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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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