• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Always night in Game Help

tanii

Empire-war.com
Joined
Jan 16, 2015
Messages
383
Solutions
1
Reaction score
12
hello..
I need edit and i want all time or always night in my server help me pls.
What i need to edit and how?
 
You can change the light level in game.cpp.

@Limos Help me pls edit this...

light_hour_delta = 1440 * 10 / daycycle;
light_hour = SUNRISE + (SUNSET - SUNRISE) / 2;
lightlevel = LIGHT_LEVEL_DAY;
light_state = LIGHT_STATE_DAY;

Help me pls
 
Last edited by a moderator:
@Limos Help me pls edit this...

light_hour_delta = 1440 * 10 / daycycle;
light_hour = SUNRISE + (SUNSET - SUNRISE) / 2;
lightlevel = LIGHT_LEVEL_DAY;
light_state = LIGHT_STATE_DAY;
You can remove the calculations and just set it to LIGHT_LEVEL_NIGHT (so lightLevel always stays night) in checkLight or in getWorldLightInfo set it to LIGHT_LEVEL_NIGHT instead of lightLevel, so it simply ignores the lightLevel variable.
Code:
lightInfo.level = LIGHT_LEVEL_NIGHT;
You can also change it to 0 so it's just as dark as in caves.
 
Back
Top