mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
* Fix bug where appraising certain items in BBM while you had a copy of that item in your regular character's storage chest would throw an error. Fix bugs where SQLite would occasionally have a DB lock conflict due to poor connection management. * Be more aggressive when clearing out invalid priority quests. * Fix bug where the Beauty Shop would sometimes complain about PRICE_NO_MATCH when trying to pay with Silver Tickets. * Fix bugs where pawn search wouldn't display craft levels, and didn't support filtering by craft level. * Migrate 58 > 59. Store character_id in the connections table so we can use it for player tracking. Adjust player tracking to be driven by the DB. * Fix bugs where bazaar processes could sometimes delete items if the storage was full. * Add feature where you can sell special items (like PP crystals) to consume them, instead of having to spam use them. * Fix bug where deleting pawns would badly mangle the equipment entries of other pawns owned by the same character. * Add support for LightQuestRepeatsPerDay, limiting the number of times a board quest can be offered to a single player per day. * Research for EquipStatId. * Maybe fix bug where base game augments were secretly applying even in BBM? Maybe fix bug where certain alt-pallet skills wouldn't work in multiplayer due to missing context information. * Update database migration version. * Automatically promote localhost players to admin when running in debug mode. Adjust /finishquesttype to clear progress when finishing quests. * Fix bug where hired pawns wearing job emblems weren't benefiting from the stats on them. Hired pawns now reflect the hiring character's job emblems entirely.
39 lines
1.5 KiB
C#
39 lines
1.5 KiB
C#
using Arrowgene.Buffers;
|
|
using Arrowgene.Ddon.Server;
|
|
using Arrowgene.Ddon.Shared.Entity.RpcPacketStructure;
|
|
using Arrowgene.Ddon.Shared.Model;
|
|
using Arrowgene.Logging;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Arrowgene.Ddon.GameServer.Handler
|
|
{
|
|
public class RpcHandler
|
|
{
|
|
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(RpcHandler));
|
|
|
|
public static void Handle(GameClient client, RpcMsgType msgType, byte[] rpcData)
|
|
{
|
|
IBuffer buffer = new StreamBuffer(rpcData);
|
|
buffer.SetPositionStart();
|
|
|
|
// It seems like MsgIdFull is almost like a "message class"
|
|
// where RpcId is a unique action?
|
|
RpcPacketHeader Header = new RpcPacketHeader().Read(buffer);
|
|
|
|
// Logger.Debug(Header.AsString());
|
|
if (gRpcPacketHandlers.ContainsKey(Header.MsgDTI) && gRpcPacketHandlers[Header.MsgDTI].ContainsKey(Header.MsgId))
|
|
{
|
|
gRpcPacketHandlers[Header.MsgDTI][Header.MsgId].Handle(client.Character, Header, buffer);
|
|
}
|
|
}
|
|
|
|
public static readonly Dictionary<RpcNetMsgDti, Dictionary<ushort, IRpcPacket>> gRpcPacketHandlers = new()
|
|
{
|
|
[RpcNetMsgDti.cNetMsgCtrlAction] = new Dictionary<ushort, IRpcPacket>
|
|
{
|
|
{(ushort) RpcMsgIdControl.NET_MSG_ID_PERIODIC_TOP, new RpcCtrlPeriodicTop()},
|
|
{(ushort) RpcMsgIdControl.NET_MSG_ID_CS_CHANGE, new RpcCtrlCsChange()}
|
|
}
|
|
};
|
|
}
|
|
}
|