PDA

View Full Version : How to get night and dusk manually?



Ensus
20-10-19, 08:28 AM
Hello, everybody!

Sorry if it's a noob question, but is it possible to modify the day cycles on my server? I want night or dusk when i play.

Thank you for your answer! :)

Wise
21-10-19, 12:15 PM
an old contribution by Rochet2 but I think it still works

Edit the sent game time and speed:


data.Initialize(SMSG_LOGIN_SETTIMESPEED,4+4+4);
data.AppendPackedTime(sWorld->GetGameTime());
data <<float(0.01666667f);// game speed
data << uint32(0);// added in 3.1.2
GetSession()->SendPacket(&data);in Player::SendInitialPacketsBeforeAddToMap


TrinityCore/Player.cpp at db8aba662ae94aeaab74ae2ae29c38cf0b8bffb4 * TrinityCore/TrinityCore * GitHub (https://github.com/TrinityCore/TrinityCore/blob/db8aba662ae94aeaab74ae2ae29c38cf0b8bffb4/src/server/game/Entities/Player/Player.cpp#L22543-L22547)


However this will make the world clock not show correct time.
Screenshot by Lightshot (http://prntscr.com/8u164v)

Looks fun when game time is high (IE 120)
Edited October 22, 2015 by Rochet2