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

Full Light Code Source YurOTS

Forkz

Advanced OT User
Joined
Jun 29, 2020
Messages
586
Solutions
17
Reaction score
159
Hi otlanders,
I'm looking for a code for my full light source on the client, could someone help me?
 
You mention some yurots in your thread title, and then inside the thread, you are talking about client changes.
Which is it?
 
Changing the source to make the client full light. Understood?
The "source" might refer to both client and server source, thus I assumed that you might be using OTClient - in which case this issue would be easily solvable on the client-side.
 
The "source" might refer to both client and server source, thus I assumed that you might be using OTClient - in which case this issue would be easily solvable on the client-side.

maybe it will help if you post the source
what part of the code do you need?
Post automatically merged:

The "source" might refer to both client and server source, thus I assumed that you might be using OTClient - in which case this issue would be easily solvable on the client-side.
the truth that it would be the server code, the client I intend to use 7.6 because of the BOT
 
You need to find the part responsible for either calculating or sending light to the client, also it would be wise to look through group flags, maybe you can just set it there.
C++:
#ifdef CVS_DAY_CYCLE
    int daycycle = 3600;
    light_hour_delta = 1440*10/daycycle;
    light_hour = 0;
    lightlevel = LIGHT_LEVEL_NIGHT;
    light_state = LIGHT_STATE_NIGHT;
    addEvent(makeTask(10000, boost::bind(&Game::checkLight, this, 10000)));
#endif //CVS_DAY_CYCLE
 

Similar threads

  • Question Question
Replies
2
Views
787
Back
Top