hxp
昨天 f208dfcb9b5f19d7be220e158d41facf1f39e841
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
ˆ8hc@s}ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZeddƒ\ZZd„Zd„Zd„Zd„Zd„Zd    d
„Zd „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„Z.d„Z/dd„Z0d„Z1d„Z2d„Z3d„Z4gd„Z5d „Z6d!„Z7d"„Z8d#„Z9d$„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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnWeek2s  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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDayKsN 
 
   cCsdS(N((R ((smD:\SG_ServerCode\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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR!s     cCs"t|ƒt|ƒt|ƒdS(N(R"R R*(R ((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnLogin£s
 
 
icCs|j||ƒS(N(R#(R Rt defaultValue((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR²scCstj|||ƒdS(N(R&R'(R Rtvalue((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR
»scCsdS(N((R t
type_Pricetprice((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnPayMoneyActivityÅscCs#|jƒ}|tjkrdSdS(N(tGetGameObjTypet IPY_GameWorldt    gotPlayer(tatkObjtcurNPCt
atkObjType((smD:\SG_ServerCode\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((smD:\SG_ServerCode\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((smD:\SG_ServerCode\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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddActivityByLVOnLearnSkills  'c    Csa|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|ƒ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"R=R>t GetPlayerID(    R Rdt
isMultipletisLVUptmultiplet addExtraPointtextraPointLimitt curExtraPointt curTotalPoint((smD:\SG_ServerCode\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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR}Bs 
 
!
 
cCs‘t|tjƒ}|r1ttj||ƒ}nItjddƒ}|rp||krptjd||fƒdS||}t    |tj|ƒdS(Nt ActivityPlaceis7¿ÉÏûºÄµÄ»îÔ¾µã³¬³öÉÏÏÞ£¬²»Ôö¼Ó! curPoint=%s,maxPoint=%s(
RRt#Def_PDict_ActivityCanCostTotalPointRltDef_UpperLimit_DWordRRhR=R>R
(R RdRŒtcurPointtupdPointRt((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRPs
cCsPt|tjƒ}||kr"dS|sLt|tj||ƒt|ƒntS(N(RRR R
R"R[(R t    costPointt isOnlyCheckR¢((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytCostActivityPoint^s    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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR"ms 
c
Cs tjƒ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ƒ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 t
awardIndext rewardCounttgetAwardRecordRt needActivityt totalActivityt
awardStaget
itemIDListt itemCntListtitemIsBindListtitemIDtitemCnttisBindt    packSpacetupdAwardRecord((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityAward}sF         6
 
 
 
    cCs:tjdi|d6|d6ttƒ}|s0dS|jƒS(NRPt    RelatedIDt RelatedTypei(RtGetIpyGameDataByConditionRmR(t relatedTypet    relatedIDR((smD:\SG_ServerCode\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((smD:\SG_ServerCode\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((smD:\SG_ServerCode\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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCntásX  ( +
 #
 cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NRÖi(ii(RR-RRR˜R+(R R5RRýRR4((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionFinishCnts  cCsyt|tj|ƒ}|jtj|ƒ}|jtj|ƒ}tjd|ƒ}t|ƒ}t    d||||ƒS(NRÖi(
RRR-R#R.R/RR˜R+R~(R R5RýRþRÿRR4((smD:\SG_ServerCode\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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR+0s 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ÿÿÿÿR5Rþis(½ñÈÕʹÓÃÎïÆ·Ôö¼Ó´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡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 R5taddTypeRRýRþRÿtdayBuyTimesLimittbuyTimesPrivilegeIDt vipBuyCountExt    moneyTypetbuyNeedMoneyListt buyNeedMoneytdayItemAddTimesLimitt    dayItemIDtitemPacktenought    indexListthasBindtlackCnt((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDailyActionBuyCnt?s\            
    &,!     !!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
ActionInfoRtDailyActionIDListttagMCDailyActionInfoR RRR-t DayFinishCntR.t DayBuyTimesR/t DayItemTimesRt WeekFinishCntR R»tCountR¯R°(R t syncNumListR±R\t activityInfo((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR xs  
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(RÕt RelatedType_2Rf(R tmapIDRýtaddCountR\((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivity’scCs#tjƒj|ƒ}t|ƒdS(N(R=R
R R*(RRRR ((smD:\SG_ServerCode\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|ƒnt|ƒdS(    NRŸiis[»îÔ¾·ÅÖý±ÀøÀۼƴÎÊýÒÑ´ïÉÏÏÞ£¬ÎÞ·¨Æô¶¯!remainCount=%s + rewardCount=%s >= maxRewardCount=%sisB¿ÉÓûîÔ¾²»×㣬ÎÞ·¨Ìí¼Ó´ÎÊýÆô¶¯!canUseActivityPoint=%s,costPoint=%ssOÌí¼Ó»îÔ¾·ÅÖôÎÊý: startCount=%s,rewardCount=%s,remainCount=%s,updRemainCount=%ss"    Ã»ÓÐÊ£Óà´ÎÊý£¬¸üÐÂÆô¶¯Ê±¼ä: %s(R=R
R RRhR#Rt"Def_PDict_ActivityPlaceRemainCountt"Def_PDict_ActivityPlaceRewardCountR>R RlR¦R&R'tintttimet Def_PDict_ActivityPlaceStartTimetDef_PDict_ActivityPlaceExpCountR*(RRRR tmaxRewardCountt remainCountRÂtmaxCanStartCountR¤tcanUseActivityPointtpointCanUseCountt
startCounttupdRemainCounttcostPointTotaltcurTime((smD:\SG_ServerCode\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=R
R t FinishCountR#RR>R>RlRRiR¼tGetPackItemBindStateIndexInfoR&RRJtTYPE_Price_Gold_PapertDef_Cost_ActivityPlacetDelCostItemByBindtItemDel_ActivityPlacet__DoActivityPlaceRewardEndR[(RRRR t finishCountREt
costItemIDtcostGoldParpert costItemCounttcostItemIndexListtbindCntt    unBindCntR,t delItemCounttcostGoldParperTotal((smD:\SG_ServerCode\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#RR>R@RARBR&R'RCRRhRlRxtGetPlayerReExpRitevaltFormulaControltGetCompileFormulatAddExpRtDef_ViewExpType_ActivityR$R%tDef_PerPointValueRU(R RERLt    startTimet needSecondst
expSecondstpassTimetendCounttexpCountt maxExpCounttcanGetExpCountt addExpCountRBtreExptexpLVt    expFormatt lvFormatListteLVteFormattaddExpt playerControlR2R3t todayTotalExp((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytProcessActivityPlaceøsV 
 
 
 
     $  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'|ƒt(j)|tj*|ƒdS(NiiÿÿÿÿsN½áËã·ÅÖûîÔ¾½±Àø: remainCount=%s,rewardCount=%s,endCount=%s,maxAppointCount=%sis9    remainCount=%s,rewardCount=%s,rewardTotalCount=%s, %ss"    »¹ÓÐÊ£Óà´ÎÊý£¬¸üÐÂÆô¶¯Ê±¼ä: %stActivityPlaceQuickFinishOK(+R#RR>RlRRRtGetActivityPlaceRewardCounttGetActivityPlaceRewardByIndext GetPlaceCountt GetPlaceMaxLVRURxtsortedtkeysR~R?t'Def_PDict_ActivityPlaceRewardTotalCountR=R>tGetFixedItemRewardListR•tGetRandItemCountAtGetResultByRandomListtGetRandItemRewardListAtGetRandItemCountBtGetRandItemRewardListBR&R'R@RARBRCt!Def_PDict_ActivityPlaceRewardItemt#Def_PDict_ActivityPlaceRewardItemIDtpopt&Def_PDict_ActivityPlaceRewardItemCounttitemsR‰R*tPlayerBossReborntAddBossRebornActionCnttDef_BRAct_ActivityPlace(R RmRNREt countDataDictt
lvDataDictRRRt
placeCountt
placeMaxLVtlvRewardIpyDatatplayerLVtlvListRBtmaxAppointCountRÂtrewardTotalCounttrewardItemDictt_t rewardIpyDataRÊt    itemCountt nextStartTimetrewardItemCountRR;tupdCount((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRU4s˜        
 
 
 
     !!!  
 
 
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|tj|ƒtj|tj|ƒtj|tj|ƒt|ƒdS(NsûÓлîÔ¾·ÅÖý±Àø£¬ÎÞ·¨ÁìÈ¡!isSÁìÈ¡»îÔ¾·ÅÖý±Àø: totalCount=%s,rewardCount=%s,rewardItemCount=%s,rewardItemList=%steventRŸ(R#RRŠR=R>R?RR‹RR R&R'RltDef_PDict_ActivityCountTotalR¡R¿tGivePlayerItemOrMailRmR€RtDef_GarbageTask_ActivityPlacet PlayerSuccesstDoAddSuccessProgressRtSuccType_ActivityPlacet PlayerGubaotAddGubaoItemEffValuetGubaoEffType_ActivityPlaceR*(    R R RÂt isAppointItemtrewardItemListRRÊRžt
totalCount((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityPlaceRewardžs4 "
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§ttagMCActivityPlaceInfoRBt    StartTimeR>t
PlaceCountR?t RewardCounttstrt
RewardInfoR»t    RewardLenR$tTodayExpR%t TodayExpPointR(t YestordayExpR)tYestordayExpPointR£t
TotalCountR¯R°(R trewardItemInfoR RRÊRžt    placeInfo((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR*Âs& (>RR§R¯RR=R¼RJR&R¿RR“RøRjRRßRARdRR€RƒR†R¦R©trangeRWR9RR6R7R!RCRR
RHRORfRwR{RmRZR}RR¦R"RÏRÕRíRñRRRR+R-R R<R=RMR_R{RUR¯R*(((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>st                               <                     
            '                           5                 =                        9              -        < j    $