Day / Night Cycle settings

timo0o

New member
Messages
22
Points
0
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?

 
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.

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

Code:
// 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
 
I want to deactivate it because I want to use my own script.

Code:
-	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;
}
 
Back
Top