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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
”×jc@s|ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZdZedd`ƒ\ZZZZZd„Zd„Zd„Zd„Z d    „Z!d
„Z"d „Z#d „Z$d „Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2dZ3dZ4d„Z5d„Z6d„Z7d„Z8d „Z9d!„Z:d"„Z;d#„Z<d$„Z=d%„Z>d&„Z?d'„Z@d(„ZAd)„ZBd*„ZCd+„ZDd,dad-„ƒYZEd.„ZFd/„ZGd0„ZHd1„ZId2„ZJd3„ZKd4„ZLd5„ZMd6d6d7„ZNd8„ZOd9„ZPd:„ZQd;„ZRd<„ZSd=„ZTd6d6d6d>„ZUd?„ZVd@„ZWdA„ZXdB„ZYdC„ZZdD„Z[dE„Z\dF„Z]dG„Z^dH„Z_dI„Z`dJ„ZadK„Zbd6ddL„ZddM„Zeefd6ddN„ZgdO„ZhdP„ZidQ„ZjdR„ZkdS„ZldT„ZmdU„ZndV„ZodW„ZpdX„ZqdY„ZrdZ„Zsd[„Ztd\„Zud]„Zvd^„Zwd_„ZxdS(biÿÿÿÿNiiicCs
|jƒS(N(t    GetValue1(trecData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockRecPlayerID5scCs |j|ƒS(N(t    SetValue1(RtplayerID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockRecPlayerID6scCs
|jƒS(N(t    GetValue2(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockRecAreaType7scCs |j|ƒS(N(t    SetValue2(RtareaType((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockRecAreaType8scCs
|jƒS(N(t    GetValue3(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockRecGroupNum9scCs |j|ƒS(N(t    SetValue3(RtgroupNum((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockRecGroupNum:scCs
|jƒS(N(t    GetValue4(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockRecBatCntToday;scCs |j|ƒS(N(t    SetValue4(Rt batCntToday((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockRecBatCntToday<scCs
|jƒS(N(t    GetValue5(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockRecBatCntTotal=scCs |j|ƒS(N(t    SetValue5(Rt batCntTotal((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockRecBatCntTotal>scCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecFightPowerRankAscCs |j|ƒS(N(R(RtfpRank((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecFightPowerRankBscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecPreJoinZoneAreaCscCs |j|ƒS(N(R(RtzoneArea((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecPreJoinZoneAreaDscCs
|jƒS(N(R (R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecPreJoinRankEscCs |j|ƒS(N(R (Rtrank((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecPreJoinRankFscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecPreEndAreaTypeGscCs |j|ƒS(N(R(Rt endAreaType((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecPreEndAreaTypeHscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecJoinAreaTypeIscCs |j|ƒS(N(R(RR    ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecJoinAreaTypeJscCs
|jƒS(N(t    GetValue6(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecJoinGroupNumKscCs |j|ƒS(N(t    SetValue6(RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecJoinGroupNumLsicCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetRecAtkTypeQscCs |j|ƒS(N(R(RtatkType((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetRecAtkTypeRscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecTagPlayerIDSscCs |j|ƒS(N(R(Rt tagPlayerID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecTagPlayerIDTscCs
|jƒS(N(R (R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetRecWinCntUscCs |j|ƒS(N(R (RtwinCnt((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetRecWinCntVscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetRecLoseCntWscCs |j|ƒS(N(R(RtloseCnt((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetRecLoseCntXscCs
|jƒS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt
GetRecFaceYscCs |j|ƒS(N(R(Rtface((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt
SetRecFaceZscCs
|jƒS(N(R((R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetRecFacePic[scCs |j|ƒS(N(R*(RtfacePic((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetRecFacePic\scCs
|jƒS(N(t    GetValue7(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetRecRealmLV]scCs |j|ƒS(N(t    SetValue7(RtrealmLV((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetRecRealmLV^scCs
|jƒS(N(t    GetValue8(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetRecLV_scCs |j|ƒS(N(t    SetValue8(RttagLV((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetRecLV`stZZBFMgrcBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „ZRS(cCs1i|_i|_d|_d|_g|_dS(Ni(t_ZZBFMgr__playerMatchDictt_ZZBFMgr__lockPlayerAreaInfot_ZZBFMgr__allotCrossServerIDt_ZZBFMgr__curZoneIDt_ZZBFMgr__curZoneServerIDList(tself((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt__init__es                     cCs|jj|dddgƒS(Ni(RJtget(RNR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetLockPlayerAreaInfopscCs|||g|j|<dS(N(RJ(RNRtzoneIDR    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetLockPlayerAreaInfosscCs|jj|dƒdS(N(RItpoptNone(RNR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytClearPlayerMatchInfouscCs|jj|gƒS(N(RIRP(RNR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetPlayerMatchInfovscCs||j|<dS(N(RI(RNRtmatchPlayerIDList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetPlayerMatchInfowscCstjtjƒ}|jƒS(N(tCrossMgrtGetFuncCrossZoneRectChConfigtDef_FBMapID_ZZBFtkeys(RNt zoneRecDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetCurServerZoneIDListyscCs|jS(N(RK(RN((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetAllotCrossServerID~scCs ||_dS(N(RK(RNtallotCrossServerID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetAllotCrossServerIDscCs|jS(N(RL(RN((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetAllotZoneID€scCstƒs dS|jS(Ni(t IsZZBFCrossRL(RN((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetCurZoneIDscCs ||_dS(N(RL(RNt    curZoneID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt SetCurZoneIDƒscCs|jS(N(RM(RN((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetCurZoneServerIDList„scCs ||_dS(N(RM(RNtcurZoneServerIDList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytSetCurZoneServerIDList…s(t__name__t
__module__RORQRSRVRWRYR`RaRcRdRfRhRiRk(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRHcs                                                     cCs(tj}|s$tƒ}|t_n|S(N(t
PyGameDatat    g_zzbfMgrRH(tmgr((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt
GetZZBFMgr‡s
         c
CsÇtjƒsdStƒ}tjƒjtjƒ}x|jƒD]\}}|j    |ƒ}xct
|j ƒƒD]O}|j |ƒ}t |ƒ}t|ƒ}t|ƒ}    |j||||    ƒqlWq>WdS(N(t    GameWorldt IsCrossServerRqt    DBDataMgrt GetGameRecMgrt GetRecTypeMgrt ShareDefinet"Def_GameRecType_ZZBFZoneLockPlayertGetRecIDKeyListt GetRecIDMgrtrangetGetCounttAtRRR RS(
tzzbfMgrtzoneLockRecMgrRRt_trecIDMgrtindexRRR    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt OnLoadPyDataŽs        cCstjƒsdSt|ƒdS(N(RrRst__ResetZoneData(RRtipyData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt OnCrossActEnd s 
cCs+tjƒsdSt|ƒtd|ƒdS(NttoZoneID(RrRsR„tSync_C2S_ZZBFCrossInfo(RRR…((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnCrossActStart§s
 
 cCsštjd|ƒtjƒ}|jtj|ƒtjt    j
ƒ}||krq|j |ƒtj t    j
|ƒntj ƒjtjƒ}|j|ƒdS(NsÖØÖÃÕ÷Õ½°Ë·½·ÖÇøÊý¾Ý! zoneID=%s(RrtLogRttGetBillboardMgrtClearBillboardRwt Def_CBT_ZZBFRZR[R\R]RTtSetFuncCrossZoneRecRuRvRxtDelDataByRecID(RRt billboardMgrR_R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR„°s    cCs@tjƒr<tƒ}x$|jƒD]}td|ƒq"WndS(NR‡(RrRsRqR`Rˆ(R~RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnReloadConfigÁs
     cCs{tjƒsdS|tkr)t|ƒnA|tkrBt|ƒn(|tkr[t|ƒn|tkrjnt    d|ƒdS(NR‡(
RrRstZZBFState_Groupt__doZZBFState_GrouptZZBFState_Battlet__doZZBFState_BattletZZBFState_Awardt__doZZBFState_AwardtZZBFState_OverRˆ(RRR…t zoneIpyDatatstate((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnCrossActStateChangeÉs         cCs"tjtjƒ}|j|gƒS(N(RZR[R\R]RP(RRR_((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetZZBFZoneRegServerIDListÚsic Csytjd||fƒ| r)| r)dS|sptjtj|ƒ\}}| sitjƒjƒ|krvdSn|}tjtjtj    ƒ}|j
tj dƒ}|s­dS|j
tj dƒ}|j
tj dƒ}tj||ƒ}|sódS|jƒ}    t|ƒ}
|r3tj||    ƒs'dS|g} n
g|    } i|d6|d6|d6|
d6} tjtj| | ƒdS(Ns0Sync_C2S_ZZBFCrossInfo toServerID=%s,toZoneID=%sitactIDRšRRtregServerIDList(RrtDebugLogRZtGetCrossActServerZoneInfoRwtActionName_ZZBFt GetGameWorldt GetServerIDt
GetActInfot ActNum_CrossRPt ActKey_Statet    ActKey_IDt ActKey_CfgIDtGetActZoneIpyDataByZoneIDtGetServerIDListRœtCheckServerIDInListtCrossMsgtSendToClientServertC2S_ZZBFCrossInfo( t
toServerIDR‡t crossServerIDRRtactInfoRšRtcfgIDR™tcfgServerIDListRžttoServerIDListtdataMsg((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRˆÞs6   
"c Cs1|d}|d}|d}|d}tƒ}|j|ƒ|j|ƒ|j|ƒtƒsedS|tkr¨tjƒjƒ}|r-||kr-t    ||ƒq-n…|r-tj
ƒ}xpt |j ƒƒD]Y}    |j |    ƒ}
tj|
ƒs÷qÍntj|
tjƒsqÍnt|
ƒt|
ƒqÍWndS(NRRšRRRž(RqRcRhRkt__checkZZBFCanCrosstZZBFState_LockRrR¢R£tSend_S2C_ZZBFLockReqtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayert GameFuncCommt GetFuncCanUseRwtGameFuncID_ZZBFtSync_ZZBFActInfotSync_ZZBFPlayerInfo( Rµt fromServerIDRRšRRRžR~tserverIDt playerManagerR‚t    curPlayer((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR®s2
 
 
 
             
cCs+tƒjƒ}tjƒjƒ}||kS(N(RqRiRrR¢R£(RžRÄ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRe%scCstƒs dStƒjƒS(Ni(ReRqRa(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetZZBFCrossServerID*s    cCsytjƒrutjtjtjƒ}|jtjdƒ}|tkrut    ƒ}x!|j
ƒD]}t |ƒq[WqundS(Ni( RrRsR¤RwR¡R¥RPR¦R”RqR`t__doZZBFDayAward(R±RšR~RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt
OnDayCross/s      cCs¬tjtjtjƒ}|jtjdƒ}|s7dS|tkr¨tƒr]tj    dƒdSt
ƒsjdSt ƒ}|j ƒ}|j ƒ}tj    dƒt||ƒndS(Nis.±¾·þ¹ýÌìʱÕ÷Õ½°Ë·½Ëø¶¨ÆÚ¼ä±¾·þÒѾ­¿ç·þËø¶¨ÁË£¡s,±¾·þ¹ýÌìʱÕ÷Õ½°Ë·½Ëø¶¨ÆÚ¼ä±¾·þÉÐδ¿ç·þËø¶¨£¡(RrR¤RwR¡R¥RPR¦R·ReRŠR¶RqRaRdR¸(R±RšR~R°RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnDay9s                  cCs™tjƒjtjƒs)tjdƒdStjddƒ}|sRtjdƒdStjƒjtj    ƒd}||kr•tjd||fƒdSt
S(Ns¸Ã·þÎñÆ÷ÔÝʱ먦·Å¼ÓÈë¿ç·þ!tZZBFJoinisÕ÷Õ½°Ë·½Î´¿ª·Å¿ç·þ¹¦ÄÜ!s-Õ÷Õ½°Ë·½Î´´ï¿ª·Å¿ç·þ¿ª·þÌì! serverDay=%s < %s( RttGetEventTrigMgrtGetValueRwt Def_CanCrossRrRŠt IpyGameDataPYt
GetFuncCfgt Def_ServerDaytTrue(tcrossServerDayt    serverDay((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR¶Os   cCstj|dtjƒƒtƒs7tj|dƒdStjtjtjƒ}|jtj    dƒ}|t
krˆtj|d|ƒdSt ƒ}|j ƒ}|j ƒ}    g}
|rñtjd|ƒ} | såtj|d|ƒdS|g}
n%tjƒ} tdd| jƒƒ}
i} tjƒjtjƒ}xƒ|
D]{}|| krZg| |<n| |}|sd}x…|jƒD]w\}}|tjkržq}n|j|ƒ}|jƒ}|sÅq}n|t|ƒkrÝq}n|j|ƒ|d7}q}Wtj|d||fƒq;x~tddt|d    ƒƒD]`}|d
|}|j|ƒ}|jtƒ}t|ƒrvq2n||kr2|j|ƒq2q2Wtj|d |t |ƒfƒq;Wi|j!ƒd 6|d 6|d6|d6}i|    d6| d6|d6}t"j#tj$||gƒdS(Ns ---------- %ss±¾·þÔݲ»ÄܼÓÈëÕ÷Õ½°Ë·½!is·ÇÕ÷Õ½°Ë·½Ëø¶¨Ãûµ¥×´Ì¬!state=%st ZZBFAreaTypes½çÓò²»´æÔÚ! %sis±¾·þ½çÓò(%s),ɾ³ý¼ÙÍæ¼ÒÊý=%siçiès±¾·þ½çÓò(%s),Ìí¼Ó¼ÙÍæ¼ÒÊý=%st
gmPlayerIDt fackPlayerCntt    serverIDAt    serverIDBRRtareaJoinPlayerDicttgmInfo(%Rrt DebugAnswertGetCurrentDataTimeStrR¶R¤RwR¡R¥RPR¦R·RqRaRdRÏtGetIpyGameDatatIPY_DataR{tGetZZBFAreaTypeCountRtRuRvtDef_GameRecType_ZZBFJoinPlayerRytFackPlayerIDMaxRzt GetOneRecDataR&RtminRÒtappendtlent GetPlayerIDR¬tSendToCrossServertS2C_ZZBFLockReq(RÆR×R    RØRÙR±RšR~R°RRt areaTypeListt areaIpyDatat
ipyDataMgrRÚtjoinPlayerRecMgrtjoinPlayerIDListt
delFackCnttfackIDR€tjoinRecRtpIDRÛRµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGM_S2C_ZZBFLockReq^sl                
  #  $(c" Cstjd||fƒtjddƒ}tjddƒ}tjƒjƒ}tjtj|t    j
ƒƒ}||dd}tjdtj |ƒƒt j ƒjtjƒt j ƒjtjƒ}i}g}    g}
tjƒ} t jƒ} tjƒ} x°t| jƒƒD]œ}| j|ƒ}|jƒ}|jƒ}|jƒ}|tjkri|j|ƒqn| j|ƒ}|rÑ|
jt j!|ƒ|gƒ|j"ƒ}||krFtj#d|||ƒqqFnu|
j|j$ƒ|gƒ||krtj#d    |||ƒqn|rF||krFtj#d
|tj |ƒƒqn|j%|ƒ}|j&t'ƒ}t(|d ƒt)|d ƒt*|ƒ}|r|||<q|    j|ƒqWxE|j+ƒD]7\}}||ks»||    kråq»n|j|ƒq»W|    rŠtjd |    ƒ|
j,d t'ƒtjd|
ƒi}x+t-|
dƒD]\}}|||d<qDWtjd|ƒx|    D]    }||kr’qzn||}|j%|ƒ}|j&ƒ}| sz| rËqznxµt| j.ƒƒD]¡}| j/|ƒ}|j0ƒ}|j1ƒ}|rÞt2|ƒdkrÞ|d |koB|dknrÞ|||<t3||ƒtjd||||fƒPqÞqÞWqzWni}xY|j4ƒD]K\}}||krÂg||<n||} || kr| j|ƒqqWi|d6|d6}!t5j6tj7|!|gƒdS(Ns;=== Õ÷Õ½°Ë·½ÇëÇó±¨ÃûËø¶¨£¡ === toCrossServerID=%s,zoneID=%sRËiiiisÀëÏß»îÔ¾¼ì²éÈÕÆÚ: %ss5ÔÚÏßÍæ¼Ò¹ÙÖ°²»×ãÎÞ·¨²ÎÓë! playerID=%s,realmLV=%s < %ss5ÀëÏßÍæ¼Ò¹ÙÖ°²»×ãÎÞ·¨²ÎÓë! playerID=%s,realmLV=%s < %ss0ÀëÏßÍæ¼Ò²»Ì«»îÔ¾ÎÞ·¨²ÎÓë! playerID=%s,offTime=%sis$ûÓнçÓò¿É²ÎÓëÍæ¼Òͳһ°´ÅÅÃû´¦Àí: %streverses Õ½Á¦ÅÅÐò: %siiÿÿÿÿs%ssAÍæ¼ÒÕ½Á¦½çÓò: playerID=%s,fpRank=%s,areaType=%s,FirstRankRange=%sRRRÚ(8RrRŠRÏRÐRZtGetSSServerMgrt GetCrossTimetChangeDatetimeToNumtChangeTimeNumToDatetimeR\tTYPE_Time_Format_YmdtChangeTimeNumToStrRtRut DelDataByTypeRwtDef_GameRecType_ZZBFBatRecordRvRáR¹tGetPlayerViewCacheMgrRßR{R|R}Rçt
GetRealmLVt
GetOffTimetRealPlayerIDStartRtFindPlayerByIDRåt PlayerControlt GetFightPowertGetOfficialRankt
DebugLogExtGetFightPowerTotalRzRãRÒR'R+R#Rytsortt    enumerateRàtGetZZBFAreaTypeByIndext GetAreaTypetGetFirstRankRangeRæRtitemsR¬RèRé("RRttoCrossServerIDt needRealmLVtneedLoginInDayst    crossTimet crossYmdTimet checkOffTimeRítplayerJoinAreaDicttnoAreaJoinPlayerIDListtplayerFightPowerListt    playerMgrt viewCacheMgrRìR‚t    viewCacheRRAtoffTimetplayerRñRt joinAreaTypeR€tplayerFPRankDictRtinfottIndexRëR    tFirstRankRangeRÚRîRµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR¸ s¨                    
   <
 
 c Cs2|d}|d}|jdiƒ}|jddƒ}|jddƒ}|jddƒ}|jddƒ}tjtjtjƒ}    |    jtjdƒ}
|    jtjdƒ} tƒ} t    j
ƒj tj ƒ} t jtjƒ}||krüg||<n||}|
tkrdS||kr\|j|ƒtjd    ||fƒt jtj|ƒni}g}| j|ƒ}x|jƒD]\}}xr|D]j}|j|gd
tƒ}|rÁq—n|jƒ}t||ƒt||ƒ| j|||dƒ| j|ƒ|||<|}tj|ƒ}|sN||krá|j|ƒqán“|tj krá|}|r|r||krt!j"||ƒ}n|rŸ|}ntj#||ƒ||krá|j|ƒt jtj|ƒqántjd |||||fƒq—Wq„W|rå|j$ƒ}|sád}tj%d ||j&ƒfƒxƒt'|j&ƒƒddd …D]b}|j(|ƒ}t)|ƒ}t*|ƒ|krqdn|tj krd|j+|ƒ|d7}qdqdWtj,|d|ƒni}x¬t'|j&ƒƒD]˜}|j(|ƒ}t)|ƒ}t*|ƒ}||kr9qún|j|ddgƒ\}}|d7}|tj kr‚t-||ƒ}n||g||<qúWxL|D]A}|j|ddgƒ\}}tj,|d|||fƒqWni| d6|
d6|d6|d6|d6|d6}t.j/tj0||gƒdS(NRRRÚRÛRÖiR×RØRÙs5¿ç·þÕ÷Õ½°Ë·½Ôö¼Ó±¨Ãû·þÎñÆ÷! zoneID=%s,fromServerID=%stfindonesMÍæ¼Ò±¨Ãû! zoneID=%s,fromServerID=%s,playerID=%s,areaType=%s,playerServerID=%ss+¿ªÊ¼É¾³ý¼ÙÍæ¼Ò! areaTypeList=%s,recCount=%siÿÿÿÿis¿ç·þ½çÓòɾ³ý¼ÙÍæ¼Ò=%ss$¿ç·þ½çÓò(%s),×î´ó¼ÙÍæ¼ÒID=%s,×ÜÊý=%sRRšRžtjoinPlayerAreaDicttneedCachePlayerIDDList(1RPRrR¤RwR¡R¥R¦R§RqRtRuRvRxRZR[R\R]R·RåRŠRŽRzR tGetRecDataByValuesRÒt
AddRecDataRR
RSRVtPlayerViewCachetFindBattleViewCacheRâtrandomtrandinttSetFackPlayerCacheServerIDR^RŸR|R{R}RRtDelRecDataByIndexRÜtmaxR¬R­tC2S_ZZBFLockRet(RµRÃRRRÚRÛRÖR×RØRÙR±RšRR~RR_RžR!R"t zoneLockRecR    tlockPlayerIDListRRtplayerServerIDRRêRïR‚t
areaGMInfot    playerCntt    maxFackID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRésª
 
      
 
       ( &     
 $cCsb|d}|d}|d}|d}tƒ}|j|ƒtjƒjtjƒ}xh|jƒD]Z\}}    |j|ƒ}
|
j    ƒ} | s–qcnt
| |    ƒt j d|||    fƒqcWx|D]}t j||ƒqÈWt jƒ} xmt| jƒƒD]Y} | j| ƒ}t j|ƒs+qntj|tjƒsFqnt|ƒt|ƒqWdS(NRRRžR!R"s3Õ÷Õ½°Ë·½Ëø¶¨Íæ¼Ò! zoneID=%s,playerID=%s,areaType=%s(RqRkRtRuRvRwRáR RzRãR'RrRŠtChPlayertSend_S2C_PlayerBaseInfoR¹RºR»R¼R½R¾R¿RÀRÁRÂ(RµRÃRRRžR!R"R~RíRR    RñRRÅR‚RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR,ns4
 
 
 
         
c2 Cs¨tjd|ƒtjƒ}|jtj|ƒgt|ƒ}|jƒt    |ƒ}tjd||fƒt
ƒ}t j ddƒ}i}t j ƒ}x½t|jƒƒD]©}|j|ƒ}    |    jƒ}
|    jƒ} |    jƒ} |    jƒ} |    jƒ}tjd|
| | | ||fƒg}| s:| dkr[tjd| ƒ|j|ƒnk|| krŽtjd|| fƒ|j|ƒn8| dkr|| }tjd    ||fƒxt| ƒD]L}||}|| dkrü|j||ƒqÈ|j||||!ƒqÈWn«| dkr4| d} ntjd
| | |fƒ|}d}xi|dkrÅ|d8}|| }||krž|j||ƒPn|| }|j|||!ƒ|}q]Wtjd |ƒg}x'tt    |ƒƒD]}|jgƒqðWtjƒjtjƒ}|j|ƒ}i}xÚt|jƒƒD]Æ}|j|ƒ}t|ƒ}|||<|
t|ƒkrŠqGntj |ƒ}|s¥qGn|j!ƒ}|j"ƒ}xMt#|ƒD]?\} }!||!krèqÊn|| }"|"j|||gƒPqÊWqGWd}#x<|D]4}"|"jd t$ƒt    |"ƒ}$|ret%t&j'|$t(|ƒƒƒnd}%t)dt*d |%ƒƒ}%g}&x+t|%ƒD]}|#d7}#|&j|#ƒq–Wtjd|$||%|&|"fƒ|$d}d}'d}(xb|dkrQt    |"ƒ|(krQ|d8}|"|(})|)\}}}|j+|ƒ}|'|%krUd}'n|&|'}*|}+t,|
|*ƒ},|}-|$|(}.|r°t-||*ƒ|j.|||
|*ƒnt/j0|tj|-|.d|+d|,ƒtjd||,|.||fƒ|tj1kr:||kri||<n||}/|
|*g|/|<n|'d7}'|(d7}(qðWqWq­WxG|j2ƒD]9\}0}/i|d6|/d6}1t3j4tj5|1|0gƒqgWdS(sè
        ¡¾·Ö·þ¹æÔò¡¿£º ¸ù¾ÝËø¶¨µÄÓÎÏ··þÇø·þID¸öÊý
        Ã»ÓÐÅäÖÃÖÁÉÙx·þʱ£ºÄ¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×飬Èç×îºóÒ»µµ¡¾ÖîÌì¡¿¿ÉÅä0È«²¿ÔÚÒ»Æð·Ö×é
        Ð¡ÓÚµÈÓÚÖÁÉÙx·þʱ£¬Ä¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×é
        ´óÓÚÖÁÉÙx·þʱ£¬
        1. ÓÐÅäÖÃÆ½·Ö·þÊý£¬
                           Ôò°´Æ½·ÖÊýƽ·Ö·þÎñÆ÷ÔÙ½øÐзÖ×飬ÎÞÊÓÖÁ¶àx·þÅäÖÃ
                           È磺ÖÁÉÙ50·þ£¬Æ½·Ö·þÊý2
                           µ±Ç°×ܹ²Ð¡ÓÚµÈÓÚ50·þʱ£¬È«²¿ÔÚÒ»Æð·Ö×é
                           µ±Ç°51·þʱ£¬Ôò°´ 51/2 ¸ö·þÔÚÒ»Æð·Ö×飬¼´ 1~25·þÒ»Æð£¬26~51·þÒ»Æð
                           µ±Ç°52·þʱ£¬Ôò°´ 52/2 ¸ö·þÔÚÒ»Æð·Ö×飬¼´ 1~26·þÒ»Æð£¬27~52·þÒ»Æð
        2. Î´ÅäÖÃÆ½·Ö·þÊý,
                           Ð¡ÓÚµÈÓÚÖÁ¶àx·þʱ£¬Ä¬È϶¼ÔÚÒ»Æð·Ö×飻
                           ´óÓÚÖÁ¶àx·þʱ£¬Ôò°´ÖÁÉÙx·þÔÚÒ»Æð·Ö×飬ֱµ½Ê£Óà·þÎñÆ÷䳬¹ýÖÁ¶àx·þ
                           È磺 ÖÁÉÙ10·þ£¬ÖÁ¶à15·þ£¬Î´ÅäÖÃÆ½·Ö·þÊý
                            µ±Ç°×ܹ²15·þ£¬Ôò1~15·þÒ»Æð£»
                            µ±Ç°×ܹ²32·þ£¬Ôò1~10·þÒ»Æð£¬11~20·þÒ»Æð£¬21~32·þÒ»Æð£»
        ---------------------------------------------------------------------------
        ¡¾·Ö×鹿Ôò¡¿£º
        ·þÎñÆ÷·ÖºÃºó£¬ÔÙ¸ù¾ÝÔÚÒ»ÆðµÄ·þÎñÆ÷¸÷×Ô½øÐзÖ×飬°´Ã¿×éÖÁ¶àÍæ¼ÒÊý½øÐзÖ×é
        ·Ö×éÊý = ÏòÉÏÈ¡Õû(Íæ¼ÒÊýÁ¿ / Ã¿×éÖÁ¶àÍæ¼ÒÊý)
        ¸ù¾ÝÕ½Á¦ÅÅÃûÿ¸ö×éÒÀ´Î·ÖÅäÒ»ÃûÍæ¼ÒÖ±µ½È«²¿·ÖÅäÍê¡£
        È磺 ÅäÖÃÿ×éÖÁ¶à100ÈË
                 µ±Ç°Íæ¼Ò×ÜÊýСÓÚµÈÓÚ100ʱ£¬È«²¿·ÅÔÚÒ»×é
                 Íæ¼Ò×ÜÊý 101 ÈË£¬Ôò·Ö 2 ×飬һ×é51ÈË£¬Ò»×é50ÈË
                 Íæ¼Ò×ÜÊý 270 ÈË£¬Ôò·Ö 3 ×飬ÿ×é90ÈË
    s === Õ÷Õ½°Ë·½·Ö×飡 === zoneID=%ssÒÑËø¶¨Çø·þIDÊý: %s,%st    ZZBFScoreisg½çÓò·Ö×é: areaType=%s,serverCntMin=%s,serverCntMax=%s,avgServerCnt=%s,groupPlayerMax=%s,regServerCnt=%sis:    Ã»ÓÐÅäÖÃÖÁÉÙx·þʱ£¬Ä¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×é! serverCntMin=%ss@    Ð¡ÓÚµÈÓÚÖÁÉÙx·þʱ£¬Ä¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×é! regServerCnt=%s <= %ssV    ÓÐÅäÖÃÆ½·Ö·þÊý£¬Ôò°´Æ½·ÖÊýƽ·Ö·þÎñÆ÷ÔÙ½øÐзÖ×é: avgPerServerCnt=%s,regServerCnt=%ssC    Î´ÅäÖÃÆ½·Ö·þÊý: serverCntMin=%s,serverCntMax=%s,regServerCnt=%ss    ·þÎñÆ÷·ÖÅä½á¹û: %sRôiçsL    Íæ¼Ò¹é×éÅÅÐòºó: ÈËÊý=%s,groupPlayerMax=%s,groupCnt=%s,groupNumList=%s,%sit groupValue1t groupValue2s^        ·ÖÅäÍæ¼Ò: playerID=%s,groupValue2=%s,cmpValue2=%s,playerServerID=%s,fightPowerTotal=%sRRtplayerGroupDictN(6RrRŠRtR‹RŒRwRRœRRæRqRÏRÐRßR{RàR    R
tGetServerCntMintGetServerCntMaxtGetAvgServerCnttGetGroupPlayerMaxRåRuRvRxRzR|R}RRR%t FindViewCacheR£RRRÒtinttmathtceiltfloatR+RäRPtGetZZBFBillGroupValue2RRStPlayerBillboardtUpdatePlayerBillboardByIDRR R¬R­tC2S_ZZBFGroupRet(2RRRRžt regServerCntR~t    initScoretserverPlayerGroupDictRìR‚RëR    t serverCntMint serverCntMaxt avgServerCnttgroupPlayerMaxtgroupServerIDListtavgPerServerCnttaIndextsIndextdoCntteIndextlockPlayerInfoListR€RR-tplayerLockRecDicttrecIndexRRRR/tfightPowerTotalt serverIndext serverIDListtplayerInfoListt groupNumAddR1tgroupCntt groupNumListt    loopIndext playerIndext
playerInfoRR6R7tcmpValuet    cmpValue2R8RÄRµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR“—sè 
                 
 
 
 
 
 
 
 
      +
 
!
 
     
 
 %      
 
cCs |d|S(Niè((R    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRB>scCs|d}|d}||fS(Niè((R7R    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGetZZBFBillGroupAreaInfo?s
 
cCs|d}|d}tjƒjtjƒ}xw|jƒD]i\}}|\}}|j|ƒ}    |    jƒ}
|
sxq9nt|
|ƒt    j
d||||fƒq9Wt    j ƒ} xct | j ƒƒD]O} | j| ƒ} t    j| ƒsïqÅntj| tjƒs
qÅnt| ƒqÅWdS(NRRR8s?Õ÷Õ½°Ë·½Ëø¶¨·Ö×é! zoneID=%s,playerID=%s,areaType=%s,groupNum=%s(RtRuRvRwRáR RzRãR+RrRŠR¹RºR»R¼R½R¾R¿RÀRÂ(RµRÃRRR8RíRt    groupInfoR    RRñRRÅR‚RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyREDs(
 
   ! cCsdS(N((RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR•^sc CsF|s
dStjƒjtj|ƒ}d}d}tjƒ}|jtjƒ}x£|D]›\}}}||krwqVnt|ƒd}    t    j
d|    ƒ}
|
s¥qVn|
j ƒ} | s½qVnt j ||| |||dtdtd|ddƒqVWxJ|jƒD]<} t| ƒsqntjd    t| ƒƒt| dƒqWdS(
NtZZBFBillAwardDayiRÕt isClearDatat    checkFuncRt    checkTypettodays!ÖØÖÃÿÈÕÕ½¶·´ÎÊý¼Ç¼: playerID=%s(RtRutGetRecTypeIDMgrRwRxR‹tGetBillboardGroupListRRbRÏRÞtGetDayBillTempIDRCtDoGiveBillboardAwardByActTempIDtFalset__checkBillAwardt GetDataListRRrRŸRR( RRRtfuncNametmailKeyt    dbBillMgrt    groupListt billboardTypeR6R7R    Rët
templateIDR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÈbs2   ! cKsÚ|jdƒ}|jdƒ}| s3| s3| r7dS|jƒ}|j|gdtƒ}|svtjd|ƒdS|dkr¦t|ƒsÖtjd|ƒdSn0|dkrÖt|ƒsÖtjd|ƒdSntS(    NRRgR s__checkBillAward 222222222 %sRhs'µ±ÈÕûÓÐÕ÷Õ½²»·¢·ÅÈÕ°ñ½±Àø! playerID=%sttotals)±¾Èü¼¾Ã»ÓÐÕ÷Õ½²»·¢·Å½áËã½±Àø! playerID=%s(RPtGetIDR#RÒRrRŸRR(tbillDatatkwargsRRgRR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRns$     c)CsOt|ƒtjddƒ}tjddƒ}tjd|ƒtjƒjtj    |ƒ}tj
ƒ}|j ƒ}tjd|||fƒg}i}tj ƒ}|j tjƒ}    x‚|    D]z\}
} } || krÞq½nt| ƒ\} }|j|
| | ƒ}| |kr?|jƒ}tdt||dƒƒ}tjd|| |||fƒxÜt|jƒƒD]È}|j|ƒ}|jƒ}|jƒ}|jƒ}tj|ƒ}|j|gdtƒ}|rßt|ƒnd    }d    }|d}|s.tj}| d}tjd
|| ||fƒn°||kr®tj}| }tjd || ||fƒ||krÞd}|j||gƒtjd || ||fƒqÞn0tj}| d}tjd || ||fƒ|tj krm||krg||<n||}|j|| |||||gƒqmqmWq½ntj!d| ƒ}|s]q½n|j"ƒ} |j#ƒ}!|j$ƒ}"tjd|| | |!|"fƒx“t|jƒƒD]}|j|ƒ}|jƒ}|jƒ}tj|ƒ}|j|gdtƒ}|rt|ƒnd    }d    }|d}tj}| }|stj}t| ddƒ}tjd
|| ||fƒn[| rùt%| ƒdkrù| d    |ko¸| dknrùtj&}t'| d|ƒ}tjd|| || fƒnã|!rdt%|!ƒdkrd|!d    |ko0|!dknrdtj}| }tjd|| ||!fƒnx|"rÜt%|"ƒdkrÜ|"d    |ko›|"dknrÜtj}t| ddƒ}tjd|| ||"fƒn|tj kr´||krg||<n||}|j|| |||||gƒq´q´Wq½W|jtj(|ƒ}#|#j)dƒt%|ƒ}$tjd||$|fƒx{t*|ƒD]m\}}%|%\}}|}&|$|}'|} tjd||||&|'fƒt+j,|tj(|&|'d| ƒqWxG|j-ƒD]9\}}i|d6|d6}(t.j/tj0|(|gƒqWdS(NtZZBFZZiis"=== Õ÷Õ½°Ë·½Èü¼¾½áËã === zoneID=%ss,keepNeedPer=%s,enterZZRank=%s,areaTypeMax=%sgY@sH×îºóÒ»¸ö½çÓò: zoneID=%s,areaType=%s,groupNum=%s,playerCnt=%s,keepRank=%sR isB    Íæ¼Òû²ÎÕ½½µ¼¶: playerID=%s,areaType=%s,rank=%s,batCntTotal=%ss3    Íæ¼Ò±£¼¶: playerID=%s,areaType=%s,rank=%s <= %ss9        ½úÉýÖÁ×ð°ñ: playerID=%s,areaType=%s,rank=%s <= %ss2    Íæ¼Ò½µ¼¶: playerID=%s,areaType=%s,rank=%s > %sRÕsP½áËã½çÓò: zoneID=%s,areaType=%s,UpRankRange=%s,KeepRankRange=%s,DownRankRange=%ss<    Íæ¼Ò½ú¼¶: playerID=%s,areaType=%s,rank=%s,UpRankRange=%ss>    Íæ¼Ò±£¼¶: playerID=%s,areaType=%s,rank=%s,KeepRankRange=%ss>    Íæ¼Ò½µ¼¶: playerID=%s,areaType=%s,rank=%s,DownRankRange=%stEndClears)ÐÂÖÁ×ð°ñÍæ¼Ò! zoneID=%s,zzPlayerCnt=%s,%ssE    ÖÁ×ðÍæ¼Ò: zoneID=%s,index=%s,playerID=%s,cmpValue=%s,cmpValue2=%sR6RRtawardPlayerList(1RÈRÏRÐRrRŠRtRuRiRwRxRßRàR‹RjRRbt GetBillboardR|R+R>R{R}RwtGetName2t GetCmpValuetGetAccIDServerIDR#RÒRt Updown_Downt Updown_KeepRåRRÞtGetUpRankRangetGetKeepRankRangetGetDownRankRangeRæt    Updown_UpRätDef_CBT_ZZBFZZt    ClearDataRRCRDR R¬R­tC2S_ZZBFEndInfo()RRt keepNeedPert enterZZRankRRìt areaTypeMaxtenterZZPlayerListtserverAwardDictRrRsRtR6R7R    Rt    billBoardR1tkeepRankR‚RxRtaccIDtscoreRÄRRtisZZR!tupdownt nextAreaTypeR|Rët UpRankRanget KeepRankRanget DownRankRanget zzBillboradt zzPlayerCntt    enterInfoR`RaRµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR—•sÔ
          
    
       #    
 
)      
         <     <     <       
-   
 #c Cs|d}|d}tjƒjtjƒ}tjd|t|ƒfƒx/t|ƒD]!\}}|\}}}    }
} } } |j    |ƒ}|j
ƒ}|s¤qVntjd||||    |
| | | fƒt ||d|ƒt ||    ƒt || ƒtjd| ƒ}| rV|rV|jƒ}g|}| rO|tjddƒ7}n|    |
| g}tjd    |||ƒqVqVWdS(
NRRR|s"Õ÷Õ½°Ë·½Èü¼¾Íæ¼Ò½áËã: zoneID=%s,%ssS%s,playerID=%s,areaType=%s,rank=%s,updown=%s,nextAreaType=%s,batCntTotal=%s,isZZ=%si
RÕRzitZZBFBillAwardWeek(RtRuRvRwRáRrRŠRæRRzRãRR"R%RÏRÞtGetWeekAwardListtGetFuncEvalCfgt
PlayerMailt SendMailByKey(RµRÃRRR|RíR‚RRR    R!R”R•RR“RñRRët WeekAwardListtitemListt    paramList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR‰s0
 
          
c Csètjƒj|ƒ}|j}|jƒ}tjd||ƒt|ƒ}|sdtjd|ƒdSi}|rntjddƒ}tjddƒ}    tj    ddƒ}
t
|
ƒ} || } |j t j ƒ} | | krøtjd| | f|ƒdS| |d<| rn| |krn| |d}|
|}|     sP| sPtj||    |ƒ rTdS|    |d    <||d
<qnntƒ}|jƒ}|jƒ}| s| r¸tjd ||fƒdS||d <tj||||d td|ƒdS(NsÕ÷Õ½°Ë·½Æ¥Åä! isRefresh=%ss±¾ÆÚÕ÷Õ½°Ë·½Íæ¼ÒûÓвÎÓët ZZBFRefreshiiis)    ÒÑ´ï×î´óˢдÎÊý! refreshCnt=%s >= %st
refreshCntt    moneyTypet
moneyValues2±¾ÆÚÕ÷Õ½°Ë·½±¾·þδ²ÎÓë! crossServerID=%s,zoneID=%sRRs#GameLogic_ZZBF.__OnZZBFMatchRefresht    reqDataEx(RrR¹R¼t    IsRefreshRçRŸtGetPlayerJoinAreaTypeRÏRÐRžRætNomalDictGetPropertyR\tDef_PDict_ZZBFRefreshCntRt    HaveMoneyRqRaRft CrossPlayertPyPackForwardingRÒ(R‚t
clientDatattickRÆt    isRefreshRR    R¨trefreshFreeCntR¦trefreshCostGoldListtcostCntt
refreshMaxR¥t    costIndexR§R~R°RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt OnZZBFMatch8sH       
 
 
$
      
"cCs"|j}t||d|d|ƒS(NRÃR¨(R©t__DoZZBFMatchRefresh(t crossPlayerR°R±RÃR¨R²((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt__OnZZBFMatchRefreshbs    cCs*|s
dS|j}|r&t|ƒndS(N(R©RÂ(RÆR°tisOKR²((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt__OnZZBFMatchRefresh_Retfs      c0 Cs |si}n|jƒ}tjd||f|ƒtƒ}|j|ƒ\}}}    | sk| sk|     rodS|}
t||    ƒ} tjd|||    f|ƒtjƒjt    j
|
| ƒ} | sÉdS| j ƒ} | sßdS| j ƒ}|j || dƒ}|j|ƒ}| rB|rBtjd||ƒt||ƒdS|rå| rå|j ddƒ}|j ddƒ}|rŸ|rŸtj|dd    i||6ƒnd
|krå|d
}|d7}tj|i|tj6d d ƒqåntjd dƒ}|jdtƒtjd dƒ}tjd dƒ}tjd dƒ}|||}tjd|||f|ƒgg}}x©|D]¡}|dkr”q|n|t| |dƒ}|dkrÁd}n|| krÖ| }n||kr||kr|j|ƒqq|||kr||j|ƒq|q|W|s3dg}n|sE| g}ntjd||f|ƒt|d|ddƒ}t|ƒdkrÈtd|dƒ}t| |dƒ}t||dƒ}nt j!|ƒ||krñ|j"|ƒn|g} g}!t|ƒdkrçxÒt#|ƒD]Á\}"}t|ƒdkrAPn|"t|ƒdkr[Pn|}#||"d}$|"t|ƒdkr›t|#|$dƒ}%nt|#|$ƒ}%||%krÆ|%j"|ƒnt j!|%ƒ|!j|%ƒqWng}&t|ƒdkrÔxÒt#|ƒD]Á\}"}t|ƒdkr.Pn|"t|ƒdkrHPn|}#||"d}$|"t|ƒdkrˆt|#|$dƒ}%nt|#|$ƒ}%||%kr³|%j"|ƒnt j!|%ƒ|&j|%ƒq Wntjd|!|ƒtjd| |ƒtjd|&|ƒd}'g}(x%|'dkrCt|(ƒ|krC|'d8}'d})xðd||!gd|| gd||&ggD]Ä\}*}+},|)|+7})x’|,D]Š}%|)dkr®Pn|%sºq˜n|%j$dƒ}||(krÛq˜ntjd|*|f|ƒ|(j|ƒ|)d8})t|(ƒ|kr˜Pq˜q˜Wt|(ƒ|krxPqxqxWqW|(jƒg}xX|(D]P}|dks[|| krq[n|d}"| j%|"ƒ}-|j|-j&ƒƒq[Wtjd |(|ƒtjd!||ƒ|j d"gƒ}.|.rxl|.ddd…D]W}/|/|krqn| j'|/ƒsJtj(|d#|/| fƒqn|j)d|/ƒqW|| }tjd$||ƒn|j*||ƒt||ƒtS(%Ns/Õ÷Õ½°Ë·½Íæ¼ÒË¢ÐÂÆ¥ÅäÁбí: isRefresh=%s,isSys=%ss!zoneID=%s,areaType=%s,groupNum=%sis2    ·ÇË¢ÐÂÇÒÓÐÊý¾Ý£¬Ö±½Óͬ²½! matchPlayerIDList=%sR¦iR§tZZBFt costMoneyDictR¥t    resetTypetDayt    ZZBFMatchRôiiis1    playerRank=%s,matchPerList=%s,needMatchCnt=%sgY@s"    highRankList=%s,lowRankList=%siÿÿÿÿi
is    highRankRangeList=%ss    nearRankRangeList=%ss    lowRankRangeList=%sidthightneartlows    Æ¥Åä: %s,rank=%ss    Æ¥ÅäÃû´Î½á¹û: %ss    Æ¥ÅäÍæ¼Ò½á¹û: %st gmMatchIDListsID=%s,²»Ôڸðñµ¥!groupValue2=%ss    GMÇ¿ÖÆÆ¥Åä: %s(+RçRrRŸRqRQRBRtR‹R}RwRR|tGetIDOrderDictRPRWt__SyncZZBFMatchListR®tCostPlayerResourcestSetPlayerNomalDictR\R¬RÏRžRRÒRÐR>RåR{RæR+RäR'tshuffletremoveRRTR}RwtFindByIDRÜtinsertRY(0RºR²tisSysRÃR¨RR~RRR    RR6R7Rt billDataCntt
idRankDictt
playerRankRXR¦R§R¥t matchPerListt matchHighCntt matchNearCntt matchLowCntt needMatchCntt highRankListt lowRankListtrankPerR!t nearRankListt nearStartRankt nearEndRanktnearRankRangeListthighRankRangeListR‚tfromRankttoRanktrankListtlowRankRangeListRQt matchRankListtmatchCnttmSigntmCntt rankRangeListRxRÆtmatchID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR¹ns.                 
 
&                            !
 
 
 
 
 
 cCsRtjƒ}g|_x|D] }tj|ƒ}tjƒ}||_|r tj|t    j
ƒ}|j ƒ|_ |j ƒ|_|jƒ|_|jƒ|_|jƒ|_|tj|_|tj|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_ n d||_ |jj!|ƒqWt"|jƒ|_#t$j%||ƒdS(Nsp%s(&tChPyNetSendPackttagSCZZBFMatchListt    MatchListR%R&ttagSCZZBFMatchInfotPlayerIDt
TurnAttacktGetCacheLineupFightPowerRwtBatPreset_ZZBF1t GetPlayerNamet
PlayerNameRþtRealmLVtGetLVtLVtGetFacetFacet
GetFacePictFacePicR\tDef_PerPointValuet
FightPowert FightPowerExt
GetTitleIDtTitleIDt GetModelMarkt    ModelMarktGetEquipShowSwitchtEquipShowSwitchR£tServerIDRåRæt
MatchCountR®t SendFakePack(RºRXt
clientPackRéRt    matchInfot
fightPower((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÈ"s0            cCst|ƒdS(N(t__CheckPlayerCrossActZZBF(RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt
DoZZBFOpen@s
cCs1tj|tjƒsdSt|ƒt|ƒdS(N(R¾R¿RwRÀt__zzbfDayResetRÂ(RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnFBPlayerOnDayCrossDs
 
 
cCs²tjddƒ}tj|tjƒ}||krV||}tj|tj|ƒntj|tj    dƒtj|tj
dƒtj|tj dƒtj|tj dƒdS(Nt
ZZBFBatCntii( RÏRÐRtGetMoneyRwtTYPE_Price_ZZBFTickett    GiveMoneytNomalDictSetPropertyR\R¬tDef_PDict_ZZBFBuyCnttDef_PDict_ZZBFBatCnttDef_PDict_ZZBFBatAward(RÆt batTicketMaxtcurMoneyt    giveMoney((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR Ks 
cCsztj|tjƒsdStjtjtjƒ}|rvt|ƒ}| rv|j    tj
ƒrvt |ƒt |ƒqvndS(N( R¾R¿RwRÀRrR¤R¡R¥R
RPR¦RÁRÂ(RÆR±tisReset((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnFBPlayerOnLoginXs 
cCs‰|tjkrdStjƒ}xct|jƒƒD]O}|j|ƒ}tj|ƒs\q2ntj    |tj
ƒswq2nt |ƒq2WdS(N( RwR¥RrR¹RºR»R¼R½R¾R¿RÀR
(tactNumRÅR‚RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytRefreshActZZBFInfods cCs„|jƒ}tjtjtjƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||krŸtj d||f|ƒdStj d||||f|ƒtj|t j |ƒtj|t jdƒtj|t jdƒtj|t jdƒtj|t jdƒtj|t jdƒ|r€tj|tj|ƒt|ƒt|ƒt|ƒntS(Nis-Õ÷Õ½°Ë·½»î¶¯ID²»±ä£¬²»´¦Àí£¡cfgID=%s,actID=%ss;Õ÷Õ½°Ë·½»î¶¯ÖØÖÃ! cfgID=%s,actID=%s,playerActID=%s,state=%s(RçRrR¤RwR¡R¥RPR¨R§R¦R«R\tDef_PDict_ZZBFIDRŸRRR¬RRRtDef_PDict_ZZBFWorshipStatetResetPlayerActTypeR RÁRÂRÒ(RÆRR±R²RRšt playerActID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR
ss,   
 
 cCsMtjƒjtjƒ}|j|jƒƒ}|jƒ}|sCdSt|ƒS(N(    RtRuRvRwRáRzRçRãR&(RÆRíRñR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRª“s  c CsÐ|jƒ}tƒ}|jƒ}    |jƒ}
|     s;|
rVtjd|    |
fƒdSt|ƒ} | s|tjd|ƒdStj|t    j
dƒs˜dSt j ddƒ} | | krÃd|d<nt ||    fS(Ns2±¾ÆÚÕ÷Õ½°Ë·½±¾·þδ²ÎÓë! crossServerID=%s,zoneID=%ss±¾ÆÚÕ÷Õ½°Ë·½Íæ¼ÒûÓвÎÓëit
ZZBFBattlet
manyvsmany(RçRqRaRfRrRŸRªRR­RwRRÏRÐRÒ( RÆtmapIDt
funcLineIDttagTypettagIDt    valueListt    reqExDictRR~R°RRR    t areaType3V3((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnTurnFightRequest›s"          cCst||ƒsdStS(N(t__checkAtkZZBFPlayerRÒ(RºR#R$R%R&R'R(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnTurnFightRequestCross¶scCsˆ|jƒ}| s||kr#dS|jƒ}tƒj|ƒ}||kr„tjd||f|ƒt|tdtd|ƒdStS(s¼ì²é¿É·ñ¹¥»÷Ä¿±ê
    Ns<Õ÷Õ½°Ë·½²»¿É¹¥»÷²»ÔÚÆ¥ÅäÁбíÀïµÄÄ¿±êÍæ¼Ò! tagID=%s not in %sRÏRÃ(RçtGetMainServerIDRqRWRrRŸR¹RÒ(RºR&RRÃRX((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR+¿s   c E Csv|s
dS|jƒ} |} |tjk} |    jdgƒ}|    jddƒ}|    jddƒ}tjd| | |||f| ƒt|| ƒ}|s±tjd| | ƒdS|
ji| d6|d6ƒt    |ƒ|krât
S|j ƒ}t ƒ}|j | ƒ\}}}|j| ƒ}tjd||||f| ƒ| sS| sS| rttjd    |||f| ƒdStj}|}t||ƒ}tjƒj|||ƒ}|s·dS|j| ƒ}|sítjd
||| f| ƒdS|j| ƒ}|s#tjd ||| f| ƒdS| |kr3dS|j| ƒ}d%\}} xP|D]H}!|!d }"|"tjkr|d7}qU|"tjkrU| d7} qUqUW|| kr³dnd }#tj|didtj6ƒtjƒjtj|ƒ}$|$j| gdt
ƒ}%|%rft|%ƒd}&t |%|&ƒt!|%ƒd}'t"|%|'ƒtjd|&|'f| ƒnd&\}(})d }*|#dkrÏt#j$ddƒ}+t    |+ƒ|kr»|+|\}(})n|dkrðt#j%ddƒ},t&|(|,dƒ}*n|(|*}-tjd|(|*|)f| ƒ|)d krs|j'ƒ}.|j(ƒ}/t)d |.|)ƒ}0t*j+| ||0|/d|d|ƒn|-d krÏ|j'ƒ}1|j(ƒ}/|1|-}0t*j+| ||0|/dt
d|d|ƒqÏn|
ji|(d6|*d6|)d6|#d6ƒt,|t
dt
d|ƒt&t-j-ƒƒ}2t.j/| ƒ}3|3rD|3j0ƒnd }4|3r\|3j1ƒnd }5|3rt|3j2ƒnd }6|3rŒ|3j3ƒnd}7|3r¤|3j4ƒnd}8|3r¼|3j5ƒnd}9| |4|5|6|7|8|9g}:it6d 6|d!6| d"6|:d#6|2d$6|(d6|*d6|)d6};t7j8| ||||#|;ƒ| tj9krr|4rrt.j/| ƒ}<|<rm|<j0ƒnd }=|<r…|<j1ƒnd }>|<r|<j2ƒnd }?|<rµ|<j3ƒnd}@|<rÍ|<j4ƒnd}A|<rå|<j5ƒnd}B| |=|>|?|@|A|Bg}Cit:d 6|d!6| d"6|Cd#6|2d$6|(d6|*d6|)d6};tj |4ƒ}Dt7j8| |D|||#|;ƒnt
S('Nt
winRetListtroundNumitroundMaxsF½áËãÕ÷Õ½°Ë·½Õ½¶·! isWin=%s,tagPlayerID=%s,roundNum=%s/%s,winRetList=%ss,½áËãÕ÷Õ½°Ë·½Ä¿±êÍæ¼Ò²»¿É¹¥»÷! tagPlayerID=%sR0s6zoneID=%s,areaType=%s,groupNum=%s,matchPlayerIDList=%ssA½áËãÕ÷Õ½°Ë·½ÕÒ²»µ½Ëø¶¨Íæ¼ÒÐÅÏ¢! zoneID=%s,areaType=%s,groupNum=%ssD½áËãÕ÷Õ½°Ë·½ÕÒ²»µ½Íæ¼Ò°ñµ¥Êý¾Ý! zoneID=%s,groupValue2=%s,playerID=%ssG½áËãÕ÷Õ½°Ë·½ÕÒ²»µ½Íæ¼Ò°ñµ¥Êý¾Ý! zoneID=%s,groupValue2=%s,tagPlayerID=%sii
R¾R sbatCntToday=%s,batCntTotal=%sR5iigY@s(addScore=%s,addScoreEx=%s,reduceScore=%sR6R7tautoSorttaddScoret
addScoreExt reduceScoretfinalWinRÏRÃtR-R3R6ttagInfotbatTime(ii(ii(;RçR\t Def_FactionARPRrRŸR+tErrLogtupdateRæRÒR-RqRQRWRwRRBRtR‹R}RÍR‚t Def_FactionBR®RÉRRuRiRxR#RRRRRÏRžRÐR>Rt GetCmpValue2R+RCRDR¹ttimeR%R=R£R÷RùRþRõRòtRecAtkType_AtkRïtSend_C2S_TurnFightAwardAfterRtRecAtkType_Def(ERºtguidR#R$R%R&R'R(t
winFactiontstatMsgt    awardDictRR0tisWinR.R/R0t    canAtkRetRÃR~RRR    RRXRtR6R7Rt curBillDatat tagBillDatat
matchIndexR3R6twinRettwinR5RRRRR2R4R3tmatchScoreListt addScorePert addScoreTotalttagScoreRaR`tcurScoreR8t tagViewCachet tagServerIDttagFacet
tagFacePict
tagRealmLVRFt tagPlayerNameR7t    afterDictt curViewCachet curServerIDtcurFacet
curFacePict
curRealmLVtcurLVt curPlayerNametcurInfottagMainServerID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnTurnFightAwardCrossÏsÖ #             
 
   %   
.)&&cCsì|d}|d}|d}|d}|d}    |d}
|d} |d} |\} }}}}}}d    }tjƒ}|jtj|ƒ}|j|ƒ}|j|    ƒt||ƒt|| ƒt    ||ƒt
||ƒt ||ƒt ||ƒt ||ƒt||ƒ|ji|d
6|d 6|
d 6| d 6| d6ƒ|tkrVdStjƒj|ƒ}|sudStjƒjƒ}|jtjƒ}tj|    |ƒrètj|tj|dƒ}tjd||ƒt|ƒndS(NR-R3R6R7R8R2R4R3itNameRtAddScoret ReduceScoret
AddScoreExis$    ¸üнñÈÕÕ÷Õ½´ÎÊý! todayBatCnt=%s(RtRuRiRwRüR$tSetTimeR.R1R4R7R:R=RBRGt SetUserDataR?RrR¹RRZRõRöR«R\RtCheckTimeIsSameDateRRRŸRÂ(RR#R$RFRXR-R3R6R7R8R2R4R3R0RSRTRURVRFRWtmaxCountt
gameRecMgrt    atkRecMgrRRÆRt todayBatCnt((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytC2S_TurnFightAwardAfterVsF
 
 
 
 
 
 
 
          0  cCsætjƒj|ƒ}td|jƒ}tjd|ƒtjddƒ}tj    |t
j ƒ}||kr†tjd||fƒdS||}tjd|||fƒtjddƒ}|j t jƒ}    |    |krõtjd|    |fƒdS||    }
tjd|
|    |fƒt|||
ƒ}tjd    |ƒtjdd
ƒ\} } tjdd ƒ} | s{| s{| rdS| |}tj|| |d ƒs¥dStj|t j|    |ƒtj|| |ggƒt|ƒdS( NisÕ÷Õ½°Ë·½ÃÅÆ±¹ºÂò! buyCnt=%sRs+Õ÷Õ½°Ë·½ÃÅÆ±ÒÑÂúÎÞ·¨¹ºÂò! curMoney=%s >= %sscanBuyCnt=%s,curMoney=%s/%sis4Õ÷Õ½°Ë·½ÃÅÆ±½ñÈÕ¹ºÂò´ÎÊýÒÑÓÃÍê! todayBuyCnt=%s >= %ss todayCanBuy=%s,todayBuyCnt=%s/%ss ×îÖÕbuyCnt=%siit
ZZBFBatBuy(RrR¹R¼R+tBuyCntRŸRÏRÐRRRwRR«R\RRäRžtPayMoneyRt ItemControlertGivePlayerItemOrMailRÂ(R‚R°R±RÆtbuyCntRRt    canBuyCntt    dayBuyMaxt todayBuyCntt todayCanBuyt costMoneyTypet    costMoneyt ticketItemIDtcostMoneyTotal((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt OnZZBFBatBuyŠs< 
 
 
 
c Cs|jƒ}|j}|j}tjd||f|ƒ|dkrvtj|ƒ}tjddiƒ}t|ƒ|kr’tjd||ƒdS|t|ƒ}|j    t
j ƒ}    |    |krÞtjd|    |f|ƒdS|j    t
j ƒ}
|
t d|ƒ@r!tjd||
f|ƒdS|
t d|ƒO}
tj|t
j |
ƒt|ƒtj||dd    tigƒnŒ|d
kr|j    t
jƒ}
|
r®tjd |ƒdStj|t
jd
ƒt|ƒtjd d ƒ}tj||ddtigƒndS(Ns'Õ÷Õ½°Ë·½Áì½±! awardType=%s,dataExStr=%siR!is'Õ÷Õ½°Ë·½²»´æÔÚ¸ÃÕ÷Õ½´ÎÊý½±Àø! batCnt=%ss1Õ÷Õ½°Ë·½Õ÷Õ½´ÎÊý²»×ãÎÞ·¨ÁìÈ¡! todayBatCnt=%s < %ss5Õ÷Õ½°Ë·½¸ÃÕ÷Õ½´ÎÊý½±ÀøÒÑÁìÈ¡! batCnt=%s,awardState=%steventRisÕ÷Õ½°Ë·½Ã¿ÖÜĤ°Ý½±ÀøÒÑÁìÈ¡!Rzit ZZBFWorship(RçtDataExt    DataExStrRrRŸtToIntDefRÏRžtstrR«R\RRtpowRRRÂRrRsRmR( RÆR°R±Rt    awardTypet    dataExStrtbatCnttbatCntAwardDictt awardItemListRmt
awardState((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetZZBFAward¯sB           
" 
"cCs—|jtjƒsdStjƒjtjƒ}|j|j    ƒƒ}|j
ƒ}|rat |ƒnd}|ryt |ƒnd}|r‘t |ƒnd}tjƒ}|rµt|ƒnd|_|d|_|d|_|rêt|ƒnd|_||_|rt||ƒnd|_|jtjƒ|_|jtjƒ|_|jtjƒ|_|jtjƒ|_ |jtj!ƒ|_"t#j$||ƒdS(Nii
(%R«R\RRtRuRvRwRáRzRçRãRR)R&RêttagSCZZBFPlayerJoinInfoRt GroupFPRankt    PreZoneIDt PreAreaTypeR tPreRanktAreaTypeRBt GroupValue2R¬tTodayRefreshCntRt TodayBuyCntRt TodayBatCntRt BatAwardStateRt WorshipStatet NetPackCommonR(RÆRíRñRt preZoneAreaRR    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÂÜs,        c Cs!tjtjtjƒ}|s"dS|jtjƒ}|jtjƒ}|jtjƒ}| sf| rjdStj    |ƒ}|sƒdSt
ƒ}tj t j ƒjƒƒ}tj||ƒ\}}    tjƒ}
|jƒ|
_|jƒ|
_||
_||
_|    |
_||
_tj||
ƒdS(N(RrR¤RwR¡R¥RPR§R¦R¨t GetActIpyDataRqRøRZRõRötGetOperationActionDateStrRêttagSCActZZBFInfoRat CrossServerIDRftZoneIDtActIDt    StartDatetEndtDatetCfgIDR˜R( RÆR±RRšR²t
actIpyDataR~t crossDateTimet startDateStrt
endDateStrR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÁös.                     i((yRZR¬R3RtRwRÏRR%RCRêR˜RrR¾R®RïRnRŸRrR\R'R?R>t BatRoundMaxR{R·R’R”R–R˜RRRR
R RRRRRRRRRR R"R#R%R&R'R)R+R?RAR,R.R/R1R2R4R5R7R8R:R;R=R?RBRDRGRHRqRƒR†R‰R„R‘R›RœRˆR®ReRÇRÉRÊR¶RóR¸RéR,R“RBRbRER•RÈRnR—R‰R¸RUR»R½RmR¹RÈR R R RRR
RªR*R,R+RbRnR}R‹RÂRÁ(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt<module>sâ                                                                                                                                                                              $                                    '                 
        B    g    g    )    §                            ~    %    *    ´                                                       ‡    4    %    -