hwj35
8 天以前 64c8c2fea90fbd70d1f1ba8e37f14cb87681e22f
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
63
64
65
66
67
68
69
70
‡¦àic@scddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zdd„Z dS(iÿÿÿÿNcCs0|rt||ƒn|r,t||ƒndS(N(t
__onActEndt __onActStart(tactNumtipyDatatstatet
dbActCfgID((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyt OnActIDChange$s
cCs3|s
dS|jƒ}tjtj|d|ƒdS(Nt groupValue1(t GetBillTempIDtPlayerBillboardtSetOrderRuleListByActTempIDt ShareDefinetDef_BT_ActHeroAppear(RRt
templateID((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytOnActInStateRefresh/s
 cCs2tjƒ}|jtjd|ƒ}|jƒdS(NR(t    DBDataMgrtGetBillboardMgrt GetBillboardR R t    ClearData(RRt billboardMgrt billboardObj((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyR9s 
c    Csmtjd|ƒ}|sdS|jƒ}|jƒ}d||f}tjtj|||d|dtƒdS(Nt ActHeroAppearsActHeroAppear_%s_%sRt isClearData(    t IpyGameDataPYtGetIpyGameDataRtGetBillAwardMailR    tDoGiveBillboardAwardByActTempIDR R tTrue(RRRR tmailKeytfuncName((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyR@s  %cCsïxètjjtjiƒjƒD]È}|jtjdƒ}t||ƒ}| r|jtjƒrt    ||ƒt
||ƒt j |tj|ƒ|jtj ƒ}tjd|ƒ}|rç|jƒ}|rätj||ƒqäqçqqWdS(NiR(t
PyGameDatatg_operationActionDicttgetR tOperationActionName_HeroAppeartvaluest ActKey_ActNumt __CheckPlayerActHeroAppearActiont ActKey_StatetSync_ActHeroAppearActionInfotSync_ActHeroAppearPlayerInfot PlayerActSigntSync_ActSignPlayerInfot ActKey_CfgIDRRtGetActZhanlingTypetPlayerZhanlingtSyncZhanlingInfo(t    curPlayertactInfoRtisResettcfgIDRtactZhanlingType((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyt OnPlayerLoginNs%   cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR$(Rt playerManagertindexR.((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytRefreshActHeroAppearActionInfoas c    Cs¨|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjƒ}|j    t
j |ƒ}||kr tj d|||f|ƒdS|j    t
j |ƒ}tj d||||||f|ƒ|ròt||ƒntj|t
j ||ƒtj|t
j ||ƒtj|t
j|dƒtj|t
j|dƒtj|t
j|dƒ|r¤t||ƒt||ƒt||ƒntS(Nis8Î佫µÇ³¡»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,cfgID=%s,actID=%ssRÎ佫µÇ³¡»î¶¯ÖØÖÃ! actNum=%s,cfgID=%s,actID=%s,playerActID=%s,state=%s,lastCfgID=%s(t GetPlayerIDR4t
GetActInfoR R!R t    ActKey_IDR%R*tNomalDictGetPropertytChConfigtDef_PDict_ActHeroAppearIDtDebugLogtDef_PDict_ActHeroAppearCfgIDt__resetActByCfgIDt PlayerControltNomalDictSetPropertyt Def_PDict_ActHeroAppearStarIndext Def_PDict_ActHeroAppearStarAwardt Def_PDict_ActHeroAppearCallIndexR&R'R(    R.RtplayerIDR/tactIDRR1t playerActIDt    lastCfgID((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyR$ks0        cCsô|s
dStjd|ƒ}|s&dS|jƒ}tj|tj|ƒtj||j    ƒgƒ|j
ƒ|j ƒg}t j |||jƒƒg}||jƒ7}||jƒ7}tj|d|ƒ|jƒ}|rðtj||ƒndS(NR(RRt    GetActNumR(t ResetActSignR R!tPlayerTreasuretResetTreasureTypetGetActTreasureTypetGetGiftShopTypet GetExShopTypetFunctionNPCCommontResetShopItemBuyCountByShopTypetGetExShopRecycleMailtGetSkinCTGIDListtGetGiftCTGIDListt
PlayerCointDoResetCTGCountByIDListR+R,t ResetZhanling(R.R1RRt shopTypeListtresetCTGIDListR2((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyREŽs$  cCsµx®tjjtjiƒjƒD]Ž}|jtjƒs=qn|jtjƒ}tj    d|ƒ}|smqn||j
ƒkr…qn|jtj dƒ}|j ƒ}||fSWdS(NRi( RRR R R!R"R%R*RRRSR#R+(R.t treasureTypeR/R1RRR2((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytGetActTreasureInfo§s%  c Cstjddƒ}||kr"tSxõtjjtjiƒjƒD]Õ}|jtj    ƒs_qAn|jtj
ƒ}tj d|ƒ}|sqAn||j ƒkr§qAn|j ƒ}|jtjdƒ}    |jtj|    ƒ}
| s÷t|ƒ|
krûtS||
} || krtStSWtS(Nt
HeroAppeariRi(RtGetFuncEvalCfgRRRR R R!R"R%R*RRStGetActHeroIDListR#R@RARJtlentFalse( R.R`theroIDtgridNumtactOnlyHeroLibListR/R1Rt actHeroIDListRt callHeroIndext
callHeroID((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytIsActCanTreasureHero¸s, % 
 c     Cs}tjƒj|ƒ}|jƒ}|j}|j}tjtj|ƒ}| sb|j    tj
ƒ rztj d||ƒdS|j    tj ƒ}t jd|ƒ}    |    s¨dS|    jƒ}
|
sÍt|
ƒ|krñtj d||||
f|ƒdS|jtj|ƒ} | r%tj d||ƒdS|
|} tj d|||| |
f|ƒtj|tj||ƒt||ƒdS(Ns¸ÃÎ佫µÇ³¡·Ç»î¶¯ÖÐ: actNum=%sRsVÎ佫µÇ³¡ÐǼ¶¼Æ»®Î佫ѡÔñË÷Òý·Ç·¨: actNum=%s,cfgID=%s,starHeroIndex=%s,actHeroIDList=%ss9Î佫µÇ³¡ÐǼ¶¼Æ»®ÒѾ­Áì¹ý½±ÎÞ·¨ÐÞ¸ÄÐǼ¶¼Æ»®Î佫: actNum=%ss\Î佫µÇ³¡ÐǼ¶¼Æ»®Î佫ÐÞ¸Ä: actNum=%s,cfgID=%s,starHeroIndex=%s,starHeroID=%s,actHeroIDList=%s(R4R5R8R=tActNumt StarHeroIndexR>R R!R R%RCR*RRRdReR@RARIRFRGRHR'( R;t
clientDatattickR.RKRt starHeroIndexR/R1RRjt    starAwardt
starHeroID((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytOnStarHeroSelectÞs6              
     c     CsItjƒj|ƒ}|jƒ}|j}|j}tjtj|ƒ}| sb|j    tj
ƒ rztj d||ƒdS|j    tj ƒ}t jd|ƒ}    |    s¨dS|    jƒ}
|
sÍt|
ƒ|krñtj d||||
f|ƒdS|
|} tj d|||| |
f|ƒtj|tj||ƒt||ƒdS(Ns¸ÃÎ佫µÇ³¡·Ç»î¶¯ÖÐ: actNum=%sRsRÎ佫µÇ³¡ÕÐļÎ佫ѡÔñË÷Òý·Ç·¨: actNum=%s,cfgID=%s,callHeroIndex=%s,actHeroIDList=%ssXÎ佫µÇ³¡ÕÐļÎ佫ÐÞ¸Ä: actNum=%s,cfgID=%s,callHeroIndex=%s,starHeroID=%s,actHeroIDList=%s(R4R5R8R=Rnt CallHeroIndexR>R R!R R%RCR*RRRdReRFRGRARJR'( R;RpRqR.RKRRkR/R1RRjRt((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytOnCallHeroSelects.              
     c    Cs5|}|jƒ}tjtj|ƒ}| sA|jtjƒ rVtjd|ƒdS|jtjƒ}t    j
d|ƒ}|s„dS|j ƒ}|j ƒ}|j tj|ƒ}    |    t|ƒkrÈdS||    }
t    jd|ƒ} | sîdStj||
ƒ} g} |j tj|ƒ}}xn| D]f}| |jƒkrEq'n|jƒ}|td|ƒ@rjq'n| |jƒ7} |td|ƒO}q'Wtjd|||    |
| |f|ƒ| sÑtjd|ƒdStjd|| f|ƒtj|tj||ƒtj|| dd    tigƒt||ƒdS(
Ns¸ÃÎ佫µÇ³¡·Ç»î¶¯ÖÐ: actNum=%sRtActHeroAppearStarishÎ佫µÇ³¡ÐǼ¶¼Æ»®Ãâ·Ñ½±ÀøÁìÈ¡! actNum=%s,cfgID=%s,starHeroIndex=%s,starHeroID=%s,heroStar=%s,starAward=%ssûÓпÉÁìÃâ·Ñ½±Àø!s updStarAward=%s,awardItemList=%steventtHeroAppearStar(R=R4R>R R!R R%RCR*RRtGetStarGiftTempIDRdR@RARHRetGetIpyGameDataListt
PlayerHerot GetHeroIDStarRIt GetNeedStart GetAwardIndextpowtGetFreeAwardItemListRFRGt ItemControlertGivePlayerItemOrMailRfR'(R.tdataExRRKR/R1RtstarGiftTempIDRjRrRttawardIpyDataListtheroStart awardItemListt updStarAwardRst awardIpyDatat
awardIndex((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytGetHeroAppearStarFreeAward!sP   
       c CsNxGtjjtjiƒjƒD]'}|jtjdƒ}|jtjƒsRqn|jtjƒ}t    j
d|ƒ}|s‚qn|j ƒ}|j ƒ}|j tj|ƒ}|t|ƒkrÈqn||}    t    jd|ƒ}
|
sðqnxS|
D]K} || jƒkrq÷n| jƒ} t|    ƒ| kr7gS| t|    ƒSWqWgS(NiRRx(RRR R R!R"R#R%R*RRR{RdR@RARHReR|tGetStarGiftCTGIDtGetHeroGiftItemInfotstr( R.tctgIDR/RR1RR†RjRrRtR‡R‹theroGiftItemInfo((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pytGetCTGActItemListPs2%  
  cCsttjƒ}||_|jtj|ƒ|_|jtj|ƒ|_|jtj    |ƒ|_
t j ||ƒdS(N( tChPyNetSendPackttagSCActHeroAppearPlayerInfoRnR@RARHRoRIt StarFreeAwardRJRvt NetPackCommont SendFakePack(R.Rt
clientPack((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyR'ns     ic    CsÕtjtj|ƒ}| s/|jtjƒ r3dS|jtjƒ}tjd|ƒ}|sadStj    |ƒ\}}t
j ƒ}tj jtjdƒ|_ ||_||_||_||_tj||ƒdS(NRi(R4R>R R!R R%R*RRtGetOperationActionDateStrR”ttagSCActHeroAppearInfotOperationActTypeDicttActTypeRnt    StartDatetEndtDatetCfgIDR—R˜(    R.Rt    roundTypeR/R1Rt startDateStrt
endDateStrR™((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyR&ws                  (!RR RFRR(R,R”RVR    RQR—RƒR}R[R4RRARRRRR3R<R$RERaRmRuRwRR“R'R&(((srD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActHeroAppear.pyt<module>s@                          
                
    #            &    (        /