Jump to content
TrinityCore

Any way to set always day/night/dawn?


Espionage724
 Share

Recommended Posts

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
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.
http://prntscr.com/8u164v

Looks fun when game time is high (IE 120)

Edited by Rochet2
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...