From ebc2715563148586714c2e22e2d8a2b6cf466b7a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 12 十月 2022 16:27:39 +0800 Subject: [PATCH] 5432 【越南】活动开启异常问题(修复开始天在定制天内在定制天结束后可继续开启的活动与开服定制天内活动日期一样时无法重置玩家活动数据的bug) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py index 9bcdbd5..92a5286 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py @@ -158,7 +158,6 @@ sendPack.PlayerID = curPlayer.GetPlayerID() sendPack.RealmLV = curPlayer.GetOfficialRank() sendPack.Job = curPlayer.GetJob() - sendPack.JobRank = PlayerControl.GetJobRank(curPlayer) sendPack.AtkAdd = atkAdd/100 NetPackCommon.SendFakePack(notifyPlayer, sendPack) return @@ -297,3 +296,18 @@ sendMsg = str(sendInfo) curPlayer.MapServer_QueryPlayerResult(0, 0, 'DuJieHelpInfo', sendMsg, len(sendMsg)) return + +def DoRealmUpAddBuff(sendMsg): + #境界提升给全服在线玩家加经验BUFF + minRealmLVLimit = IpyGameDataPY.GetFuncCfg('RadioExpRealm') + playerManager = GameWorld.GetPlayerManager() + for i in xrange(playerManager.GetActivePlayerCount()): + curPlayer = playerManager.GetActivePlayerAt(i) + if curPlayer == None or not curPlayer.GetInitOK(): + continue + if PlayerControl.GetIsTJG(curPlayer): + continue + if curPlayer.GetOfficialRank() < minRealmLVLimit: + continue + curPlayer.MapServer_QueryPlayerResult(0, 0, 'AddBuff', sendMsg, len(sendMsg)) + return \ No newline at end of file -- Gitblit v1.8.0