2876 【1.5】【1.4.100】盟主使用仙盟改名卡,扣除道具时会同时删除成员同位置背包物品
1个文件已修改
11 ■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamily.py
@@ -2321,6 +2321,7 @@
    #上面已经验证过了,家族肯定存在的
    curFamily = curPlayer.GetFamily()
    curFamilyID = curFamily.GetID()
    curPlayerID = curPlayer.GetID()
#    curFamilyTrig = PlayerDBGSEvent.FindDBGSTrig_ByEventID(curFamilyID , PlayerDBGSEvent.Def_Key_RenameFamily)
#    
#    if not curFamilyTrig:
@@ -2355,20 +2356,20 @@
        curMemberID = curMember.GetPlayerID()
        __OnFamilyNameChange(curMemberID, familyName)
        memberIDList.append(curMemberID)
        curPlayer = playerManager.FindPlayerByID(curMemberID)
        player = playerManager.FindPlayerByID(curMemberID)
        #玩家不在线
        if not curPlayer:
        if not player:
            continue
        
        curPlayerMapID = GameWorld.GetQueryPlayerMapID(curPlayer)
        curPlayerMapID = GameWorld.GetQueryPlayerMapID(player)
        
        if not curPlayerMapID:
            continue
        
        msgStr = str([curPlayer.GetPlayerID(), familyName])
        msgStr = str([curPlayerID, familyName])
        playerManager.MapServer_QueryPlayer(0, 0, curMemberID, curPlayerMapID, 'FamilyNameRefresh',
                                            msgStr, len(msgStr),
                                                curPlayer.GetRouteServerIndex())
                                                player.GetRouteServerIndex())
    
    PlayerCompensation.SendMailByKey('FamilyNameChange', memberIDList, [], [oldName, familyName])    
    PlayerControl.WorldNotify(0, 'Family_ChangeName', [oldName, familyName])