mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 22:34:34 +01:00
at least you can end the stage
This commit is contained in:
29
GameServer/Handlers/GetMainDataReqHandler.cs
Normal file
29
GameServer/Handlers/GetMainDataReqHandler.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Common.Database;
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers
|
||||
{
|
||||
[PacketCmdId(CmdId.GetMainDataReq)]
|
||||
internal class GetMainDataReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
UserScheme User = session.Player.User;
|
||||
|
||||
GetMainDataRsp Rsp = new()
|
||||
{
|
||||
retcode = GetMainDataRsp.Retcode.Succ,
|
||||
AssistantAvatarId = (uint)User.AssistantAvatarId,
|
||||
Birthday = (uint)User.BirthDate,
|
||||
Nickname = User.Nick,
|
||||
Level = 4,
|
||||
Exp = (uint)User.Exp,
|
||||
FreeHcoin = (uint)User.Hcoin,
|
||||
Hcoin = (uint)User.Hcoin,
|
||||
CustomHeadId = 161001
|
||||
};
|
||||
|
||||
session.Send(Packet.FromProto(Rsp, CmdId.GetMainDataRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user