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
29
30
31
32
33
34
35
36
37
¢ jic@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    dZ
e d„Z d„Z ejd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zddd „Zddd „Zdd„ZdS(iÿÿÿÿNtNamecCsDtjƒ}|jtj|ƒ}|j|ƒ}|s:iS|jƒS(N(t    DBDataMgrt GetGameRecMgrtGetRecTypeIDMgrt ShareDefinetDef_GameRecType_BatPresett GetOneRecDatat GetUserDict(tplayerIDtisAddNewt
gameRecMgrt preSetRecMgrtrecData((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytGetPresetRecDicts  cCs"t|ƒt|ƒt|ƒdS(N(tSync_FuncPresetInfotSync_FuncPresetSwitchInfotSync_BatPresetSwitchInfo(t    curPlayer((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyt OnPlayerLogin(s
 
 
cCs®|jtj|ƒ}|td|ƒ@r-tStjd|ƒ}|sIdS|t|ƒkr_dS||d}|jƒr}dS|td|ƒO}t    j
|tj||ƒtS(Nit PresetUnlocki( tNomalDictGetPropertytChConfigtDef_PDict_PresetStatetpowtTruet IpyGameDataPYtGetIpyGameDataListtlent GetUnlockTypet PlayerControltNomalDictSetProperty(RtpresetIDtfuncPresetTypet presetStatet ipyDataListtipyData((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytGetFuncPresetIDState/s cCs7tjƒj|ƒ}|j}|j}t|||ƒrTtjd||fƒdStjd|ƒ}|spdS|t    |ƒkrtjd||fƒdS||d}|j
ƒ}|j ƒ}    |dkr|    }
i|d6|d6} t j |tj|
d| ƒsdSndS|jtj|ƒ} | td|ƒO} t j|tj|| ƒtjd    ||| fƒt|||ƒ|tjkr3t|tjƒ} tjd
| ƒxotjD]d}|tjkrÖq»nt|| |ƒ}t j|tj||f|ƒtjd ||fƒq»Wt||ƒndS( Ns+¸ÃÔ¤ÉèÒѽâËø! funcPresetType=%s,presetID=%sRs+¸ÃÔ¤Éè²»´æÔÚ! funcPresetType=%s,presetID=%siR RtFuncPresetUnlockis:¹¦ÄÜÔ¤Éè½âËø: funcPresetType=%s,presetID=%s,presetState=%ss>ÐÂÔöÈ«¾ÖÔ¤ÉèÖ±½ÓʹÓÃÖ÷ÏßÔ¤É追±´×Ó¹¦ÄÜÔ¤Éè! mainBatPresetID=%ss%    funcPresetType=%s,funcPresetID=%s(t    GameWorldtGetPlayerManagertGetPlayerByIndextFuncPresetTypetPresetIDR$tDebugLogRRRRtGetUnlockValueRtPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneyRRRRRRRtFuncPreset_BattletGetBatPresetIDtBatPreset_MaintFuncPresetListtGetFuncPresetIDtDef_PDict_PresetFuncIDR(tindext
clientDatattickRR RR"R#t
unlockTypet unlockValuetneedGoldtinfoDictR!tmainBatPresetIDt funcPresetID((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytOnFuncPresetUnlockLsJ            c CsÝtjƒj|ƒ}|jƒ}|j}|j}|j}t|||ƒsRdSt|t    ƒ}t
|krzi|t
<n|t
}    t |ƒ|    kr©i|    t |ƒ<n|    t |ƒ}
||
t |ƒ<t |||ƒdS(N( R&R'R(t GetPlayerIDR)R*t
PresetNameR$R RtPresetKey_NametstrR( R6R7R8RRR Rt
presetNametuserDicttpresetNameDicttfuncPresetNameDict((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytOnFuncPresetUpdNameˆs"               
cCs?tjƒj|ƒ}|j}|j}|j}|tjkrTtjd|ƒdSt    ||ƒsxtjd|ƒdSt    |||ƒs¥tjd||fƒdSt
|||ƒ|krÛtjd|||fƒdSt j |t j||f|ƒtjd|||fƒtj|ƒj|ƒt|||ƒdS(NsIÈ«¾ÖÕ½¶·Ô¤Éè²»ÔÚ´ËÐ޸ģ¬ÇëʹÓÃB263·â°üÐÞ¸ÄÈ«¾ÖÔ¤Éè·½°¸! funcPresetType=%ssÈ«¾ÖÔ¤Éèδ½âËø! batPresetID=%ss1¹¦ÄÜÔ¤Éèδ½âËø! funcPresetID=%s,funcPresetType=%ssD¹¦ÄÜÔ¤Éè²»±ä²»´¦Àí! batPresetID=%s,funcPresetType=%s,funcPresetID=%ssB¹¦ÄÜÔ¤Éè·½°¸Çл»: batPresetID=%s,funcPresetType=%s,funcPresetID=%s(R&R'R(t BatPresetIDR)R*RR0R+R$R4RRRR5t PlayerOnlinetGetOnlinePlayertRefreshBatPresetR(R6R7R8Rt batPresetIDR R>((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytOnFuncPresetSwitch¨s*             cCsætjƒj|ƒ}|j}|j}|tjkr:dSt||ƒs^tjd|ƒdSt    ||ƒ|krŽtjd||fƒdSt
j |t j ||ƒtjd||fƒtj|ƒj|ƒt||ƒdS(Ns"È«¾ÖÕ½¶·Ô¤Éèδ½âËø! batPresetID=%ss7È«¾ÖÕ½¶·Ô¤Éè²»±ä²»´¦Àí! batPresetType=%s,batPresetID=%ss5È«¾ÖÕ½¶·Ô¤Éè·½°¸Çл»: batPresetType=%s,batPresetID=%s(R&R'R(t BatPresetTypeRIRt BatPresetListR$R+R1RRRtDef_PDict_PresetBatIDRJRKRLR(R6R7R8Rt batPresetTypeRM((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pytOnBatPresetSwitchÏs          cCstd|jtj|ƒƒS(Ni(tmaxRRRQ(RRR((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyR1èscCs#td|jtj||fƒƒS(Ni(RTRRR5(RRMR ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyR4ìscCs|dkrtj}n    |g}g}x¡|D]™}tjƒ}||_g}|dkr¡|dkr¡tjd|ƒ}|r˜tddt    |ƒƒng}n|dkr¹|g}ni}    |rìt
|j ƒƒ}
|
j t iƒ}    ng|_x—|D]} |dkr't|| |ƒ r'qüntjƒ} | | _|    j t|ƒiƒj t| ƒdƒ| _t    | jƒ| _|jj| ƒqüWt    |jƒ|_|jtj|ƒ|_|j|ƒq.W|sÕdStjƒ} || _t    | jƒ| _tj|| ƒdS(NRit(tNoneRR3tChPyNetSendPackttagSCFuncPresetInfoR)RRtrangeRR R@tgetRBt
PresetListR$ttagSCFuncPresetR*RCRAtNameLentappendt    PresetCntRRRt UnlockStatettagSCFuncPresetInfoListtFuncCntt NetPackCommont SendFakePack(RR RtpresetTypeListtfuncPresetListt
presetTypetfuncPresetInfot presetIDListR"RFREtpsIDtpresett
clientPack((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyRðsH            (            -     c
Cs{|dkrItjdtjƒ}|r@tddt|ƒƒng}n    |g}g}xÛ|D]Ó}t||ƒszq_ntj    ƒ}||_
g|_ xxtj D]m}|tjkr½q¢n|rÕ||krÕq¢ntj ƒ}||_ t|||ƒ|_|j j|ƒq¢Wt|j ƒ|_|j|ƒq_W|s@dStjƒ}    ||    _t|    jƒ|    _tj||    ƒdS(NRi(RVRRRR0RYRR$RWttagSCFuncPresetBatRIR3ttagSCFuncPresetFuncR)R4t FuncPresetIDR^RbttagSCFuncPresetSwitchInfoRPt BatPresetCntRcRd(
RRMR R"tbatPresetIDListt batPresetListt    batPresettfuncTypet
funcPresetRl((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyRs: (                        cCs«|stj}n    |g}g}xB|D]:}tjƒ}||_t||ƒ|_|j|ƒq(W|spdStjƒ}||_t    |jƒ|_
t j ||ƒdS(N( RRPRWttagSCBatPresetSwitchROR1RIR^ttagSCBatPresetSwitchInfoRt
BatFuncCntRcRd(RRRtbatPresetTypeListRsRtRl((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyRCs                 (RRRRRWR.RcRJR&RRBtFalseR RR0R$R?RHRNRSR1R4RVRRR(((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPreset.pyt<module>s,                       <         '            /$