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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
(qEgc@s•ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZeddƒ\ZZd„Zd„Zd„Zd„Zd„Z d    d
„Z!d „Z"d „Z#d „Z$d„Z%d„Z&d„Z'e(e(d„Z)d„Z*d„Z+e(d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1dd„Z2d„Z3d„Z4d„Z5d„Z6gd„Z7d „Z8d!„Z9d"„Z:d#„Z;d$„Z<e(d%„Z=d&„Z>d'„Z?dS((iÿÿÿÿNiicCs¾g}tjƒ}xt|jƒƒD]{}|j|ƒ}|jƒ}|sRq%n|jƒ|krjq%ntj|j    ƒ}t
||dƒ|j |j    ƒƒq%W|rºt ||ƒndS(Ni( t IpyGameDataPYtIPY_DatatxrangetGetDailyActionCounttGetDailyActionByIndext GetWeekTimestGetWeekResetTypetChConfigtDef_PDict_DailyActionWeekTimest
GetDailyIDt__SetPDictValuetappendtSyncDailyActionInfo(t    curPlayert
onWeekTypet actionIDInfot
ipyDataMgrtitipyDatatweekTimesLimittkey((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnWeek4s  c Csmtjƒ}|tjkrx™t|jƒƒD]…}|j|ƒ}tj|j    ƒ}t
||ƒ}|r~t ||dƒntj |j    ƒ}t
||ƒr.t ||dƒq.q.Wt |tj dƒt |tjdƒt |tjdƒt|ƒt|ƒ|jtjƒ}|jtjƒ}tj|tjdƒtj|tjdƒtj|tj|ƒtj|tj|ƒt|ƒng}    x½t|jƒƒD]©}|j|ƒ}t|ƒ}
|
sÓq¦n|jƒ|krëq¦n|jƒ} t |tj| dƒt |tj | dƒt |tj!| dƒ|    j"|jƒƒq¦W|    rit#||    ƒndS(Ni($RRt ShareDefinetDef_OnEventTypeExRtGetDailyQuestCounttGetDailyQuestByIndexRtDef_PDict_Activity_FinishCnttGetIDt__GetPDictValueR
tDef_PDict_Activity_AddTotaltDef_PDict_Activity_TotalPointtDef_PDict_ActivityAwardRecordt"Def_PDict_Activity_ExtraRealmPointt__CalcAwardStagetSyncDailyActivityInfotNomalDictGetPropertytDef_PDict_ActivityPlaceTodayExpt$Def_PDict_ActivityPlaceTodayExpPointt PlayerControltNomalDictSetPropertyt#Def_PDict_ActivityPlaceYestorDayExpt(Def_PDict_ActivityPlaceYestorDayExpPointtSync_ActivityPlaceInfoRRtGetMaxDayTimestGetDayResetTypeR    tDef_PDict_DailyActionDayTimest Def_PDict_DailyActionDayBuyTimest!Def_PDict_DailyActionDayItemTimesR R ( R t onEventTypeRRRRtcurPBCntttodayExpt todayExpPointRt dayTimesLimittdailyID((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDayMsN 
 
   cCsdS(N((R ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytSendDayActionMail‰scCs­|jƒ}tjƒjdƒ}|s+dS|jƒ}d}x?t|ƒD]1\}}||krfPn||krJ|}qJqJWt|tj|ƒt    j
d||fƒdS(Nis/    ÖØÐ¼ÆËã»îÔ¾½±Àø½×¶Î curStage=%s,realmLV=%s( tGetOfficialRankRRtGetDailyLivenessRewardByIndext
GetStageLVt    enumerateR
RtDef_PDict_Activity_AwardStaget    GameWorldtDebugLog(R trealmLVRt stageLVListtcurStageRtlv((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR!‘s     cCs"t|ƒt|ƒt|ƒdS(N(R"R R*(R ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnLogin¥s
 
 
icCs|j||ƒS(N(R#(R Rt defaultValue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR´scCstj|||ƒdS(N(R&R'(R Rtvalue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR
½scCsdS(N((R t
type_Pricetprice((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnPayMoneyActivityÇscCs#|jƒ}|tjkrdSdS(N(tGetGameObjTypet IPY_GameWorldt    gotPlayer(tatkObjtcurNPCt
atkObjType((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnAttackNPCActivityÖs     c Csntjd|ƒ}|sdS|jƒ}|jƒ}|jƒ}|sJdSd}|rÞ|jƒtkrÃ|jƒt    j
gkrÃt |t j |ƒ}||krÛtjd|||fƒdSqÞ||||krÞdSnt j|}    t ||    ƒ}
||
||} ||
|} t||    | ƒ|dkrZ|| 7}t|t j ||ƒnt|| tƒdS(Nt
DailyQuests>»îÔ¾¶È¿ÉÍê³É´ÎÊýÒÑ´ïµ½ÉÏÏÞ,activityNum=%s,curAddTotal=%s >= %s(RtGetIpyGameDataNotLogtGetTotalActiveValuetGetOnceActivitytGetOnceActivityTimetNonetGetRelatedTypet RelatedType_1t GetRelatedIDRtDailyActionID_CrossBattlefieldRRRR=R>RR
t DoAddActivitytTrue( R t activityNumt    finishCnttaddCnttdailyQuestDatatmaxActiveValuet onceActivitytonceActivityTimet curAddTotalRR1taddValuetaddPbCnt((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddActivityFinishCntís6   *   
c Cs¾tjddƒ}tjddƒ\}}}}tj|ƒ\}}    |||}
||    kr§xEt|d|dƒD])} |
t| d|d||ƒ7}
qwWnt||
tt    ƒdS(NtImmortalDomainActivePointiii(
Rt
GetFuncCfgtGetFuncEvalCfgt    PlayerPettGetPetLearnSkillRtminRZtFalseR[( R tbefLVtaftLVt perLVAddPointt skillTypeIDtperAddLVtaddPointtmaxPointtlearnSkillListtpassiveSkillListRdRB((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytDoAddActivityByLVs *c    Cs˜tjddƒ\}}}}||kr.dS|jƒ}d}x>td|dƒD])}|t|d|d||ƒ7}qTWt||ttƒdS(NRgiiii(RRitGetLVRRlRZRmR[(    R tskillIDRqRrRsRttcurLVRdRB((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddActivityByLVOnLearnSkill s  'c    Csn|s
dSd}d}|rœt|ƒ\}}t|tjƒ}|rjtdt||d||ƒƒn ||d}t|tj||ƒ||}nt|tjƒ}t|tj||ƒt|||ƒt    j
|tj |ƒt j |tj|ƒtj|tj|ƒtj|d|gƒt|ƒtj|ƒtjd||||f|jƒƒdS(Niit GetActivitys=Ôö¼Ó»îÔ¾¶È,addValue=%s,multiple=%s,addExtraPoint=%s,isLVUp=%s(t__GetActionAddPerRRR tmaxRlR
Rt__AddCanCostActivityPointtPlayerActGarbageSortingtAddActGarbageTaskProgresstDef_GarbageTask_ActivitytPlayerTongTianLingtAddTongTianTaskValuetTTLTaskType_Activityt PlayerActTasktAddActTaskValuetActTaskType_ActivityR&t
NotifyCodeR"t
EventShelltEventRespons_AddActivityValueR=R>t GetPlayerID(    R Rdt
isMultipletisLVUptmultiplet addExtraPointtextraPointLimitt curExtraPointt curTotalPoint((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRZ,s,8 
     cCs¹d\}}tjjtjiƒ}|s4||fS|jtjƒsP||fStjd|jtjdƒƒ}|s||fS|j    ƒ|j
ƒkr£||fS|j ƒ|j ƒfS(Niit ActRealmPoint(ii( t
PyGameDatatg_operationActionDicttgetRtOperationActionName_RealmPointt ActKey_StateRtGetIpyGameDatat ActKey_CfgIDRxt
GetLVLimitt GetMultiplet GetPointLimit(R RR‘tactRealmPointInfotactRealmPointIpyData((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR}Es 
 
!
 
cCsÅt|tjƒ}|r1ttj||ƒ}nItjddƒ}|rp||krptjd||fƒdS||}t    |tj|ƒtjddƒ}||krÁt
j |dt ƒndS(Nt ActivityPlaceis7¿ÉÏûºÄµÄ»îÔ¾µã³¬³öÉÏÏÞ£¬²»Ôö¼Ó! curPoint=%s,maxPoint=%sitcanstart( RRt#Def_PDict_ActivityCanCostTotalPointRltDef_UpperLimit_DWordRRhR=R>R
RŠtEventRespons_ActivityPlaceR[(R RdRŽtcurPointtupdPointRtt    costPoint((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRSs
 cCsPt|tjƒ}||kr"dS|sLt|tj||ƒt|ƒntS(N(RRR£R
R"R[(R R¨t isOnlyCheckR¦((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytCostActivityPointes    cCs“tjƒ}|jƒt|tjƒ|_t|tjƒ|_t|tj    ƒ|_
t|tj ƒ|_ t|tj ƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCDailyActivityInfoListtClearRRRtCurValueR<t
StageIndexRt AwardRecordR£t
RealmPointR t
ExtraPointt NetPackCommont SendFakePack(R tsendPack((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR"ts 
c
Cstjƒjƒ}|dks*||krEtjd||fƒdSt|tjƒ}|td|ƒ@rtj    d|ƒdStjƒj
|ƒ}|j ƒ}t|tj ƒ}||krÜtj    d|||fƒdSt|tj ƒ}|jƒ}|jƒ}    |jƒ}
|t|ƒksH|t|    ƒksH|t|
ƒkrLdS||} |    |} |
|} tj|tjƒ}d|krŸtj|dƒdStj|| | dtjgƒ|d|>B}t|tj|ƒt|ƒtjd|||||fƒtj||ƒdS(    Nis$»îÔ¾¶È½±ÀøË÷Òý²»ºÏ·¨,index=%s,Len=%sisÒѾ­ÁìÈ¡¹ý¸Ã»îÔ¾¶È½±Àø,index=%ss8Áì½±»îÔ¾¶È²»×ã,index=%s,needActivity=%s,totalActivity=%sitGeRen_chenxin_998371sYÁìÈ¡»îÔ¾¶È½±ÀøOK£¡awardStage=%s, index=%s,needActivity=%s,totalActivity=%s,awardRecord=%s(RRtGetDailyLivenessRewardCountR=tErrLogRRRtpowtLogR9t GetLivenessRR<t    GetItemIDt GetItemCountt GetItemBindtlent
ItemCommontGetItemPackSpaceRJtrptItemR&R‰t ItemControlertGivePlayerItemR
R"R>RŠtEventRespons_ActivityAward(R t
awardIndext rewardCounttgetAwardRecordRt needActivityt totalActivityt
awardStaget
itemIDListt itemCntListtitemIsBindListtitemIDtitemCnttisBindt    packSpacetupdAwardRecord((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityAward„sH         6
 
 
 
    cCs:tjdi|d6|d6ttƒ}|s0dS|jƒS(NRPt    RelatedIDt RelatedTypei(RtGetIpyGameDataByConditionRmR(t relatedTypet    relatedIDR((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityNumºs&c Csõtjd|ƒ}|sdS|jƒ}|jƒ}| sB| rFdS|jƒ}|s\dS|d}t|ƒdkr‹|d\}}ndStjƒ}d|j|j    |j
||f}    t j j |    t jƒ}
|
t jd|ƒ} |
| fS(Nt DailyActioniis%d-%d-%d %02d:%02d:00tminutes(RRštGetOpenTimeDictt GetDurationtvaluesR¿R=tGetCurrentTimetyeartmonthtdaytdatetimetstrptimeRtTYPE_Time_Formatt    timedelta( R5Rt openTimeDicttdurationtallOpenTimeListt openTimeListtopenHourt
openMinutet curDateTimet openTimeStrt openDateTimet endDateTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionOpenEndTimeÃs&   
 "cCs[t|ƒ}|sdS|\}}tjƒ}||ksF||krJdS||}|jS(Ni(RòR=Ràtseconds(R5topenEndTimeInfoRðRñRîtremainDateTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionRemainSecondsÝs   
cCsÆtjd|ƒ}|sdS|tjtjgkrhtjƒjtj|ƒshtj    d|ƒdSnt
|ƒ}|j ƒ}| r’| r’dSt t |ƒ}tjd|ƒ}|oÃ|jƒ }|rØ|jƒnd}    |    r
|tjkr
tj||    ƒ r
dSd}
|râtj|} |j| ƒ} |jtj|ƒ} |jtj|ƒ}| r}| || |kr}dS|r| |nt|| || |ƒ}
|
| }tj|| |
ƒtj    d|| |
fƒnd}|r~tj|} |j| ƒ}| r!||kr!dS|r1||nt|||ƒ}||}tj|| |ƒtj    d|||fƒnt||gƒ|
p—|}|rÂ|rÂ|rÂt||||ƒntS(NRÛsÈÕ³£»î¶¯Î´¿ªÆô£¡dailyID=%sRPis?Ôö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curDayTimes=%s, updDayTimes=%ssAÔö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curWeekTimes=%s, updWeekTimes=%s( RRšRtDailyActionID_CrossReamPKRYR=t GetGameWorldtGetGameWorldDictByKeyt$Def_Notify_WorldKey_DailyActionStateR>R+RRÚRWRQRRtGetUnLockFuncIDtDailyActionID_SealDemont GameFuncCommt GetFuncCanUseRR-R#R.R/RlR&R'RR RfR[(R R5R^RR4RR\R_t
unLimitCnttfuncIDt updDayTimesRt curDayTimestcurDayBuyTimestcurDayItemTimest updWeekTimest curWeekTimestupdTimes((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCntésX  ( +
 #
 cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NRÛi(ii(RR-RRRšR+(R R5RRRR4((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionFinishCnt&s  cCsyt|tj|ƒ}|jtj|ƒ}|jtj|ƒ}tjd|ƒ}t|ƒ}t    d||||ƒS(NRÛi(
RRR-R#R.R/RRšR+R~(R R5RRRRR4((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionrRemainCnt/s  cCs;|jƒ}|jƒtjkr7|tjdƒ7}n|S(NtRuneTowerSweepBuy(t GetDayTimesR    RtDailyActionID_TowerSDRRh(RR4((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR+8s c    Csªtjƒj|ƒ}|j}|j}tjd|ƒ}|sCdSt|tj    |ƒ}|j
tj |ƒ}|j
tj |ƒ}    ||    |dkrªtj dƒdS|dkr¿|jƒ}
|jƒ} tj|| ƒ} |
| 7}
|jƒ} |jƒ}|
s| r+tj d|
|fƒdS||
krHtj dƒdSt|ƒ|krd||n|d}tj|| |tji|d6|d6ƒsždStj|tj ||d    ƒn×|d    kr’|jƒ}|jƒ}| sñ| rõdS|    |krtj d
ƒdS|jƒjtjƒ}tj ||d    ƒ\}}}}|sUdStj!|||d    t"d ƒtj|tj ||    d    ƒndSt#||gƒdS( NRÛisÊ£Óà´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡s1ÎÞ·¨¹ºÂò! dayBuyTimesLimit=%s,buyNeedMoneyList=%ss ½ñÈÕ¹ºÂò´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡iÿÿÿÿR5Ris(½ñÈÕʹÓÃÎïÆ·Ôö¼Ó´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡tDailyActionCnt($R=tGetPlayerManagertGetPlayerByIndextActionIDtAddTypeRRšRRR-R#R.R/R>tGetDayBuyTimestGetBuyTimesPrivilegeIDt    PlayerViptGetPrivilegeValuet GetMoneyTypetGetBuyNeedMoneyR¿R&tPayMoneytDef_Cost_BuyDailyActionCntR'tGetDayItemAddTimest GetDayItemIDtGetItemManagertGetPackRJRÂRÀtGetItem_FromPack_ByID_ExExt
ReduceItemRmR (tindext
clientDatattickR R5taddTypeRRRRtdayBuyTimesLimittbuyTimesPrivilegeIDt vipBuyCountExt    moneyTypetbuyNeedMoneyListt buyNeedMoneytdayItemAddTimesLimitt    dayItemIDtitemPacktenought    indexListthasBindtlackCnt((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDailyActionBuyCntGs\            
    &,!     !!cCsþtjƒ}|jƒg|_|r+|ntj}x¡|D]™}tjƒ}|jƒ||_t|t    j
|ƒ|_ t|t    j |ƒ|_ t|t    j|ƒ|_t|t    j|ƒ|_|jj|ƒq;Wt|jƒ|_tj||ƒdS(N(R«ttagMCDailyActionCntR­t
ActionInfoRtDailyActionIDListttagMCDailyActionInfoRRRR-t DayFinishCntR.t DayBuyTimesR/t DayItemTimesRt WeekFinishCntR R¿tCountR³R´(R t syncNumListRµR\t activityInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR €s  
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(RÚt RelatedType_2Rf(R tmapIDRtaddCountR\((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivityšscCs#tjƒj|ƒ}t|ƒdS(N(R=RRR*(R!R"R#R ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnActivityPlaceQuery©s
cCs±tjƒj|ƒ}tjddƒ}|jtjƒ}|jtjƒ}|||}|dkrƒtj    d|||fƒdStjddƒ}|jtj
ƒ}    |    |}
t ||
ƒ} | dkrçtj    d|    |fƒdS|| } tj    d| ||| fƒ|| } t || ƒt j|tj| ƒ|s“ttjƒƒ}t j|tj|ƒt j|tjdƒtj    d|ƒntj|d    ƒt|ƒdS(
NR¡iis[»îÔ¾·ÅÖý±ÀøÀۼƴÎÊýÒÑ´ïÉÏÏÞ£¬ÎÞ·¨Æô¶¯!remainCount=%s + rewardCount=%s >= maxRewardCount=%sisB¿ÉÓûîÔ¾²»×㣬ÎÞ·¨Ìí¼Ó´ÎÊýÆô¶¯!canUseActivityPoint=%s,costPoint=%ssOÌí¼Ó»îÔ¾·ÅÖôÎÊý: startCount=%s,rewardCount=%s,remainCount=%s,updRemainCount=%ss"    Ã»ÓÐÊ£Óà´ÎÊý£¬¸üÐÂÆô¶¯Ê±¼ä: %ststart(R=RRRRhR#Rt"Def_PDict_ActivityPlaceRemainCountt"Def_PDict_ActivityPlaceRewardCountR>R£RlRªR&R'tintttimet Def_PDict_ActivityPlaceStartTimetDef_PDict_ActivityPlaceExpCountRŠR¥R*(R!R"R#R tmaxRewardCountt remainCountRÇtmaxCanStartCountR¨tcanUseActivityPointtpointCanUseCountt
startCounttupdRemainCounttcostPointTotaltcurTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnActivityPlaceStart´s<     
 
    
 
cCs>dStjƒj|ƒ}|j}|jtjƒ}|sKtjdƒdSt||ƒ}|sddSt    j
ddƒ\}}|}t j |||ƒ\}    }
} ||
| } |} | dkrù|| }t j|tj|tjƒsìdS| | 8} n| dkr't j||    |
| | tjƒnt||dtƒdS(Ns#ûÓÐÊ£Óà»îÔ¾·ÅÖôÎÊý£¬ÎÞ·¨¿ìËÙÍê³É!R¡iitisQuick(R=RRt FinishCountR#RRDR>RlRRiRÀtGetPackItemBindStateIndexInfoR&RRJtTYPE_Price_Gold_PapertDef_Cost_ActivityPlacetDelCostItemByBindtItemDel_ActivityPlacet__DoActivityPlaceRewardEndR[(R!R"R#R t finishCountRKt
costItemIDtcostGoldParpert costItemCounttcostItemIndexListtbindCntt    unBindCntR1t delItemCounttcostGoldParperTotal((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnActivityPlaceQuickFinishãs0      
  "cCs¤|jtjƒ}|dkr"dSttjƒƒ}|jtjƒ}|s|}tj|tj|ƒtj|tjdƒnt    j
ddƒ}t    j
ddƒ}||}||}t ||ƒ}|jtjƒ}||}    |dkrý|    |9}    nt |    ||ƒ}
|
|} | dkr„tj|tj|| ƒ|j ƒ} tj |ƒ} d
\}}t    jddƒ}x1|D])\}}| |kr€||}}Pq€q€W|sÆ|d\}}nttjd    ||ƒƒ|| }tj|ƒ}|j|tjƒ}|jtjƒ}|jtjƒ}|tj||}tj|tj|tjƒtj|tj|tjƒn|dkr t||ƒndS( NiR¡itActivityPlaceExpitiiÿÿÿÿsActivityPlaceExp_%s(is(R#RRDRFRGRHR&R'RIRRhRlRxtGetPlayerReExpRitevaltFormulaControltGetCompileFormulatAddExpRtDef_ViewExpType_ActivityR$R%tDef_PerPointValueR[(R RKRRt    startTimet needSecondst
expSecondstpassTimetendCounttexpCountt maxExpCounttcanGetExpCountt addExpCountRBtreExptexpLVt    expFormatt lvFormatListteLVteFormattaddExpt playerControlR2R3t todayTotalExp((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytProcessActivityPlacesV 
 
 
 
     $  cCsË|jtjƒ}t||ƒ}|dkr1dSi}i}tjƒ}x^t|jƒƒD]J}|j|ƒ}|j    ƒ}    |j
ƒ}
|    rœ|||    <q\|||
<q\Wd} |j ƒ} t |jƒƒ} x(| D] }| |krÕ||} PqÕqÕW| s|| d} nt|ƒ}|jtjƒ}|jtjƒ}i}tjd||||fƒxmt|ƒD]_}d}|d8}|d7}||krÂ|d7}||krÂ||}qÂn|sÑ| }nx4|jƒD]&\}}|j|dƒ|||<qÞWxRt|jƒƒD]>}tj|jƒƒ}|r|j|dƒd||<qqWxRt|jƒƒD]>}tj|jƒƒ}|rp|j|dƒd||<qpqpWtjd||||fƒqpWtj|tj|ƒtj|tj|ƒtj|tj|ƒ|dkrsttjƒƒ}tj|tj|ƒtj|tj dƒtjd|ƒn|jtj!ƒ}x…t|ƒD]w}|jtj"|ƒ}||krÀq’n|j#|ƒ}|jtj$|ƒ}||}tj|tj$||ƒq’Wxn|j%ƒD]`\}}tj|tj"||ƒtj|tj$||ƒ|d7}tj|tj!|ƒqW|r—tj&|dƒnt'j(|dƒt)|ƒt*j+|tj,|ƒdS(    NiiÿÿÿÿsN½áËã·ÅÖûîÔ¾½±Àø: remainCount=%s,rewardCount=%s,endCount=%s,maxAppointCount=%sis9    remainCount=%s,rewardCount=%s,rewardTotalCount=%s, %ss"    »¹ÓÐÊ£Óà´ÎÊý£¬¸üÐÂÆô¶¯Ê±¼ä: %stActivityPlaceQuickFinishOKt cangetreward(-R#RRDRlRRRtGetActivityPlaceRewardCounttGetActivityPlaceRewardByIndext GetPlaceCountt GetPlaceMaxLVRURxtsortedtkeysR~REt'Def_PDict_ActivityPlaceRewardTotalCountR=R>tGetFixedItemRewardListR—tGetRandItemCountAtGetResultByRandomListtGetRandItemRewardListAtGetRandItemCountBtGetRandItemRewardListBR&R'RFRGRHRIt!Def_PDict_ActivityPlaceRewardItemt#Def_PDict_ActivityPlaceRewardItemIDtpopt&Def_PDict_ActivityPlaceRewardItemCounttitemsR‰RŠR¥R*tPlayerBossReborntAddBossRebornActionCnttDef_BRAct_ActivityPlace(R RsRTRKt countDataDictt
lvDataDictRR!Rt
placeCountt
placeMaxLVtlvRewardIpyDatatplayerLVtlvListRBtmaxAppointCountRÇtrewardTotalCounttrewardItemDictt_t rewardIpyDataRÏt    itemCountt nextStartTimetrewardItemCountRR@tupdCount((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR[>sš        
 
 
 
     !!!  
 
 
c    Csæ|jtjƒ}|s)tjdƒdS|jtjƒ}d}g}xœt|ƒD]Ž}|jtj|ƒ}|jtj|ƒ}| s”| r˜Pn|j    |||gƒt
j |tj|dƒt
j |tj|dƒqTWt
j |tjdƒt
j |tjdƒt |jtj ƒ|tjƒ}t
j |tj |ƒtjd||||fƒtj||ddtigƒtj|dƒtj|tj|ƒtj|tj|ƒtj|tj|ƒt|ƒdS(NsûÓлîÔ¾·ÅÖý±Àø£¬ÎÞ·¨ÁìÈ¡!isSÁìÈ¡»îÔ¾·ÅÖý±Àø: totalCount=%s,rewardCount=%s,rewardItemCount=%s,rewardItemList=%steventR¡t    getreward(R#RR‘R=R>RERR’R”R R&R'RltDef_PDict_ActivityCountTotalR¤RÃtGivePlayerItemOrMailRmRŠR¥R€RtDef_GarbageTask_ActivityPlacet PlayerSuccesstDoAddSuccessProgressRtSuccType_ActivityPlacet PlayerGubaotAddGubaoItemEffValuetGubaoEffType_ActivityPlaceR*(    R R§RÇt isAppointItemtrewardItemListRRÏR¥t
totalCount((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityPlaceRewardªs6 "
cCsWg}|jtjƒ}xSt|ƒD]E}|jtj|ƒ}|jtj|ƒ}|j||gƒq%Wtjƒ}|jtj    ƒ|_
|jtj ƒ|_ |jtj ƒ|_t|ƒ|_t|jƒ|_|jtjƒ|_|jtjƒ|_|jtjƒ|_|jtjƒ|_|jtjƒ|_tj||ƒdS(N(R#RR‘RR’R”R R«ttagMCActivityPlaceInfoRHt    StartTimeRDt
PlaceCountREt RewardCounttstrt
RewardInfoR¿t    RewardLenR$tTodayExpR%t TodayExpPointR(t YestordayExpR)tYestordayExpPointR«t
TotalCountR³R´(R trewardItemInfoR§RRÏR¥t    placeInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR*Ðs& (@RR«R³RR=RÀRJR&RÃRR•RýRŠt    PlayerTJGRjRRäRGRjR–R€RƒR†R®R±trangeRWR>RR6R7R!RCRR
RHRORfRwR{RmRZR}RRªR"RÔRÚRòRöRR    R
R+R2R RARBRSReRR[R·R*(((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>sx                                 <                     
            '                           6                 =                        9              /        < l    &