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
Xºhc@seddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZeddƒ\ZZd„Zd„Zd„Zd„Zd„Zd    d
„Zd „Zd „Zd „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„Z.d„Z/d„Z0d„Z1d„Z2gd„Z3d „Z4d!„Z5d"„Z6d#„Z7d$„Z8e$d%„Z9d&„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.pytOnWeek0s  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.pytOnDayIsN 
 
   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    Cs5|s
dSd}d}|rœt|ƒ\}}t|tjƒ}|rjtdt||d||ƒƒn ||d}t|tj||ƒ||}nt|tjƒ}t|tj||ƒt|||ƒt    j
|tj |ƒt j |tj|ƒt|ƒtjd||||f|jƒƒdS(Niis=Ôö¼Ó»îÔ¾¶È,addValue=%s,multiple=%s,addExtraPoint=%s,isLVUp=%s(t__GetActionAddPerRRR tmaxRlR
Rt__AddCanCostActivityPointtPlayerTongTianLingtAddTongTianTaskValuetTTLTaskType_Activityt PlayerActTasktAddActTaskValuetActTaskType_ActivityR"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|?s 
 
!
 
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.pyR~Ms
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"js 
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&t
NotifyCodet 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.pytGetActivityAwardzsF         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+*s c    Cs‚tjƒj|ƒ}|j}|j}tjd|ƒ}|sCdSt|tj    |ƒ}|j
tj |ƒ}|j
tj |ƒ}    ||    |dkrªtj dƒdS|dkr—|jƒ}
|jƒ} |jƒ} |
sè| rtj d|
| fƒdS||
kr tj dƒdSt| ƒ|kr<| |n| d} tj|| | tji|d6|d6ƒsvdStj|tj ||d    ƒn×|d    krj|jƒ}|jƒ}| sÉ| rÍdS|    |krêtj d
ƒdS|jƒjtjƒ}tj||d    ƒ\}}}}|s-dStj|||d    td ƒtj|tj ||    d    ƒndSt ||gƒdS( NRÒisÊ£Óà´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡s1ÎÞ·¨¹ºÂò! dayBuyTimesLimit=%s,buyNeedMoneyList=%ss ½ñÈÕ¹ºÂò´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡iÿÿÿÿR5Rúis(½ñÈÕʹÓÃÎïÆ·Ôö¼Ó´ÎÊýÒÑ´ïÉÏÏÞ£¬²»¿ÉÔö¼Ó£¡tDailyActionCnt(!R=tGetPlayerManagertGetPlayerByIndextActionIDtAddTypeRR“RRR-R#R.R/R>tGetDayBuyTimest GetMoneyTypetGetBuyNeedMoneyR¶R&tPayMoneytDef_Cost_BuyDailyActionCntR'tGetDayItemAddTimest GetDayItemIDtGetItemManagertGetPackRJR¹R·tGetItem_FromPack_ByID_ExExt
ReduceItemRmR (tindext
clientDatattickR R5taddTypeRRùRúRûtdayBuyTimesLimitt    moneyTypetbuyNeedMoneyListt buyNeedMoneytdayItemAddTimesLimitt    dayItemIDtitemPacktenought    indexListthasBindtlackCnt((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDailyActionBuyCnt9sV               &,!     !!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((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR os  
      
    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=RRR*(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=RRRRhR#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=RRt FinishCountR#RR5R>RlRRiR·tGetPackItemBindStateIndexInfoR&R RJtTYPE_Price_Gold_PapertDef_Cost_ActivityPlacetDelCostItemByBindtItemDel_ActivityPlacet__DoActivityPlaceRewardEndR[(RRRR t finishCountR<t
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#RR5R7R8R9R&R'R:RRhRlRxtGetPlayerReExpRitevaltFormulaControltGetCompileFormulatAddExpRtDef_ViewExpType_ActivityR$R%tDef_PerPointValueRL(R R<RCt    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#RR5RlRRRtGetActivityPlaceRewardCounttGetActivityPlaceRewardByIndext GetPlaceCountt GetPlaceMaxLVRURxtsortedtkeysR}R6t'Def_PDict_ActivityPlaceRewardTotalCountR=R>tGetFixedItemRewardListRtGetRandItemCountAtGetResultByRandomListtGetRandItemRewardListAtGetRandItemCountBtGetRandItemRewardListBR&R'R7R8R9R:t!Def_PDict_ActivityPlaceRewardItemt#Def_PDict_ActivityPlaceRewardItemIDtpopt&Def_PDict_ActivityPlaceRewardItemCounttitemsRºR*tPlayerBossReborntAddBossRebornActionCnttDef_BRAct_ActivityPlace(R RdRER<t countDataDictt
lvDataDictRRRt
placeCountt
placeMaxLVtlvRewardIpyDatatplayerLVtlvListRBtmaxAppointCountR¾trewardTotalCounttrewardItemDictt_t rewardIpyDataRÆt    itemCountt nextStartTimetrewardItemCountRR2tupdCount((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRL+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|tj|ƒtj|tj|ƒt|ƒdS(NsûÓлîÔ¾·ÅÖý±Àø£¬ÎÞ·¨ÁìÈ¡!isSÁìÈ¡»îÔ¾·ÅÖý±Àø: totalCount=%s,rewardCount=%s,rewardItemCount=%s,rewardItemList=%steventRš(R#RRR=R>R6RR‚R„R R&R'RltDef_PDict_ActivityCountTotalRœR»tGivePlayerItemOrMailRmt 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•s2 "
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¢ttagMCActivityPlaceInfoR9t    StartTimeR5t
PlaceCountR6t 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ôRjRÛR8R[R†RR‚RœRŸtrangeRWR0RR6R7R!RCRR
RHRORfRwR{RmRZR|R~R¡R"RËRÑRéRíRÿRRR+R$R R3R4RDRVRrRLR¥R*(((smD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>sp                             <                     
            '                           5                 :                        6              -        < j    #