This commit is contained in:
SilicaAndPina 2021-04-30 19:11:12 +12:00
parent a4319d87f5
commit bea24a59a5
3 changed files with 6 additions and 2 deletions

View file

@ -23,7 +23,7 @@ namespace HISP.Game.Events
public bool Active;
public int Reward;
private Timer riddleTimeout;
private const int RIDDLE_TIMEOUT = 30;
private const int RIDDLE_TIMEOUT = 5;
public static RealTimeRiddle GetRandomRiddle()
{

View file

@ -17,7 +17,7 @@
<Content Include="icon.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MySqlConnector" Version="1.3.2" />
<PackageReference Include="MySqlConnector" Version="1.3.7" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
<PropertyGroup>

View file

@ -3523,6 +3523,10 @@ namespace HISP.Server
byte[] MotdData = PacketBuilder.CreateMotd();
sender.SendPacket(MotdData);
// Send riddle annoucement
if (RiddleEvent != null)
if (RiddleEvent.Active)
RiddleEvent.ShowStartMessage(sender);
// Send Queued Messages
string[] queuedMessages = Database.GetMessageQueue(sender.LoggedinUser.Id);