Search the Commands

Home  All  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Details for command day:
 
* day;
* night;
 
These two commands will switch the entire server between day and night mode.
Depending on the configuration, it may cause differing client effects. If your
server is set to cycle between day and night, it will eventually return to that
cycle.

This example will set the night time to start at 03 AM and end at 08 AM, and the
nighttime will persist if the server restarts during the night, if the automated
day/night switching is turned off in the configuration files. Figure it out on
your own:

-%TAB%script%TAB%DayNight%TAB%-1,{

end;

OnClock0300:

OnClock0800:

OnInit:

set $@minutesfrommidnight, gettime(3)*60+gettime(2);

set $@night_start, 180; // 03:00
set $@night_end, 480; // 08:00

if ($@minutesfrommidnight>=$@night_start && $@minutesfrommidnight<$@night_end) goto StartNight;

goto StartDay;
StartNight:
night;
end;
StartDay:
day;
end; }

Valid XHTML 1.0 Strict Valid CSS!