mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
make it send first time welcome message to new players.
This commit is contained in:
parent
be56815996
commit
876eb69113
2 changed files with 9 additions and 0 deletions
|
@ -374,6 +374,7 @@ namespace HISP.Player
|
|||
{
|
||||
Database.CreateUserExt(UserId);
|
||||
NewPlayer = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -279,6 +279,14 @@ namespace HISP.Server
|
|||
byte[] WorldData = PacketBuilder.CreateWorldData(World.ServerTime.Minutes, World.ServerTime.Days, World.ServerTime.Years, World.GetWeather());
|
||||
sender.SendPacket(WorldData);
|
||||
|
||||
// Send first time message;
|
||||
if (sender.LoggedinUser.NewPlayer)
|
||||
{
|
||||
byte[] NewUserMessage = PacketBuilder.CreateChat(Messages.NewUserMessage, PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||
sender.SendPacket(NewUserMessage);
|
||||
}
|
||||
|
||||
|
||||
byte[] SecCodePacket = PacketBuilder.CreateSecCode(user.SecCodeSeeds, user.SecCodeInc, user.Administrator, user.Moderator);
|
||||
sender.SendPacket(SecCodePacket);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue