From e6a2d6be0ba69afd50f95837f82a86e2cb71db70 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 07 八月 2025 18:48:19 +0800
Subject: [PATCH] 80 【常规】背包-服务端(A801通知优化,单物品总数量支持超20亿;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 55 +++++++++----------------------------------------------
1 files changed, 9 insertions(+), 46 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 3ff1e5c..7a9eb91 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -134,20 +134,6 @@
GameWorld.GetGameWorld().EventShell_SendEventEx(eventTypeStr, len(eventTypeStr), dataStr, len(dataStr))
return
-
-## 二次非同天登陆
-# @param accID: 账号ID
-# @param ip: ip
-# @return: None
-def DR_OtherDayLogin(accID, ip, curPlayer):
-
- dataDict = {'AccID':accID, 'IP':ip}
-
- #发送封包
- SendEventPack("OtherDayLogin", dataDict, curPlayer)
- return
-
-
## 登陆
# @param curPlayer 玩家实例
# @return: None
@@ -999,37 +985,6 @@
SendEventPack("PlayerFamily_%s"%eventName, dataDict, curPlayer)
return
-
-## 获得威望值
-# @param curPlayer 玩家实例
-# @param addPrestige 添加值
-# @param addType 原因
-# @return
-def DR_GetPrestigeValue(curPlayer, addPrestige, addType):
- return
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- "Prestige":addPrestige, "TotalPrestige":PlayerControl.GetPrestige(curPlayer), "Type":addType}
-
- SendEventPack("GetPrestigeValue", dataDict, curPlayer)
- return
-
-
-## 失去威望值
-# @param curPlayer 玩家实例
-# @param addPrestige 添加值
-# @param addType 原因
-# @return
-def DR_LostPrestigeValue(curPlayer, addPrestige, addType):
- return
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- "Prestige":addPrestige, "TotalPrestige":PlayerControl.GetPrestige(curPlayer), "Type":addType}
-
- SendEventPack("LostPrestigeValue", dataDict, curPlayer)
- return
-
-
## 记录错误信息
# @param info: 错误信息
# @param playerID: 玩家ID
@@ -1507,8 +1462,16 @@
SendEventPack("MailDel", dataDict)
return
+def DR_ServerMail(GUID, eventName, addDict={}):
+ ## 全服邮件流向
+ dataDict = {'GUID':GUID, "eventName":eventName}
+ dataDict.update(addDict)
+ SendEventPack("MailServerMail", dataDict)
+ return
+
def DR_CreateRole(playerData):
dataDict = {'PlayerID':playerData.PlayerID, 'AccID':playerData.AccID, 'PlayerName':playerData.PlayerName, "Job":playerData.Job}
#发送封包
SendEventPack("CreateRole", dataDict)
- return
\ No newline at end of file
+ return
+
--
Gitblit v1.8.0