cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
í¾Ö[c@s<dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e ddƒ\ZZZZd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zdd„Zd„Zged„Zd„Zd„Z dS(sVersion = 2018-07-23 16:50iÿÿÿÿNiicCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t __CheckPlayerFairyCeremonyActiont
PyGameDatatg_operationActionDicttgett ShareDefinet!OperationActionName_FairyCeremonyt ActKey_StatetSyncFCRechargeInfotSyncFCPartyInfo(t    curPlayertisResettactCostRebateInfo((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytOnLogin)s 
cCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagertiR    ((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt$RefreshOperationAction_FairyCeremony3s c    Cs‘|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||krpdS|jtj dƒ}|jt    j ƒ}t jd|||||f|ƒt||ƒtj|t    j
|ƒtj|t    j |ƒtj|t    jdƒt|ƒtj|t    jdƒtj|t    jdƒx+t    jD] }tj|t    j|dƒqIWt|ƒtj|t    jdƒtS(Nis`ÏɽçÊ¢µäÖØÖÃ! FairyCeremonyID=%s,playerCostRebateID=%s,state=%s,ActWorldLV=%s,playerFCWorldLV=%s(t GetPlayerIDRRRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_FairyCeremonyIDtActKey_WorldLVtDef_PDict_FCActionWorldLVR tDebugLogt__SendFairyCeremonyMailt PlayerControltNomalDictSetPropertytDef_PDict_FCRechargeStateRtDef_PDict_FCPartyCurPointtDef_PDict_FCPartyAwardRecordtPeoplePartyActIDListtDef_PDict_FCPartyCurCntRtDef_PDict_FCCostGoldtTrue(    R    tplayerIDtactFairyCeremonyInfotFairyCeremonyIDtstatetplayerFairyCeremonyIDt
actWorldLVtplayerFCWorldLVtactid((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR=s.       
 
cCsñ|jƒ}|jƒ}|jtjƒdkr©t|tƒ}tjddiƒ}t    |ƒ|krzt
j d|ƒq©|t    |ƒ}t j d|g||gƒnt|tƒ}|jtjƒ}|jtjƒ}tjdi|d6tƒ}    |    st
j d|ƒdSg}
x¬|    D]¤} | jƒ} |td| ƒ@rKq n| jƒ} || kriq n| jƒ}|jƒ}t    |ƒ|krªt
j d    |ƒq n|t    |ƒ}|
|7}
q W|
rít j d
|g|
|gƒndS( NitCeremonyRechargesB    Óʼþ·¢·Å³äÖµ´óÀñ½±Àø CeremonyRecharge Î´ÅäÖý±Àø worldLvNum=%stCeremonyPayPacktAllPeoplePartyAwardt
WorldLvNumsK    Óʼþ·¢·ÅÈ«ÃñÀ´à˽±Àø AllPeoplePartyAward Î´ÅäÖÃÊÀ½çµÈ¼¶µµ WorldLvNum=%sisB    Óʼþ·¢·ÅÈ«ÃñÀ´à˽±Àø AllPeoplePartyAward Î´ÅäÖÃÖ°Òµ½±Àø job=%stCeremonyHaiPoint(tGetIDtGetNameRRR"t__GetFCWorldLVIndextDef_FC_Recharget IpyGameDataPYtGetFuncEvalCfgtstrR tErrLogR t SendMailByKeyt Def_FC_PartyR#R$tGetIpyGameDataByConditionR(tGetIndextpowt GetNeedPointtGetAwardtGetJob(R    R/R)t
playerNamet
worldLvNumt awardInfoDictt    awardListtcurPointt awardRecordt ipyDataListtpartyAwardListtipyDatatindext    needPointtjob((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyRcsD        cCs7tjjtjiƒ}|jtjdƒ}|dkS(Nii(RRRRRR(tactBossRebornInfoR,((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt__IsAtFCActionŒsc
Cs¦|jtjƒ}tjddiƒ}t|ƒ|kr=dSd}|t|ƒ}xLt|ƒD]>\}}|\}}    ||ko|    knr`|}Pq`q`W|S(NtCeremonyWorldLvii(RRRR:R;R<t    enumerate(
R    tfcTypeR/t fcWorldlvDictt worldLVIndext worldlvListROtlvinfotminlvtmaxlv((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR8’s cCsStƒs dS|jtjƒ}|dkr/dStj|tjdƒt|ƒdS(Nii(RSRRR"R R!R(R    tcurState((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt OnFCRecharge¢s     
c
Cs:|jtjƒ}|dkr"dSt|tƒ}tjddiƒ}t|ƒ|krmtj    d|ƒdS|t|ƒ}t
|ƒ}t j |t j|ƒ}||krÁtj|dƒdStj|tjdƒx6|D].\}}}    tj||||    t jgƒqÞWt|ƒtjdd|jƒgƒdS(NiR1s>    ÁìÈ¡³äÖµ´óÀñ½±Àø CeremonyRecharge Î´ÅäÖý±Àø worldLvNum=%stGeRen_chenxin_998371ii(RRR"R8R9R:R;R<R R=tlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR t
NotifyCodeR!t ItemControlertGivePlayerItemRt WorldNotifyR7(
R    R]RGRHRIt    needSpacet    packSpacetitemIDtitemCnttisBind((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytGetFCRechargeAward¬s(   #
cCs5tjƒ}|jtjƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCXJSDRechargeRRR"tStatet NetPackCommont SendFakePack(R    tpackData((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyRÈs c
Csâtƒs dStjd|ƒ}|s)dS|jƒ}|jtj|ƒ}||kr[dSt|||ƒ}tj    |tj||ƒ|j
ƒ}|||}|jtj ƒ}    tj    |tj |    |ƒt ||gƒdS(NtAllPeopleParty( RSR:tGetIpyGameDatat GetTotalTimesRRR&tminR R!t GetAddPointR#R(
R    tactionIDtaddCntRNtmaxCnttcurCnttnewCntt singlePointtaddPointRJ((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytAddFCPartyActionCntÐs"       cCs½t|tƒ}tjd||ƒ}|s.dS|jtjƒ}||jƒkrtj    d|jƒ||f|j
ƒƒdS|jtj ƒ}t d|ƒ}||@rÎtj    d||f|j
ƒƒdS|j ƒ}|jƒ}t|ƒ|krüdS|t|ƒ}    t|    ƒ}
tj|tj|
ƒ} |
| krPtj|dƒdS||O}tj|tj |ƒx6|    D].\} } }tj|| | |tjgƒqwWt|dtƒdS(NR3s6    È«ÃñÀ´àËÁì½±, µãÊý²»×ã%s,  worldLvNum=%s, index=%sis2    È«ÃñÀ´àËÁì½±, ÒÑÁì½±,  worldLvNum=%s, index=%sR_t
isGetAward(R8R?R:RvRRR#RCR RR6R$RBRDRER<R`RaRbRcRdR ReR!RfRgRR((R    RORGRNRJRKt    awardMarkRHRQRIRiRjRkRlRm((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytGetFCPartyAwardäs:)
     
#cCsâtjƒ}|jƒ|jtjƒ|_|jtjƒ|_|sÎg|_    xgtj
D]\}|rw||krwqYntj ƒ}||_ |jtj |ƒ|_|j    j|ƒqYWt|j    ƒ|_ntj||ƒdS(N(RottagMCAllPeoplePartyInfotClearRRR#tCurPointR$t AwardRecordt BuyCountListR%ttagMCAllPeoplePartyCounttActIDR&tCurTimestappendR`tCountRrRs(R    t    actIDListR‚RttactIDt
finishInfo((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR
s  
         cCs¸|dkrdS|tjkr#dStƒs0dS|jtjƒ}||}tj|tj|ƒ|tjdƒkr{dSt    j
|t j |ƒt jd|||f|jƒƒdS(NitCeremonyRankLimits?Íæ¼Ò¾ø°æ½µÁÙÏû·Ñ»î¶¯: curCostGold=%s,costGold=%s,updCostGold=%s(RtCostRebate_DisableTypeRSRR'R R!R:t
GetFuncCfgtPlayerBillboardtUpdatePlayerBillboardRtDef_BT_FCCostGoldR RR(R    tcostTypetcostGoldt curCostGoldt updCostGold((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt AddFCCostGolds     
    cCstƒstjdƒtStjddiƒ}t|tƒ}|jt    |ƒdƒ}||kr‰tjd|||f|j
ƒƒtSt S(Ns'    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ »î¶¯Î´¿ªÆô, ÎÞ·¨¹ºÂòtCeremonyFirePartyiisA    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ µ±Ç°¿ÉÒÔÂòÑÌ»¨Îª %s, ÎÞ·¨¹ºÂò %s,worldLvNum=%s( RSR tLogtFalseR:R;R8tDef_FC_FireworksRR<R6R((R    t    itemIndext fireworksDictRGtcanBuyID((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytIsCanBuyFireworks6s      #(!t__doc__RcR RR:R RfRoRrRRRaR•trangeR9R R?tDef_FC_RechargeRankR RRRRSR8R^RnRRR„RŸRRœR¤(((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt<module>s6                
    
    &    )            
             &