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.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef USE_AHNLAB_HACKSHIELD
|
||||
#include "Hackshield.h"
|
||||
#include METIN2HS_INCLUDE_ANTICPXSVR
|
||||
@@ -219,6 +222,7 @@ enum
|
||||
HEADER_GC_QUICKSLOT_SWAP = 30,
|
||||
HEADER_GC_ITEM_OWNERSHIP = 31,
|
||||
HEADER_GC_LOGIN_SUCCESS4 = 32,
|
||||
HEADER_GC_LOGIN_SUCCESS5 = 157,
|
||||
HEADER_GC_ITEM_UNBIND_TIME = 33,
|
||||
HEADER_GC_WHISPER = 34,
|
||||
HEADER_GC_ALERT = 35,
|
||||
@@ -424,6 +428,7 @@ enum
|
||||
|
||||
PLAYER_PER_ACCOUNT3 = 3,
|
||||
PLAYER_PER_ACCOUNT4 = 4,
|
||||
PLAYER_PER_ACCOUNT5 = 5,
|
||||
|
||||
PLAYER_ITEM_SLOT_MAX_NUM = 20, // 플래이어의 슬롯당 들어가는 갯수.
|
||||
|
||||
@@ -779,7 +784,7 @@ typedef struct command_exchange
|
||||
{
|
||||
BYTE header;
|
||||
BYTE subheader;
|
||||
DWORD arg1;
|
||||
int64_t arg1;
|
||||
BYTE arg2;
|
||||
TItemPos Pos;
|
||||
} TPacketCGExchange;
|
||||
@@ -936,7 +941,7 @@ typedef struct command_safebox_money
|
||||
{
|
||||
BYTE bHeader;
|
||||
BYTE bState;
|
||||
DWORD dwMoney;
|
||||
int64_t dwMoney;
|
||||
} TPacketCGSafeboxMoney;
|
||||
|
||||
typedef struct command_safebox_checkout
|
||||
@@ -1076,9 +1081,10 @@ typedef struct SShopItemTable
|
||||
BYTE count;
|
||||
|
||||
TItemPos pos; // PC 상점에만 이용
|
||||
DWORD price; // PC 상점에만 이용
|
||||
int64_t price; // PC 상점에만 이용
|
||||
BYTE display_pos; // PC 상점에만 이용, 보일 위치.
|
||||
} TShopItemTable;
|
||||
static_assert(sizeof(TShopItemTable)==17,"gold64 private shop wire size");
|
||||
|
||||
typedef struct SPacketCGMyShop
|
||||
{
|
||||
@@ -1268,6 +1274,16 @@ typedef struct packet_login_success4
|
||||
DWORD random_key;
|
||||
} TPacketGCLoginSuccess4;
|
||||
|
||||
typedef struct packet_login_success5
|
||||
{
|
||||
BYTE header;
|
||||
TSimplePlayerInformation akSimplePlayerInformation[PLAYER_PER_ACCOUNT5];
|
||||
DWORD guild_id[PLAYER_PER_ACCOUNT5];
|
||||
char guild_name[PLAYER_PER_ACCOUNT5][GUILD_NAME_MAX_LEN+1];
|
||||
DWORD handle;
|
||||
DWORD random_key;
|
||||
} TPacketGCLoginSuccess5;
|
||||
|
||||
|
||||
enum { LOGIN_STATUS_MAX_LEN = 8 };
|
||||
typedef struct packet_login_failure
|
||||
@@ -1729,7 +1745,18 @@ enum EPointTypes
|
||||
POINT_MAX_MAGIC_WEP,
|
||||
POINT_HIT_RATE,
|
||||
|
||||
POINT_CONQUEROR_LEVEL = 205,
|
||||
POINT_CONQUEROR_LEVEL_STEP = 206,
|
||||
POINT_SUNGMA_STR = 207,
|
||||
POINT_SUNGMA_HP = 208,
|
||||
POINT_SUNGMA_MOVE = 209,
|
||||
POINT_SUNGMA_INMUNE = 210,
|
||||
POINT_CONQUEROR_POINT = 211,
|
||||
POINT_CONQUEROR_EXP = 212,
|
||||
POINT_CONQUEROR_NEXT_EXP = 213,
|
||||
|
||||
POINT_GEM = 248,
|
||||
POINT_CHEQUE = 249,
|
||||
|
||||
//POINT_MAX_NUM = 255,=>stdafx.h 로/
|
||||
};
|
||||
@@ -1916,7 +1943,7 @@ typedef struct packet_shop_update_item
|
||||
|
||||
typedef struct packet_shop_update_price
|
||||
{
|
||||
int iElkAmount;
|
||||
int64_t iElkAmount;
|
||||
} TPacketGCShopUpdatePrice;
|
||||
|
||||
enum EPacketShopSubHeaders
|
||||
@@ -1957,7 +1984,7 @@ typedef struct packet_exchange
|
||||
BYTE header;
|
||||
BYTE subheader;
|
||||
BYTE is_me;
|
||||
DWORD arg1;
|
||||
int64_t arg1;
|
||||
TItemPos arg2;
|
||||
DWORD arg3;
|
||||
LONG alValues[ITEM_SOCKET_SLOT_MAX_NUM]; // PORT: LONG, the 32-bit Win32 long
|
||||
@@ -2219,7 +2246,7 @@ typedef struct packet_safebox_size
|
||||
typedef struct packet_safebox_money_change
|
||||
{
|
||||
BYTE bHeader;
|
||||
DWORD dwMoney;
|
||||
int64_t dwMoney;
|
||||
} TPacketGCSafeboxMoneyChange;
|
||||
|
||||
typedef struct command_empire
|
||||
@@ -2330,7 +2357,7 @@ typedef struct packet_guild_sub_info
|
||||
DWORD exp;
|
||||
BYTE level;
|
||||
char name[GUILD_NAME_MAX_LEN+1];
|
||||
DWORD gold;
|
||||
int64_t gold;
|
||||
BYTE hasLand;
|
||||
} TPacketGCGuildInfo;
|
||||
|
||||
@@ -2390,10 +2417,10 @@ typedef struct packet_offline_shop_item
|
||||
{
|
||||
DWORD id;
|
||||
DWORD vnum;
|
||||
long long price;
|
||||
int count;
|
||||
int64_t price;
|
||||
int32_t count;
|
||||
BYTE display_pos;
|
||||
long alSockets[ITEM_SOCKET_SLOT_MAX_NUM];
|
||||
int32_t alSockets[ITEM_SOCKET_SLOT_MAX_NUM];
|
||||
TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_SLOT_MAX_NUM];
|
||||
BYTE status;
|
||||
char szBuyerName[CHARACTER_NAME_MAX_LEN+1];
|
||||
@@ -2402,6 +2429,11 @@ typedef struct packet_offline_shop_item
|
||||
#endif
|
||||
DWORD owner_id;
|
||||
} TOfflineShopItemData;
|
||||
#ifndef WJ_CHANGELOOK_SYSTEM
|
||||
static_assert(sizeof(TOfflineShopItemData)==84,"offline item wire size");
|
||||
static_assert(offsetof(TOfflineShopItemData,aAttr)==33,"offline item attribute offset");
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct ShopLog {
|
||||
char name[CHARACTER_NAME_MAX_LEN + 1];
|
||||
@@ -2471,6 +2503,11 @@ typedef struct packet_offline_shop_update_item
|
||||
int time;
|
||||
DWORD type;
|
||||
} TPacketGCOfflineShopUpdateItem;
|
||||
#ifndef WJ_CHANGELOOK_SYSTEM
|
||||
static_assert(sizeof(TPacketGCOfflineShopStart)==12083,"offline start wire size");
|
||||
static_assert(sizeof(TPacketGCOfflineShopUpdateItem)==229,"offline update wire size");
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_SHOP_SEARCH_SYSTEM
|
||||
@@ -2963,6 +3000,7 @@ enum EPacketCGDragonSoulSubHeaderType
|
||||
DS_SUB_HEADER_DO_UPGRADE,
|
||||
DS_SUB_HEADER_DO_IMPROVEMENT,
|
||||
DS_SUB_HEADER_DO_REFINE,
|
||||
DS_SUB_HEADER_DO_CHANGE_ATTR,
|
||||
DS_SUB_HEADER_REFINE_FAIL,
|
||||
DS_SUB_HEADER_REFINE_FAIL_MAX_REFINE,
|
||||
DS_SUB_HEADER_REFINE_FAIL_INVALID_MATERIAL,
|
||||
|
||||
Reference in New Issue
Block a user