From 17bfd6a3903c2da83bcae2ab58b6d079257c8ce3 Mon Sep 17 00:00:00 2001 From: Emptii Date: Thu, 18 Apr 2024 18:37:53 +0200 Subject: [PATCH] Inventory packets added: Equip & Unequip Added Packets that get sent by the server whenever a player equips and unequips an item. Credits to @ferdoran who allowed me to find this out here: https://github.com/ferdoran/go-sro-agent-server/blob/6f2b9a9459491254c8eff6707161294ce996d3d9/model/player.go#L241 and here: https://github.com/ferdoran/go-sro-agent-server/blob/6f2b9a9459491254c8eff6707161294ce996d3d9/model/player.go#L252 --- .../AGENT/INVENTORY/0x3038 - AGENT_INVENTORY_ENTITY_EQUIP.cs | 4 ++++ .../INVENTORY/0x3039 - AGENT_INVENTORY_ENTITY_UNEQUIP.cs | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 Packets/AGENT/INVENTORY/0x3038 - AGENT_INVENTORY_ENTITY_EQUIP.cs create mode 100644 Packets/AGENT/INVENTORY/0x3039 - AGENT_INVENTORY_ENTITY_UNEQUIP.cs diff --git a/Packets/AGENT/INVENTORY/0x3038 - AGENT_INVENTORY_ENTITY_EQUIP.cs b/Packets/AGENT/INVENTORY/0x3038 - AGENT_INVENTORY_ENTITY_EQUIP.cs new file mode 100644 index 0000000..7c3ffd8 --- /dev/null +++ b/Packets/AGENT/INVENTORY/0x3038 - AGENT_INVENTORY_ENTITY_EQUIP.cs @@ -0,0 +1,4 @@ +4 uint GID // GID of the player who equips the item +1 byte slot // slot the item gets equipped to +4 uint uniqueId // unique id of the item that gets equipped +1 bool isOnehanded // is item that gets equipped a onehanded weapon diff --git a/Packets/AGENT/INVENTORY/0x3039 - AGENT_INVENTORY_ENTITY_UNEQUIP.cs b/Packets/AGENT/INVENTORY/0x3039 - AGENT_INVENTORY_ENTITY_UNEQUIP.cs new file mode 100644 index 0000000..d129bbc --- /dev/null +++ b/Packets/AGENT/INVENTORY/0x3039 - AGENT_INVENTORY_ENTITY_UNEQUIP.cs @@ -0,0 +1,3 @@ +4 uint GID // GID of the player who unequips the item +1 byte slot // slot of the item that gets unequipped +4 uint uniqueId // unique id of the item that gets unequipped