mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-16 21:14:35 +01:00
yae openworld but dialogs aren't triggered
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Common.Database;
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers.Openworld
|
||||
{
|
||||
[PacketCmdId(CmdId.ReportOpenworldSpawnPointReq)]
|
||||
internal class ReportOpenworldSpawnPointReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
ReportOpenworldSpawnPointReq Data = packet.GetDecodedBody<ReportOpenworldSpawnPointReq>();
|
||||
ReportOpenworldSpawnPointRsp Rsp = new()
|
||||
{
|
||||
retcode = ReportOpenworldSpawnPointRsp.Retcode.Succ,
|
||||
MapId = Data.MapId,
|
||||
PointInfo = Data.PointInfo
|
||||
};
|
||||
OpenWorldScheme? OpenWorldData = session.Player.OpenWorlds.FirstOrDefault(x => x.MapId == Data.MapId);
|
||||
if (OpenWorldData is not null)
|
||||
OpenWorldData.SpawnPoint = Data.PointInfo;
|
||||
|
||||
session.Send(Packet.FromProto(Rsp, CmdId.ReportOpenworldSpawnPointRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user