• 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!

[C++] setWordLight(light, time)

Jetro

jangeldev
Joined
Aug 1, 2011
Messages
452
Reaction score
68
Location
Venezuela
Hi all, i need a function to set the world light to other light color with a certain time, it is possible to make it?
Thanks in advance
Regards :rolleyes:
 
http://otland.net/f16/night-day-tibia-152372/
You can edit these values in red, in game.h:

Code:
		static const int32_t LIGHT_LEVEL_DAY = [COLOR="#FF0000"]250[/COLOR];
		static const int32_t LIGHT_LEVEL_NIGHT = [COLOR="#FF0000"]40[/COLOR];
		static const int32_t SUNSET = [COLOR="#FF0000"]1305[/COLOR];
		static const int32_t SUNRISE = [COLOR="#FF0000"]430[/COLOR];

Or maybe create a function for it? (Source edit). It may only check the values onstartup, then the function will be useless. Only way is to edit the values and compile it and let it be.
 
yeah, that's static editing' maybe good if I waned to eliminate daylight ;p
I just waned function to set time of the day actually...

So I could for example make some cool spell for mages, to create nightmare in the whole world'...
 
Back
Top