From c44ec183b6e00bec7bfc1322a884e786744c27fd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 05 八月 2021 19:07:06 +0800
Subject: [PATCH] 9134 【BT3】【主干】新增物品获得活动积分(增加给货币通用效果ID264,A值数量,B值货币类型)

---
 ServerPython/CoreServerGroup/GameServer/Script/DataRecordPack.py |   83 +++++++----------------------------------
 1 files changed, 15 insertions(+), 68 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/DataRecordPack.py b/ServerPython/CoreServerGroup/GameServer/Script/DataRecordPack.py
index d01edf5..57cfda4 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/DataRecordPack.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/DataRecordPack.py
@@ -58,7 +58,6 @@
 # @change: "2015-02-03 14:30" xmnathan 添加补偿时增加流向
 # @change: "2015-06-17 14:30" hxp 排行榜流向增加比较值信息
 # @change: "2015-07-13 14:00" hxp 增加pid信息
-# @change: "2015-10-25 17:00" hxp 增加DR_SendMergePKRewardMail
 # @change: "2015-11-05 12:00" hxp 增加恢复跨服连胜流向
 #------------------------------------------------------------------------------ 
 """Version = 2016-09-12 16:00"""
@@ -66,6 +65,7 @@
 import GameWorld
 import datetime
 import ShareDefine
+import PlayerControl
 import ChConfig
 #===============================================================================
 ##发送事件记录给EventShell
@@ -76,7 +76,9 @@
     if curPlayer:
         pid = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_PlayerFromPID)
         dataDict["pid"] = pid
-        dataDict["fightPower"] = curPlayer.GetFightPower()
+        dataDict["fightPower"] = PlayerControl.GetFightPower(curPlayer)
+        dataDict["PlayerLV"] = curPlayer.GetLV()
+        dataDict["IP"] = curPlayer.GetIP()
         
     dataDict["time"] = str(datetime.datetime.today()).split(".")[0]
     
@@ -117,10 +119,10 @@
 #  @param familyName: 家族名
 #  @param familyID: 家族ID
 #  @return None
-def DR_CreateFamily(accID, playerID, playerNaem, familyName, familyID):
+def DR_CreateFamily(accID, playerID, playerNaem, familyName, familyID, creatFamilyTimes):
 
     dataDict = {'AccID':accID, 'PlayerID':playerID, "PlayerName":playerNaem, 'FamilyName':familyName, 
-                'FamilyID':familyID}
+                'FamilyID':familyID, 'creatFamilyTimes':creatFamilyTimes}
 
     #发送封包
     SendEventPack("CreateFamily", dataDict)
@@ -454,12 +456,6 @@
     SendEventPack("UpdatePlayerName", dataDict, curPlayer)
     return
 
-def DR_MergePlayerEvent(playerID, eventType, eventTime, eventData, opType):
-    # 跨服玩家记录事件流向
-    dataDict = {'PlayerID':playerID, "EventType":eventType, "EventTime":eventTime, 'EventData':eventData}
-    SendEventPack("MergePlayerEvent_%s" % opType, dataDict)
-    return
-
 #-------------------------------------
 #↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓交易所↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
 ## 添加交易所物品数据到流向记录用字典
@@ -559,6 +555,15 @@
     SendEventPack("CompensationPersonal", dataDict)
     return 
 
+## 删除个人补偿流向
+#  @param curPlayerID, GUID, ItemDictList
+#  @return: None 
+def DR_DelPersonalCompensation(playerID, GUID, eventName):
+    dataDict = {'PlayerID':playerID, 'GUID':GUID, 'eventName':eventName}
+    #发送封包
+    SendEventPack("CompensationPersonalDel", dataDict)
+    return 
+
 ## 添加全服补偿流向
 #  @param GUID, ItemDictList
 #  @return: None 
@@ -566,63 +571,5 @@
     dataDict = {'GUID':GUID, "eventName":eventName}
     dataDict.update(addDict)
     SendEventPack("CompensationEntire", dataDict)
-    return
-
-## 发送充值排行榜特惠活动奖励邮件记录流向
-#  @param curPlayerID: 玩家ID
-#  @param GUID: 
-#  @param actionID: 活动ID
-#  @param actionValue: 活动编号
-#  @param order: 奖励排名
-#  @param rewardItemList: 奖励物品列表
-#  @return None
-def DR_SendRechareRankTeHuiRewardMail(curPlayerID, GUID, actionID, actionValue, order, rewardItemList):
-    
-    dataDict = {'PlayerID':curPlayerID, 'GUID':GUID, 'ActionID':actionID, 'ActionValue':actionValue,
-                'Order':order, 'ItemList':rewardItemList}
-
-    #发送封包
-    SendEventPack("SendRechareRankTeHuiRewardMail", dataDict)
-    return
-
-## 发送消费排行榜特惠活动奖励邮件记录流向
-#  @param curPlayerID: 玩家ID
-#  @param GUID: 
-#  @param actionID: 活动ID
-#  @param actionValue: 活动编号
-#  @param order: 奖励排名
-#  @param rewardItemList: 奖励物品列表
-#  @return None
-def DR_SendCostRankTeHuiRewardMail(curPlayerID, GUID, actionID, actionValue, order, rewardItemList):
-    
-    dataDict = {'PlayerID':curPlayerID, 'GUID':GUID, 'ActionID':actionID, 'ActionValue':actionValue,
-                'Order':order, 'ItemList':rewardItemList}
-
-    #发送封包
-    SendEventPack("SendCostRankTeHuiRewardMail", dataDict)
-    return
-
-## 发送跨服PK奖励邮件记录流向
-#  @param playerIdList 玩家ID列表
-#  @param GUID 邮件标识
-#  @param actionKey 活动Key
-#  @param order 奖励排名
-#  @param rewardItemList 奖励物品列表
-#  @param addDataDict 附加属性
-#  @return None
-def DR_SendMergePKRewardMail(playerIdList, guid, actionKey, rewardItemList, addDataDict={}):
-    dataDict = {'PlayerIDList':playerIdList, 'GUID':guid, 'ItemList':rewardItemList}
-
-    dataDict.update(addDataDict)
-    
-    #发送封包
-    SendEventPack("SendMergePKRewardMail_%s" % actionKey, dataDict)
-    return
-
-## 恢复跨服PK连胜次数
-def DR_RecoverMergePKWin(accID, cWin, maxCWin):
-    dataDict = {'AccID':accID, 'cWin':cWin, 'maxCWin':maxCWin}
-    #发送封包
-    SendEventPack("RecoverMergePKWin", dataDict)
     return
 

--
Gitblit v1.8.0