From 6bcfd718d02dfa01115318c76030f1820e514df5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 04 一月 2019 15:32:05 +0800
Subject: [PATCH] 5669 【后端】【1.4.100】跨服领取奖励进行广播
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
index bef72ad..a0e5641 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
@@ -493,6 +493,9 @@
for itemID, itemCnt, isBind in awardItemList:
ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem])
+ if awardType == 3:
+ PlayerControl.WorldNotify(0, "CrossMatching22", [curPlayer.GetPlayerName(), awardDanLV])
+
DR_GetCrossPKAward(curPlayer, zoneID, seasonID, eventName, False, drDataDict)
return
@@ -542,7 +545,8 @@
def DoGetPKSeasonAward(curPlayer, eventName, zoneID, seasonID, order, danLV, isMail):
## 执行发放赛季结算奖励,名次奖励与最高段位奖励互斥,优先名次奖励
-
+ isNotify = not isMail
+ notifyKey = ""
awardItemList = []
seasonAwardLV = danLV
playerID = curPlayer.GetPlayerID()
@@ -567,6 +571,7 @@
seasonAwardLV = maxDanLV + (len(awardOrderList) - i)
GameWorld.Log("获得排名奖励, 更新奖励等级: awardOrderList=%s,i=%s,maxDanLV=%s,seasonAwardLV=%s" % (awardOrderList, i, maxDanLV, seasonAwardLV), playerID)
mailTypeKey = "CrossServer4"
+ notifyKey = "CrossMatching23"
mailParamList = [seasonID, fromOrder, toOrder]
break
fromOrder = awardOrder + 1
@@ -578,6 +583,7 @@
return
awardItemList = danLVIpyData.GetSeasonDanLVAwardList()
mailTypeKey = "CrossServer5"
+ notifyKey = "CrossMatching24"
mailParamList = [seasonID, danLV]
if not awardItemList:
@@ -609,6 +615,9 @@
GameWorld.Log("领取成功! awardItemList=%s" % (awardItemList), playerID)
drDataDict = {"awardItemList":awardItemList, "order":order, "danLV":danLV, "seasonAwardLV":seasonAwardLV, "isMail":isMail}
DR_GetCrossPKAward(curPlayer, zoneID, seasonID, eventName, isMail, drDataDict)
+
+ if isNotify and notifyKey:
+ PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName()] + mailParamList + [awardItemList[0][0]])
return
def SyncCrossRealmPKPlayerInfo(curPlayer):
--
Gitblit v1.8.0