feat: implement offline shop and shop search systems (Stage 5 Part 2)
- Enable ENABLE_OFFLINESHOP_SYSTEM and ENABLE_SHOP_SEARCH_SYSTEM in service.h - Define OFFLINE_SHOP_HOST_ITEM_MAX_NUM (80) and SHOP_SIGN_MAX_LEN (45) in length.h - Add CG57, CG58, CG143, GC47, GC48, GC156 packet definitions and subheaders - Port offline shop, shop manager, search manager, and DB client manager - Auto-bootstrap offline shop SQL tables and player.shop_money/shopFlag columns - Add 72319 item consumption for shop slot expansion (bPos 40..79) - Add comprehensive feature tests in test_offlineshop.py
This commit is contained in:
@@ -11,7 +11,12 @@ enum EMisc
|
||||
PLAYER_PER_ACCOUNT = 4,
|
||||
ACCOUNT_STATUS_MAX_LEN = 8,
|
||||
CHARACTER_NAME_MAX_LEN = 24,
|
||||
#ifdef ENABLE_OFFLINESHOP_SYSTEM
|
||||
OFFLINE_SHOP_HOST_ITEM_MAX_NUM = 80,
|
||||
SHOP_SIGN_MAX_LEN = 45,
|
||||
#else
|
||||
SHOP_SIGN_MAX_LEN = 32,
|
||||
#endif
|
||||
INVENTORY_PAGE_SIZE = 45, // 5 x 9
|
||||
INVENTORY_PAGE_COUNT = 5, // MT: 40250 ships 2 pages (90 cells)
|
||||
INVENTORY_MAX_NUM = INVENTORY_PAGE_SIZE * INVENTORY_PAGE_COUNT,
|
||||
|
||||
Reference in New Issue
Block a user