1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
?A¬[c@s¯ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z d„Z d„Zd„ZdS(    iÿÿÿÿNcCs5dStjdƒtj|tjdƒt|ƒdS(Ns(        Íæ¼ÒºÏ·þÊ״εǼ ¸ÄÃû´ÎÊýÖØÖÃΪ0i(t    GameWorldtDebugLogt PlayerControltNomalDictSetPropertytChConfigtDef_Player_UpdatePlayerNameCnttSync_UpdatePlayerNameCount(t    curPlayer((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytResetChangeNameCnt#s
 
c Cswtjƒj|ƒ}tjƒr5tj|dƒdS|jtjƒratj    d|j
ƒƒdS|j }|j d}|j }|dkr¾dSt|ƒ\}}tj|||ƒstSnT|jƒjtjƒ}    |    j|ƒ}
t||
ƒsødStj|tj|dƒ|jtjdƒt||gƒ} tj    d| |j
ƒƒ|jtjdd| t| ƒƒtS(Ntitemuse_lzxkoy_0sÒѾ­ÔÚ¸ÄÃûÖÐ...iiÿÿÿÿs,UpdatePlayerName Í¨ÖªGameServerÕýʽ¸ÄÃûΪ:%sit(RtGetPlayerManagertGetPlayerByIndext IsMergeServerRt
NotifyCodet GetDictByKeyRt Def_Player_Dict_UpdatePlayerNametLogtGetIDtNewNamet    ItemIndextServerIDt GetCostMoneyt    HaveMoneytFalsetGetItemManagertGetPackt IPY_GameWorldtrptItemtGetAtt__CheckItemUpdatePlayerNameRt)Def_Player_Dict_UpdatePlayerNameItemIndextSetDicttstrtGameServer_QueryPlayerByIDtqueryType_UpdatePlayerNametlentTrue( tindext
clientDatattickRtnewNamet    itemIndextserverIDt    moneyTypet
moneyCounttitemPacktcurItemt
newNameMsg((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytUpdatePlayerName;s2           "cCs&tj|ƒstS|jƒtjkS(N(t
ItemCommontCheckItemCanUseRtGetTypeRtDef_ItemType_ChangePlayerName(RR/((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRjscCs7|jtjƒ}tjdƒ\}}|t|ƒfS(NtUpdatePlayerNameMoney(tNomalDictGetPropertyRRt ReadChConfigtGetEvalChConfigteval(RtupdatePlayerNameCntR,R-((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRuscCsqtjƒj|ƒ}|jƒ}tjƒ}|jƒ}|j|ƒtjd||j    ƒƒ|j
t ƒt S(Ns0UpdatePlayerName MapServer¸ÄÃû³É¹¦, newName = %s( RR R tGetNameRtIPY_MUpdatePlayerNamet
GetNewNamet SetPlayerNameRRtUpdatePlayerNameResultR%(R&R(Rt curPlayerNametsendPackR)((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytGameServer_UpdatePlayerNames     cCs³|jtjƒd}|dkrPt|ƒ\}}tj|||tjƒnI|jƒjt    j
ƒ}|j |ƒ}|r™t j ||dtdƒntj|tjdƒdS(NiiÿÿÿÿR1i(R7RRRRtPayMoneytDef_Cost_RenameRRRRRR2tDelItemR%R(RR*R,R-R.R/((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytPayUpdatePlayerNameCost¡s cCsIdS|jtjƒ}tjƒ}|jƒ||_tj||ƒdS(N(    R7RRtChPyNetSendPackttagUpdatePlayerNameCounttCleartCountt NetPackCommont SendFakePack(RR;tpack((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyR¹s 
    (RRR8RRR2RHRLt EventReportRR1RRRCRGR(((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyt<module>s                 /