mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 13:15:42 +12:00
update riddle code
This commit is contained in:
parent
c8d6ec630a
commit
04c9a5b5a2
2 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue