update riddle code

This commit is contained in:
SilicaAndPina 2021-04-30 01:05:09 +12:00
parent c8d6ec630a
commit 04c9a5b5a2
2 changed files with 2 additions and 5 deletions

View file

@ -36,11 +36,10 @@ namespace HISP.Game.Events
riddleTimeout = new Timer(new TimerCallback(riddleTimedOut), null, RIDDLE_TIMEOUT * 60 * 1000, RIDDLE_TIMEOUT * 60 * 1000);
// Send riddle message to all players
byte[] riddleStartMessage = PacketBuilder.CreateChat(Messages.FormatEventRealTimeRiddleStart(RiddleText), PacketBuilder.CHAT_BOTTOM_RIGHT);
foreach(GameClient client in GameServer.ConnectedClients)
{
if (client.LoggedIn)
client.SendPacket(riddleStartMessage);
ShowStartMessage(client);
}
}

View file

@ -3523,9 +3523,7 @@ namespace HISP.Server
byte[] MotdData = PacketBuilder.CreateMotd();
sender.SendPacket(MotdData);
// Display Event Message
RiddleEvent.ShowStartMessage(sender);
// Send Queued Messages
string[] queuedMessages = Database.GetMessageQueue(sender.LoggedinUser.Id);
foreach(string queuedMessage in queuedMessages)