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
38
39
40
41
42
43
44
45
46
47
48
49
'    ’gc @s=ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z edd ƒZ\ ZZZZZZZZZZZeegZd„Zd„Zdd„Zd„Z dd„Z!d    „Z"d
„Z#dd „Z$dS( iÿÿÿÿNii cCs–xtD]‡}|tkr|jtj|ƒ}|sttjƒƒ}tj|tj||ƒt    j
d||j ƒƒqnt ||ƒqWdS(NsÉèÖõǼսÁîÊ״εǼʱ¼ä: %s( tZhanlingTypeListtZhanlingType_LogintNomalDictGetPropertytChConfigtDef_PDict_ZhanlingValue1tintttimet PlayerControltNomalDictSetPropertyt    GameWorldtDebugLogt GetPlayerIDtSyncZhanlingInfo(t    curPlayert zhanlingTypetvalue1tfirstLoginTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pyt OnPlayerLogin3s   c    Csžtjddƒ}x¸|jƒD]ª\}}||kr=qnt|ƒ}|jtjƒ}|td|ƒ@rrPn|td|ƒB}tj    |tj|ƒt
||ƒt j d||f|j ƒƒPqWtjddƒ}x¸|jƒD]ª\}}||kr
qìnt|ƒ}|jtjƒ}|td|ƒ@r?Pn|td|ƒB}tj    |tj|ƒt
||ƒt j d||f|j ƒƒPqìWdS(NtZhanlingiis)¼¤»îÕ½ÁîÆÕͨ: zhanlingType=%s,updState=%sis)¼¤»îÕ½Áî¸ß¼¶: zhanlingType=%s,updState=%s(t IpyGameDataPYtGetFuncEvalCfgtitemsRRRtDef_PDict_ZhanlingStatetpowRRR R    tLogR tDef_PDict_ZhanlingStateH(    R tctgIDtzhanlingCTGIDDicttzhanlingTypeStrt    ctgIDListRtstatetupdStatetzhanlingCTGIDDictH((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pytOnActiviteByCTGID>s6        c    Csà|jtjƒ}|jtjƒ}tj||dƒ}tj||dƒ}tj|tj|ƒtj|tj|ƒ|tkr´tj    |t
j ƒ}tj |t
j dƒn?|t kró|jtj|ƒ}tj|tj|dƒntjd||||||f|jƒƒ|rXt||||td|ƒ@|td|ƒ@ƒnxttdƒD]f}tj|tj||fdƒtj|tj||fdƒtj|tj||fdƒqeWt||ƒdS(sr ÖØÖÃÕ½Áî
    @param zhanlingType: Õ½ÁîÀàÐÍ 
    @param backValue: ÖØÖÃÕ½ÁîʱµÄÕ½Áî½±ÀøÖµ£¬ÓÃÓÚ·µ»¹Î´ÁìÈ¡½±Àø
    isIÖØÖÃÕ½Áî: zhanlingType=%s,backValue=%s,state=(%s to %s) stateH=(%s to %s)ii
N(RRRRR    t SetBitValueRRtZhanlingType_XianyuantGetMoneyt ShareDefinetTYPE_Price_XianyuanScoretSetMoneytZhanlingValue1TypeListRRR t__giveUngetAwardRtrangetDef_PDict_ZhanlingRewardtDef_PDict_ZhanlingRewardHtDef_PDict_ZhanlingRewardFreeR (R Rt    backValueRtstateHRt    updStateHtkeyNum((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pyt ResetZhanling_s,      #3  $ c    Cs¸tjdi|d6tƒ}|s&dS|s0dS|jƒ}tjd||||f|ƒi}xÐ|D]È}|jƒ}    |jƒ}
||    kr—Pntj|t    j
|
t|gƒs|j ƒ} x1| D])\} } }|j | dƒ| || <qËWtjd|
|    | |f|ƒn|r¦tj|t    j |
t|gƒ r¦|jƒ} x1| D])\} } }|j | dƒ| || <qVWtjd|
|    | |f|ƒn|ritj|t    j|
t|gƒ ri|jƒ} x1| D])\} } }|j | dƒ| || <qáWtjd|
|    | |f|ƒqiqiW|s?dS|g}g}x0|jƒD]"\} } |j| | dgƒq[Wtjd||f|ƒtjd    |g||ƒdS(
NRt ZhanlingTypesQ´¦ÀíÕ½ÁîÖØÖò¹·¢½±Àø: zhanlingType=%s,backValue=%s,activeState=%s,activeStateH=%sis8    Õ½Áî²¹·¢Ãâ·Ñ½±Àø: rewardIndex=%s,needValue=%s,%s, %ss8    Õ½Áî²¹·¢ÆÕͨ½±Àø: rewardIndex=%s,needValue=%s,%s, %ss8    Õ½Áî²¹·¢¸ß¼¶½±Àø: rewardIndex=%s,needValue=%s,%s, %ss    Õ½Áî²¹·¢½±Àø»ã×Ü: %s, %stZhanlingRewardUnget(RtGetIpyGameDataByConditiontTrueR R    R
t GetNeedValuetGetRewardIndextGetDictValueByBitRR-tGetFreeRewardItemListtgetR+tGetZLRewardItemListR,tGetZLRewardItemListHRtappendRt SendMailByKey(R RR.t activeStatet activeStateHt ipyDataListtplayerIDt ungetItemDicttipyDatat    needValuet rewardIndextrewardItemListtitemIDt    itemCountt_t    paramListtitemList((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pyR)}sL         ! #( #( '    cCs|tkrdS|jtj|ƒ}ttj||ƒ}tj|tj||ƒtj    d||||f|j
ƒƒt ||gƒ|S(NsAÔö¼ÓÕ½Áî½ø¶È: zhanlingType=%s,addValue=%s,curValue=%s,updValue=%s( R(RRRtmintDef_UpperLimit_DWordRRR    R
R R (R RtaddValuetcurValuetupdValue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pytAddZhanlingValueªs     cCs^|tkrdStj|tj||ƒtjd||f|jƒƒt||gƒ|S(Ns'ÉèÖÃÕ½Áî½ø¶È: zhanlingType=%s,value1=%s(    R(RRRRR    R
R R (R RR((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pytSetZhanlingValueµs   cCstj|ƒ}|d|d}}|jƒ}tjd||ƒ}|sOdSd}|tkrp|jƒ}nX|tkr‹|jƒ}n=|t    kr¬|j
t j ƒ}n|t krÐtj|ƒ\}}nø|tkr!|j
t j|ƒ}    |    südStjttjƒƒ|    ƒd}n§|tkr?tj|ƒ}n‰|tkr]tj|ƒ}nk|tkr{tj|ƒ}nM|tkrŸtj |t!j"ƒ}n)|t#krÄ|j
t j|ƒ}ndS||krõtj$d|||f|ƒdS|j%ƒ}
|j&ƒ} t j'} |dkr}|j(ƒ} t j)} |j
t j*ƒ} | t+d|ƒ@sätj$d|| f|ƒdSng|dkrä|j,ƒ} t j-} |j
t j.ƒ} | t+d|ƒ@sätj$d|| f|ƒdSn| s tj$d    |||f|ƒdStj/|| |
t0|gƒrJtj$d
|||f|ƒdSt1j2|| ƒs`dStj3|| |
dt0|gƒt4|||gƒtj$d |||| f|ƒx6| D].\}}}t1j5||||t6j7gƒq¹Wt1j8|| dƒdS( Ni
Riis:Õ½ÁîËùÐèÖµ²»×㣬ÎÞ·¨Áì½±: zhanlingType=%s,curValue=%s < %sis:ÆÕͨսÁîδ¼¤»î£¬ÎÞ·¨ÁìȡսÁî½±Àø: zhanlingType=%s,state=%ss:¸ß¼¶Õ½Áîδ¼¤»î£¬ÎÞ·¨ÁìȡսÁî½±Àø: zhanlingType=%s,state=%ss:ûÓиÃÕ½Áî½±Àø! zhanlingType=%s,needValue=%s,rewardType=%ss@ÒѾ­ÁìÈ¡¹ý¸ÃÕ½Áî½±Àø! zhanlingType=%s,needValue=%s,rewardType=%ssDÁìȡսÁî½±Àø: zhanlingType=%s,needValue=%s,rewardType=%s,itemList=%s(9R    tToIntDefR RtGetIpyGameDatatZhanlingType_LVtGetLVtZhanlingType_RealmtGetOfficialRanktZhanlingType_SkyTowerRRtDef_Player_Dict_SkyTowerFloortZhanlingType_GubaoStart PlayerGubaotGetGubaoTotalLVStarRRt GetDiff_DayRRtZhanlingType_GatherTheSoulLVtPlayerGatherTheSoultGetGatherTheSoulTotalLVtZhanlingType_HorsePetTraintPlayerActHorsePetTraintGetActHorsePetTrainScoretZhanlingType_GubaoTraintPlayerActGubaotGetActGubaoTrainScoreR#RR$R%R&R(R
R8R:R-R<R+RRR=R,RR9R6t ItemControlertCheckPackSpaceEnoughtSetDictValueByBitR tGivePlayerItemt IPY_GameWorldtrptItemtNotifyGiveAwardInfo(R RtrewardIDRFt
rewardTypeRCRERQRKRRGRMt    rewardKeyRRIRJt isAuctionItem((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pytGetZhanlingReward½s„      %                         #cCsÝ|dkr5tjdi|d6tƒ}|s5dSng}xÜ|D]Ô}|jƒ}tjƒ}|jƒ|jƒ|_    t
j |t j |t|gƒr dnd|_t
j |t j|t|gƒrÐdnd|_t
j |t j|t|gƒrdnd|_|j|ƒqBWtjƒ}|jƒ||_|jt jƒtd|ƒ@r^dnd|_|jt jƒtd|ƒ@rŒdnd|_|jt j|ƒ|_||_t|jƒ|_ t!j"||ƒdS(NRR3iii(#tNoneRR5R6R8tChPyNetSendPackt tagMCZhanlingtClearR7t    NeedValueR    R9RR-tFreeRewardStateR+t ZLRewardStateR,tZLRewardStateHR>ttagMCZhanlingInfoR3RRRt
IsActiviteRt IsActiviteHRtValue1t
RewardListtlent RewardCountt NetPackCommont SendFakePack(R RRBt
rewardListRERGtrewardt
clientPack((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pyR s0    
000 
    ..    i (%R    R%R…RRRwRbReRhRjRnR^RRR*RRWRYR[R]RRaRdRgR#tZhanlingType_HuanjinggetZhanlingType_LianqiR(RR!RvR2R)RSRTRuR (((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerZhanling.pyt<module>s.              4          !     -         S