cehua_LC
2018-09-21 c65ec6dabe61d84bac2c2e7f5e848c76f35f1d6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
x{[c@s¯ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z d„Z d„Zd„ZdS(    iÿÿÿÿNcCs1tjdƒ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 Csstjƒj|ƒ}tjƒr5tj|dƒdS|jtjƒratj    d|j
ƒƒdS|j }|j d}|j }|dkrºt|ƒ\}}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:s0           "cCs&tj|ƒstS|jƒtjkS(N(t
ItemCommontCheckItemCanUseRtGetTypeRtDef_ItemType_ChangePlayerName(RR/((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRhscCs7|jtjƒ}tjdƒ\}}|t|ƒfS(NtUpdatePlayerNameMoney(tNomalDictGetPropertyRRt ReadChConfigtGetEvalChConfigteval(RtupdatePlayerNameCntR,R-((s`.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRsscCsqtjƒ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ƒn|jtjƒ}tj|tj|dƒtj|tjdƒdS(NiiÿÿÿÿR1i(R7RRRRtPayMoneytDef_Cost_RenameRRRRRR2tDelItemR%RR(RR*R,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                 .