hxp
2025-05-30 3f3ecbc0329d3d14b80f261827c7522f63d2fcef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Sð    hc@s»ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„ZdS(    iÿÿÿÿNcCs5dStjdƒtj|tjdƒt|ƒdS(Ns(        Íæ¼ÒºÏ·þÊ״εǼ ¸ÄÃû´ÎÊýÖØÖÃΪ0i(t    GameWorldtDebugLogt PlayerControltNomalDictSetPropertytChConfigtDef_Player_UpdatePlayerNameCnttSync_UpdatePlayerNameCount(t    curPlayer((sT.\\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 IsCrossServerRt
NotifyCodet GetDictByKeyRt Def_Player_Dict_UpdatePlayerNametLogtGetIDtNewNamet    ItemIndextServerIDt GetCostMoneyt    HaveMoneytFalsetGetItemManagertGetPackt IPY_GameWorldtrptItemtGetAtt__CheckItemUpdatePlayerNameRt)Def_Player_Dict_UpdatePlayerNameItemIndextSetDicttstrtGameServer_QueryPlayerByIDtqueryType_UpdatePlayerNametlentTrue( tindext
clientDatattickRtnewNamet    itemIndextserverIDt    moneyTypet
moneyCounttitemPacktcurItemt
newNameMsg((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytUpdatePlayerName<s2           "cCs&tj|ƒstS|jƒtjkS(N(t
ItemCommontCheckItemCanUseRtGetTypeRtDef_ItemType_ChangePlayerName(RR/((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRkscCs7|jtjƒ}tjdƒ\}}|t|ƒfS(NtUpdatePlayerNameMoney(tNomalDictGetPropertyRRt ReadChConfigtGetEvalChConfigteval(RtupdatePlayerNameCntR,R-((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyRvscCstjƒj|ƒ}|jƒ}tjƒ}|jƒ}|j|ƒtjƒj||ƒtj    ƒj||ƒtj
d||j ƒƒ|j t ƒt S(Ns0UpdatePlayerName MapServer¸ÄÃû³É¹¦, newName = %s(RR R tGetNameRtIPY_MUpdatePlayerNamet
GetNewNamet SetPlayerNametUpdatePlayerNameIndextGetMapCopyPlayerManagerRRtUpdatePlayerNameResultR%(R&R(Rt curPlayerNametsendPackR)((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytGameServer_UpdatePlayerNameŽs     cCsé|jtjƒd}|dkrPt|ƒ\}}tj|||tjƒn|jƒjt    j
ƒ}|j |ƒ}t ||ƒs¤t j|t    j
tjƒ}ntj|ƒrÏtj||dtdƒntj|tjdƒdS(NiiÿÿÿÿR1i(R7RRRRtPayMoneytDef_Cost_RenameRRRRRRt ItemControlertFindPlayerItemByTypeR5R2R3tDelItemR%R(RR*R,R-R.R/((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pytPayUpdatePlayerNameCost£s cCsIdS|jtjƒ}tjƒ}|jƒ||_tj||ƒdS(N(    R7RRtChPyNetSendPackttagUpdatePlayerNameCounttCleartCountt NetPackCommont SendFakePack(RR;tpack((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyR¾s 
    (RRR8RRR2RLRPt EventReportRHRR1RRRERKR(((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\UpdatePlayerName.pyt<module>s                   /