mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-16 15:34:35 +01:00
yae openworld but dialogs aren't triggered
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Common.Resources.Proto;
|
||||
using Common.Database;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers.Openworld
|
||||
{
|
||||
[PacketCmdId(CmdId.SetOpenworldStoryProgressReq)]
|
||||
internal class SetOpenworldStoryProgressReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
SetOpenworldStoryProgressReq Data = packet.GetDecodedBody<SetOpenworldStoryProgressReq>();
|
||||
UserScheme.OpenWorldStoryScheme? ow = session.Player.User.OpenWorldStory.FirstOrDefault(x => x.StoryId == Data.StoryId);
|
||||
if (ow is not null)
|
||||
ow.StoryProgress = Data.StoryProgress;
|
||||
|
||||
session.Send(Packet.FromProto(new SetOpenworldStoryProgressRsp() { retcode = SetOpenworldStoryProgressRsp.Retcode.Succ, StoryId = Data.StoryId }, CmdId.SetOpenworldStoryProgressRsp));
|
||||
session.ProcessPacket(Packet.FromProto(new GetOpenworldStoryReq() { }, CmdId.GetOpenworldStoryReq));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user