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
350
351
352
353
354
355
356
357
358
359
360
_º jc@s—ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZdZeddcƒ\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,ddd-„ƒYZEd.„ZFd/„ZGd0„ZHd1„ZId2„ZJd3„ZKd4„ZLd5„ZMd6d6d7„ZNd8„ZOd9„ZPd:„ZQd;„ZRd<„ZSd=„ZTd>„ZUd6d6d6d?„ZVd@„ZWdA„ZXdB„ZYdC„ZZdD„Z[dE„Z\dF„Z]dG„Z^dH„Z_dI„Z`dJ„ZadK„ZbdL„ZcdM„ZddN„Zed6ddO„ZgdP„Zheid6ddQ„ZjdR„ZkdS„ZldT„ZmdU„ZndV„ZodW„ZpdX„ZqdY„ZrdZ„Zsd[„Ztd\„Zud]„Zvd^„Zwd_„Zxd`„Zyda„Zzdb„Z{dS(eiÿÿÿÿ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ˆ(RRtstate((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œtcfgIDt zoneIpyDatatcfgServerIDListR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   cCsÑtj|dtjƒƒtƒs7tj|dƒdStjtjtjƒ}|jtj    dƒ}|t
krˆtj|d|ƒdSt j |ƒs¯tj|d|ƒdSt ƒ}|jƒ}|jƒ}tjƒjtjƒ}|j|ƒ}    |    jtƒ}
t|
dƒt|
dƒt|
|ƒt|
|dtd|dƒƒt|
dƒi|g|6} tj|d||fƒi|jƒd    6} i|d
6| d 6| d 6} tjtj | |gƒdS( Ns ---------- %ss±¾·þÔݲ»ÄܼÓÈëÕ÷Õ½°Ë·½!is·ÇÕ÷Õ½°Ë·½Ëø¶¨Ãûµ¥×´Ì¬!state=%ssÕÒ²»µ½Íæ¼Ò»º´æÎÞ·¨Ëø¶¨±¨Ãû!%si
isËø¶¨Íæ¼Ò²ÎÓë½çÓò(%s),%st
gmPlayerIDRRtareaJoinPlayerDicttgmInfo(!Rrt DebugAnswertGetCurrentDataTimeStrR¶R£RwR R¤RPR¥R·tPlayerViewCachet FindViewCacheRqRaRdRtRuRvtDef_GameRecType_ZZBFJoinPlayerRzt GetOneRecDataRÒR'R+R%RtmaxR"t GetPlayerIDR«tSendToCrossServertS2C_ZZBFLockReq(RÆR    t lockPlayerIDR°R™R~R¯RRtjoinPlayerRecMgrtjoinRecRRÖR×Rµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytGM_S2C_ZZBFLockReq_Player^s:              " 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),Ìí¼Ó¼ÙÍæ¼ÒÊý=%sRÕt fackPlayerCntt    serverIDAt    serverIDBRRRÖR×(%RrRØRÙR¶R£RwR R¤RPR¥R·RqRaRdRÏtGetIpyGameDatatIPY_DataR{tGetZZBFAreaTypeCountRtRuRvRÜRytFackPlayerIDMaxRzRÝR&RtminRÒtappendtlenRßR«RàRá(RÆRçR    RèRéR°R™R~R¯RRt areaTypeListt areaIpyDatat
ipyDataMgrRÖRãtjoinPlayerIDListt
delFackCnttfackIDR€RäRtpIDR×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 Cs5|d}|d}|jdiƒ}|jddƒ}|jddƒ}|jddƒ}|jddƒ}tjtjtjƒ}    |    jtjdƒ}
|    jtjdƒ} t    ƒ} t
j ƒj tj ƒ} tjtjƒ}||krüg||<n||}|
tkrdS||kr\|j|ƒtjd    ||fƒtjtj|ƒni}g}| j|ƒ}xŒ|jƒD]~\}}xo|D]g}|j|gd
tƒ}|sÊ|jƒ}nt||ƒt||ƒ| j|||dƒ| j|ƒ|||<|}tj |ƒ}|sK||krÞ|j|ƒqÞn“|tj!krÞ|}|r|r||krt"j#||ƒ}n|rœ|}ntj$||ƒ||krÞ|j|ƒtjtj|ƒqÞntjd |||||fƒq—Wq„W|rè|j%ƒ}|dkräd}tj&d ||j'ƒfƒxƒt(|j'ƒƒddd …D]b}|j)|ƒ}t*|ƒ}t+|ƒ|kr qgn|tj!krg|j,|ƒ|d7}qgqgWtj-|d|ƒni}x¬t(|j'ƒƒD]˜}|j)|ƒ}t*|ƒ}t+|ƒ}||kr<qý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/j0tj1||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(2RPRURrR£RwR R¤R¥R¦RqRtRuRvRxRZR[R\R]R·RïRŠRŽRzRtGetRecDataByValuesRÒt
AddRecDataRR
RSRVRÚtFindBattleViewCacheRítrandomtrandinttSetFackPlayerCacheServerIDR^RžR|R{R}RRtDelRecDataByIndexRØRÞR«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¨
 
      
 
       (  &     
 $cCso|d}|d}|d}|d}tƒ}|j|ƒtjƒjtjƒ}xu|jƒD]g\}}    |j|ƒ}
|
j    ƒ} | s–qcnt
| |    ƒt | dƒt j d|||    fƒqcWx|D]}tj||ƒqÕWt jƒ} xmt| jƒƒD]Y} | j| ƒ}t j|ƒs8qntj|tjƒsSqnt|ƒt|ƒqWdS(NRRRR&R'is3Õ÷Õ½°Ë·½Ëø¶¨Íæ¼Ò! zoneID=%s,playerID=%s,areaType=%s(RqRkRtRuRvRwRÜRRzRÝR'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/•s6
 
 
 
          
cCsCtjƒ}tjd||ƒ}|s?tjdd|ƒ}n|S(Nt ZZBFAreaGrouptcomm(RrtGetAppIDRÏtGetIpyGameDataNotLogRê(R    tappIDt groupIpyData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt__getAreaGroupIpyData¿s
 c<Cstjd|ƒtjƒ}|jtj|ƒgt|ƒ}|jƒt    |ƒ}tjd||fƒt
ƒ}t j ddƒ}i}t j ƒ}x)t|jƒƒD]}|j|ƒ}    |    jƒ}
t|
ƒ} | sæq­n| jƒ} | jƒ} | jƒ}| jƒ}| jƒ}|r7t|
ƒ}ntjd|
| | ||||fƒg}| sv| dkr—tjd| ƒ|j|ƒnk|| krÊtjd|| fƒ|j|ƒn8|dkrW||}tjd    ||fƒxt|ƒD]L}||}||dkr8|j||ƒq|j||||!ƒqWn«| dkrp| 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Æqƒnt"j#|ƒ} | sáqƒn| j$ƒ}!| j%ƒ}"xMt&|ƒD]?\}#}$|!|$kr$qn||#}%|%j|"|!|gƒPqWqƒWd}&xl|D]d}%|%jd t'ƒt    |%ƒ}'|r¡t(t)j*|'t+|ƒƒƒnd}(t,dt-d |(ƒƒ}(g})x+t|(ƒD]}|&d7}&|)j|&ƒqÒWtjd|'|
|||(|)|%fƒ|'d}d}*d}+i},xÀ|dkr÷t    |%ƒ|+kr÷|d8}|%|+}-|-\}"}!}|*|(krŽd}*n|)|*}.t.|
|.ƒ}/|/|,krÀg|,|/<n|,|/}0|0j|"|!|gƒ|*d7}*|+d7}+q8W|}1x½|,j/ƒD]¯\}/}0t    |0ƒ}2|r¹||2kr¹||2}3tjd|3|/|2|fƒt0j1|ƒx.||3 D]"\}4}5|0j|4d|5gƒqtW|0jd t'ƒt    |0ƒ}2nxþt&|0ƒD]ð\}6}-|-\}"}!}|}7|2|6}8|j2|ƒ}|r,t3||.ƒ|j4|||
|.ƒnt5j6|tj|7|8d|1d|/ƒtjd||/|8|!|"fƒ|tj7krÆ|!|kr™i||!<n||!}9|
|.g|9|<qÆqÆWq WqZWq­WxG|j/ƒD]9\}:}9i|d6|9d6};t8j9tj:|;|:gƒqÓWdS(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    ZZBFScoreisy½çÓò·Ö×é: areaType=%s,serverCntMin=%s,serverCntMax=%s,avgServerCnt=%s,groupPlayerMin=%s,groupPlayerMax=%s,regServerCnt=%sis:    Ã»ÓÐÅäÖÃÖÁÉÙx·þʱ£¬Ä¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×é! serverCntMin=%ss@    Ð¡ÓÚµÈÓÚÖÁÉÙx·þʱ£¬Ä¬ÈÏÈ«²¿ÔÚÒ»Æð·Ö×é! regServerCnt=%s <= %ssV    ÓÐÅäÖÃÆ½·Ö·þÊý£¬Ôò°´Æ½·ÖÊýƽ·Ö·þÎñÆ÷ÔÙ½øÐзÖ×é: avgPerServerCnt=%s,regServerCnt=%ssC    Î´ÅäÖÃÆ½·Ö·þÊý: serverCntMin=%s,serverCntMax=%s,regServerCnt=%ss    ·þÎñÆ÷·ÖÅä½á¹û: %sRùiçsj    Íæ¼Ò¹é×éÅÅÐòºó: ÈËÊý=%s,areaType=%s,groupPlayerMin=%s,groupPlayerMax=%s,groupCnt=%s,groupNumList=%s,%sis7    ²¹³ä»úÆ÷ÈËÊý=%s,groupValue2=%s,groupPlayerCnt=%s/%st groupValue1t groupValue2s^        ·ÖÅäÍæ¼Ò: playerID=%s,groupValue2=%s,cmpValue2=%s,playerServerID=%s,fightPowerTotal=%sRRtplayerGroupDictN(;RrRŠRtR‹RŒRwRR›R RðRqRÏRÐRëR{RìRRR>tGetServerCntMintGetServerCntMaxtGetAvgServerCnttGetGroupPlayerMintGetGroupPlayerMaxt__getAreaRobotListRïRuRvRxRzR|R}RRRÚRÛR¢R R RÒtinttmathtceiltfloatRÞRîtGetZZBFBillGroupValue2RR+tshuffleRPRRStPlayerBillboardtUpdatePlayerBillboardByIDRR«R¬tC2S_ZZBFGroupRet(<RRRRt regServerCntR~t    initScoretserverPlayerGroupDictRóR‚RòR    R=t serverCntMint serverCntMaxt avgServerCnttgroupPlayerMintgroupPlayerMaxt    robotListtgroupServerIDListtavgPerServerCnttaIndextsIndextdoCntteIndextlockPlayerInfoListR€RR0tplayerLockRecDicttrecIndexRRRR2tfightPowerTotalt serverIndext serverIDListtplayerInfoListt groupNumAddR4tgroupCntt groupNumListt    loopIndext playerIndext    groupDictt
playerInfoRRAtgroupPlayerListR@tgroupPlayerCntt needRobotCntt
fightPowertrobotIDtgpIndextcmpValuet    cmpValue2RBRÄRµ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR“Çs 
                   
 
 
 
 
 
 
 
      +
    
!
 
     
 
 
 
 
 %      
#cCs|g}tjtjƒ}x]|D]U\}}tjd|ƒ}|sIqn||jƒkraqn|j||gƒqW|S(NtRobot(RÚtGetRobotFightPowerSortListR\tRobotTempNum_ZZBFRÏRêt GetTempValue1Rï(R    RZtrobotFPSortListRrRst robotIpyData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRH‰scCs |d|S(Niè((R    R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRM•scCs|d}|d}||fS(Niè((RAR    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(NRRRBs?Õ÷Õ½°Ë·½Ëø¶¨·Ö×é! zoneID=%s,playerID=%s,areaType=%s,groupNum=%s(RtRuRvRwRÜRRzRÝR+RrRŠR¹RºR»R¼R½R¾R¿RÀRÂ(RµRÃRRRBRãRt    groupInfoR    RRäRRÅR‚RÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRQ›s(
 
   ! 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R}RÏRêtGetDayBillTempIDROtDoGiveBillboardAwardByActTempIDtFalset__checkBillAwardt GetDataListRRrRžRR( RRRtfuncNametmailKeyt    dbBillMgrt    groupListt billboardTypeR@RAR    Ròt
templateIDR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRȹs2   ! cKsÚ|jdƒ}|jdƒ}| s3| s3| r7dS|jƒ}|j|gdtƒ}|svtjd|ƒdS|dkr¦t|ƒsÖtjd|ƒdSn0|dkrÖt|ƒsÖtjd|ƒdSntS(    NRR‚R%s__checkBillAward 222222222 %sRƒs'µ±ÈÕûÓÐÕ÷Õ½²»·¢·ÅÈÕ°ñ½±Àø! playerID=%sttotals)±¾Èü¼¾Ã»ÓÐÕ÷Õ½²»·¢·Å½áËã½±Àø! playerID=%s(RPtGetIDR(RÒRrRžRR(tbillDatatkwargsRR‚RR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR‰Øs$     c)Cs_t|ƒtjddƒ}tjddƒ}tjd|ƒtjƒjtj    |ƒ}tj
ƒ}|j ƒ}tjd|||fƒg}i}tj ƒ}|j tjƒ}    |    jƒxˆ|    D]€\}
} } || krèqÇnt| ƒ\} }|j|
| | ƒ}| |krL|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!krz||krg||<n||}|j || |||||gƒqzqzWqÇntj"d| ƒ}|sjqÇn|j#ƒ} |j$ƒ}!|j%ƒ}"tjd|| | | |!|"fƒx“t|jƒƒD]}|j|ƒ}|jƒ}|jƒ}tj|ƒ}|j|gdtƒ}|r*t|ƒnd    }d    }|d}tj}| }|s‘tj}t| ddƒ}tjd
|| ||fƒn[| r    t&| ƒdkr    | d    |koÈ| dknr    tj'}t(| d|ƒ}tjd|| || fƒnã|!rtt&|!ƒdkrt|!d    |ko@|!dknrttj}| }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/j0tj1|(|gƒqWdS(NtZZBFZZiis"=== Õ÷Õ½°Ë·½Èü¼¾½áËã === zoneID=%ss,keepNeedPer=%s,enterZZRank=%s,areaTypeMax=%sgY@sW×îºóÒ»¸ö½çÓò: zoneID=%s,groupValue2=%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æs_½áËã½çÓò: zoneID=%s,groupValue2=%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=%sR@RRtawardPlayerList(2RÈRÏRÐRrRŠRtRuR„RwRxRëRìR‹R…RR R}t GetBillboardR|RÞRIR{R}R’tGetName2t GetCmpValuetGetAccIDServerIDR(RÒRt Updown_Downt Updown_KeepRïRRêtGetUpRankRangetGetKeepRankRangetGetDownRankRangeRðt    Updown_UpRîtDef_CBT_ZZBFZZt    ClearDataR RORPRR«R¬tC2S_ZZBFEndInfo()RRt keepNeedPert enterZZRankRRót areaTypeMaxtenterZZPlayerListtserverAwardDictRRŽRR@RAR    Rt    billBoardR4tkeepRankR‚R“RtaccIDtscoreRÄRRtisZZR!tupdownt nextAreaTypeR—Ròt UpRankRanget KeepRankRanget DownRankRanget zzBillboradt zzPlayerCntt    enterInfoRuRvRµ((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ƒxWt|ƒD]I\}}|\}}}    }
} } } |j    |ƒ}|j
ƒ}|s¤qVntjd||||    |
| | | fƒt ||d|ƒt ||    ƒt || ƒtjd| ƒ}| rw|rw|jƒ}g|}| rO|tjddƒ7}n|    |
| g}tjd    |||ƒntjƒj|ƒ}|rVt|ƒqVqVWdS(
NRRR—s"Õ÷Õ½°Ë·½Èü¼¾Íæ¼Ò½áËã: zoneID=%s,%ssS%s,playerID=%s,areaType=%s,rank=%s,updown=%s,nextAreaType=%s,batCntTotal=%s,isZZ=%si
RæR•itZZBFBillAwardWeek(RtRuRvRwRÜRrRŠRðR RzRÝRR"R%RÏRêtGetWeekAwardListtGetFuncEvalCfgt
PlayerMailt SendMailByKeyR¹RRÂ(RµRÃRRR—RãR‚R"RR    R!R¯R°RR®RäRRòt WeekAwardListtitemListt    paramListRÆ((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyR¤ks6
 
          
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 OnZZBFMatch“sH       
 
 
$
      
"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__OnZZBFMatchRefresh½s    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_RetÁs      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žRqRQRMRtR‹R˜RwRR|tGetIDOrderDictRPRWt__SyncZZBFMatchListRÉtCostPlayerResourcestSetPlayerNomalDictR\RÇRÏR¹R RÒRÐRIRïR{RðRÞRîR+RNtremoveR RTR}R’tFindByIDRØtinsertRY(0RÕRÍtisSysRÃRÃRR~RRR    RR@RARªt billDataCntt
idRankDictt
playerRankRXRÁRÂRÀt matchPerListt matchHighCntt matchNearCntt matchLowCntt needMatchCntt highRankListt lowRankListtrankPerR!t nearRankListt nearStartRankt nearEndRanktnearRankRangeListthighRankRangeListR‚tfromRankttoRanktrankListtlowRankRangeListR_t matchRankListtmatchCnttmSigntmCntt rankRangeListR“RátmatchID((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÔÉs.                 
 
&                            !
 
 
 
 
 
 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
PlayerNameRtRealmLVtGetLVtLVtGetFacetFacet
GetFacePictFacePicR\tDef_PerPointValuet
FightPowert FightPowerExt
GetTitleIDtTitleIDt GetModelMarkt    ModelMarktGetEquipShowSwitchtEquipShowSwitchR¢tServerIDRïRðt
MatchCountRÉt SendFakePack(RÕRXt
clientPackRRt    matchInfoRr((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.pytOnFBPlayerOnDayCrossŸs
 
 
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%¦s 
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.pytOnFBPlayerOnLogin³s 
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.pytRefreshActZZBFInfo¿s 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žRR+RÇR,R-R.tDef_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#Îs,   
 
 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ÈRwR)RÏ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@RA((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytOnTurnFightRequestCrossscCsˆ|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.pyRDs   c D CsX|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 krd|j'ƒ}.t(d |.|)ƒ}/t)j*| ||/d|d|ƒn|-d kr±|j'ƒ}0|0|-}/t)j*| ||/dt
d|d|ƒq±n|
ji|(d6|*d6|)d6|#d6ƒt+|t
dt
d|ƒt&t,j,ƒƒ}1t-j.| ƒ}2|2r&|2j/ƒnd }3|2r>|2j0ƒnd }4|2rV|2j1ƒnd }5|2rn|2j2ƒnd}6|2r†|2j3ƒnd}7|2rž|2j4ƒnd}8| |3|4|5|6|7|8g}9it5d 6|d!6| d"6|9d#6|1d$6|(d6|*d6|)d6}:t6j7| ||||#|:ƒ| tj8krT|3rTt-j.| ƒ};|;rO|;j/ƒnd }<|;rg|;j0ƒnd }=|;r|;j1ƒnd }>|;r—|;j2ƒnd}?|;r¯|;j3ƒnd}@|;rÇ|;j4ƒnd}A| |<|=|>|?|@|Ag}Bit9d 6|d!6| d"6|Bd#6|1d$6|(d6|*d6|)d6}:tj |3ƒ}Ct6j7| |C|||#|:ƒ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=%sR?iigY@s(addScore=%s,addScoreEx=%s,reduceScore=%sR@RAtautoSorttaddScoret
addScoreExt reduceScoretfinalWinRéRÃtR-R3R6ttagInfotbatTime(ii(ii(:RßR\t Def_FactionARPRrRžRDtErrLogtupdateRðRÒRFRqRQRWRwRRMRtR‹R˜RçR‚t Def_FactionBRÉRäR)RuR„RxR(RRRRRÏR¹RÐRIRšRÞRORPRÔttimeRÚRÛR¢RRRRR tRecAtkType_AtkR    tSend_C2S_TurnFightAwardAfterRtRecAtkType_Def(DRÕtguidR<R=R>R?R@RAt
winFactiontstatMsgt    awardDictRR0tisWinRGRHRIt    canAtkRetRÃR~RRR    RRXRR@RARªt curBillDatat tagBillDatat
matchIndexR3R6twinRettwinRNRRRRRKRMRLtmatchScoreListt addScorePert addScoreTotalttagScoreRutcurScoreRQt tagViewCachet tagServerIDttagFacet
tagFacePict
tagRealmLVRFt tagPlayerNameRPt    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-R3R6RPRQRKRMRLitNameRtAddScoret ReduceScoret
AddScoreExis$    ¸üнñÈÕÕ÷Õ½´ÎÊý! todayBatCnt=%s(RtRuR„RwRR)tSetTimeR.R1R4R7R:R=RBRGt SetUserDataRWRrR¹RRZRúRûRÆR\R-tCheckTimeIsSameDateRR+RžRÂ(RR<R=R^RpR-R3R6RPRQRKRMRLR0RkRlRmRnRFRotmaxCountt
gameRecMgrt    atkRecMgrRRÆRt todayBatCnt((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pytC2S_TurnFightAwardAfter¯sF
 
 
 
 
 
 
 
          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=%sR's+Õ÷Õ½°Ë·½ÃÅÆ±ÒÑÂúÎÞ·¨¹ºÂò! curMoney=%s >= %sscanBuyCnt=%s,curMoney=%s/%sis4Õ÷Õ½°Ë·½ÃÅÆ±½ñÈÕ¹ºÂò´ÎÊýÒÑÓÃÍê! todayBuyCnt=%s >= %ss todayCanBuy=%s,todayBuyCnt=%s/%ss ×îÖÕbuyCnt=%siit
ZZBFBatBuy(RrR¹R¼RÞtBuyCntRžRÏRÐRR(RwR)RÆR\R,RîR¹tPayMoneyR+t ItemControlertGivePlayerItemOrMailRÂ(R‚RËRÌRÆtbuyCntR/R0t    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=%steventR'isÕ÷Õ½°Ë·½Ã¿ÖÜĤ°Ý½±ÀøÒÑÁìÈ¡!R•it ZZBFWorship(RßtDataExt    DataExStrRrRžtToIntDefRÏR¹tstrRÆR\R-R.tpowRR+RÂRŠR‹RˆR7( RÆRËRÌRt    awardTypet    dataExStrtbatCnttbatCntAwardDictt awardItemListR…t
awardState((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt GetZZBFAwardsB           
" 
"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|_|r,t|ƒnd|_|jtjƒ|_|jtjƒ|_|jtjƒ|_ |jtj!ƒ|_"|jtj#ƒ|_$t%j&||ƒdS(Nii
('RÆR\R6RtRuRvRwRÜRzRßRÝRR)R&RttagSCZZBFPlayerJoinInfoRt GroupFPRankt    PreZoneIDt PreAreaTypeR tPreRanktAreaTypeRMt GroupValue2R#t EndAreaTypeRÇtTodayRefreshCntR,t TodayBuyCntR-t TodayBatCntR.t BatAwardStateR7t WorshipStatet NetPackCommonR (RÆRãRäRt preZoneAreaRR    R!((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyRÂ5s.        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ûtGetOperationActionDateStrRttagSCActZZBFInfoRat 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ÁPs.                     i((|RZR«R6RtRwRÏRRÚRORR±RŠR¾RÉR    RnRºRrR\R+RJRVt BatRoundMaxR{R·R’R”R–R˜RRRR
R RRRRRRRRRR R"R#R%R&R'R)R+RWRYR,R.R/R1R2R4R5R7R8R:R;R=R?RBRDRGRHRqRƒR†R‰R„R‘RšR›RˆR­ReRÇRÉRÊR¶RåRøR¸RáR/R>R“RHRMR}RQR•RÈR‰R—R¤RÓRURÖRØRˆRÔRãR$R&R%R3R5R#RÅRCRERDRzR†R•R£RÂRÁ(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZZBF.pyt<module>sè                                                                                                                                                                              $                                    '                 
            'B    g    g    *        Â                                     (    *    ´                                                       …    4    %    -