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
50
51
52
53
54
55
56
57
58
59
60
61
62
Sð    hc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd    „Zd
d „Zd „Zd „Zd„Zd„Zd„ZdS(iÿÿÿÿNcCs¹x²tjjtjiƒjƒD]’}|jtjdƒ}|jtjƒsRqn|jt    j
|ƒ}|stqnt j d||f|j ƒƒtj|tj|dtƒPqWdS(Nis0¹Å±¦Ñø³ÉºÏ·þÊ×µÇͬ²½»ý·Ö°ñµ¥: actNum=%s,score=%stautoSort(t
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_Gubaotvaluest ActKey_ActNumt ActKey_StatetNomalDictGetPropertytChConfigtDef_PDict_ActGubaoScoret    GameWorldtLogt GetPlayerIDtPlayerBillboardtUpdatePlayerBillboardtDef_BT_GubaoScoretTrue(t    curPlayertactInfotactNumtscore((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pytOnMixFirstLogins% cCs¢x‚tjjtjiƒjƒD]b}|jtjdƒ}t||ƒ}|s|jtjƒrt    ||ƒt
||ƒqqqWt |ƒsžt |ƒndS(Ni( RRRRRRRt__CheckPlayerGubaoActionRtSync_GubaoActionInfotSync_GubaoPlayerInfot__CheckPlayerCrossActGubaotSync_CrossActGubaoActionInfo(RRRtisReset((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyt OnPlayerLogin.s%   cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(R tGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(Rt playerManagertindexR((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pytRefreshGubaoActionInfo>s c
Csœ|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||kr tj d||f|ƒdStj d|||||f|ƒ|j    t
j |ƒ}tj|tj|ƒtj|t
j ||ƒtj|t
j |dƒ|r˜|jtjƒ}tjd|ƒ}    |    r{|    jƒr{tj||    jƒgƒnt||ƒt||ƒntS(Nis.¹Å±¦Ñø³É»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,actID=%ssA¹Å±¦Ñø³ÉÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,cfgID=%stActGubao(RR t
GetActInfoRRRt    ActKey_IDRt ActKey_CfgIDR    R
tDef_PDict_ActGubaoIDtDebugLogR tPlayerZhanlingt ResetZhanlingtZhanlingType_GubaoTraint PlayerControltNomalDictSetPropertyt IpyGameDataPYtGetIpyGameDatatGetActShopTypetFunctionNPCCommontResetShopItemBuyCountByShopTypeRRR(
RRtplayerIDRtactIDtstatetcfgIDt playerActIDRtipyData((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyRHs.       cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(R RR R!R"R#R(R$R%R((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pytRefreshCrossActGubaoInfois cCs|jƒ}tj|tjƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||kr´t jd|||f|ƒdSt jd||||f|ƒtj|t j |ƒ|stj|tjƒnt|ƒtS(Nis=¿ç·þ¹Å±¦Ñø³É»î¶¯ID²»±ä£¬²»´¦Àí£¡cfgID=%s,dayIndex=%s,actID=%ss?¿ç·þ¹Å±¦Ñø³É»î¶¯ÖØÖÃ! cfgID=%s,actID=%s,playerActID=%s,state=%s(RtCrossRealmPlayertGetPlayerCrossActInfoRtCrossActName_GubaoRR*R)RtActKey_DayIndexR    R
tDef_PDict_CA_GubaoIDR R,R0R1tNotifyCrossActEndRR(RR7RR:R8R9tdayIndexR;((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyRts    
c
Cs|jƒ}xltjjtjiƒjƒD]L}|jtjdƒ}|jtjƒs^q+n|jtj    ƒ}t
j d|ƒ}|sŽq+n|j ƒrÿt j|tjƒ}|jtjdƒr4|jtjƒtjkrütjd||ƒq+qüq4n5|jtjƒtjkr4tjd||ƒq+nd}    t
jddiƒ}
x|jƒD]\} } t
j d| ƒ} | s†q\n| jƒ}t|ƒ|
krªq\n|
t|ƒ| }|    |7}    tjd|| || ||    fƒq\Wt
jdd    ƒ}xH|D]@\}}||}|    |7}    tjd
|||||    fƒqW|    dkr^q+nt|||    |j ƒƒq+WdS( NiR's#¿ç·þ¹Å±¦Ñø³É·Ç²ÎÓë»î¶¯ÖÐ: actNum=%ss¹Å±¦Ñø³É·Ç²ÎÓë»î¶¯ÖÐ: actNum=%stGubaoActitGubaosW¹Å±¦»î¶¯Ë鯬»ý·Öͳ¼Æ: actNum=%s,pieceID=%s,quality=%s,pieceCount=%s,qualityScore=%s, %sisH¹Å±¦»î¶¯ÆäËû»ý·Öͳ¼Æ: actNum=%s,itemID=%s,costCount=%s,otherScore=%s, %s(RRRRRRRRRR*R2R3tGetIsRelationCrossActR>R?R@tActKey_StateJointActStateJoin_StartR R tGetFuncEvalCfgtitemstGetGubaoQualitytstrR,t
GetFuncCfgtAddPlayerScore(Rt costPieceInfot costItemListR7RRR:R<t crossActInfot addGubaoScoretpieceQualityScoreDicttpieceIDt
pieceCountt    gbIpyDatatqualityt qualityScoret otherAddScoretitemIDt    costCountt
otherScore((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyt OnGubaoCostsR %   
    
 
     cCsÃ|dkrdS|jtj|ƒ}||}tj|tj||ƒtjd|||fƒt||ƒtj|t    j
|dƒt j |t    j |dtƒt|d|||gƒ|S(Nis3¹Å±¦»î¶¯Ôö¼Ó»ý·Ö: actNum=%s,addScore=%s,updScore=%st ActGubaoTrainRt AddGubaoScore(R    R
R R0R1R R,Rt    GiveMoneyRtTYPE_Price_GubaoTrainScoreRRRRtSendToGameServer_Gubao(RRtaddScoretisRelationCrossActRtupdScore((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyROÁs 
 tcCsd|jƒ}t||gƒ}tjƒj|ddd|t|ƒƒtjd||f|ƒdS(NiR's¹Å±¦Ñø³É·¢ËÍGameServer: %s, %s(RRMR RtGameServer_QueryPlayerResulttlenR (RtmsgTypetdataMsgR7tmsgList((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyRcÎs
 (cCs…d}xxtjjtjiƒjƒD]X}|jtjdƒ}|jtjƒsXq%n|jt    j
|ƒ}t ||ƒ}q%W|S(Ni( RRRRRRRRR    R
R tmax(RtactScoreRRR((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pytGetActGubaoTrainScoreÕs%c
Cs0tjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdS|j    ƒ}|r}tj
d|ƒng}tj |ƒ\}}t j ƒ}    ||    _||    _||    _|jƒ|    _|jƒ|    _|jƒ|    _|jƒ|    _t|ƒ|    _t|    jƒ|    _tj||    ƒdS(NR'tActGubaoBillTemp(R R(RRRRR*R2R3tGetPersonalTemplateIDtGetIpyGameDataListtGetOperationActionDateStrtChPyNetSendPackttagMCActGubaoInfotActNumt    StartDatetEndtDatetGetJoinStartTimet JoinStartTimetGetJoinEndTimet JoinEndTimet
GetLVLimittLimitLVR4tShopTypet__GetTempRankBillPackListtPersonalBillboardInfoListRitPersonalBillCountt NetPackCommont SendFakePack(
RRRR:R<tpersonalTempIDtpersonalTempIpyDataListt startDateStrt
endDateStrt
clientPack((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyRàs,              cCsmtjtj|ƒ}|jtjƒs+dStjƒ}||_|j    t
j |ƒ|_ t j||ƒdS(N(R R(RRRRRtttagMCActGubaoPlayerInfoRvR    R
R tScoreRƒR„(RRRR‰((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyRÿs     cCs^tj|tjƒ}|sdS|jtjƒs5dS|jtjiƒ}|sTdS|jddƒ}|r~tjd|ƒng}t    j
ƒ}t |jtj gƒƒ|_ t|j ƒ|_|jddƒ|_|jddƒ|_|jddƒ|_|jddƒ|_|jd    dƒ|_t|ƒ|_t|jƒ|_tj||ƒdS(
NtPersonalTemplateIDiRptZoneIDRwRgtEndDateRzR|(R>R?RR@RRtActKey_IpyDataInfoR2RrRtttagMCCrossActGubaoInfoRMtActKey_ServerIDRangeListtServerIDRangeInfoRit ServerInfoLent GroupValue1RwRxRzR|R€RR‚RƒR„(RRt ipyDataDictR…R†R‰((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyR s, cCsÑg}|s|Sxº|D]²}tjƒ}|jƒ|_g|_|jƒ}xX|D]P\}}}tjƒ}|jƒ||_||_    ||_
|jj |ƒqTWt |jƒ|_ |jƒ|_g|_|jƒ}    |    jƒ}
|
jƒx³|
D]«} |    | } tjƒ} | | _g| _xX| D]P\}}}tjƒ}|jƒ||_||_    ||_
| jj |ƒq0Wt | jƒ| _ |jj | ƒqûWt |jƒ|_|j |ƒqW|S(N(RtttagMCActGubaoBillardtGetRanktRankt AwardItemListtGetAwardItemListttagMCActGubaoItemtCleartItemIDt    ItemCounttIsBindtappendRitCountt GetNeedScoret    NeedScoretAwardItemExListtGetScoreAwardExtkeystsortttagMCActGubaoAwardExtCountEx(t ipyDataListt packBillListt tempIpyDatatrankInfot awardItemListR[t    itemCountt isAuctionItemtitemt scoreAwardExt scoreExListtscoreExt
itemExListtawardEx((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyR€*sL        
                   
 
          
            (RRR0R2R>R5RRtR-RƒR R
RRR&RR=RR^RORcRoRRRR€(((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGubao.pyt<module>s2                        
    !             4