View Full Version : How to get night and dusk manually?
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! :)
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
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.