Files
metin2-client/audit/evidence/planb-review-20261020/server_wire_probe.cpp
T
shenandshen 846a993183 feat: complete xxf-ch5 35 features migration, protocol bindings, and gate validation
- S1: Chinese locale pack, target HP/drop preview, elemental icons, exchange level display, item highlight, FOV settings, advanced skybox, GM warp.
- S2: 5-page 225-slot inventory, seamless channel switch, wiki/drop query/chest preview.
- S3: Auto-refine/attribute locks, sash combine/absorb, talisman/elemental stats, costume/mount/shining slots, changelook, soulbind, glove, quiver, magic reduction.
- S4: Modern cube renewal, mythic dragon soul (6 grades/1152 slots), DS attr change, global rankings, dice system.
- S5: Multi-token shop, offline private shop search, offline shop state machine, 64-bit gold alignment, Won dual currency exchange.
- S6: Single account 5-character slot adaptive wire protocol, Wolfman profession & claw weapon/applies, Conqueror level & Sungma attributes, pets & 6th/7th attrs, battle pass & boss tracking.
- Pass 42/42 platform gate test suites in scripts/port_gate.sh macos.
2026-10-22 01:29:14 -07:00

26 lines
841 B
C++

#include <cstdint>
#include <cstdio>
#include <cstddef>
using DWORD=uint32_t;using BYTE=uint8_t;
constexpr int ITEM_SOCKET_MAX_NUM=3,ITEM_ATTRIBUTE_MAX_NUM=7,CHARACTER_NAME_MAX_LEN=24;
#pragma pack(push,1)
struct TPlayerItemAttribute {uint8_t bType;int16_t sValue;};
typedef struct packet_offline_shop_item
{
DWORD id;
DWORD vnum;
long long price;
int count;
BYTE display_pos;
int32_t alSockets[ITEM_SOCKET_MAX_NUM];
TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_MAX_NUM];
BYTE status;
char szBuyerName[CHARACTER_NAME_MAX_LEN+1];
#ifdef ENABLE_CHANGELOOK_SYSTEM
DWORD transmutation;
#endif
DWORD owner_id;
} TOfflineShopItem;
#pragma pack(pop)
int main(){printf("server i386 offline_item=%zu attr_offset=%zu owner_offset=%zu\n",sizeof(TOfflineShopItem),offsetof(TOfflineShopItem,aAttr),offsetof(TOfflineShopItem,owner_id));}