From a91b826dc1ed03b93d2dc98e72ca718f8d290d52 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 01 三月 2019 18:02:59 +0800
Subject: [PATCH] 6318 【后端】【2.0】召唤兽释放技能增加根据等级来
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
index 8dbd291..9117a39 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
@@ -33,6 +33,7 @@
## 合服首登
def ResetChangeNameCnt(curPlayer):
+ return #暂屏蔽
GameWorld.DebugLog(' 玩家合服首次登录 改名次数重置为0')
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_UpdatePlayerNameCnt, 0)
Sync_UpdatePlayerNameCount(curPlayer)
@@ -58,7 +59,7 @@
def UpdatePlayerName(index, clientData, tick):
curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
- if GameWorld.IsMergeServer():
+ if GameWorld.IsCrossServer():
#itemuse_lzxkoy_0:不可在跨服环境下使用改名功能。
PlayerControl.NotifyCode(curPlayer, "itemuse_lzxkoy_0")
return
@@ -73,6 +74,7 @@
itemIndex = clientData.ItemIndex - 1 #客户端发的默认+了1
serverID = clientData.ServerID
if itemIndex == -1: #-1则默认扣钱否则扣道具
+ return
moneyType, moneyCount = GetCostMoney(curPlayer)
if not PlayerControl.HaveMoney(curPlayer, moneyType, moneyCount):
#金钱不足
@@ -144,7 +146,8 @@
newName = sendPack.GetNewName()
curPlayer.SetPlayerName(newName)
-
+ GameWorld.GetPlayerManager().UpdatePlayerNameIndex(curPlayerName, newName)
+ GameWorld.GetMapCopyPlayerManager().UpdatePlayerNameIndex(curPlayerName, newName)
#EventReport.WriteEvent_change_name(curPlayer, curPlayerName, newName)
GameWorld.Log("UpdatePlayerName MapServer改名成功, newName = %s"%newName, curPlayer.GetID())
@@ -170,8 +173,8 @@
ItemCommon.DelItem(curPlayer, curItem, 1, True, 'UpdatePlayerName')
#改名次数+1
- updatePlayerNameCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_UpdatePlayerNameCnt)
- PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_UpdatePlayerNameCnt, updatePlayerNameCnt + 1)
+ #updatePlayerNameCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_UpdatePlayerNameCnt)
+ #PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_UpdatePlayerNameCnt, updatePlayerNameCnt + 1)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_UpdatePlayerNameItemIndex, 0)
return
--
Gitblit v1.8.0