From 1cf37b4b51fc287ca3e443afb72604ec88f72cc4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 09 七月 2025 19:33:55 +0800
Subject: [PATCH] 0312 玩家物品支持DWORD数量

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py
index 41fd29e..9b2dbc8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/Collections/DataServerPlayerData.py
@@ -1898,7 +1898,7 @@
         ('ItemGUID', ctypes.c_char * 40),
         ('PlayerID', ctypes.c_ulong),
         ('ItemTypeID', ctypes.c_ulong),
-        ('Count', ctypes.c_ushort),
+        ('Count', ctypes.c_ulong),
         ('IsLocked', ctypes.c_ubyte),
         ('ItemPlaceType', ctypes.c_ubyte),
         ('ItemPlaceIndex', ctypes.c_ushort),
@@ -1946,7 +1946,7 @@
         self.ItemGUID, pos = CommFunc.ReadString(buf, pos, 40)
         self.PlayerID, pos = CommFunc.ReadDWORD(buf, pos)
         self.ItemTypeID, pos = CommFunc.ReadDWORD(buf, pos)
-        self.Count, pos = CommFunc.ReadWORD(buf, pos)
+        self.Count, pos = CommFunc.ReadDWORD(buf, pos)
         self.IsLocked, pos = CommFunc.ReadBYTE(buf, pos)
         self.ItemPlaceType, pos = CommFunc.ReadBYTE(buf, pos)
         self.ItemPlaceIndex, pos = CommFunc.ReadWORD(buf, pos)
@@ -1965,7 +1965,7 @@
         buf = CommFunc.WriteString(buf, sizeof(ctypes.c_char) * 40, self.ItemGUID)
         buf = CommFunc.WriteDWORD(buf, self.PlayerID)
         buf = CommFunc.WriteDWORD(buf, self.ItemTypeID)
-        buf = CommFunc.WriteWORD(buf, self.Count)
+        buf = CommFunc.WriteDWORD(buf, self.Count)
         buf = CommFunc.WriteBYTE(buf, self.IsLocked)
         buf = CommFunc.WriteBYTE(buf, self.ItemPlaceType)
         buf = CommFunc.WriteWORD(buf, self.ItemPlaceIndex)
@@ -1983,7 +1983,7 @@
         length += sizeof(ctypes.c_char) * 40
         length += sizeof(ctypes.c_ulong)
         length += sizeof(ctypes.c_ulong)
-        length += sizeof(ctypes.c_ushort)
+        length += sizeof(ctypes.c_ulong)
         length += sizeof(ctypes.c_ubyte)
         length += sizeof(ctypes.c_ubyte)
         length += sizeof(ctypes.c_ushort)
@@ -2259,7 +2259,6 @@
             self.CreateTime = Str
         else:
             self.CreateTime = Str[:30]
-            
 
 
                          

--
Gitblit v1.8.0