From 47813c8aef184ab6bc6f4556d2a18303a2a31d47 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 14 十月 2025 12:33:30 +0800
Subject: [PATCH] 15 卡牌服务端搭建 - 跨服支持PY自定义封包通信
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 35 ++---------------------------------
1 files changed, 2 insertions(+), 33 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index ec52203..3d303c4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -725,8 +725,8 @@
SendEventPack("UseCurrency_%s" % moneyType, dataDict, curPlayer)
#战盟贡献
- elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
- SendEventPack("UseFamilyContribution", dataDict, curPlayer)
+ #elif moneyType == ShareDefine.TYPE_Price_Family_Contribution:
+ # SendEventPack("UseFamilyContribution", dataDict, curPlayer)
return
@@ -992,24 +992,6 @@
#发送封包
SendEventPack("OneTimeCoinGiveGold", dataDict, curPlayer)
return
-
-
-## 增加玩家家族活跃度
-# @param curPlayer: 玩家实例
-# @param addValue: 增加值
-# @param curValue: 增加后值
-# @param reason:增加原因
-# @return
-def DR_AddPlayerFamilyActiveValue(curPlayer, addValue, curValue, reason):
- return
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(),
- 'addValue':addValue, 'FamilyActiveValue':curValue, 'Reason':reason}
- #发送封包
- SendEventPack("AddPlayerFamilyActiveValue", dataDict, curPlayer)
- return
-
## 宠物加点
# @param curPlayer: 玩家实例
@@ -1290,19 +1272,6 @@
'AccID':curPlayer.GetAccID(), 'content':content}
#发送封包
SendEventPack("PlayerSubmit_%s" % eventName, dataDict, curPlayer)
- return
-
-## 资源找回记录
-# @param curPlayer
-# @return: None
-def DR_PlayerRecover(curPlayer, recoverWay, recoverCntDict, totalExp, totalMoney, totalSP, totalItemDict):
-
- dataDict = {'PlayerID':curPlayer.GetPlayerID(), 'PlayerName':curPlayer.GetPlayerName(),
- 'AccID':curPlayer.GetAccID(), 'recoverWay':recoverWay, 'recoverCntDict':recoverCntDict,
- 'totalExp':totalExp, 'totalMoney':totalMoney, 'totalSP':totalSP, 'totalItemDict':totalItemDict}
-
- #发送封包
- SendEventPack("PlayerRecover", dataDict, curPlayer)
return
def DR_GlobalDropCD(curPlayer, npcID, itemID):
--
Gitblit v1.8.0