goofy Goodfeel implementation & SetWarshipAvatar

This commit is contained in:
rafi1212122
2023-06-01 23:26:58 +07:00
parent 31e3c4a814
commit 86dc83d448
8 changed files with 130 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ namespace PemukulPaku.GameServer
{
if (Packet.IsValid(packet))
{
ProcessPacket(new Packet(packet));
ProcessPacket(new Packet(packet), true);
}
else
{
@@ -103,7 +103,7 @@ namespace PemukulPaku.GameServer
Server.GetInstance().LogClients();
}
public void ProcessPacket(Packet _packet)
public void ProcessPacket(Packet _packet, bool log = false)
{
string PacketName = Enum.GetName(typeof(CmdId), _packet.CmdId)!;
if(PacketName == "KeepAliveNotify") { LastClientKeepAlive = Global.GetUnixInSeconds(); c.Log(PacketName); return; }
@@ -118,7 +118,8 @@ namespace PemukulPaku.GameServer
return;
}
c.Log(PacketName);
if(log)
c.Log(PacketName);
handler.Handle(this, _packet);
}