Moves more outgoing packets (#152)
This commit is contained in:
parent
4499ac30b0
commit
69ebb45e59
15 changed files with 1778 additions and 1754 deletions
|
|
@ -22,6 +22,25 @@ using Server.Accounting;
|
|||
|
||||
namespace Server.Network
|
||||
{
|
||||
public enum PMMessage : byte
|
||||
{
|
||||
CharNoExist = 1,
|
||||
CharExists = 2,
|
||||
CharInWorld = 5,
|
||||
LoginSyncError = 6,
|
||||
IdleWarning = 7
|
||||
}
|
||||
|
||||
public enum DeleteResultType
|
||||
{
|
||||
PasswordInvalid,
|
||||
CharNotExist,
|
||||
CharBeingPlayed,
|
||||
CharTooYoung,
|
||||
CharQueued,
|
||||
BadRequest
|
||||
}
|
||||
|
||||
public sealed class ChangeCharacter : Packet
|
||||
{
|
||||
public ChangeCharacter(IAccount a) : base(0x81)
|
||||
|
|
@ -56,4 +75,31 @@ namespace Server.Network
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asks the client for it's version
|
||||
/// </summary>
|
||||
public sealed class ClientVersionReq : Packet
|
||||
{
|
||||
public ClientVersionReq() : base(0xBD)
|
||||
{
|
||||
EnsureCapacity(3);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DeleteResult : Packet
|
||||
{
|
||||
public DeleteResult(DeleteResultType res) : base(0x85, 2)
|
||||
{
|
||||
Stream.Write((byte)res);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PopupMessage : Packet
|
||||
{
|
||||
public PopupMessage(PMMessage msg) : base(0x53, 2)
|
||||
{
|
||||
Stream.Write((byte)msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue