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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
¤9gc@s*dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZd„Zd„Zd„Zd„Zdeeed„Zd    „Zd
„Zd „Zdd „Zddd „Zd„ZdS(sVersion = 2018-07-12 16:50iÿÿÿÿNcCsvt|ƒ}|srtjjtjiƒ}t|ƒ|jtjƒrrt|t    j
dt t t ƒt |ƒqrndS(Ni( t!__CheckPlayerFeastWeekPartyActiont
PyGameDatatg_operationActionDicttgett ShareDefinet"OperationActionName_FeastWeekPartytSyncFeastWeekPartyInfot ActKey_StatetAddFeastWeekPartyActionCnttChConfigtDef_WPAct_LogintFalsetSyncFeastWeekPartyPlayerInfo(t    curPlayertisResettactCostRebateInfo((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pytOnLogin%s 
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertiR ((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyt%RefreshOperationAction_FeastWeekParty1s cCs’|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j dt
j ƒ}|j    t
j dt
j ƒ}||krÙtjd||jƒƒ|rÕt|tƒndS|rït||ƒntjdƒ|jt
j ƒtjd||||f|ƒtj|t
j |t
j ƒtj|t
j |t
j ƒ|rŽt|tƒt|ƒt|ƒntS(Nis*½ÚÈÕѲÀñ»î¶¯ID²»±ä£¬²»´¦Àí£¡playerActID=%ss    ½ÚÈÕѲÀñ»î¶¯ÖØÖÃ!sB½ÚÈÕѲÀñ±ä¸ü! state=%s,actID=%s,cfgID=%s,playerFeastWeekPartyID=%s(t GetPlayerIDRRRRRRt    ActKey_IDt ActKey_CfgIDtNomalDictGetPropertyR    tDef_PDict_WeekPartyActIDtDef_PDictType_FeastWeekPartytDef_PDict_FeastWeekPartyIDRtDebugLogtCheckFeastWeekPartyActionCnttTruet__SendFeastWeekPartyMailtClearNomalDictt PlayerControltNomalDictSetPropertyR RR (R tplayerIDtactFeastWeekPartyInfotstatetactIDtcfgIDt playerActIDtplayerFeastWeekPartyID((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyR;s0     
 cCs~tjd|ƒ}|sdS|jƒ}|s2dSi}xÛt|ƒD]Í\}}x¾|D]¶}tjd|ƒ}|s|qXn|jƒ}    |jtj||fdtjƒ}
|jtj    ||fdtjƒ} |
| |    } | sìqXnt
||| ƒ} t j || ƒqXWqEWx |j ƒjƒD]ù\}}|jƒ}|jƒxÔt|ƒD]Æ\}}|jtj|dtjƒ}||kr•qXn|jtj|dtjƒ}|td|ƒ@rÍqXn||}x1|D])\}}}|j|dƒ|||<qÞWtj|||ƒqXWq)W|s0dSg|jƒD]\}}||dg^q=}tjd|jƒg|ƒdS(NtActFeastWeekPartytFeastWeekPartyiiitSecondWeekReward2(t IpyGameDataPYtGetIpyGameDatat GetTemplateIDt    enumeratetGetSingleTimesRR    t Def_PDict_FeastWeekPartyCurTimesRt Def_PDict_FeastWeekPartyGotTimest__GetAwardItemRt AddDictValuet GetPointAwardtitemstkeystsorttDef_PDict_FeastWeekPartyPointt#Def_PDict_FeastWeekPartyAwardRecordtpowRtDataRecordPacktDR_FeastWeekPartyPointR&t SendMailByKeytGetID(R R,tactBossIpyDatattemplateIDListt totalItemDicttdayttidListttidtipyDatat singleTimestcurTimestgotTimest    canGotCnttitemDictt    awardDictt    pointListRtpointtcurPointt awardRecordtitemListtitemIDtitemCnttisBindt totalItemList((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyR$]sN   %% 
 
.icCsž|s
dStjjtjiƒ}|jtjdƒ}|jtjdƒ}|sVdS|s`dStjd|ƒ}    |    s|dS|    j    ƒ}
|jtj
dƒ} | t |
ƒkr³dS|
| } d} x(| D] }|d|krÊ|} PqÊqÊW| sødStjd| ƒ}|sdS|j ƒ}|j tj| | fdtjƒ}|r|dkr]|nt|||ƒ}|dkr€dS||}n&| r¤||kr¤dSt||ƒ}||}|dkrÍdStj|tj| | f|tjƒ|jƒ}|||||jƒ}|j tj| dtjƒ}||}tj|tj| |tjƒtjd| | ||fƒ|ršt|| | ƒntS(sÔö¼Ó½ÚÈÕѲÀñÏà¹Ø»î¶¯Íê³É´ÎÊýNiR/idR0sR   Ôö¼Ó½ÚÈÕѲÀñÏà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s,addPoint=%s(RRRRRRRR2R3R4tActKey_DayIndextlent GetTotalTimesRR    R7RtminR&R'R6tGetPointR?RR!R R#(R tactionIDtaddCnttisAddt isCompatibletisSyncR)R*R,RFRGtdayIndext
dayTidListtfindTidRKRLt
totalTimesRNtupdTimest
realAddCntRMtaddPointRUtupdPoint((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyRŠsd 
  %%  
 & 
 cCs>|jƒjtjƒ}xit|jƒƒD]U}|j|ƒ}|jƒrRq+n|jtj    ƒ}t
|t j |t d|ƒq+Wtjƒ}xft|jƒƒD]R}|j|ƒ}tj|t j|ƒr£t
|t j|jƒt d|ƒq£q£Wtjddƒ}    x˜td|    dƒD]ƒ}
|jt j|
dƒ} | sJqntj| ƒ} tjƒj| ƒ} | szqn| jƒ}t
|t j |t d|ƒqWt
|t j!dt t |ƒ|jt j"ƒ}t
|t j#|t t$|ƒt
|t j%t&j'|ƒt t$|ƒt
|t j(t)j*|ƒt t$|ƒdS(NRet
RuneUnlockiii(+tGetItemManagertGetPackRtrptPettrangetGetCounttGetAttIsEmptyt GetUserAttrtDef_IudetPet_NPCIDRR    t Def_WPAct_PetR R2tIPY_DataRt GetDogzCounttGetDogzByIndexRtGetDictValueByBittDef_PDict_DogzFightStatetDef_WPAct_Dogzt    GetDogzIDt
GetFuncCfgRtDef_PDict_Rune_Datat ItemControlert GetRuneItemIDt GetGameDatatGetItemByTypeIDt GetItemColortDef_WPAct_RuneR
t!Def_Player_Dict_TrialTower_PassLVtDef_WPAct_TowerR#tDef_WPAct_StonetOperate_EquipStonetGetTotalStoneLVtDef_WPAct_GodWeapontPlayerGodWeapontGetGodWeaponTotalLV(R Ret petDataPackt petDataIndextpetItemtpetNPCIDt
ipyDataMgrRRLt runeHoleCnttholeNumtruneDatat
runeItemIDtitemDatat    itemColortpasslv((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyR"Ås:   )  %%c Csktj|dƒ}tjd|ƒ}|s.dS|jƒ}|jtj||fdtjƒ}|jtj    ||fdtjƒ}|||kr˜dSt
||ƒ}t |ƒ}t j |tj|ƒ}    ||    krëtj|dƒdS||}
tj|tj    ||f|
tjƒx9|jƒD]+\} } tj|| | dtjgƒq(Wt|||ƒdS(sÁìÈ¡½ÚÈÕѲÀñ»î¶¯½±ÀøiR0NtGeRen_chenxin_998371(RtToIntDefR2R3R6RR    R7RR8R9R]t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR&t
NotifyCodeR'R<R‚tGivePlayerItemR ( R RIt
templateIDRLRMRNRORRt    needSpacet    packSpacet newGotTimesRXRY((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pytGetFeastWeekPartyActionAwardìs* %%  
&#cCs#tj|dƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sb| rfdSt    j
d|ƒ}|s‚dS|j t j |dt jƒ}||kr±dS|jƒj|iƒ}|jƒ}    |    jƒ||    krïdS|    j|ƒ}
|j t j|dt jƒ} | td|
ƒ@rKtjd||fƒdS||} t| ƒ} tj|tj| ƒ}| |kr™tj|dƒdStj|t j|| td|
ƒBt jƒx6| D].\}}}tj|||dtjgƒqÍWt ||ƒt!j"|||ƒdS(NiR/is2 ÁìÈ¡½ÚÈÕѲÀñ»ý·Ö½±Àø£¬ ÒÑÁìÈ¡ day=%s, getPoint=%sRœ(#RRRRRRRRRR2R3RR    R?RR;R=R>tindexR@RAtLogR]RžRŸR R¡R&R¢R'R‚R£R RBRC(R RItgetPointR)R*R,RFRUtpointAwardDictRStgetIndexRVRWR¥R¦RXRYRZ((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pytGetFeastWeekPartyPointAward sD  
 
  -# cCs\i}xO|jƒD]A\}}}| s| r6qn|j|dƒ||||<qW|S(Ni(t    GetRewardR(R RLttimesRRRXRYtisbind((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyR91s "cCs\tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdS|j    ƒ}|s†dS|dkr´|t
|ƒkr¨dS|g}nt t
|ƒƒ}t j ƒ}    g|    _xX|D]P}
t jƒ} |
| _|jtj|
dtjƒ| _|jtj|
dtjƒ| _g| _xÃ||
D]·} |dkry| |kryqUntjd| ƒ} | s—qUnt jƒ}| |_|jtj|
| fdtjƒ|_|jtj|
| fdtjƒ|_| jj|ƒqUWt
| jƒ| _ |    jj| ƒqâWt
|    jƒ|    _!t"j#||    ƒdS(NiR/iÿÿÿÿR0($RRRRRRRR2R3R4R]RrtChPyNetSendPackttagMCFeastWeekPartyPlayerInfot DayInfoListt tagMCFeastWeekPartyDayPlayerInfotDayIndexRR    R?RtPointR@t AwardRecordtTaskListttagMCFeastWeekPartyTaskInfot
TemplateIDR7tCurTimesR8tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R RIR¤R)R*R,RFRGt syncDayListtpackDatatcdayttiemInfottIDttipyDatattaskInfo((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyR ;sP              ""         ((cCs‚tjjtjiƒ}|jtjdƒ}|jtjdƒ}|sLdStjd|ƒ}|shdS|j    ƒ}|s~dS|j
ƒ}t j ƒ}|j ƒ|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_g|_g}xt|ƒD] \}    }
t jƒ} |
| _t|
ƒ| _x*|
D]"} | |krM|j | ƒqMqMWg| _!x€|j|    iƒj"ƒD]f\} }xW|D]O\}}}t j#ƒ}||_$||_%||_&| |_'| j!j |ƒq¨Wq•Wt| j!ƒ| _(|jj | ƒqWt|jƒ|_)g|_*x|D]} tjd| ƒ}|s|t+j,d| ƒqGnt j-ƒ}| |_.|j/ƒ|_0|j1ƒ|_2|j3ƒ|_4|j5ƒ|_6g|_7x]|j8ƒD]O\}}}t j#ƒ}||_$||_%||_&d|_'|j7j |ƒqãWt|j7ƒ|_9|j*j |ƒqGWt|j*ƒ|_:t;j<||ƒdS(NiR/R0s    ½ÚÈÕѲÀñÄ£°å±íÕÒ²»µ½Ä£°å%s(=RRRRRRRR2R3R4R;R²ttagMCFeastWeekPartyInfotCleart GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVR´R5ttagMCFeastWeekPartyDayInfot TemplateListR]tActCntR¾t    PItemInfoR<ttagMCFeastWeekPartyItemtItemIDtItemCnttIsBindt    NeedPointtPCounttDayCntt
ActionInfoRtErrLogttagMCFeastWeekPartyActionR»t GetActionTypet
ActionTypeR^t
TotalTimesR6t SingleTimesR`R·tItemInfoR¯RÀtTCountRÁRÂ(R R)R*R,RFRGR¬tactInfoRJRIt
dayActListtdayInfoRKRTRWRXRYRZt    awardItemRLttInfo((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyRis„   
               %                                                (t__doc__R RR    R2R&R‚R²R‹RBRŽRÁRRRžRRRR$R#R RR"R¨R®R9R R(((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastWeekParty.pyt<module>s2                       
    "    -;    '        &
.