From 4cf6e90575a661fca5b78af6253946cdd8e0cdd6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 26 三月 2019 18:04:47 +0800
Subject: [PATCH] 6373 【后端】【2.0】删除无用功能代码、封包、配置(腾讯相关)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py | 75 +++++--------------------------------
1 files changed, 11 insertions(+), 64 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
index 98d6bdc..2564940 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
@@ -36,7 +36,7 @@
return curPlayer.GetOperateInfo()
return platform
-def GetBillboardJob(curPlayer): return curPlayer.GetJob() + PlayerControl.GetJobRank(curPlayer) * 10 #个位是job 十位百位是jobrank
+def GetBillboardJob(curPlayer): return curPlayer.GetJob()
def UpdatePlayerBillboardOnLeaveServer(curPlayer, isAll=False):
##下线更新玩家排行榜
@@ -50,6 +50,8 @@
if isAll:
UpdateRuneTowerBillboard(curPlayer)
+ UpdateZhuXianTowerBillboard(curPlayer)
+
#UpdateTJGBillboard(curPlayer, minuteExp) 脱机效率可不更新
return
@@ -177,6 +179,14 @@
UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_TrialTower, passLV)
return
+def UpdateZhuXianTowerBillboard(curPlayer):
+ ##诛仙塔榜(通关时长没有的默认50秒)
+ costTime = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerCostTime, 50)
+ passLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerPassLV)
+ UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_ZhuXianTower, passLV, 10000-costTime)
+ return
+
+
def UpdateTJGBillboard(curPlayer, minuteExp):
##脱机效率榜
if not minuteExp:
@@ -204,25 +214,6 @@
UpdatePlayerBillboardOnLeaveServer(curPlayer) #排行榜已实时更新,故上线不再同步
return
-##合服首次上线强制更新一次排行榜
-# @param curPlayer 玩家实例
-# @param lastMixServerDay 合服时的开服天
-# @return
-def UpdBillboardOnMixServerFirstLogin(curPlayer, lastMixServerDay):
-
- updBillboardDay = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MSFirstLogin_UpdBillboard)
-
- if lastMixServerDay == updBillboardDay:
- GameWorld.DebugLog("合服首登同步排行榜已处理过!lastMixServerDay=%s,updBillboardDay=%s"
- % (lastMixServerDay, updBillboardDay))
- return
-
- GameWorld.DebugLog("合服首登同步排行榜...")
- UpdatePlayerBillboardOnLeaveServer(curPlayer)
- PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MSFirstLogin_UpdBillboard, lastMixServerDay)
- GameWorld.DebugLog(" 合服首登同步排行榜OK!!!")
- return
-
## 更新当前镖车信息
# @param playerID: 玩家ID
# @param playerName: 玩家名字
@@ -239,50 +230,6 @@
cmdList = [playerID, playerName, playerOpInfo, playerLV, truckLV, truckMapID]
GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "UpdateBillboardPlayerTruck",
'%s' % (cmdList), len(str(cmdList)))
- return
-
-## 更新充值排行特惠排行榜
-# @param playerID: 玩家ID
-# @return:
-def UpdateRechargeRankBillboard(curPlayer, actionID, actionNum, updateGold):
-# if GameWorld.IsGM(curPlayer):
-# #GM不上榜
-# return
-
- #排行榜需要数据[玩家ID, 玩家名字, 玩家职业, 击杀数]
- playerID = curPlayer.GetID()
- playerName = curPlayer.GetName()
- playerOpInfo = curPlayer.GetOperateInfo()
- playerJob = curPlayer.GetJob()
- playerLV = curPlayer.GetLV()
- familyName = curPlayer.GetFamilyName()
- GameWorld.DebugLog("更新特惠充值排行榜: actionID=%s,actionNum=%s,updateGold=%s"
- % (actionID, actionNum, updateGold), curPlayer.GetPlayerID())
- sendMsg = '%s' % ([playerID, playerName, playerOpInfo, playerJob, playerLV, familyName, actionID, actionNum, updateGold])
- GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'UpdRechargeRankBillboard', \
- sendMsg, len(sendMsg))
- return
-
-## 更新消费排行特惠排行榜
-# @param playerID: 玩家ID
-# @return:
-def UpdateCostRankBillboard(curPlayer, actionID, actionNum, updateGold):
-# if GameWorld.IsGM(curPlayer):
-# #GM不上榜
-# return
-
- #排行榜需要数据[玩家ID, 玩家名字, 玩家职业, 击杀数]
- playerID = curPlayer.GetID()
- playerName = curPlayer.GetName()
- playerOpInfo = curPlayer.GetOperateInfo()
- playerJob = curPlayer.GetJob()
- playerLV = curPlayer.GetLV()
- familyName = curPlayer.GetFamilyName()
- GameWorld.DebugLog("更新特惠消费排行榜: actionID=%s,actionNum=%s,updateGold=%s"
- % (actionID, actionNum, updateGold), curPlayer.GetPlayerID())
- sendMsg = '%s' % ([playerID, playerName, playerOpInfo, playerJob, playerLV, familyName, actionID, actionNum, updateGold])
- GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'UpdCostRankBillboard', \
- sendMsg, len(sendMsg))
return
##更新玩家充值排行榜
--
Gitblit v1.8.0