|  |  |  | 
|---|
|  |  |  | #上面已经验证过了,家族肯定存在的 | 
|---|
|  |  |  | curFamily = curPlayer.GetFamily() | 
|---|
|  |  |  | curFamilyID = curFamily.GetID() | 
|---|
|  |  |  | curPlayerID = curPlayer.GetID() | 
|---|
|  |  |  | #    curFamilyTrig = PlayerDBGSEvent.FindDBGSTrig_ByEventID(curFamilyID , PlayerDBGSEvent.Def_Key_RenameFamily) | 
|---|
|  |  |  | # | 
|---|
|  |  |  | #    if not curFamilyTrig: | 
|---|
|  |  |  | 
|---|
|  |  |  | 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]) | 
|---|