mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-15 11:04:36 +01:00
CustomHead and Frame impl, with GetMainDataRsp fix
This commit is contained in:
22
GameServer/Handlers/Two/SetFrameUseReqHandler.cs
Normal file
22
GameServer/Handlers/Two/SetFrameUseReqHandler.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers.Two
|
||||
{
|
||||
[PacketCmdId(CmdId.SetFrameUseReq)]
|
||||
internal class SetFrameUseReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
SetFrameUseReq Data = packet.GetDecodedBody<SetFrameUseReq>();
|
||||
session.Player.User.FrameId = (int)Data.FrameId;
|
||||
GetMainDataRsp mainDataRsp = new()
|
||||
{
|
||||
retcode = GetMainDataRsp.Retcode.Succ,
|
||||
UseFrameId = Data.FrameId,
|
||||
TypeLists = new uint[] { 26 }
|
||||
};
|
||||
|
||||
session.Send(Packet.FromProto(mainDataRsp, CmdId.GetMainDataRsp), Packet.FromProto(new SetFrameUseRsp() { FrameId = Data.FrameId, retcode = SetFrameUseRsp.Retcode.Succ }, CmdId.SetFrameUseRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user