hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
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
¤9gc@sNdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e ddƒ\ZZZZd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zdd„Zd„Zd„Zged„Zd„Z d„Z!d„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((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytOnLogin)s 
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertiR    ((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt$RefreshOperationAction_FairyCeremony3s c
CsÖ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||krpdS|jt    j ƒd}|jtj dƒ}|jt    j ƒ}tjd||||||f|ƒt||ƒtj|t    j
|ƒtj|t    j |ƒtj|t    jdƒtj|t    jdƒtj|t    jdƒx+t    jD] }    tj|t    j|    dƒqXWt|ƒtj|t    j|ƒtj|t    jdƒtj|t    jdƒt|ƒtS(NiidsoÏɽçÊ¢µäÖØÖÃ! FairyCeremonyID=%s,playerCostRebateID=%s,state=%s,ActWorldLV=%s,playerFCWorldLV=%s,ctgRMBTotal=%s(t GetPlayerIDRRRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_FairyCeremonyIDtDef_PDict_TodayCTGCoinTotaltActKey_WorldLVtDef_PDict_FCActionWorldLVR tDebugLogt__SendFairyCeremonyMailt PlayerControltNomalDictSetPropertytDef_PDict_FCRechargeStatetDef_PDict_FCPartyCurPointtDef_PDict_FCPartyAwardRecordtPeoplePartyActIDListtDef_PDict_FCPartyCurCntRtDef_PDict_FCCTGRMBTotaltDef_PDict_FCFireworksBuyCounttDef_PDict_FCFireworksScoreRtTrue(
R    tplayerIDtactFairyCeremonyInfotFairyCeremonyIDtstatetplayerFairyCeremonyIDt ctgRMBTotalt
actWorldLVtplayerFCWorldLVtactid((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR=s4       
 
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    R2R+t
playerNamet
worldLvNumt awardInfoDictt    awardListtcurPointt awardRecordt ipyDataListtpartyAwardListtipyDatatindext    needPointtjob((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyRfsD        cCs7tjjtjiƒ}|jtjdƒ}|dkS(Nii(RRRRRR(tactBossRebornInfoR.((ssE:\SnxxServerCode\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    tfcTypeR2t fcWorldlvDictt worldLVIndext worldlvListRRtlvinfotminlvtmaxlv((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR;•s cCsStƒs dS|jtjƒ}|dkr/dStj|tjdƒt|ƒdS(Nii(RVRRR"R R!R(R    tcurState((ssE:\SnxxServerCode\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|||dt jgƒqÞWt|ƒtjdd|jƒgƒdS(NiR4s>    ÁìÈ¡³äÖµ´óÀñ½±Àø CeremonyRecharge Î´ÅäÖý±Àø worldLvNum=%stGeRen_chenxin_998371ii(RRR"R;R<R=R>R?R R@tlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR t
NotifyCodeR!t ItemControlertGivePlayerItemRt WorldNotifyR:(
R    R`RJRKRLt    needSpacet    packSpacetitemIDtitemCnttisBind((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytGetFCRechargeAward¯s(   #
cCsttjƒ}|jtjƒ|_|jtjƒ|_|jtjƒ|_    |jtj
ƒ|_ t j ||ƒdS(N(tChPyNetSendPackttagMCXJSDRechargeRRR"tStateR'tCTGTotalR(tFireworksBuyCountR)tFirewordsScoret NetPackCommont SendFakePack(R    tpackData((ssE:\SnxxServerCode\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 |    |ƒtj |d|gƒt ||gƒdS(NtAllPeoplePartytAddFCPartyPoint(RVR=tGetIpyGameDatat GetTotalTimesRRR&tminR R!t GetAddPointR#RhR(
R    tactionIDtaddCntRQtmaxCnttcurCnttnewCntt singlePointtaddPointRM((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytAddFCPartyActionCntÖs$       cCsP|jtjƒ}tj|tj||ƒtj|d|gƒt|ƒdS(NR|(RRR#R R!RhR(R    R‡RM((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyR|ë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|| | dtjgƒqwWt|dtƒdS(NR6s6    È«ÃñÀ´àËÁì½±, µãÊý²»×ã%s,  worldLvNum=%s, index=%sis2    È«ÃñÀ´àËÁì½±, ÒÑÁì½±,  worldLvNum=%s, index=%sRbit
isGetAward(R;RBR=R}RRR#RFR RR9R$RERGRHR?RcRdReRfRgR RhR!RiRjRR*(R    RRRJRQRMRNt    awardMarkRKRTRLRlRmRnRoRp((ssE:\SnxxServerCode\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(RrttagMCAllPeoplePartyInfotClearRRR#tCurPointR$t AwardRecordt BuyCountListR%ttagMCAllPeoplePartyCounttActIDR&tCurTimestappendRctCountRxRy(R    t    actIDListR‰RztactIDt
finishInfo((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyRs  
         cCs€|dkrdStƒsdS|jtjƒ}||}tj|tj|ƒtjd|||f|jƒƒt    |ƒdS(Nis>¸üÐÂÏɽçÊ¢µä³äÖµRMBÖµ: curRMBTotal=%s,ctgRMB=%s,updRMBTotal=%s(
RVRRR'R R!R tLogRR(R    tctgRMBt curRMBTotalt updRMBTotal((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt AddFCCTGRMB/s     
    
c Cs¶tƒs dStjddiƒ}t|tƒ}|jt|ƒgƒ}||krYdS|j|ƒ}t|t    j
|ƒ|dkrÖ|j t    j ƒ|}t j|t    j |ƒtjd||f|jƒƒntjddƒ}|||}    |j t    jƒ}
|
|    } t j|t    j| ƒtjddƒ} | | krˆtjd|||
|    | f|jƒƒtj|tj| ƒn tjd| | f|jƒƒt|ƒdS(NtCeremonyFirePartyisB¸üÐÂÍæ¼Ò¸ß¼¶ÑÌ»¨ÒѹºÂò´ÎÊý: clientBuyCount=%s,fireworksBuyCount=%siisnÍæ¼Ò¾ø°æ½µÁÙ»ý·ÖÅÅÐиüÐÂ: itemIndex=%s,clientBuyCount=%s,curFireworksScore=%s,addScore=%s,updFireworksScore=%ssPÍæ¼Ò¾ø°æ½µÁÙÑÌ»¨»ý·Ö²»×㣬ÎÞ·¨Éϰñ! updFireworksScore=%s < billboardNeedScore=%s(RVR=R>R;tDef_FC_FireworksRR?RRRˆRtDef_PPAct_FireworksRR(R R!R RRR)t
GetFuncCfgtPlayerBillboardtUpdatePlayerBillboardRtDef_BT_FCCostGoldR( R    t    itemIndextclientBuyCountt fireworksDictRJt canBuyIDListtfireworksIndextfireworksBuyCounttfireworksScoreListtaddScoretcurFireworksScoretupdFireworksScoretbillboardNeedScore((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytOnBuyFireworks=s8          
          
c
Cs tƒstjdƒtStjddiƒ}t|tƒ}|jt    |ƒgƒ}||kr‰tjd|||f|j
ƒƒtStj ddƒ}||dkr|r|j t jƒ}|j t jƒ}||}    |||    krtjd||    ||f|j
ƒƒtSntS(Ns'    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ »î¶¯Î´¿ªÆô, ÎÞ·¨¹ºÂòRžisA    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨ µ±Ç°¿ÉÒÔÂòÑÌ»¨Îª %s, ÎÞ·¨¹ºÂò %s,worldLvNum=%siiÿÿÿÿs„    ÑÌ»¨¿ñ»¶ÂòÑÌ»¨  ¸ß¼¶ÑÌ»¨ËùÐèÖØÖÃRMB²»×ã, ÎÞ·¨¹ºÂò! curRMBTotal=%s,totalCanBuyCount=%s < fireworksBuyCount=%s + clientBuyCount=%s(RVR R™tFalseR=R>R;RŸRR?R9R¡RRR'R(R*(
R    R¥R¦R§RJR¨t buyOneNeedRMBR›RªttotalCanBuyCount((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pytIsCanBuyFireworkscs&      #
    (#t__doc__RfR RR=R RiRrRxRRRdR¢trangeR<RŸRBtDef_FC_RechargeRankR RRRRVR;RaRqRRˆR|R‹R±RRR°R´(((ssE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFairyCeremony.pyt<module>s:                
    
    )    )            
                 &        &