xdh
2019-02-21 92eee67f85cbd29feb1287ae5a15ad0c787e95cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
x{[c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „ZdS(iÿÿÿÿNcCsJtjd|ƒt|ƒr!dSt|ƒ\}}t||||ƒdS(Ns(MapServer_UpdatePlayerName newNameMsg=%s(t    GameWorldtDebugLogt__GetNameByUniversalGameRectevalt__UpdatePlayerName(t    curPlayert
newNameMsgtticktnewNametserverID((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pytMapServer_UpdatePlayerName)s  cCs|jƒ}tjd||f|ƒtjƒj|ƒ}|jƒdks\tj|ƒrpt|t    j
ƒt St |ƒ}|t jksš|t jkr®t|t    jƒt Stj|||ƒ}|sÝt|t    jƒt Stj|t    j||g||jƒgƒ|j|ƒdS(Ns+UpdatePlayerName NewName = %s, serverID=%s t(tGetIDRtLogt GetGameWorldt GetCharTrimtstript    DirtyListtIsWordForbiddentUpdatePlayerNameResultt ShareDefinetDef_Rename_Result_ErrtFalsetlentChConfigtDef_CreatRole_MinStrtDef_CreatRole_MaxStrtDef_Rename_Result_LenErrtGetPlayerFullNametPlayerUniversalGameRectMapServer_UniversalGameRect)Def_UniversalGameRecType_UpdatePlayerNametGetNametSendToDbRenamePlayer(RRR    Rt curPlayerIDt playerNameLentfullName((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyR8s$ !  cCsžtjƒj|ƒ}|jƒ}|jƒ}tjd||f|jƒƒ|oV|stjd||f|jƒƒt|t    j
ƒt S|j |ƒt S(Ns3OnRenamePlayerReply Reply result = %s, newName = %ssCUpdatePlayerName NewName repeat, db Reply result = %s, newName = %s(RtGetPlayerManagertGetPlayerByIndextGetRenamePlayerResulttGetNewPlayerNameR R tErrLogRRtDef_Rename_Result_RepeatRtSynMapServerPlayerNametTrue(tindexRRtresultR((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pytOnRenamePlayerReply]s         c    Cs tjƒj|ƒ}tjƒ}|jƒ}tjd|ƒ|sXt|tj    ƒt
S|j ƒ}|j ƒ}|j |ƒ|j ƒ}|j|ƒ|j|ƒt|tjƒtj|tj|ƒtj||ƒ|jƒ}|rtj|d||gƒntS(Ns-UpdatePlayerName, MapServer Reply result = %stjiazu_pan_243780(RR%R&tIPY_GameServertIPY_GUpdatePlayerNameResultt    GetResultR RRtDef_Rename_Result_MapErrRR R(tSetNametSynLoginServerPlayerNametSynRouteServerPlayerNametDef_Rename_Result_Succeedt PlayerSocialtUpdateSocialInfotCDBPlayerRefresh_PlayerNametDataRecordPacktDR_UpdatePlayerNamet GetFamilyIDt PlayerControlt FamilyNotifyR,(    R-RRtsendPackR.t oldPlayerNameRt
playerNametfamilyID((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyt MapServer_UpdatePlayerNameResults(         cCsg|jƒ}tjtjƒ}xBt|jƒƒD].}|j|ƒ}||jƒkr^q1n|SWdS(N(
R Rt GetRecordListRRtrangetCounttAtt    GetValue1tNone(RR"trecTypeListDataR-tuniversalRecData((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyR®s cCst|jƒ}tjtjƒ}xOt|jƒƒD];}|j|ƒ}||jƒkr^q1n|j    |ƒdSWdS(N(
R RRFRRRGRHRIRJtDelete(RR"RLR-RM((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyt__DelUniversalGameRecÂs  c
CsŸ|jƒ}tjƒj|d||jƒdd|tt|ƒƒƒ|tjkr„t    j
|ƒt |ƒt |ƒt |ƒnt|ƒt||ƒdS(NitChearUpdatePlayerNames%s(R RR%tMapServer_QueryPlayertGetMapIDRtstrRR8tPlayerBillboardtRedressBillboardtRedressUniversalGameRectRedressFamilyActiont RedressFamilyROtSync_UpdatePlayerNameResult(RR.R"((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyRÔs  
 
 
 cCs3tjƒ}|jƒ||_tj||ƒdS(N(tChPyNetSendPackttagUpdatePlayerNameResulttCleartResultt NetPackCommont SendFakePack(RR.tpack((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyRYs
 
    c
Csìtjf}|jƒ}t|ƒ}|s.dS|jƒ}tjƒ}xŸ|D]—}|j|ƒ}|jƒ}xst    d|ƒD]b}|j
|ƒ}    ||    j ƒkrµ|    j |ƒntjr~||    jƒkr~|    j |ƒq~q~WqMWdS(Ni(Rt$Def_UniversalGameRecType_HijackTruckR Rt GetStrValue2RtGetUniversalRecMgrt GetTypeListRHRGRIt GetStrValue1t SetStrValue1t SetStrValue2(
RtredressGameRecTypeListt curPlayerNamet gameRecDatatoldNametuniversalRecMgrR-RLtrecCountRM((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyRV s"       c CsÔ|jƒ}|sdSt|ƒ}|s,dS|jƒ}|jƒ}tjƒ}x}tjD]r}|j||ƒ}xWt    d|j
ƒƒD]@}|j |ƒ}    |    jƒ}
|
|kr»qˆn|    j |ƒqˆWqZWdS(Ni( R>RR RbRtGetFamilyActionManagerRtDef_ActionTypeListtGetFamilyActionRGRHRIR5( RtfamilyIdRjRiRktallFamilyActionManagert
actionTypet familyActionR-tfamilyActionDatatname((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyRW+s$       cCs…|jƒ}|sdS|jƒ}|jƒ|jƒkrP|j|jƒƒn|j|jƒƒ}|r|j|jƒƒndS(N(R>t    GetFamilyt GetLeaderIDR t SetLeaderNameR t
FindMemberR5(RRqt    curFamilyt    curMember((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyRXIs  cCskt|ƒ}|sdS|jƒ}|jƒ}tjd|jƒ|f|jƒƒt||||ƒdS(NsLRedressUpdatePlayerName Err Afresh Redress, curPlayerName = %s, newName = %s(RRet    GetValue2RR R R R(RRRjRR    ((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyt$PlayerLoadMapRedressUpdatePlayerName]s       (RR1RRZR^RR?RR<RRTR9R
RR/RERRORRYRVRWRXR~(((sK.\ServerPython\CoreServerGroup\GameServer\Script\Player\UpdatePlayerName.pyt<module>s.                    %    "    /            ,