From 5c72638d434014752a65d418a1039287a88a397a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 13 六月 2024 17:25:05 +0800
Subject: [PATCH] 10178 【越南】【香港】【主干】挂机奖励(B109封包修改)

---
 ServerPack/MapServerPack/HB1_Role/GuajiInfo.h |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/ServerPack/MapServerPack/HB1_Role/GuajiInfo.h b/ServerPack/MapServerPack/HB1_Role/GuajiInfo.h
index cfcb906..d75184f 100644
--- a/ServerPack/MapServerPack/HB1_Role/GuajiInfo.h
+++ b/ServerPack/MapServerPack/HB1_Role/GuajiInfo.h
@@ -1,5 +1,17 @@
 // B1 09 玩家挂机系统信息 #tagMCGuajiInfo
 
+struct    tagMCGuajiMoney
+{
+	BYTE		MoneyType;
+	DWORD		MoneyValue;
+};
+
+struct    tagMCGuajiItem
+{
+	DWORD		ItemID;
+	WORD		Count;
+};
+
 struct    tagMCGuajiInfo
 {
 	tagHead		 Head;
@@ -8,8 +20,8 @@
 	DWORD		AwardSeconds;	// 已累计收益时长,秒
 	DWORD		Exp;	// 已累计经验,求余亿部分
 	DWORD		ExpPoint;	// 已累计经验,整除亿部分
-	BYTE		MoneyInfoLen;
-	char		MoneyInfo[MoneyInfoLen];	// 已累计货币 [[货币类型, 货币值], ...]
-	WORD		ItemInfoLen;
-	char		ItemInfo[ItemInfoLen];	// 已累计物品 [[物品ID, 个数], ...]
+	BYTE		MoneyLen;
+	tagMCGuajiMoney	MoneyList[MoneyLen];	// 已累计货币
+	BYTE		ItemLen;
+	tagMCGuajiItem	ItemList[ItemLen];	// 已累计物品
 };

--
Gitblit v1.8.0