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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
Ø­jc    @sÀ ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl!Z!ddl"Z"ddl#Z#ddl$Z$ddl%Z%ddl&Z&ddl'Z'ddl(Z(ddl)Z)ddl*Z*ddl+Z+ddl,Z,ddl-Z-ddl.Z.ddl/Z/ddl0Z0ddl1Z1ddl2Z2ddl3Z3ddl4Z4ddl5Z5ej6ƒa7dZ8dZ9d„Z:e;dd„Z<d„Z=gd„Z>gdddgd    „Z?gd
„Z@gd „ZAd „ZBgd „ZCgd„ZDgd„ZEgd„ZFd„ZGgd„ZHggggggejIeJd„ZKgddddejIeJd„ZLd„ZMd„ZNd„ZOd„ZPd„ZQdd„ZReJd„ZSd„ZTd„ZUd„ZVd „ZWd!„ZXd"„ZYd#„ZZd$„Z[d%„Z\d&„Z]d'„Z^d(„Z_e;d)„Z`d*„Zad+„ZbeJd,„Zcd-„Zdd.„Zed/„Zfd0„Zgd1„Zhd2„Zid3„Zjd4„Zkd5„Zld6„Zmd7„Znd8„Zod9„Zpd:„Zqd;„Zrd<„Zsd=„Ztddeud>„Zvgd?„Zwe;eJd@„ZxdA„ZydB„Zzdde;deJdC„Z{dD„Z|dE„Z}dF„Z~dde;ddG„ZddH„Z€eudI„ZdJ„Z‚dK„ZƒdL„Z„dM„Z…ej†eJdN„Z‡dO„ZˆdP„Z‰dQ„ZŠdR„Z‹dS„ZŒdT„ZdU„ZŽdV„ZddW„ZdX„Z‘eudY„Z’dZ„Z“d[„Z”d\„Z•e;d]„Z–d^„Z—e;d_„Z˜ej™idde;eJd`„Zšda„Z›db„Zœdc„Zdd„Zžde„ZŸdf„Z ej¡ie;e;eJdg„Z¢dh„Z£di„Z¤dj„Z¥dk„Z¦dl„Z§dm„Z¨dn„Z©do„Zªdp„Z«dq„Z¬dr„Z­ds„Z®dt„Z¯dufdv„ƒYZ°dw„Z±dx„Z²dy„Z³dz„Z´e;d{„Zµe;d|„Z¶d}„Z·d~„Z¸d„Z¹d€„Zºd„Z»d‚„Z¼eJe;dƒ„Z½d„„Z¾d…„Z¿d†„ZÀeud‡„ZÁdˆ„ZÂd‰„ZÃddŠ„ZÄeJd‹„ZÅdŒ„ZÆd„ZÇdŽ„ZÈd„ZÉd„ZÊd‘„ZËd’„ZÌd“„ZÍdd”„ZÎd•„ZÏd–„ZÐd—„ZÑdddd˜„ZÒd™„ZÓddš„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ª„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º„Zôd»„Zõd¼„Zöd½„Z÷d¾„Zød¿„ZùdÀ„ZúdÁ„Zûd„ZüdÄZýdĄZþdńZÿdƄZdDŽZdȄZdɄZdʄZd˄Zd̄Zd̈́Zd΄ZdτZ    dЄZ
dфZ d҄Z dӄZ dԄZdՄZdքZdׄZeud؄ZdلZdڄZdۄZd܄Zd݄ZdބZd߄Zdà„Zdá„Zdâ„Zdã„Zeueudä„Zdå„Zddæ„Z ddç„Z!dè„Z"dé„Z#dê„Z$dS(ëiÿÿÿÿNiic
Cs·tjƒjƒ}d}t||ƒ|kr\|jƒtjd||f|jƒƒtS||jdƒdkr•|j    dƒ|j
d|ƒn|j ƒ}||krôtjd|j ƒƒ|j ƒ}|j    |dƒ|dkrôtSntj|jƒ|jƒ||ƒ}tj||t|jƒƒƒd    }    ||    kr³tjd
||jƒ|jƒ||g|    ||fƒ|j ƒ}|j    |dƒ|dkr³tSntS( NiˆsZPlayerMoveCheckClientWorldTick -- ·þÎñÆ÷tick %s-¿Í»§¶Ë%sʱ¼äÏà²î¹ý´ó£¬¿ÉÄÜÒòÍøÂçÒýÆð£¬À­»Øt    CheckTicki`êis/---clientWorldTick < lastMoveTick: %s, TickÌ«Âýiiis>¾àÀë²î%s ×ø±êS/C:%s---ÑéÖ¤Á½´Îtick¼ä¿ÉÄܲúÉúµÄ×ø±ê²î%s %s - %s(t    GameWorldt GetGameWorldtGetTicktabstSync_ClientTicktDebugLogtGetIDtFalset GetDictByKeyt SetMoveCounttSetDicttGetClientMoveTicktGetAccIDt GetMoveCounttGetDisttGetPosXtGetPosYtmathtceiltfloattGetSpeedtTrue(
t    curPlayertclientWorldTickt sendPack_PosXt sendPack_PosYt gameWorldTicktDef_Max_Move_Tickt lastMoveTickterrCnttdistt canMoveDist((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerMoveCheckClientWorldTickUs6
         $' #  icCs;|dkrd}n|j|jƒ|jƒ||ƒdS(Niÿÿÿÿi(t    NotifyAllt    GetBuffert    GetLength(RtsendPackt
notifySelft    notifyCnt((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt PyNotifyAllˆs     cCsä|jƒ}|jƒ}|jƒ}tjƒj||ƒr@tStj||dƒ}|jƒ}|jƒ}||kr¬||kr¬|j    ƒtj
d||f|ƒn4|j ||ƒ|j    ƒtj
d||f|ƒt S(Nis Íæ¼ÒÎÞ·¿É×ß, ´ò»ØÖØÉúµã!(%d,%d)s"Íæ¼ÒÕ¾ÔÚÕϰ­µãÖÐ, Í£Ö¹Òƶ¯ (%d,%d)( RRRRtGetMaptCanMoveRtGameMaptGetEmptyPlaceInAreatStopMovetLogtResetPosR(Rt curPlayerPosXt curPlayerPosYt curPlayerIDt
curFindPost curFindPosXt curFindPosY((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytDoLogic_PlayerInBarrierPoint•s     
 
cCs7|dkrtjdƒdS|j|t|ƒƒdS(NsNotifyCode Player = None(tNoneRtErrLogt
NotifyCodet__GetNotifyCodeList(RtmsgMarkt msgParamList((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR9»s
  c
Csatjƒ}xNt|jƒƒD]:}|j|ƒ}    tj|    ƒsIqnt|    ||ƒqWdS(N(RtGetPlayerManagertxranget OnlineCounttOnlineAttIsNormalPlayerR9(
tcountryR;R<tlineIDt mergeMinOSDt mergeMaxOSDt mergeMapInfot playerManagertiR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt WorldNotifyÌs cCsitjd6|||gd6S(NtTypetParams(t ShareDefinetCrossNotify_World(RBR;R<((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetCrossWorldNotifyInfoÖscCsitjd6|||gd6S(NRJRK(RLtCrossNotify_Family(tfamilyIDR;R<((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetCrossFamilyNotifyInfoÙscCs>t||gƒ}tjƒjdddd|t|ƒƒdS(sò ¿ç·þ¹ã²¥ÐÅÏ¢Ìáʾ£¬Ö§³Öͬ²½¶àÌõ£¬Í¬Ê±Ò²½¨Òé¶àÌõÒ»Æðͬ²½
    @param serverGroupIDList: ÐèҪͬ²½µ½µÄÄ¿±ê·þÎñÆ÷×éIDÁбí
    @param crossNotifyList: ÐÅÏ¢ÌáʾÁÐ±í£¬Í¨¹ý GetCrossWorldNotifyInfo GetCrossFamilyNotifyInfo º¯Êý»ñµÃ·µ»ØÖµÌí¼Óµ½Áбí
    it CrossNotifyN(tstrRR=tGameServer_QueryPlayerResulttlen(tserverGroupIDListtcrossNotifyListtsendMsg((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRRÜs(cCsdS(N((RPR;R<((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt FamilyNotifyìscCs tjƒj|t|ƒƒdS(N(RtGetMapCopyPlayerManagertBroadcastFB_NotifyCodeR:(R;R<((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytFBNotify÷scCstjƒ}xlt|jƒƒD]X}|j|ƒ}|dks|jƒrRqn|jƒ|krt|||ƒqqWdS(N(    RRZR>tGetPlayerCounttGetPlayerByIndexR7tIsEmptyt
GetFactionR9(tfactionR;R<tcopyMapPlayerManagerRHR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytFBFactionNotifySelfûs cCstjƒ}xlt|jƒƒD]X}|j|ƒ}|dks|jƒrRqn|jƒ|krt|||ƒqqWdS(N(    RRZR>R]R^R7R_R`R9(RaR;R<RbRHR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytFBFactionNotifyOthers cCstjƒ}x|t|jƒƒD]h}|j|ƒ}|dks|jƒrRqn|jƒ|krwt|||ƒqt|||ƒqWdS(N(    RRZR>R]R^R7R_R`R9(Rat selfMsgMarktselfMsgParamListt otherMsgMarktotherMsgParamListRbRHR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytFBFactionNotifys cCsL|dkrdSd||f}tjƒjdd|d|t|ƒƒdS(Nis
("%s", %s)t
TeamNotify(RR=RTRU(tteamIDR;R<RX((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRj#s
 (c
 
CsdS(N((
t mailTypeKeytbatchPlayerIDListtbatchAddItemListtbatchParamListt    batchGoldtbatchGoldPapert batchSilvert batchDetailt moneySourcet    crossMail((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt SendMailBatch,stc
Cs+x$|D]}
tj||
||ƒqWdS(N(t
PlayerMailt SendMailByKey( Rlt playerIDListt addItemListt    paramListtgoldt    goldPapertsilvertdetailRtRutplayerID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRy2s cCs†tjƒ|stSxk|D]c}t|ƒ}|tjkrLtj|ƒq|tjkrqtjt|ƒƒqtj|ƒqWtS(N(    tNotifyCodeListtClearttypettypestIntTypetAddInttLongTypetAddStrRS(R<tmsgtitemPythonType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR:<s
  cCs\|jƒ}|dks$|dkr(dStj|ƒ}tjtjƒƒ}tj||ƒS(NRwt0i(t GetLogoffTimeRtGetDateTimeByStrtGetCurrentDataTimeStrtGetDiff_Minute(Rt logoffTimeStrt
logoffTimet    loginTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetPlayerLeaveServerMinuteUs  cCsp|jƒ}|dks$|dkr(dStj|ƒ}tjtjƒƒ}||}|jddd|jS(NRwRŒiii<(RRRŽRtdaystseconds(RR‘R’R“t    diff_Time((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetPlayerLeaveServerSecondes 
cCs‰|jƒ}|dks$|dkr(dS|jƒd}tjƒjƒd}tj|tjƒ}tj|tjƒ}||}|jS(NRwRŒi(RtsplitRRRŽtChConfigtTYPE_Time_Format_DayR•(RR‘t loginTimeStrR’R“tdiffTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetPlayerLastLeaveServerPastDayws 
cCsªtj|ƒdkrtSt|ƒs)tStjƒjƒtjkr|tjƒj    ƒt
j ddƒkr|t |dƒtSntj ƒ r¦t|ƒr¦t |dƒtStS(NitDungeonDeliveritCarry_lhs_844170t
CrossMap10(tGameObjtGetHPRtCheckTransStateRR)t GetMapFBTypet IPY_GameWorldtfbtNulltGetMapIDt IpyGameDataPYtGetFuncEvalCfgR9t IsCrossServert GetCrossMapIDR(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytCheckPlayerTransports $  cCsut|ƒ|jƒt|tƒ|j|ƒ|j|ƒ|j|ƒ|jƒtj    ƒj
ƒ}t ||ƒdS(N( tExitPlayerConfrontingR-tSetIsNeedProcessRtSetPrepareTimetSetPrepareStatet SetPrepareIDtSync_PrepareBeginRRRtDelLimitSuperBuff(Rt prepareTimet prepareTypet    prepareIDttick((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR³­s
 
 
 cCsð|jƒ}||krdSt|ƒ|tjkrBt|ƒn|tjkr‘| r‘|tjtjgkr‘t    j
d||j ƒƒdSn|tj kr­t |ƒn|j|ƒ|tjkrÍdSt    jƒjƒ}t||ƒdS(Ns²»Ç¿ÖÆ×ª»»×´Ì¬ %s(tGetPlayerActiont DoPlayerStandRštDef_PlayerCancelConfrontingR®R¦tpaEventtpaNulltpaAttackRRRt paPreparingtDoExitPreparingtSetPlayerActionRRR´(Rt changeActiont forceChangetcurPlayerActionR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytChangePlayerActionÆs$  
    cCsÉtj|ƒ|jƒ}|dkr?tjd|jƒƒdS|jƒtj    krntjd|jƒƒdStj
ƒj |j ƒƒ}|dkr¯tjd|jƒƒdS|j ƒ}|jƒdS(NsDoExitPreparing -> Ã»ÓÐÄ¿±êsDoExitPreparing -> ²É¼¯¶ÔÏó²»¶ÔsDoExitPreparing ->ûÓÐÕâ¸öNPC(t    NPCCommontClearCollectNPCt GetActionObjR7RR.t GetPlayerIDtGetGameObjTypeR¦tgotNPCt GetNPCManagert GetNPCByIndextGetIndextGetPlayerHurtListRƒ(RttagObjtcurNPCtcurNPC_HurtList((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÀës     
cCsOt||ƒrdS|jtjƒ}|td|ƒB}t|tj|ƒdS(Ni(tGetPyPlayerActiontNomalDictGetPropertyRštDef_Player_Dict_PyPlayerActiontpowtNomalDictSetProperty(RRÂtstate((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytChangePyPlayerActions cCs/|jtjƒ}|td|ƒ@}|dkS(Nii(RÔRšRÕRÖ(Rtactiont receiveStateRØ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÓscCst|tjdƒdS(Ni(R×RšRÕ(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytClearPyPlayerAction!scCsA|jƒ}||krdS|j|ƒtj|d|ƒdS(NsÉèÖÃÍæ¼ÒÊÇ·ñ¼¤»î:%s(tGetIsNeedProcessR¯RtGodLog(Rt isNeedProcesstcurPlayerIsNeedProcess((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¯,s    cCs|jƒtjkrtStS(N(R¹R¦R¾RR(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytIsPlayerInFight;scCsdS(N((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytAutoEnterPlayerConfrontingNscCsdS(N((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR®es
cCs    |jƒtjkrdS|jƒtjtjgkr;dS|jƒ}|dkrWdS|j    ƒtj
krpdSt j ƒj |jƒƒ}|dkr›dS|jƒ}tjd|ƒ}|sÃdS|jƒsÓdSt|tjƒ|jƒdkr|jdƒndS(Nt
CollectNPC(R¹R¦R¿tGetPrepareStatetpstMissionCollectingRLtDef_PstProduceRÈR7RÊRËRRÌRÍRÎtGetNPCIDR©tGetIpyGameDataNotLogtGetCanBreakCollectRÅR½t SetActionObj(RRÐRÑtnpcIDtcollectNPCIpyData((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytBreakPlayerCollectvs,     cCs>|jƒtjkrdS|jƒt|tƒ|jƒdS(N(R¹R¦tpaSitR-R¯RtSit(RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt DoPlayerSit¬s 
 
cCs'|jƒtjkrdS|jƒdS(N(R¹R¦RîtStand(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRºÃs
cCs6|jƒ|j|jtjƒ|jtjƒƒdS(N(R-tSetDeadR    RštDef_NPCDead_KillerIDtDef_NPCDead_KillerType(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt DoPlayerDeadÒs
c Csß|jƒs&tjd|jƒƒtS|jƒsLtjd|jƒƒtStjƒ}t}|j||ƒtkr#t    j
||t j ƒ}|j ƒ|krÖ|jƒ|krÖtjd||f|jƒƒtStjd|||j ƒ|jƒf|jƒƒ|j ƒ}|jƒ}n|j ƒ}|jƒ}    tj||||    ƒ}
|
dkryt|||||ƒtSt}tjd||||    |
fƒ|}|    }t|||||ƒtSt|||||ƒtS(NsµØÍ¼Ã»ÓжÁÈ¡³É¹¦, Ë¢ÐÂʧ°ÜsûÓÐËٶȲ»ÄÜË¢ÐÂ×ø±ê!s6Íæ¼ÒÖØÖÃλÖÃʧ°Ü, °ÑÍæ¼Ò´ò»ØÖØÉúµã posX = %s posY = %ssX×ø±ê´íÎ󣬼ì²éÍæ¼ÒͣϵÄ×ø±êÊÇ·ñÕýÈ· posX = %d, posY = %d, ÖØÖÃλÖÃ:posX = %d, posY = %dis+Client=(%s,%s), Server=(%s,%s), ²îÒì¾àÀë=%s(t GetMapLoadOKRR.RÉRRR)R*RR+R,RštDef_DropItemDistRRRt__FixPlayerPosR( RtcheckObjtposXtposYtcanChangeClientPostcurMapt needResetPost    resultPostobjPosXtobjPosYR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerRefreshPosäsB       $        )        cCs8|r|j||ƒdS|r4|j||ƒdSdS(N(R/t    ChangePos(Rùt
changePosXt
changePosYtneedResetServerPostneedChangeClientPos((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRøIscCs>|jdƒ}|sdS||dkr-dSt|tƒtS(NtDelayDeleteMirrori'(R    t DeleteMirrorRR(RR¸taddTick((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytOnDelayDeleteMirrorVs cCsš|jƒsdS|jƒ}|retjd|ƒt||ƒtjƒjƒ}|jd|ƒdStjd|ƒtj    |ƒt
|ƒ|j ƒdS(s »ØÊÕ¾µÏñÍæ¼Ò
    Ns¾µÏñÍæ¼ÒÉèÖÃÑÓ³Ù»ØÊÕ!Rs ¾µÏñÍæ¼Ò»ØÊÕ!( tGetRealPlayerIDRÉRRtSetPlayerSightLevelRRR tPassiveBuffEffMngtOnPlayerLeaveMaptKillPlayerSummonNPCR    (RtisDelayRR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR    _s    
 
cCsag}x6t|jƒƒD]"}|j|ƒ}|j|ƒqWx|D]}tj|ƒqFWdS(N(trangetGetSummonCounttGetSummonNPCAttappendRÆt    SetDeadEx(Rt summon_Listtindext curSummonNPCt    summonNPC((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRxs cCs|jƒ}|tjkS(N(R¹RštDef_Player_Can_Transfer_State(RRÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerCanStateTransfer‡s cCsCtj||ƒtj|ƒtjƒjƒdkrtjƒjƒ}|rSdnd}||gt    j
|<t j ||ƒnt |ƒt||ƒtj|ƒ|jƒt    jkrÑt    jj|jƒƒntt    _tj||ƒ|jƒ}t    jj|dƒx3t    jjƒD]"}||kr|j|ƒqqWdS(Niii(t SkillCommontRefreshAllSkillRemainTimeRÆRÇRR)R¥RtGetCurGameWorldIndext
PyGameDatatg_lastExitFBTypetFBLogict DoExitFBLogict__ClearLeaveNoSaveBufftUpdateOnLineTimeRRRÉtg_maliciousAttackDicttpopRtg_needRefreshMapServerStatet PlayerSuccesstFinishDelayAddSuccessProgresstg_playerReqEnterFBExR7tg_realmDiffPlayerDicttvaluestremove(RR¸t isDisconnecttfbIndext
exitFBTypeRRz((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__PlayerLeaveServerLogic”s( 
        cCs#|jtjttjƒƒƒdS(N(R RštDef_PDict_DayOnlineCalcTimetintttime(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt OnPlayerLoginÇscCsyt|ƒt|tjdƒ|jtjttjƒƒƒ|jtj    ƒd}t|tj    |ƒt
j d|ƒdS(NiisÀۼƵǼÌìÊý: %s( t PayCoinOnDayR×RštDef_PDict_DayOnlineTimeR R3R4R5RÔtDef_PDict_LoginDaysRt
DebugLogEx(Rt    loginDays((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt PlayerOnDayÌs
cCsˆ|j|jgddgddggkr„tjƒ}xKt|jƒƒD]4}|j|ƒ}tj|ƒssqInt|ƒqIWndS(Nii7i;(    thourtminuteRR=R>R]R^RAtRecordTodayOnlineTime(t
serverTimeRGRHR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytOnMinuteÚs* cCs t|ƒ}tj||ƒdS(s¸üмǼ½ñÈÕÀÛ¼ÆÔÚÏßʱ³¤
    ¡¾×¢¡¿²»ÄÜÔÚondayµ÷Ó㬲»È»¿ÉÄܵ¼ÖÂÁ÷Ïò¼Ç¼ÊÇ´íÎóµÄ
    ±ÈÈçÍæ¼ÒÀëÏßÁ˶àÌìºóÉÏÏߣ¬»á´¥·¢onday£¬´Ëʱ¼Ç¼µÄÔÚÏßʱ³¤Êµ¼ÊÊÇÉÏÒ»´ÎÀëÏßÌìµÄÔÚÏßʱ³¤
    
    ¡¾ÕýÈ·µ÷ÓÃʱ»ú¡¿
    1. Ã¿´ÎÀëÏß
    2. Ã¿ÈյĠ23:59 ·Ö´¥·¢Ò»´Î£¬ÀíÂÛÉÏ¿ÉÄÜ×î¶àÉÙͳ¼Æ1·ÖÖÓ£¬ÔÝÎÞÊÓ
    N(tGetOnlineTimeTodaytDataRecordPacktDR_OnlineTimeToday(Rt
onlineTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR?æs     cCsïttjƒƒ}|jtjƒ}|jtjƒ}|jtjƒ}|sW|}n|jtj|ƒ||}|dkr—||7}||7}nt    |dƒ}t
j d||||j ƒƒt |tj|ƒt |tj|ƒ|S(Nii€Qs+½ñÈÕÀÛ¼ÆÔÚÏßʱ³¤: %s, ×Üʱ³¤=%s,passTime=%s(R4R5RÔRštDef_PDict_OnlineTimeR8R    R3R tminRR:RÉR×(RtcurTimetonlineTimeTotalREtcalcTimetpassTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRBós     
 
 cCsŠ|jtjƒ}|dkr5|jtj|ƒdS|jtj|ƒ||d}|dkr†|j|jƒ|ƒt|ƒndS(Niiè(R    RštDef_PlayerKey_CalcOLTimeTickR t SetOnlineTimet GetOnlineTimetSyncOnLineTimeTotal(RR¸t lastCalcTicktdiffSec((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR% s   cCs9tjƒ}|jƒ|jƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCOnLineTimeTotalRƒRNtOnLineTimeTotalt NetPackCommont SendFakePack(RR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyROs
 
cCsPdStjƒ}|jƒ||_|jtj|ƒ|_tj    ||ƒdS(N(
RRttagMCOnlineTimeLastOpenPackRƒtPackTypeRÔRšt$Def_Player_Dict_LastAutoOpenPackTicktLastOnLineTimeRURV(RtpackTypeR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSyncOnLineTimeLastOpenPack*s 
    cCs|jƒjƒdS(N(t
GetMapBuffRƒ(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR$7scCsÌt||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||j    ƒt|ƒdS(N(
tPlayerClearBuff_Singlet GetBuffStatetClearBuffByDisconnecttGetDeBuffStatetGetAurat
GetIncBuffR]tGetActionBuffManagertGetProcessBuffStatetGetProcessDeBuffState(RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__DisconnectClearBuffGscCsˆt|ƒt||ƒt|ƒ}|jƒtj|ƒtj|ƒtj|ƒt||t    ƒt
|ƒt j d|j ƒƒdS(NsÍæ¼Ò´Ó±¾µØÍ¼ÀëÏß(R?Rgt PlayerControltRefreshAllStatetPlayerViewCachetOnPlayerLogoutt PlayerFamilytPlayerSubscribeMsgR2RRRRRÉ(RR¸t playerControl((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerLeaveServer]s
 
 
cCs~|jƒjtjƒ}xLt|jƒƒD]8}|j|ƒ}| s+|jƒrYq+n|jƒq+Wt    |t
j dƒdS(Ni( tGetItemManagertGetPackR¦t
rptRecycleRtGetCounttGetAtR_RƒR×RštDef_Player_Dict_DelPackIndex(RtbackPackRHtcurItem((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytDelRecylcePack|sc    Cs¥t|ƒt||tƒtj||ƒx,|jƒrX|jdƒ}tj|ƒq-W|j    t
j ƒ}t j ƒjƒtjkr@|jƒtjddƒkr@|jƒ}|jƒ}|jƒ}|jƒ}t|t
j|ƒt|t
j|ƒt|t
j|ƒt|t
j|ƒt jd||||fƒná|jƒt
jkr!|jƒ|kr!t j ƒj|ƒtjkr!|jƒ}|jƒ}|jƒ}t|ƒ}t|t
j |ƒt|t
j!|ƒt|t
j"|ƒt|t
j#|ƒt jd||||fƒnt j ƒjƒtjkr—t$j%|ƒdkr—|j&ƒtj'kr—t$j%|ƒt$j(|ƒkr—t$j)|ƒq—n|j*ƒdS(NitMapLineis>×îºóÒ»´ÎÀ뿪µÄ·ÇÖÐÁ¢³£¹æµØÍ¼¸üÐÂ!mapID=%s,lineID=%s,Pos(%s,%s)sJ½øÈ븱±¾Ê±£¬×îºóÒ»´ÎÀ뿪µÄ¿É·µ»ØµÄ¸±±¾ID¸üÐÂ!mapID=%s,lineID=%s,Pos(%s,%s)(+tNotifyStartChangeMapR2RR"tDoPlayerChangeMapLogicRRRÆRR    RštDef_PlayerKey_ChangeMapIDRR)R¥R¦R§R¨R©RªRRtGetClientLineIDR×tDef_Player_Dict_FromMapIDtDef_Player_Dict_FromPosXtDef_Player_Dict_FromPosYtDef_Player_Dict_FromLineIDRtDef_CanBackFBMaptGetMapFBTypeByMapIDtGetFBFuncLineIDtDef_Player_Dict_FromFBMapIDtDef_Player_Dict_FromFBPosXtDef_Player_Dict_FromFBPosYtDef_Player_Dict_FromFBLineIDR¢R£R¹tpaDietGetMaxHPt    SetHPFulltDoResetWorldPosAndClear(RR¸Rt changeMapIDtmapIDRúRûRC((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytDoPlayerResetWorldPossB
9     '     H
c Cs.|jtjƒs&tj|dƒdStjd|jƒƒtjƒrLdSd}t    }|j
ƒt j ddƒks‹|j
ƒtj krd|jtjƒ}|jtjƒ}|jtjƒ}|jtjƒ}t|tjdƒ|s't j ddiƒ}|s dS|jƒ}d}||kr?||\}}}qa|jƒ}    |    d\}}}q'nÃ|jtjƒ}
|
r÷|
}|jtjƒ}|jtjƒ}|jtjƒ}|}t}t|tjdƒtjd||||fƒn0|jƒ}|jƒ}|jƒ}|jƒ}||j
ƒkrntjƒ} | j ƒ| j!ƒ| j"ƒ}}}ntjd|||f|jƒƒt#j$ƒr×tj%ƒj&ƒj'ƒdkr×tj(ƒ} | j)dƒnt*|||||d    |d
|ƒ|j+ƒt,j-gks|j.ƒr*|j/ƒndS( NisPlayerLeaveFB...iRyit CreateRoleMapsGÀ뿪¸±±¾£¬·µ»Ø¿É֮ǰ¿É·µ»ØµÄ¸±±¾! fromFBMapID=%s,lineID=%s,posXY(%s,%s)s.PlayerLeaveFB MapID = %d, PosX = %d, PosY = %dt
funcLineIDt enterFBFree(0RÔRšt!Def_Player_Dict_RouteServerInitOKtGameServerRefresht%Set_PlayerRouteServerInitOK_OnLeaveFBRR.RÉR«RR¨R©RªR‚R~RR€RR×tGetJobR-R…R†R‡RˆRRt GetFromMapIDt GetFromPosXt GetFromPosYt GetFromLineIDR)tGetRebornMapIDt GetRebornMapXt GetRebornMapYtGameWorldProcesstIsNoPlayerNeedCloseFBRRZR]t    GetGameFBtSetIsSafeClosetPlayerResetWorldPosFBR¹R¦R½tIsMovingt
BeginEvent( RR‘R’RŽRúRûRCtcreateRoleMapDicttjobt mapInfoListt fromFBMapIDtgameMaptgameFB((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt PlayerLeaveFBÇsb 3         )#* 
"$ c
CsNtj|ƒ}|jƒ}tjd|||||f|ƒtj|ƒ}tj||ƒ}|}    tjƒj|    ƒs˜tj    d|    |j
ƒƒdStj ƒj ƒ}
t ||||||
ƒtjkrÒdS|dkrJ|dkrJtj|||ƒ} tj|||| |
ƒ} | s;tj    d||fƒdS| \}}n|jƒrc|jƒnd} t}tjƒj|    ƒ}|tjkr×|jƒr×|jƒtjkrÎtjd|jƒƒdSt}n|r.g}|tjkr|jtj |ƒ}|g}nt!||||
|ƒdSt"||||| d|ƒdS(NsAÍæ¼ÒÇëÇó½øÈ븱±¾! mapID=%s,lineID=%s,posX=%s,posY=%s,reqInfoEx=%ss###·Ç·¨µØÍ¼Êý¾Ý£¬sceneMapID: %sis&δÕÒµ½½øÈ븱±¾×ø±ê£¡mapID=%s,lineID=%ss!·Ç¶Ó³¤£¬ÎÞ·¨·¢Æð½øÈë×é¶Ó¸±±¾ÇëÇó!R‘(#tFBCommontGetRecordMapIDRÉRR.t GetFBIpyDatatGetFBLineIpyDataR)t IsMapIDExistR8RRRt CheckMoveToFBRLtEntFBAskRet_OKtGetFBLineEnterPosInfoR"tOnGetFBEnterPosR£R-RRƒR¦tfbtTeamt    GetTeamIDt    GetTeamLVt    tmlLeaderRRštDef_MapID_LineIDToPropertyIDRÔtDef_Player_Dict_FbEnterCnttSendToGameServerEnterFBR¢(RRŽRCRúRût    reqInfoExRt    fbIpyDatat fbLineIpyDatat
sceneMapIDR¸tipyEnterPosInfotretPostfbIDtisSendToGameServert    mapFBTypetextendParamListtenterCnt((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt PlayerEnterFB#sL #$       cCstjd|||f|jƒƒ|dkrGtj|||ƒ}n||g}||7}d|}|jtjdd|t    |ƒƒdS(Ns=SendToGameServerEnterFB mapID=%s,lineID=%s,extendParamList=%ss%sitEnterFB(
RR.RR7R"tGetPlayerFBLineIDtGameServer_QueryPlayerByIDRštqueryType_EnterFBRU(RRŽRCR¸RÅRX((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR»\s      
 
"c    Cs^tj|||||d||ƒ}|tjkr7|Stj|ƒdkr`tjdƒtjS|r”|j    ƒt
j kr”t j |ƒr”tjSnt j|ƒrÆ|r¿t|d|gƒntjSt|ƒr|tjkr|rýt|d|gƒntjS|jƒ}    |    t
jkrB|r;t|d|gƒntjS|    t
jkrn|rgt|dƒntjS|    tjkrš|r“t|dƒntjSx=tjD]2}
t||
ƒr¤|rÏt|dƒntjSq¤Wtjƒj ƒt
j!kr t"} t#j$dƒ} tjƒj%ƒ} | | krA|| | krAt&} n| tj'krYt&} ntjƒj(|ƒ}|t
j!kr¡| t)j*d    dƒkràt&} qàn?tj+| ƒtj+|ƒkràt,j-|||ƒràt&} qàn| s |rt|d
|gƒntj.Snt,j/||||ƒsWtj0d |j1ƒƒ|rPt|d ƒntjStjS( sþÅжϿɷñ½øÈ븱±¾£¬°üº¬ÊÖ¶¯¼°Æ¥Åä
    @param isTeamAsk: ÊÇ·ñÊǶÓÎé½øÈëÇëÇóµÄ£¬Ò»°ãÊǶÓÎé״̬Ï£¬¶Ó³¤·¢Æð½øÈ븱±¾£¬ÐèÒª¼ì²é¶ÓÔ±¿É·ñ½øÈ룬´ËʱΪTrue£¬¿É×öһЩ¸½¼Ó´¦Àí
    @note: ²ß»®ÒªÇóÌáʾ°´ÓÅÏȼ¶À´£¬¸±±¾×ÔÉíµÄÌõ¼þÏÞÖÆÓÅÏÈÌáʾ£¬ÆäËû¸½¼ÓÌáʾÓÅÏȼ¶½ÏµÍ
    iisÍæ¼ÒÒѾ­ËÀÍö, ÎÞ·¨½øÈ븱±¾!t SingleEnterPKt    CrossMap5tSingleEnterGathertCarry_lhs_697674tFBEnableTransportMapRŸtSingleEnterDungeons    OnEnterFBEvent False!tSingleEnterDefaul(2R¬tCheckCanEnterFBCommRLR²R¢R£RR.tEntFBAskRet_DeadR·R¦R¸t PlayerStatet IsInBossStatetEntFBAskRet_BossStatet IsInPKStateR9tEntFBAskRet_PKStateR¬RštDef_CrossMapIDListtEntFBAskRet_InCrossMapR¹R¿tEntFBAskRet_PreparingRîtEntFBAskRet_SittDef_Player_Cannot_TransStatetEntFBAskRet_Othert(Def_Player_NotCan_EnterFbPyGameEvenStateRÓR)R¥R§Rt ReadChConfigtGetEvalChConfigR¨RR‚RƒR©RªR­R"tCanChangeSameDataMapFBtEntFBAskRet_InFBtOnEnterFBEventRRÉ(RRŽRCR½R¾R¸tisNotifyt    isTeamAsktrett playerActionRtcanFBMoveToOthertfbEnableTransportMaptcurMapIDt toMapFBType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR±qsx$ 
            
cCsdS(N((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshPlayerTickÚscCsF|jƒ|krdS|jtjƒ}t|tj|ƒtjd||||f|jƒƒ|j    tj
|ƒ|j    tj |ƒ|j    tj |ƒt |ƒt|ƒtjƒ}|jƒ||_||_||_tj||ƒ|jdƒ|j||ƒt|||ƒtjƒ}|jƒtj||ƒdS(sPÍæ¼ÒÇл»µ½Ö¸¶¨¸±±¾¶ÔÓ¦µÄ¹¦ÄÜÏß·ID£¬ÊÊÓÃÓڶೡ¾°ºÏ²¢Ò»ÕŵØÍ¼µÄÇé¿ö£¬ºó¶ËÐèÔÚͬһÕÅÎïÀíµØÍ¼²ÅÄÜʹÓøú¯Êý
    ÓÉÓÚǰ¶ËµØÍ¼ºÏ²¢µÄ³¡¾°¼ÓÔØÊÇ·Ö¿ªµÄ£¬ËùÒÔÔÚÇг¡¾°µÄʱºò²»ÄÜÖ±½ÓÉèÖÃ×ø±ê£¬ÒòΪǰ¶Ëʵ¼ÊÉϲ»´æÔÚ¸Ã×ø±ê
    Íæ¼ÒÖ±½ÓÔÚµØÍ¼ÖÐÇл»¹¦ÄÜÏß·ID£¬´Ëʱǰ¶ËÐèÒª×ßÕý³£µÄÇÐͼÁ÷³Ì²ÅÄܼÓÔØÄ¿±ê¹¦ÄÜÏß·ID¶ÔÓ¦µÄ³¡¾°
    ¹ÊÕâÀï×ö¸öÐé¼ÙÇÐͼÁ÷³Ì
    NsHÍæ¼Ò¸±±¾Öбä¸ü¹¦ÄÜÏß·ÐéÄâÇеØÍ¼: mapID=%s,posX=%s,posY=%s,funcLineID=%si(R¨RÔRštDef_Player_Dict_ReqFBMapIDR×tDef_Player_Dict_ReqFBFuncLineRR.RÉR R|tDef_PlayerKey_ResetFBLinePosXtDef_PlayerKey_ResetFBLinePosYtNotifyPrepareChangeMapRzt ChNetSendPackttagPlayerMapInitRƒtMapIDtPosXtPosYRURVtSetSightR/tSetFBFuncLineIDttagServerPrepareOK(RRŽRúRûR‘treqMapIDt playerMapInitt    prepareOK((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerResetWorldPosFBLineIDàs0    
 
 
              
c    
Csütjƒjƒ}    |jtjƒ}
|    |
dkrwtjd|||||||    |
f|jƒƒt|dƒdS|j    tj|    ƒt
j |ƒ}|} t j dƒ} || krð| |} | rðtj| ƒ} tjd| ƒqðn|r|jƒntj|||ƒ}t|tj|ƒt|tj|ƒtjd| ||||||    |
f|jƒƒ|r™t|tjdƒtjd    ƒn|j| ||t||ƒ|j    tj| ƒ|j    tjtd
|ƒƒt|ƒt|ƒdS( sÎ
    ²ÎÊý˵Ã÷:
        @param fbID:
            ´óÓÚ0µÄÕûÊý:
                Èç¹û²ÎÊýmapIDÖ¸¶¨µÄµØÍ¼´æÔÚfbIDÖ¸¶¨µÄ·ÖÏߣ¬ÔòÖ±½Ó´«Ë͵½²ÎÊýmapIDËùÖ¸¶¨µÄµØÍ¼µÄfbIDËùÖ¸¶¨µÄ·ÖÏߣ¬·ñÔòÔÚËùÓдæÔڵķÖÏßÖУ¬Ëæ»úѡһÌõ·ÖÏß´«Èë¡£fbIDµÄ¼ÆËã¼ûÏÂÃæfbID=-1µÄ˵Ã÷¡£
            -1£º
                ½Ó¿ÚÄÚ²¿×Ô¶¯Ìæ»»³Éµ±Ç°fbID£¬´«Èë²ÎÊýmapIDËùÖ¸¶¨µÄµØÍ¼£¨ÕâÀï²ÎÊýmapIDÆäʵÊÇDataMapID£©µÄͬһfbIDµÄµØÍ¼(Èç¹ûÓУ¬Ã»ÓÐÔòËæ»ú)¡£
                Ï־͵±Ç°fbIDµÄ¼ÆËã,¾ÙÀý˵Ã÷,¼ÙÉèµØÍ¼AºÍµØÍ¼BÔÚMapID.txtÅäÖÃÈçÏ£º
                MapName     MapID   DataMapID FBCount
                µØÍ¼A         101     101     3
                µØÍ¼B         102     101     3 
                ¼´µØÍ¼AºÍµØÍ¼BÓй²Í¬µÄDataMapID,ÄÇôµØÍ¼B½ø³ÌÄÚ²¿µÄµÚÒ»Ìõ·ÖÏߵĿͻ§¶ËID¾ÍÊÇ3(ËùÓзÖÏߵĿͻ§¶Ë·ÖÏßID:0¡¢1¡¢2¡¢3¡¢4¡¢5)
            -2£º
                Ö±½ÓËæ»ú´«µ½²ÎÊýmapIDËùÖ¸¶¨µÄµØÍ¼µÄijһÄÚ²¿·ÖÏߣ¬ÕâÀïµÄijһÄÚ²¿·ÖÏßÏÞÓÚMapID.txtÖÐmapIDΪ´«Èë²ÎÊýmapIDµÄµØÍ¼½ø³ÌµÄ·ÖÏß¡£
    
        @param funcLineID: ¹¦ÄÜÏß·ID
    iès\Íæ¼ÒÇÐͼCDÖÐ: mapID=%s,posX=%s,posY=%s,fbID=%s,msg=%s,funcLineID=%s,tick=%s,lastTransTick=%st    MapMoveCDNt
FBMapShuntsµ¥È˵ØÍ¼·ÖÁ÷ sceneMapID=%sseÍæ¼ÒÇëÇó¿ªÊ¼ÇÐͼ: sceneMapID=%s,posX=%s,posY=%s,fbID=%s,msg=%s,funcLineID=%s,tick=%s,lastTransTick=%sis    ±¾´ÎÃâ·Ñ½øÈ븱±¾!i(RRRR    RštDef_PlayerKey_TransTickR.RÉR9R R¬R­RáRâtrandomtchoiceRR¤R"tGetPlayerResetWorldPosFBMsgR×RïRðtDef_Player_Dict_EnterFBFreetResetWorldPosReqRR|tDef_PlayerKey_ChangeLineIDtmaxRîRó(RRŽRúRûRÂRŠtcanLockR‘R’R¸t lastTransTickR¿tFBMapShuntDictt    shuntList((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¢s@    )  
     )
 
cCs•|jtƒtjƒ}|jƒtj|jtj    ƒƒ|_
|j tj ƒ|_ |j tjƒ|_tj||ƒtjd|jƒƒdS(Ns ×¼±¸Çл»µØÍ¼(t
SetVisibleRRRttagMCPrepareChangeMapRƒRtGetMapDataMapIDR    RšR|RöRÔRðt
FuncLineIDRït    FuncMapIDRURVR.R(RR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRóSs  
cCsˆtjƒ}|jƒtj|jtjƒƒ|_|j    tj
ƒ|_ |j    tj ƒ|_ tj||ƒtjd|jƒƒdS(Ns֪ͨ¿ªÊ¼Çл»µØÍ¼(RRttagMCStartChangeMapRƒRRR    RšR|RöRÔRðRRïRRURVR.R(RR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRz`s 
cCs*tjƒjƒ|kr-tjd|ƒdStjƒ}|jƒtjkr_t|dƒdS||j    ƒkr›tjd||j    ƒf|j
ƒƒdSt |t j |dƒt |t jdƒt |t jdƒt||jƒ|jƒ|jƒ|ƒtjd|jƒ|f|j
ƒƒdS(NschangLineID SameLine = %stGeRen_liubo_180377s»»ÏßµÄÄ¿µÄµØ²»´æÔÚ = %s, %siisÍæ¼Ò = %s Çл»·ÖÏß = %s, Ëø×¡(RRt    GetLineIDR8R)R¥R¦R§R9t GetMaxFbCountRR×Ršt Def_Player_Dict_PlayChangeLineIDt Def_Player_Dict_FuncChangeLineIDt Def_Player_Dict_HighChangeLineIDR¢R¨RRR.tGetName(Rt changLineIDR©((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerChangeLineqs   &(&c
 
Cstjƒ}t||jƒ|jƒ|||ƒ}    tjd|||    f|jƒƒ|jƒ|krØ|    dks†|jƒ|    krØ|r¥tj||||ƒntj    |||ƒt
j |tjƒj ƒƒdSt |||||    ||ƒtjƒdS(Ns&·ÖÁ÷ mapID=%s,lineID=%s,shuntLineID=%siÿÿÿÿ(RRtGetResetWorldPosShuntLineIDR¨RRRÉtChPlayertNotifyPlayerMovetResetPlayerPost
SkillShelltProcessMapBuffRR¢RžtOnPlayerLeaveMapCloseFB(
RRŽRúRûRCRŠR
texData1t    gameWorldt shuntLineID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerResetWorldPos™s '#0
cCsætjƒr|S|tjks.|tjkr2|Stj|}|jƒ}|jtjƒ}|jtjƒ}    |jtj    ƒ}
tj
d|||||f|ƒ|dkr‹| rù|     rù|
rùt |tj|dƒtj
d||f|ƒn|r‡t j |ƒr‡t||||||jƒƒ} | dkr‡tjƒjƒ} tj
d|| f|ƒt j||| || ƒ| Sn|S||kr«tj
d|ƒ|Stjddƒ} || kr| |}i}xK|jƒD](\}}||krqæn|||<qæWn|}t|ƒ}tj
d||fƒ|rr|t|ƒkrrtj
d    ||ƒ|dS|    r¹|    t|ƒkr¹tj
d
|    |ƒt |tjd ƒ|    dS|
r|
t|ƒkrtj
d |
|ƒt |tj    d ƒ|
dS||krŠtj
d ||ƒt|||ƒ}|dkrŸ| rŸ|     rŸ|
rŸt |tj    |dƒtj
d||f|ƒqŸnt||||ƒ}|dkrâ|d|krâ|d}tj
d|||fƒn|S(s§»ñÈ¡ÇÐͼÏß·ID
    ÇÐÏßÓÐÈýÖÖÇé¿ö
    1. Íæ¼ÒÊÖ¶¯Çл»Ïß·£¬ÓÅÏȼ¶×î¸ß
            ¼Ç¼key  Def_Player_Dict_PlayChangeLineID£¬ ÀëÏß³¬¹ý±£»¤Ê±¼äºóÖØÖã¬È·±£¶ÏÏßÖØÁ¬Õý³£¼´¿É
            
    2. ¹¦ÄÜÇл»µ½Ö¸¶¨Ïß·£¬Èç´òboss¡¢´«Ë͵½Ä¿±êÍæ¼ÒÏß·£¨±»»÷ɱÇйýÈ¥°ï棩
            ¼Ç¼key  Def_Player_Dict_FuncChangeLineID£¬ ÀëÏß³¬¹ý±£»¤Ê±¼äºóÖØÖã¬È·±£¶ÏÏßÖØÁ¬Õý³£¼´¿É
            
    3. ³£¹æÇÐͼ
            Ïß·ѡÔñÓÅÏȼ¶: ÊÖ¶¯ÇÐÏ߼Ǽ > ¹¦ÄÜÇÐÏ߼Ǽ > ¸ßµÍÇÐÏ߼Ǽ > ÏµÍ³·ÖÁ÷ÇÐÏß¹æÔò
            
            ÏµÍ³·ÖÁ÷ÇÐÏß¹æÔò: µ±Ç°µØÍ¼Ïß· ¶ÔÓ¦ Ä¿±êµØÍ¼Ïß·ÈËÊý Èç¹ûµ½´ï¶î¶¨Öµ²Å½øÐзÖÁ÷£¬·ÖÁ÷µ½ÈËÊý½ÏÉÙµÄÏß·
            
        ÌØÊâboss·ÖÁ÷: 
        @param bossID: ·ÖÁ÷bossID
    sD´¦Àí·ÖÁ÷,curMapID=%s,curLineID=%s,tagMapID=%s,tagLineID=%s,bossID=%siÿÿÿÿisI¹¦ÄÜÖ¸¶¨Çл»Ä¿±êÏß·£¬¼Ç¼µ±Ç°Ïß·ºóÐøÇÐÏß±¸ÓÃ! curLineID=%s,tagLineID=%ss&·ÖÁ÷boss, bossID=%s,bossShuntLineID=%ssͬµØÍ¼Çл»×ø±ê²»´¦Àí·ÖÁ÷£¡Rys,Ä¿±êµØÍ¼¿ÉÓ÷ÖÁ÷Ïß·ÈËÊýÐÅÏ¢: tagMapID=%s,%ss$ÓÐÖ÷¶¯Çл»¹ýÏß·!playChangeLineID=%ss,¹¦ÄÜÓÐÖ¸¶¨¹ýÏß·ÀúÊ·Ïß·,funcChangeLineID=%sis(ÓиßÏßÇеÍÏßÀúÊ·Ïß·,highChangeLineID=%ss!Ä¿±êµØÍ¼²»´æÔÚ¸ÃÏß·,curLineID=%ss?¸ßÏßÇеÍÏߣ¬¼Ç¼µ±Ç°Ïß·ºóÐøÇÐÏß±¸ÓÃ! curLineID=%s,tagLineID=%ssг£¹æ·ÖÁ÷ºóµÄlineIDΪ-1£¬µ«ÊÇÄ¿±êµØÍ¼µ±Ç°Ïß·²»¿ÉÓ㡲»¿É´«Ë͵½¸ÃÏß·£¡curLineID=%s + 1 > tagMapMaxLine(%s), Ç¿ÖÆ·ÖÁ÷µ½Ïß·(shuntLineID=%s)(RR«R tg_commMapLinePlayerCountDictRÉRÔRšRRRRR×RÆtIsMapNeedBossShuntt__GetBossShuntLineIDtkeysRRtAddBossShuntRelatedPlayerR©t
GetFuncCfgtitemsRUt__GetShuntLineID(RRìt    curLineIDttagMapIDt    tagLineIDtbossIDttagLinePlayerCountDictRtplayChangeLineIDtfuncChangeLineIDthighChangeLineIDtbossShuntLineIDR¸t mapLineDictt tagMapMaxLinettagLinePlayerCountShuntDicttktvR&((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR·sx        !   
   ! 
    c Cs!|jƒ}|jƒtjddƒkr>tjd|ƒdStjddƒ}||krptjd|ƒdS||}|dkrÀ||}||krÀtjd|||f|ƒdSng|jƒD]\}}    |    |g^qÍ}
|
j    ƒ|
dd} tjd    ||
f|ƒ| S(
NtSetWorldPosShuntis³¬¹ýÖ¸¶¨µÈ¼¶²»·ÖÁ÷iÿÿÿÿisÄ¿±êµØÍ¼²»ÐèÒª·ÖÁ÷sBδ´ïµ½¶î¶¨ÈËÊýÖµ,²»Ó÷ÖÁ÷,curLineID=%s,Ä¿±êµØÍ¼µ±Ç°Ïß·ÈËÊý: %s/%sis@·ÖÁ÷µ½ÈËÊý½ÏÉÙµÄÏß·,tagMapID=%s,linePlayerList[count,lineID]=%s(
RÉtGetLVR©R-RRRªR7R.tsort( RR1R;R0Rt mapShuntDicttlineMaxPlayerCountttagLinePlayerCountRCt playerCounttlinePlayerListR&((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR/s(  
 
     +
c  CsÜ|jƒ}|jƒ}d}d}    idggd6dggd6}
tjj|iƒ} t} tjddiƒ} tj    d||||| tj
f|ƒ|| krt d| |dƒ}|dkr||kr|j |ƒtj    d||f|ƒqnt |ƒ}x¬|D]¤}||f}tj
j|iƒ}|ro||krotj    d||f|ƒ|Sd}d}xu|jƒD]g\}}|d}||kr°qˆn|d7}|d}|rˆ||krˆ||krˆ|d7}qˆqˆW|r||    kr|}    |}n| j|dƒ}|s2dnd}|
|\}}| rd|dkrd|}n|j||gƒ||g|
|<|s–t} ntj    d    |||||    |f|ƒqW|dkrätj    d
||ƒ|S||kr |tjdd ƒkr tj    d ||ƒ|S| r,dnd}tj    d | |
fƒ|
|\}}|jƒ|d\}}tjddƒ}||kr»|dkr»tj    d||f|ƒ|Stj    d|||f|ƒ|S(s©»ñȡĿ±êµØÍ¼boss·ÖÁ÷Ïß·
                ¸ù¾ÝÈËÊý·ÖÁ÷Íæ¼Ò£¬ÓÅÏÈ·ÖÅäµ½»î×ŵÄÏß·
                ¶ÓÎéĬÈÏ·ÖÅäµ½¶ÓÎé¶ÓÔ±¶àµÄÄÇÌõÏß
                Ð­ÖúĬÈÏ·ÖÅ䵽Ŀ±êÍæ¼ÒÏß·£¬ÓÅÏȼ¶×î¸ß
                      
                Ç°¶Ë£º
        1.ÔÚÖÐÁ¢µØÍ¼µÄʱºò£¬ÏÔʾµ±Ç°Ïß·BOSSµÄ״̬
        2.ÔÚ³£¹æµØÍ¼µÄʱºò£¬ÏÔÊ¾Íæ¼Ò»÷ɱBOSSµÄCDʱ¼ä
        3.±¾µØÍ¼²»»»Ïߣ¬60Ãë¹æÔò±£³Ö²»±ä
        4.½øÈëBOSSÇøÓòÀˢÐÂBOSS״̬
        
                Íæ¼ÒÔÚ·ÇÖÐÁ¢µØÍ¼£º
                ±¾µØÍ¼²»»»Ïߣ¬60Ãë¹æÔò±£³Ö²»±ä£¨£©
                
                Íæ¼ÒÔÚÖÐÁ¢µØÍ¼
                Ã»ÓÐ60Ãë¹æÔò
                Ö±½Ó·¢´«ËͰü£¬Óɺó¶Ë¾ö¶¨£¨ÓжÓÔ±ÔÚ²»Í¬Ïß·´òͬһֻboss£¬Ôò´«ËÍ£¬·ñÔòmove£©
    iÿÿÿÿiiRyisnÍæ¼Òboss·ÖÁ÷: playerTeamID=%s,tagMapID=%s,npcID=%s,lineIDList=%s,bossLineStateDict=%s,g_bossShuntPlayerInfo=%ss>    ·Ç1ÏߵĻÏß·²»²ÎÓë·ÖÁ÷: activityLineID=%s,lineIDList=%ss9    ·ÖÁ÷µ½Ð­ÖúÄ¿±êÍæ¼ÒÏß· assistTagPlayerID=%s,lineID=%ssg    lineID=%s,lineBossIsDead=%s,playerCount=%s,teamPlayerCount=%s,hurtTeamMemCount=%s,hurtTeamLineID=%ss,    ·ÖÁ÷µ½¶ÓÓÑÈËÊý¶àµÄÏß· hurtTeamLineID=%sis/    ÖÐÁ¢µØÍ¼ÔÚ±¾µØÍ¼ÖÐĬÈϵ±Ç°Ïß· curLineID=%ss>    boss״̬¶ÔÓ¦Ïß·ÈËÊý: haveAliveLine=%s, ×´Ì¬key0Ϊ»î×Å: %st    BossShunts4    ·ÖÁ÷µ½¿ÕÐÂÏß· shuntBossIsDead=%s,emptyLineID=%ssX    ·ÖÁ÷µ½ÈËÊý×îÉÙµÄÏß· shuntBossIsDead=%s,minPlayerCntLineID=%s,linePlayerCountList=%s(RÉR¶R tg_bossShuntLineStatetgetRR©RªRRtg_bossShuntPlayerInfoR    R.tGetAssistTagPlayerIDR.RRR@R-( RRìR0R1Rët
lineIDListRt playerTeamIDthurtTeamLineIDthurtTeamMemCounttbossLinePlayerDicttbossLineStateDictt haveAliveLinetactivityMapLineDicttactivityLineIDtassistTagPlayerIDRCtkeytshuntPlayerDictRDtteamPlayerCountt shuntPlayerIDt    shuntInfoR3t shuntTeamIDt lineIsAlivetlineBossIsDeadt emptyLineIDtlinePlayerCountListtshuntBossIsDeadtminPlayerCntLineIDtbossShuntPlayerCountMax((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR*9s€              
 
 
                ! $
    cCs¼d}d}|jƒ}tjƒ}|j||ƒsVtjd||||fƒn\tj|||ƒ\}}|dks‰|dkr²tjd||||f|jƒƒn||fS(Nis=ÖØÉúµãÒì³££¬³¬¹ýµØÍ¼(%s)±ß½ç posX = %s, posY = %s, round = %ssKÖØÉúµã·¶Î§ÄÚÕÒ²»µ½¸ÃµØÍ¼(%s)µÄ·ÇÕϰ­ÖØÉúµã posX = %s, posY = %s, round = %s(    R¨RR)t
IsValidPosR8R+tGetNearbyPosByDisR.RÉ(RRúRûtroundt
rebornPosXt
rebornPosYRìR©((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__GetLegitRebornPoint¥s           cCs™|jƒ}|jƒ}|jƒ}|j|ƒ|j|ƒ|j|ƒ|j|ƒ|j|ƒ|j|ƒt    j
d|||f|j ƒƒdS(Ns,ÉèÖÃĬÈÏÖØÉúµãΪµ±Ç°Î»ÖÃ! mapID = %s-(%s,%s)( R¨RRtSetRebornMapIDt SetRebornPosXt SetRebornPosYtSetFBRebornMapIDtSetFBRebornPosXtSetFBRebornPosYRRRÉ(RR¸t rebornMapIDReRf((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshRebornPoint¿s         #cCs,|dkr|dkrdS|ddSdS(Niiii
((tcurLV((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetRank_sc    Csîtƒ}|dkr&tjdƒ|Sg}x»td|jƒƒD]¤}|j|ƒ}|dksB|jƒdkr{qBntj    |ƒdkr–qBntj
|||j ƒ|j ƒƒ|krÆqBn|j |ƒ|j |jƒƒqBW|S(Ns»ñÈ¡¶ÓÎéÇøÓò³ÉÔ±£¬¶ÓÎé²»´æÔÚ£¡i(tlistR7RR8RtGetMemberCountt    GetMemberRÉR¢R£RRRR(    tcurTeamtcenterXtcenterYtareatisLogt
playerlistRzRHt curTeamPlayer((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetAreaTeamMemberms"        cCsztƒ}|dkr|SxZt|jƒƒD]F}|j|ƒ}|dks,|jƒdkreq,n|j|ƒq,W|S(s »ñȡͬµØÍ¼ÖеĶÓÔ± iN(RrR7R>RsRtRÉR(RuRzRHR{((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMapTeamMembers     cCs¶|tjkr|jƒS|tjkr2|jƒS|tjkrKt|ƒS|tjkrd|jƒS|t    j
kr}t |ƒS|t    j kr–t |ƒS|t    jkr²t||ƒSdS(Ni(R¦tTYPE_Price_Gold_MoneytGetGoldtTYPE_Price_Gold_Papert GetGoldPapertTYPE_Price_Silver_Moneyt    GetSilvertTYPE_Price_Silver_PapertGetSilverPaperRLtTYPE_Price_PayCoint
GetPayCointTYPE_Price_CashVouchertGetCashVouchertTYPE_Price_CurrencyDicttGetPlayerCurrency(Rt
TYPE_Price((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMoney±s
 
 
 
 
 
 cCs4|jtj|ƒ}|dkr'| St||ƒS(Ni(RÔRštDef_PDict_MoneyMinusR(Rt    moneyTypet
moneyMinus((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetMoneyRealÑs cCs[|tjkr{|jtj|ƒ}|dkrY||krPt|||ƒnd}q{|dkr{t||dƒq{n|tjkrš|j|ƒn½|tj    kr¹|j
|ƒnž|tj krØt ||ƒn|tj kr÷|j|ƒn`|tjkrt||ƒnA|tjkr5t||ƒn"|tjkrWt|||ƒndS(Ni(RLtMoneyMinusRefreshDictRÔRšRŽt SetMoneyMinusR¦R~tSetGoldR€t SetGoldPaperR‚t    SetSilverR„tSetSilverPaperR†t
SetPayCoinRˆtSetCashVoucherRŠtSetPlayerCurrency(RRtvalueR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetMoneyØs.       cCsft|ƒ}t|tj||ƒ|tjkr6dStj|}|dkrbt|||ƒndS(N(RR×RšRŽRLR’R7tSendPropertyRefresh(RRR›t refreshType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR“    s   cCsy|tjkr|jƒS|tjkr2|jƒS|tjkrK|jƒS|tjkrd|jƒSt    j
d|ƒdS(Ns#GetWarehouseMoney, moneyType:%d Erri( R¦R~tGetWarehouseGoldR€tGetWarehouseGoldPaperR‚tGetWarehouseSilverR„tGetWarehouseSilverPaperRR8(RR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetWarehouseMoney    s
 
 
 
cCs|jtj|ƒS(N(RÔRštDef_PDict_Currency(Rt currencyType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR‹$    scCs+t|tj||ƒt|||ƒdS(N(R×RšR¤tNotifyPlayerCurrency(RR¥R›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRš*    scCsb|tjkrdStj|}|dkr0dS|dkrNt||ƒ}nt|||ƒdS(Ni(RLRŠR7R‹R(RR¥R›Rž((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¦0    s   cCsRg}xjtjD]_}tj|}|dkr5qnt||ƒ}tjƒ}||_||_|j|ƒqWx|tj    j
ƒD]k\}}|dkr¡qƒn|j t j |ƒ}|sÃqƒntjƒ}||_||_|j|ƒqƒWtjƒ}|jƒ|jƒ|_|jƒ|_t|ƒ|_||_tj||ƒdS(N(RLRŠR7R‹RRttagRefreshTypet RefreshTypetValueRR’R.RÔRšRŽttagObjInfoListRefreshRƒRtObjIDRÊtObjTypeRUtCountRURV(Rt
notifyListR¥RžR›t notifyStructRR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytNotifyPlayerAllCurrency=    s8                      
    cCsØ|r|}n    tj}g}xh|D]`}|jtj|ƒ}| rZ|dkrZq%ntjƒ}||_||_    |j
|ƒq%W|s“dStj ƒ}|j ƒ||_ t|j ƒ|_tj||ƒdS(N(RLtUseTotalPriceTypeListRÔRštDef_PDict_UseMoneyTotalR7RRttagMCUseMoneyTotalt    MoneyTypetUseTotalRttagMCUseMoneyTotalInfoRƒtInfoListRUR­RURV(Rt moneyTypeListtnotifyMoneyTypeListtinfoListRtuseTotaltinfot
clientPack((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytNotifyUseMoneyTotalc    s(                   
    cCs|jtjƒS(N(RÔRštDef_PDict_UnXiantaoCntEquip(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetUnXiantaoCntEquip}    scCs)|jtjƒ|}t|tj|ƒS(N(RÔRšR¿R×(RtaddCnttunXiantaoCntEquip((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytAddUnXiantaoCntEquip    scCst|tj|ƒS(N(R×RšR¿(RRÂ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetUnXiantaoCntEquip‚    sc
Csã|dkrtSd}d}|tjkr@|jƒ}d}nç|tjkrd|jƒ}d}nÃ|tjkrˆt|ƒ}d}nŸ|tjkr¬|j    ƒ}d}n{|t
j krÊt |ƒ}n]|t
j krèt|ƒ}n?|t
jkr    t||ƒ}ntjd||jƒƒtS||kr¦||}t||ƒ}|r¦|\}}    t|||    tƒr£tjd|||||    f|jƒƒtSq¦n||krß|rÁ|rÁntjd    |||fƒtStS(
NiRwtGoldErrt GoldPaperErrt    SilverErrtSilverPaperErrs¸¶·Ñ½ðÇ®Òì³£ TYPE_Price = %ssiHaveMoney¿ÉʹÓõȼۻõ±Ò²¹×ã¿Û³ý: TYPE_Price=%s, Price=%s, lackPrice=%s, tagMoneyType=%s, tagMoneyValue=%ss3»õ±Ò²»×ã: TYPE_Price=%s, Price=%s, curMoneyCount=%s(RR¦R~RR€RR‚RƒR„R…RLR†tGetPayCoinTotalRˆR‰RŠR‹RR.RÉtGetEqualMoneyInfot    HaveMoneyRR(
RRŒtPricet
needNotifytneedMoneyCountt
notifyCodet    lackPricet tagMoneyInfot tagMoneyTypet tagMoneyValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRËŒ    sN                      
      
  cCs½tjddiƒ}t|ƒ|kr+dS|t|ƒ}tjddiƒ}t|ƒ|krfdS|t|ƒ}||dkrŠdS|d}ttj|t|ƒƒƒ}||fS(NtEqualValueMoneyiii(R©RªRSR4RRR(Rt    needValuetequalMoneyInfoRÒtexchangeMoneyInfot exchangeInfotmultipleRÓ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÊÈ    s
cCs|dkrgS|tjkr+tj}n|tjtjtjtjgkrut||||ƒrq||ggSgS|tjkrò|jƒ}|j    ƒ}|||kr°gS||krÌtj|ggS||}tj|gtj|ggSt
j d||j ƒƒgSgS(Nis¸¶·Ñ½ðÇ®Òì³£ TYPE_Price = %s( RLtTYPE_Price_Gold_Paper_MoneyR¦R~R€R‚R„RËRRRR.RÉ(RRŒRÌRÍR~R}tneedGold((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt HaveMoneyExà    s*      
c    
Csg|dkrtS|dkr:tjd||jƒƒtS|}    |tjkr,t||ƒ}
|
|kr‚| r‚t|dƒtS|
|} t    ||| ƒt
|t j ƒ} | } |t jkrÙtd| |ƒ} n| | krî| } ntd| ƒ} | | krt|t j | ƒn| |d<n|tjkr‹t||ƒ}||krn| rnt|dƒtS||}t    |||ƒn¼|tjkr×t|ƒ}||krÃt|dƒtSt|||ƒnp|tjkr#|jƒ}||krt|dƒtS|j||ƒn$|t jkrt|ƒ}t|t jƒ}||}||krjtS||kr||n|}|}|rÝtjd|||fƒt|t j||ƒ||8}tjd    |ƒn|dkrGt|||ƒqGnG|t jkr?t|ƒ}||kr+tSt |||ƒn|t j!kr)t||ƒ}||kr|}    ||}t"||ƒ}|rñ|\}}t#|||||||||ƒ    sÂtStjd
||||||f|jƒƒqtjd |||fƒtSnt||||    ƒntjd ||jƒƒtSt$|||    ||||ƒtS( Nis###---¿ÛÇ®Òì³£ = %sRÅt BourseMoneyRÆRÇRÈs9Ïȿ۴ú±ÒʱЧ: curPayCoinDay=%s,price=%s,costPayCoinDay=%ssÔÙ¿Û´ú±Ò: costPayCoin=%ssiµÈ¼Û»õ±Ò²¹×ã¿Û³ý: type_Price%s, price=%s, curCurrency=%s, lackPrice=%s, tagMoneyType=%s, tagMoneyValue=%ss+»õ±Ò²»×ã! type_Price=%s,curCurrency=%s < %ss¸¶·Ñ½ðÇ®Òì³£ type_Price = %s(%RRR.RÉRR¦R~R‘R9RœRRLtTYPE_Price_BourseMoneyRštUnUseInner_CostTypeR    RšR€R‚RƒR–R„R…R—R†R‡R‹tTYPE_Price_PayCoinDayRR˜RˆR‰R™RŠRÊtPayMoneyt__PayMoneyAfter(Rt
type_PricetpricetcostTypetinfoDicttquantityt costVIPGoldRætisMinust    lostMoneyt curPlayerGoldt updPlayerGoldtcurBourseMoneytupdBourseMoneytcurPlayerGoldPapert updGoldPapertcurPlayerSilvertcurPlayerSilverPapertcurPlayerPayCoint curPayCoinDayt payCoinTotaltcostPayCoinDayt costPayCointcurCashVouchert curCurrencyRÐRÑRÒRÓ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRá
s¢   
        
 
 
 
 $    &c    Cså|tjkre|jtj|ƒ}t||tjƒ}t|tj||ƒt||gƒn|t    j
krt ||||||ƒnc|t    j krµt ||||ƒn>|t    jkrÔt||ƒn|t    jkrót||ƒn|tjkrM|dkrM|jtjƒ}t|tj||ƒ|jtjƒ}    t|tj|    |ƒt||ƒt|ƒd}
tjd|
ƒ} | r2| jƒ} xŽ| D]ƒ\} }|dkrÆq¨nt|| |ƒ}|jtj| ƒ|krúq¨n|jtj| ƒ}t|tj| ||ƒq¨Wntj|ƒj|7_n|tj kr t!j"|t!j#||ƒ|t    j
kr t$j%|tj&|ƒq n|dkr²|nt't(j)|d|ƒƒ}|}|}|tj*krútj*|}n|t    j
t    j tj+tj,gkr1|tj-kr1dS|tj+krÈ|j.ƒ}t/||ƒ}t0|tj1ƒ}||d<|j2ddƒ}t3j4d    |||||f|ƒt5|d
||||ƒnt6j7|||||ƒdS( NtUseSkillit MainChapterigð?tPlayerMoneyCount2t    orderInfoRwsJ¼Ç¼ÏûºÄ´ú±Ò: eventName=%s,price=%s,nowMoney=%s,payCoinDay=%s,orderInfo=%si(8RLR±RÔRšR²RGtDef_UpperLimit_DWordR×R¾R¦R~t__PayMoneyAfterByGoldMoneyR€t__PayMoneyAfterByGoldPaperR‚t__PayMoneyAfterBySilverMoneyR„t__PayMoneyAfterBySilverPapertTYPE_Price_XiantaotDef_PDict_UnXiantaoCntExptDef_PDict_LastColorEquipLuckyRÃtGetMainLevelNowInfoR©tGetIpyGameDatatGetDailyBootyUpperListt GetBootyUppertDef_PDict_BootyDropTodaytDef_PDict_UnXiantaoCntBootyt
TurnAttacktGetMainFightMgrt useZhanchuit Def_Cost_GMtPlayerActLunhuidiantAddLunhuidianValuetAwardType_PayMoneyt PlayerActTasktAddActTaskValuetActTaskType_PayGoldR4RRtDef_CostType_DictR†RˆtDef_Cost_UnknownRÉR‘RRàRHRR.t AddPayCoinRecRCt DR_UseMoney(RRãRäRåRæRçRèR»tunXiantaoCntExptlastColorEquipLuckyt    chapterIDtchapterIpyDatatDailyBootyUpperListtitemIDtupperCnttunXiantaoCntBootyt    unitPricet reason_namet    eventNameRtnowMoneyt
payCoinDayRý((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRâ‘
sl   "/$ 
#cCsg|}d}|tj|tjƒd7}|rct|d|dƒ}tjd||||ƒn|S(NiidgY@sAÌá¸ßÕ½ÀûÆ·µôÂäÉÏÏÞ: itemID=%s,baseUpper=%s,addPer=%s,dropUpper=%s(t PlayerBeautytGetBeautyEffInfotEffType_BootyPerR4RR:(RRt    baseUppert    dropUppertaddPer((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR    ï
scCsdS(N((RRãRäRåRæRè((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÿ scCsdS(N((RRäRåRæ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR scCsdS(N((RRä((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR scCsdS(N((RRä((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR scCsž|dkrtS|dkr7tjd||fƒdStjƒr›t|ƒ}i|jƒd6|d6|d6|d6|d6}    tjtj|    |gƒtS|tj    krºt
j ||ƒSt ||ƒ}
|t jkr:t||ƒ|} | tjkrt|d|gƒdSt||| ƒt |tjƒ|d    <nÉ|t jkr•t||ƒ|} | tjkr‚t|d|gƒdSt||| ƒnn|t jkr¾t|t|ƒ|ƒnE|t jkr|jƒ|tjkrýt|d|gƒdS|j|jƒ|ƒnì|tjkr@t|t|ƒ|ƒnÃ|tj krit!|t"|ƒ|ƒnš|tj#krÃt$||ƒ} | tj%kršdSt&tj%| |ƒ}t'|||ƒn@tj(d
|||f|jƒƒt)j*|||||ƒdS|tj+krtj}n|rGt,j-|g|d i||6ƒnt.|||||ƒ|
dkršt ||ƒ}|dkršt,j/||ƒqšntS( Nis1Íæ¼Ò»ñµÃ½ðÇ®Òì³£ £¬ value = %s , priceType = %s ,tPlayerIDR´R©tGiveTypet AddDataDictt MoneyIsFullRÝs/½ðÇ®ÀàÐÍ´íÎó, priceType=%s,value=%s,giveType=%st    moneyInfo(0RRR.R«tGetPlayerServerGroupIDRÉtSendMsgToClientServerRLtCrossServerMsg_GiveMoneytTYPE_Price_FamilyExpRlt AddFamilyExpRR¦R~R‘RštDef_PlayerTotalMoney_GoldR9RœRÞR€R‚R–RƒR„R…tDef_PlayerTotalMoney_SilverR—R†R˜R‡RˆR™R‰RŠR‹RþRGRšR8RCtDR_GiveMoneyErrorRàt ItemControlertNotifyGiveAwardInfot__GiveMoneyAftertCheckGiveBindMoneyTypeItem(Rt    priceTypeR›tgiveTypet addDataDictt    isSysHinttisGiveBourseMoneyt notifyAwardt serverGroupIDtmsgInfotbefMoneyRìtupdPlayerGoldPaperRùtupdValuetaftMoney((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt    GiveMoney# sp    /# #  c
Cs²tj|tj||gƒtj|tj||gƒtj|t    j
||gƒ|t    j krvt j ||ƒn"|t    jkr˜tj||ƒn|tjtjt    jt    jgkrÏ|tjkrÏdS|}|tjkrþtj|}||d<n|t    jkr•|jƒ}t||ƒ}t|t    jƒ}||d<|jddƒ}    tjd|||||    f|ƒt|d||||    ƒnt j!|||||ƒdS(NR$RüRýRwsJ¼Ç¼»ñµÃ´ú±Ò: eventName=%s,value=%s,nowMoney=%s,payCoinDay=%s,orderInfo=%si("t
PlayerTaskt AddTaskValueRštTaskType_GetMoneytPlayerActivitytAddDailyTaskValuetDailyTask_GetMoneyR)tDoAddSuccessProgressRLtSuccType_OSAGetMoneytTYPE_Price_FamilyCoinRltAddFamilyContribtTYPE_Price_OSAPointtOpenServerActivitytAddOSACelebrationPointR¦R~R€R†RˆtDef_GiveMoney_UnknowntDef_GetType_DictRÉR‘RRàRHRR.RRCt DR_GiveMoney(
RR>R›R?R@R$RR%R&Rý((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR<ƒ s0$   
#c    Csžtjƒ}|jtj|jƒƒ}|jddƒ}|j|ƒ|j|ƒ|j    |ƒ|j
|ƒ|j ƒj i|d6ƒt j||gƒdS(NtmaxCounti2t    OrderInfo(t    DBDataMgrt GetGameRecMgrtGetRecTypeIDMgrRLtDef_GameRecType_PayCoinRÉt
AddRecDatat    SetValue1t    SetValue2t    SetValue3t    SetValue4t GetUserDicttupdateRtSyncGameRecInfo(    RtcoinTypeR›R%R&Rýt
gameRecMgrtrecIDMgrtrecData((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¤ s     cCsf|dkrtS|tjkrR|jƒ|tjkrbt|d|gƒtSn|tjkr”|j    ƒ|tjkrbt|d|gƒtSnÎ|tj
kr¦n¼|tj krè|j ƒ|tj krbt|d|gƒtSnz|tjkrúnh|tjkr nV|tjkrDt||ƒ}||tjkrbtSntjd||jƒƒtStS(NiR0s½ðÇ®ÀàÐÍ = %sÌî´íÀ²(RR¦R~RRšR7R9RR€RR‚R„R…R8RLR†RˆRŠR‹RþRR.RÉ(RR>R›Rù((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt CanGiveMoney¹ s6 cCsdS(N((RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerAutoRestoreHPè scCsdS(N((RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytPlayerAutoRestoreMPñ scCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetPlayerReExpù scCs]|jƒ}tƒ}||kr%dSd}t|||ƒ}||krYt|dƒndS(Nit PK_lhs_202580(t
GetPKValuet GetMaxPKValuet ChangePKValueR9(RR¸tcurPlayerPKValuet
maxPKValuetaddPointt changePKValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytAddPlayerPKValue s       c
Cs-|jƒ}tƒ}tdt|||ƒƒ}||krA|Stjd|||f|jƒƒ|dkr}t|ƒn¬tj    }|j
|ƒt j ||ƒ}|d}||}    |s
t j |||ƒ|dkr
t j ||ƒ}|d}|d}    q
n|    r)|r)t|||    ƒn|S(s¸ü¸ÄPKÖµis7¸üÐÂPKÖµ: curPlayerPKValue=%s,newPKValue=%s,addValue=%si(RrRsR    RGRRRÉt ClearPKValueRštDef_SkillID_Redt
SetPKValueRt FindBuffByIDtAddBuffBySkillType_NoRefurbisht__AddPKValueRedBuffTime(
RtaddValueR¸RuRvt
newPKValuet    addBuffIDt findBuffInfotredBufft addTimeValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRt s,      #       
 
 
 cCsª|jƒ}|sdStj|ƒ}|jƒ|}|jƒ}ttd||ƒtjƒ}|j    |ƒt
j |||ƒt j d||||f|jƒƒdS(sSÔö¼ÓPKÖµ¶ÔÓ¦buffʱ³¤
    @param addTimeValue: Ôö¼ÓµÄbuffµ¥Î»Ê±³¤´ÎÊý, Ö§³ÖÕý¸º
    NisL    Ôö¼ÓºìÃûbuffʱ³¤: addTimeValue=%s,remainTime=%s,addTime=%s,resultTime=%s(tGetSkillRt GetBuffTypet GetLastTimet GetRemainTimeRGR    RštDef_Max_Buff_RemainTimet SetRemainTimet    BuffSkilltPYSync_RefreshBuffRRRÉ(RR„R…t    buffSkilltbuffTypetaddTimet
remainTimet
resultTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR3 s       cCsÓ|jƒ}|sdStj|tjƒd}|sF|jdƒdS|jƒ}|s\dS|jƒ}|jƒ}t    t
j |t |ƒƒƒ}||krÏ|j|ƒt jd||f|jƒƒndS(Nis&¸üÐÂÍæ¼ÒPKÖµ: remainTime=%s,pkValue=%s(RrRR}RšR{R|R†R‰RˆR4RRRRRRÉ(Rt
curPKValueR„RŽR‘tperPKValueTimetpkValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshPKValueByRedBuffD s"       #cCs9|jdƒtjƒjƒ}tj|tj|ƒdS(sÇå³ýPKÖµiN(R|RRRRŒtDelBuffBySkillIDRšR{(RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRzX s cCstjddƒS(s »ñÈ¡×î´óPKÖµtPKConfigi(R©R-(((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRs_ scCs>tjdƒ}|r:|jƒj|ƒr:tjddƒSdS(Nt TitleAddPointii(R©R-tGetDienstgradManagert GetDienstgrad(RttitleID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetTitleAddExtraPointe sRhcBseZdZd„Zejeddd„Zddd„Z    d„Z
e d„Z d„Z e de d„Zd„Ze d    „Zd
„Zde d „Zd „Zd „Zed„Zed„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs ||_dS(N(t_PlayerControl__Player(tselftiPlayer((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__init__| sic
Cs|j}|j||||||ƒ\}}|r{tjƒ}    |tj|    _|tj|    _||    _t    j
||    ƒn|S(N( Ržt_PlayerControl__AddExpRRt tagMCAddExpRštDef_PerPointValuetExpPointtExptSourceRURV(
RŸtaddExpt expViewTypeRAt
addSkillIDt    expRateExRt finalAddExpt expNotifyTypeR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytAddExp† s    $     c    Cs|dkr||fSt|ƒ}t|ƒ}tjddƒ}    |jƒ}
|
|kr°||    kr°|    dkr°|j|dƒtjd|
|||    f|jƒƒd|fS|t    j
krÈd} nE|t    j t    j gkrï|j ƒ} nttjƒjƒtjƒ} | |7} t|| ttjƒƒ}|
|krk|    dkrkt|td|    |ƒƒ}n|dkrŽtjdƒd|fS||} | tj} | tj}|jƒ|krÔ|j|ƒn|jƒ| krö|j| ƒn|
|kr|jƒn||fS(    Nit PlayerMaxLViiÿÿÿÿtGeRen_admin_825676sF¾­ÑéÒÑÂú£¡ÒÑÂú¼¶£¡curLV=%s,maxLV=%s,curTotalExp=%s >= maxLVExpStore=%si's ÎÞ·¨»ñµÃ¾­Ñé(tGetPlayerTotalExptGetPlayerMaxLVR©R-R?t_PlayerControl__NotifyExpFullRRRÉRLtDef_ViewExpType_KillNPCtDef_ViewExpType_GameEventtDef_ViewExpType_SittGetGameEventExpRateR    Rt
GetExpRateRštDef_MaxRateValueR4RRGR¤t GetExpPointt SetExpPointt GetTotalExpt SetTotalExpt
PlayerLvUp(RŸRR¨R©RARªR«t curTotalExptmaxLVt maxLVExpStoreRptexp_ratettotalExptcurExptexpPoint((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__AddExp™ s@ 
   $&
    
 
 
    cCs?|jtjƒ}|s;t||ƒ|jtjdƒndS(Ni(R    RštDef_PlayerKey_ExpFullNotifyR9R (RŸRtexpFullNotifyMarktexpFullNotifyState((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__NotifyExpFullÔ s
 c CsG|j}t|jƒƒ}|s%dSt|ƒ}|dkrAdSt|ƒ}||kr]dSt}|jƒ}t|ƒ}|jƒ|jƒ}    xÛ||krn||krnt}|d}t}
|dkr×t}
n|j    ||
ƒt
j ||jƒt|ƒ|ƒt
j |t ji|d6ƒ|j|ƒt|jƒƒ}||}t|ƒ}|dkr”Pq”q”W|jƒ|rt|t jttjƒƒƒ|jƒ} | |    krï|j    | tƒtj|t jƒtj|tjƒntj|ƒtj|ƒtj |ƒj!ƒnt"||ƒt#|ƒt$|dƒdS(Niii2tlv(%RžtGetPlayerLVIpyDataR?tGetLVUPTotalExpNeedR±RR²tBeginRefreshStateRtSetLVRCtDR_PlayerUpgradetCache_FightPowerChangeInfoRštPowerDownType_LVUPt_PlayerControl__GiveLVMailAwardtEndRefreshStateR×tDef_PDict_LVUPTimeR4R5RKt UpdTaskValuet TaskType_LVRtOnPlayerBaseInfoChangetIPY_PlayerDefinetCDBPlayerRefresh_LVt GameFuncCommtDoFuncOpenLogict PlayerOnlinet CalcRoleBasetGetOnlinePlayertRefreshRoleAttrtSetPlayerTotalExptDoDeleteTestRebatetDoInternalTestToPub( RŸthandLvUpRt    lvIpyDatat lvUpNeedExpR¿tplayerNeedDoLVUpRpRÀtbefLVtisNotifyServertaftLV((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¾à sZ          
 
     " 
 
 
 cCsatjddiƒ}||kr%dS||\}}|j}t||jƒg||gƒdS(Nt MailLVAwardi(R©RªRžRyRÉ(RŸRptmailLVAwardDictRlt mailItemListR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__GiveLVMailAward< s     cCsdS(N((RŸt
isSyncBufft billboardFunctisForce((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRiM scCsdS(N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytReCalcAllStateT scCs3|j}|jtjdƒ|r/|jƒntS(Ni(RžR RštDef_Player_RefreshAttrByBufftRefreshPlayerAttrByBuffExR(RŸRñR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshPlayerAttrByBuffY s
     cCsdS(N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRôb scCs[|j}|jtjdƒ|rD|tjkrDtjj|ƒn|rW|jƒndS(Ni(RžR RštDef_Player_RefreshAttrR tg_refreshAttrBillboardFuncRtRefreshPlayerAttrStateEx(RŸRðRñR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshPlayerAttrStaten s     cCsdS(s  ±¾ÏîĿˢÊôÐÔ¹æÔò
                    ÊôÐÔ£º
            1.¹Ì¶¨ÊôÐÔ£ºÈç¹¥»÷+100
            2.°Ù·Ö±ÈÊôÐÔ£º Èç¹¥»÷+5%£¬°Ù·Ö±È¼Ó³É»ùÖµ½öΪ¹Ì¶¨ÊôÐÔ£¬°Ù·Ö±È¼Ó³ÉÊôÐÔÖµ²»±»³ýbuff°Ù·Ö±ÈÍâµÄÈκΰٷֱÈÊôÐÔ¶þ´Î¼Ó³É
            
                    ²ã¼¶£º
            1.ÊôÐԲ㼶£ºËùÓй¦ÄÜͬһ²ã¼¶
            2.buff²ã¼¶£º°Ù·Ö±È¿É¶Ô¹¦ÄܰٷֱȼӳɵÄÊôÐÔ½øÐжþ´Î¼Ó³É
            
                    ¹¦ÄÜÄ£¿é£º¶¨ÒåÒ»¸ö¹¦ÄÜ£¬±ÈÈçÁé¸ùÄ£¿é£¬Ò»¸öÄ£¿é¿ÉÄܰüº¬¶à¸ö¹¦Äܵã
                    ¹¦Äܵ㣺ij¸öÄ£¿éϵĸ÷¸öÊôÐÔ¹¦Äܵ㣬ÈçÁé¸ùÄ£¿é¿ÉÄܰüº¬ Áé¸ù»ù´¡¡¢Áé¸ùÆ·ÖÊ Á½¸ö¹¦ÄܵãÊôÐÔ
        
                    °Ù·Ö±È¼Ó³ÉÖµ£º°Ù·Ö±È¼Ó³ÉÊôÐÔÖµ²»±»³ýbuff°Ù·Ö±ÈÍâµÄÈκΰٷֱÈÊôÐÔ2´Î¼Ó³É
            1.¹¦ÄÜÄÚ²¿ÊôÐ԰ٷֱȼӳɣº¹¦ÄܰٷֱÈÊôÐÔ¶Ô×Ô¼º¹¦Ä̶ܹ¨Öµ¼Ó³É
            2.¹¦Äܽ»²æÊôÐ԰ٷֱȼӳɣº¹¦ÄܰٷֱÈÊôÐÔ¶ÔÆäËû¹¦Ä̶ܹ¨Öµ¼Ó³É
            3.¹¦Ä̶ܹ¨ÊôÐ԰ٷֱȼӳɣº¹¦ÄܰٷֱÈÊôÐÔ¶ÔËùÓй¦Ä̶ܹ¨Öµ¼Ó³É
            4.buff²ã¼¶°Ù·Ö±È£º¶ÔËùÓÐÊôÐÔ½øÐжþ´Î¼Ó³É
            
                    ¼¼ÄÜÊôÐÔ£º¹Ì¶¨Öµ²»ÏíÊ̶ܹ¨°Ù·Ö±È¼Ó³É
                    
        buff²ã¼¶£º
            1.²»ËãÕ½Á¦
            2.ÏÈËã°Ù·Ö±È¼Ó³ÉÔټӹ̶¨Öµ
            
                    ÊôÐÔËã·¨£º
                       Ä£¿é¹Ì¶¨ÊôÐÔ    = ¹¦ÄܵãA¹Ì¶¨Öµ + ¹¦ÄܵãB¹Ì¶¨Öµ + ...
                        ¹Ì¶¨×ÜÊôÐÔ        = Ä£¿éA¹Ì¶¨Öµ + Ä£¿éB¹Ì¶¨Öµ + ...
                        ÎÞbuff×ÜÊôÐÔ  = ¹Ì¶¨×ÜÊôÐÔ + ÄÚ²¿°Ù·Ö±È¼Ó³ÉÖµ + ½»²æ°Ù·Ö±È¼Ó³É  + ¹Ì¶¨×ÜÊôÐ԰ٷֱȼӳɠ  + ¼¼ÄܰٷֱȶԹ̶¨ÊôÐԼӳɠ + ¼¼Ä̶ܹ¨Öµ
                        º¬buff×ÜÊôÐÔ  = ÎÞbuff×ÜÊôÐÔ * buff°Ù·Ö±È¼Ó³É  +  buff¹Ì¶¨Öµ
        N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRøz scCsdS(N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshAllSkillŸ scCsdS(N((RŸtskillIDtbeforeFightPowertisRefreshState((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshSkillFightPowerEx£ scCsdS(N((RŸt
delSkillIDRý((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshSkillFightPowerByDel¦ scCsdS(N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytCalcPassiveBuffAttr¬ scCsdS(N((RŸ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytRefreshPlayerActionState³ scCsì|j}tjƒjƒ}|tjkrQ|jƒ}|jƒ}|jƒ}n$|j    ƒ}|j
ƒ}|j ƒ}|dkr¬t |dƒtj d||jƒƒdS||jƒkrÕtj|||ƒdSt||||ƒdS(NitObjectMapNonentitysÈËÎïÖØÉúµØÍ¼ID = %sÒì³£!(RžRR)R¥R¦R§R›t GetRebornPosXt GetRebornPosYtGetFBRebornMapIDtGetFBRebornPosXtGetFBRebornPosYR9R.RÉR¨R R'(RŸRRÄRnReRf((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetToBornPlace» s$           cCs­|j}tj|ƒt|ƒ|jƒt|ƒ|jƒtj|ƒdkrftj    |dƒnt
j |ƒ|j |ƒt
j ƒjƒ}t|ƒtj|ƒdS(Ni(RžR"RõtReSetPlayerStatet#_PlayerControl__PlayerDeadClearBuffRtClearUseSkillRecR¢R£tSetHPRtClearPlayerPosCounttSetPlayerDeadCntRRtClearPyPlayerState(RŸRR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRòì s     
 
 
 
 
 cCswt|tjttjƒƒƒtj|tjƒd}|o_|jƒj    ƒ|jƒj
ƒksfdS|j |ƒdS(Ni( R×RštDef_Player_Dict_DeadTimeR4R5RR}tDef_SkillID_ReviveTiredR†t
GetSkillLVt GetSkillMaxLVtNotifyPlayerDeadTime(RŸRtfindBuff((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRs *! cCs–tj|tjƒd}|r’|jƒjƒ|jƒjƒkr’|jtjƒr’|jtj    ƒ}t
j ƒ}||_ t j||ƒq’ndS(Ni(RR}RšRR†RRRÔtDef_PDict_IsAddReviveTiredRRRttagMCPlayerDeadTimetDeadTimeRURV(RŸRRtlastDeadTimeTicktpackData((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRJs*     cCsç|j}tjƒjƒ}t||jƒt|ƒt||jƒt|ƒt||jƒt|ƒt||j    ƒt|ƒt||j
ƒt|ƒt||j ƒt|ƒt||j ƒt|ƒt||j ƒt|ƒdS(N(RžRRRR^R_tClearBuffByDieRaRbRcR]RdReRf(RŸRR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__PlayerDeadClearBuffZs    N(t__name__t
__module__R7RžR¡RLtDef_ViewExpType_MissionRR®R¢R³RR¾RÓRiRòRõRôRùRøRúRþRRRR    RòRRR (((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRhs s.    
;     \                       %                  1    /    /    c    Csú|jƒ}d}g}tjƒj|ƒ}x³||jƒkrâ|j|ƒ}|s{tjd||ƒ|d7}q0n|r||ƒr|d7}q0n|j|j    ƒj
ƒƒ|rÒ|j |j    ƒƒn|j |ƒq0Wt j|||ƒdS(Nis###Íæ¼ÒÇå¿Õbuffʧ°Ü,Ë÷Òý = %si(RÉRtGetPassiveEffManagert GetPassiveEfft GetBuffCounttGetBuffRR.RR†t
GetSkillIDt DelBuffInfotDeleteBuffByIndexR!tClearBuffEffectBySkillIDList(    Rt    buffStatet funcClearBuffR¸R2RtbuffSkillIDListt
passiveEfftcurBuff((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR^qs& 
 
cCs |jƒ}|jƒt@dkS(Ni(R†tGetDieContinuetDef_Buff_Clear_Die(R-tskill((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR—s cCs |jƒ}|jƒt@dkS(Ni(R†R.tDef_Buff_Clear_Disconnect(R-R0((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR`Ÿs c    CsJtjƒ}|j|ƒsFtjd||jƒƒt|dƒtS|j|ƒ}tj||j    ƒƒs~t|dƒtS|j
|ƒt j kr§t|dƒtSt ||ƒsºtSt|ƒ}tjdƒ}d}xB|jƒD]4\}}||krqèn||krtS|}qèW|dkrFt|d||gƒtStS(Ns###·Ç·¨µØÍ¼Êý¾Ý£¬mapID: %sRtEnemy_State_No_TranstCarry_lhs_306641tTransportMapLineCheckitCarry_yeqian_0(RR)R°R8RÉR9RtGetCountryByMapIDtIsSameCountry_Namet
GetCountryRƒR¦R§t CanEnterMaptGetPlayerLineIDRáRâR.R(    Rt    destMapIDR©t
mapCountryt    mapLineIDtmapLineCheckDicttcanEnterLineIDRCt    mapIDList((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytCheckTagCountry©s6  
 
 cCst|||ƒstStS(N(tCheckLVCanEnterMapRR(RR;t    isShowSys((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR9çscCstjƒjƒj|ƒ}|s%dS|jƒ}|jƒ|krc|r_t|d|gƒntS|jƒ}|r‰t||ƒ r‰tSt    S(Nt Carry_hwj35_0(
Rt GetGameDatat
GetChinMapt
GetMapByIDR?R9Rt GetTreasureIDt    IsMapOpenR(RR;RCtmapDatatenterLVt openMapStep((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRBös  cCstS(N(R(RRL((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRIscCs„|jƒ}|tjkr,t|dƒtS|jƒrE|jƒn|tjkrat    |ƒnt
j |tj tj ƒs€tStS(NRÏ(R¹RšRÞR9RR£R-R¦RîRºtOperControlManagertIsObjCanDoActiontDef_Obj_ActState_ServerActt oalTransmitR(RRé((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¤s      cCsZ|jƒrdS|s+tjƒjƒ}ntj|tj|ƒrVt|ƒj    ƒndS(N(
t GetCanAttackRRRRŒR—RštDef_SkillID_LimitSuperBuffRhRõ(RR¸((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR´0s  cCs‹tjƒjƒ}|jƒ}|tjkr0n$|tjkrBn|tjkrTn|tjkrpt    |ƒnt
|ƒ|j dƒdS(N( RRRR¹R¦tpaTradeR¼t paGameEventR¿RÀR®RêR7(RR¸RÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR
@s  
 cCs$|jƒstS|jƒr tStS(N(t    GetInitOKRt GetIsLoginOffR(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt__CanPullPlayeras
  cCs=|jƒtjkrtS|jƒr)tS|jƒr9tStS(N(R¹R¦R½RR£t IsBattleStateR(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytIsPlanStateNullns  
cCsƒ|jƒj|ƒ}|jƒ}|r7|j|ƒn5tj|ƒtj||ƒ}|jt||ƒƒ|r|jƒndS(N(    RpRqt GetMaxCounttSetCountt
ItemCommontGetPackInitCounttGetPackOpenItemCntRGtSync_PackCanUseCount(RR[t
defaultMaxtisSynctcurPackR[tcount((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytInit_PackCountˆs  cCsdtj|ƒ}|sdS|jƒ}tj|||ƒ|jƒ}|r`tj||gƒndS(N(RtGetActTypeIpyDataByCfgIDt GetCTGIDListt
PlayerCointDoResetCTGCountByIDListtGetActShopTypetFunctionNPCCommontResetShopItemBuyCountByShopType(RtactNametcfgIDtactTypeIpyDatatresetCTGIDListtshopType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytResetPlayerActType•s  cCsbt|ƒ}|jƒ}d}||tj7}||kr^|jtj|ƒ|j|ƒndS(Ni(tGetPlayerExpRatetGetFightExpRateRšR¹R tDef_PlayerKey_TotalExpRatetSync_CurExpRate(Rt totalExpRatet fightExpRatetmapExpAddMultiple((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSync_ExpRateChange¥s   cCs|jtjƒS(N(R    RšRt(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRr¶sc Cs*t|ƒ}|dkr|S|jƒ}xût|jƒƒD]ç}|j|ƒ}|jƒ}xÃt|jƒƒD]¯}|j    |ƒ}|j
ƒ}    |    dkr Pn|    t j krµqon|j dƒ}
|j dƒ} |j dƒ} | t jkso| rþqon| td|ƒ@ro||
8}qoqoWq;W|S(sA »ñÈ¡ÊÜÏÞ¹¦ÄÜ×ܾ­Ñé±¶ÂÊ
    @param limitType: ÊÜÏ޵ŦÄÜÀàÐÍ
    iiiN(RrR7RcR>R#R$R†RtGetEffectCountt    GetEffectt GetEffectIDRštTYPE_Calc_AttrFightExpRatetGetEffectValuetEffCalcType_LinePlusRÖ( Rt    limitTypeRvR)RHR-RŽtjt    curEffectteffectIDt
effExpRatetcalcTypetlimitTypeValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetLimitExpRate·s,      cCstj|jƒddƒS(Ni(RtGetValuetGetEquipShowSwitch(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetHorseSkinIDÚscCsk|jƒ}tj|ddt|dƒƒ}|j|ƒtj|tjƒtj    d|||fƒdS(Niiçs9ʹÓÃ×øÆïÍâ¹Û: horseSkinID=%s,showValue=%s,updShowValue=%s(
R‰RtSetValueRGtSetEquipShowSwitchRRØRÙt CDBPlayerRefresh_EquipShowSwitchR(Rt horseSkinIDt    showValuet updShowValue((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetHorseSkinIDÛs  ! cCs<|jƒ}|tjkr|Stj|}|j||ƒS(N(R R tg_onlineAccIDDictRH(RtdataKeyt defaultValuetaccIDt accountInfo((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetAccountDataãs
  cCs(|j||tj|tj|ƒdS(sG ·¢ËÍ0418°ü
    @param boardCast: ÊÇ·ñ¹ã²¥ÖÜÎ§Íæ¼Ò£¬Ò»¶¨»á·¢¸ø×Ô¼º
    N(RRLR¤(Rt    inputTypeR›t    boardCast((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRþs$cCs%|j||tj|tjƒdS(N(tSendGameServerRefreshStateRLR¤(RR˜R›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRšs!cCs,t||ƒ|jƒ}|dkrT|tdtjƒB}|tdtjƒB}nÇ|dkry|tdtjƒB}n¢|dkræ|tdtjƒ@r´|tdtjƒA}n|tdtjƒ@r|tdtjƒA}qn5|tdtjƒ@dkr|tdtjƒA}nt||ƒdS(s? ÉèÖÃÊÇ·ñ½ûÑÔ
    @param value: 0-½â½û£»1-½ûÑÔ£»2-½ûÉ豸£»3-½âÉ豸
    
    ½ûÉ豸Á÷³Ì
    1.ÏÈÉèÖÃ2֪ͨǰ¶ËдÈë½ûÉ豸¼Ç¼£¨Ç°¶Ë´¦Àíµ±Îª2ʱ±¾µØÉ豸±ê¼ÇΪ½ûÉ豸£© 
    2.ÔÙÉèÖÃ1£¬´Ëʱǰºó¶Ë״̬¾ùΪ1£¬¼´½ÇÉ«½ûÑÔ
    
    ½â½ûÉ豸Á÷³Ì
    1.ÏÈÉèÖÃ3֪ͨǰ¶Ëɾ³ý½ûÉ豸¼Ç¼
    2.ÔÙÉèÖÃ0£¬´Ëʱǰºó¶Ë״̬¾ùΪ1£¬¼´½ÇÉ«½â½û
    iiiiN(t__SetGMForbidenTalkValuet GetAccStateRÖRštDef_PysForbidTalkDevicetDef_PysForbidTalktSetPlayerAccState(RR›taccState((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetGMForbidenTalk s       cCsQ|j|ƒt|tj|ƒt|tj|ƒtjd||jƒƒdS(Ns__SetGMForbidenTalkValue %s(R¡RšRLtCDBPlayerRefresh_ForbidenTalkRRRRÉ(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR›*s
 cCs^|j|ƒ|j|ƒt|tj|ƒt|tj|ƒtjd||jƒƒdS(NsSetPlayerAccState %s(    t SetAccStatet SetExAttr17RšRLtCDBPlayerRefresh_ExAttr17RRRRÉ(RR ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRŸ1s   cCst|ƒ|kS(N(tGetPassMainLevelID(RtlvID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytIsMainLevelPassIsc    Csät|ƒ\}}}d}|dkr\|d}|d|}tjd|||fƒn„|dkrà|d}tjdi|d6tƒ}|r t|ƒnd}|r½|d|}ntjd|||||fƒn|S(NiiidsH·ÇijÕ½ڵĵÚ1¹ØÖ±½Ó¼õ1¼´¿É: passLVID=%s,passChapterID=%s,passLevelNum=%st    MainLevelt    ChapterIDsdÈ¡ÉÏÒ»Õ½Ú×÷ΪÒѹý¹Ø¹Ø¿¨: passLVID=%s,preChapterID=%s,levelCount=%s,passChapterID=%s,passLevelNum=%s(tGetMainLevelPassInfoRRR©tGetIpyGameDataByConditionRRU(    Rt passChapterIDt passLevelNumt_tpassLVIDt preLevelNumt preChapterIDt levelDataListt
levelCount((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¦Ls 
 
    cCs
|jƒS(N(t
GetExAttr1(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMainLevelPassValue`scCs$|j|ttƒtj|ƒdS(N(t
SetExAttr1RRÛRÜ(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetMainLevelPassValueascCs³t|||ƒ}t||ƒ|dkr¯t|ƒ}tj|tj|ƒtj|t    j
ƒt j |tj |ƒt j |tj|ƒtj||ƒtj||ƒn|S(Ni(tComMainLevelValueR¸R¦tPlayerBillboardtUpdatePlayerBillboardRLtDef_BT_MainLevelRKRÖRštTaskType_MainLevelR)tUptateSuccessProgresstSuccType_MainLeveltSuccType_OSAMainLevelRVtUpdOSA_MainLevelBillboardRCtDR_MainLevelPass(RRtlevelNumtwaveR›R§((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetMainLevelPassInfods   cCsatt|ƒƒ\}}}| rT| rTd\}}}t|t|||ƒƒn|||fS(Nii(iii(tGetMainLevelValueR¶R¸R¹(RRRÃRÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR«ts
cCs
|jƒS(N(t
GetExAttr2(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMainLevelNowValue~scCs|j|ttƒdS(N(t
SetExAttr2R(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetMainLevelNowValuescCs#t|||ƒ}t||ƒ|S(N(R¹RÊ(RRRÃRÄR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetMainLevelNowInfo€s cCs}tt|ƒƒ\}}}| rN| rNd\}}}t||||ƒn|spd}t||||ƒn|||fS(Ni(iii(RÆRÈRË(RRRÃRÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRˆscCs|d|d|S(Ni'id((RRÃRÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¹”scCs/|d}|dd}|d}|||fS(Ni'id((R›RRÃRÄ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÆ•s
 
cCs
|jƒS(N(t GetExAttr20(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetMainTaskIDœscCs|j|ƒdS(N(t SetExAttr20(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt SetMainTaskIDscCs
|jƒS(N(t
GetExAttr3(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt
GetTitleID scCs*|j|ttƒtj|tjƒdS(N(t
SetExAttr3RRRØRÙtCDBPlayerRefresh_ExAttr3(RRœ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt
SetTitleID¡scCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRJ§scCst||d|ƒS(Ni
(tSetTeamCheckState(Rt joinReqCheckt inviteCheck((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetTeamCheckStateExªscCsdS(N((Rt
checkState((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÕ«scCsdS(N((RRŽR‘((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRú­scCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetFBFuncMapID¯scCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR„°scCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR¬³scCsdS(N((RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt SetCrossMapID´scCs|jƒtj|jƒS(N(t
GetExAttr6RšR¤Rƒ(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRƒ¸scCsn|tj}t|tjtjƒ}||jƒkrH|j|ƒn||jƒkrj|j|ƒndS(N(RšR¤RGRþRƒR–RÜt
SetExAttr6(Rt totalSilverRt silverPoint((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR–¹s cCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetVIPExpireTimeÃscCsdS(N((Rt
expireTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetVIPExpireTimeÄscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetVIPLVUpTimeÇscCsdS(N((RtlvUpTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetVIPLVUpTimeÈscCs
|jƒS(N(t GetExAttr10(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt
GetChatBoxËscCs|j|ttƒS(N(t SetExAttr10RR(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt
SetChatBoxÌscCst|ƒt|tjƒS(N(R‡R‹RLRà(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÉÏscCs
|jƒS(N(t GetExAttr11(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR‡ÐscCs|jt|tjƒttƒS(N(t SetExAttr11RGRšRþR(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR˜ÑscCs;t|tjƒ}|dkr7t|tj|dƒndS(NiR7(R‹RLRàRáR†(RR&((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR7Òs cCs
|jƒS(N(t GetExAttr13(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR‰ÚscCs|jt|tjƒttƒS(N(t SetExAttr13RGRšRþR(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR™ÛscCs$t|jƒƒ}|r |dSdS(Ni(t GetCoupleInfoRÉ(Rt
coupleInfo((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetCoupleIDÞscCs$t|jƒƒ}|r |dSdS(NiRw(RîRÉ(RRï((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetCoupleNameáscCs$t|jƒƒ}|r |dSdS(Nii(RîRÉ(RRï((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetCoupleJobäscCs$t|jƒƒ}|r |dSdS(Nii(RîRÉ(RRï((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetBridePriceMaxIDçscCs|tjkrdStj|S(N(R t g_coupleInfo(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRîêscCs-|stjj|dƒn |tj|<dS(N(R RôR'R7(RRï((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt SetCoupleInfoîs cCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR2öscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetRealmDifficultyùscCsdS(s( ÉèÖþ³½çÄѶȵȼ¶£¬ÈκεØÍ¼¾ù¿ÉÑ¡Ôñ
    N((RtrealmDifficulty((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetRealmDifficultyúscCsdS(Ni((R÷((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetDifficultyRealmLVþscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMapRealmDifficultyÿscCs;|jƒ}|d}|dd}|d}|||fS(Nidi
(t GetExAttr12(RR›tleaveCntt    kickedCnttlastVoluntarily((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetLeaveFamilyInfos
 
 
cCsJtd|ƒdtd|ƒd|}|j|ƒtjd|ƒ|S(Ni    idi
s     SetLeaveFamilyInfo: value=%s(RGt SetExAttr12RR(RRüRýRþR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetLeaveFamilyInfo s( cCs
|jƒS(N(t GetExAttr19(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetLeaveFamilyTimeExscCs*|j|ƒ|jtj|dtƒ|S(Ni(t SetExAttr19RRLtCDBPlayerRefresh_ExAttr19R(RR›((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetLeaveFamilyTimeExs cCs|jƒtj|jƒS(N(tGetFightPowerExRšR¤t GetFightPower(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRscCsût|ƒ}|j|tj|tjtƒ|jtjƒ|jtjƒtj}||krŸ|}t|tj|tjƒt|tj|tjƒnt    j
d|||f|j ƒƒ|j tj dƒ||kr÷tj|tjƒndS(Ns4×ÜÕ½Á¦: %s, beforeFightPower=%s,highestFightPower=%si(Rt SetFightPowerRšR¤RRÔtDef_PDict_FightPowerHtDef_PDict_FightPowerHExR×RRRÉR tDef_PlayerKey_ViewCacheRefreshRRØRÙtCDBPlayerRefresh_FightPower(RR›RüthighestFightPower((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR    s ! # cCs|jƒdS(Ni(R(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR:2scCs|j|ƒdS(N(Rù(Rtsight((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRù:s
cCs|jƒ}|S(N(tGetAtkInterval(Rt atkInterval((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRIs cCs|jƒ}t|ƒS(N(R?tGetTotalExpByPlayerLv(RRp((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetLVUPTotalNeedExp[s cCs t|ƒ}|sdSt|ƒS(Ni(RÌRÍ(tplayerLVRå((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRbs cCs1tjd|ƒ}|s-tjd|ƒdS|S(NtPlayerLVs¾­Ñé±íÒì³£  lv= %s(R©RRR8(RRå((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÌhs
cCs|s
dS|jƒS(Ni(tGetExp(Rå((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRÍoscCsJtjddƒ}tjƒ}|j|jƒdƒ}t||jƒƒS(NR¯i(R©R-tIPY_DatatGetRealmByIndext GetRealmCountRGtGetLVMax(RÀt
ipyDataMgrt realmIpyData((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt GetOpenMaxLVts cCsPtjddƒ}|jƒ}tj|ƒ}|s7dSt||jƒƒ}|S(NR¯ii(R©R-tGetOfficialRanktPlayerPrestigeSystGetRealmIpyDataRGR(RRÀt
curRealmLVRt playerMaxLV((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR²{s cCs%|jƒ}t|ƒ}t||ƒS(N(R?R±tGetRealPlayerLvEx(Rt realPlayerLvR¿((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetRealPlayerLvˆs  cCsWt|ƒ}|s|Sx:||krR|d7}||8}t|ƒ}|sPqqW|S(Ni(R(R$R¿t needTotalExp((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR#“s 
 
 cCs-|jƒ}|jƒ}|tj|}|S(N(R¼RºRšR¤(RRÃRÅttotalMasterExp((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR±£s  cCsb|tj}|tj}|jƒ|kr<|j|ƒn|jƒ|kr^|j|ƒndS(N(RšR¤RºR»R¼R½(RRÃRÄRÅ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRáªs  cCsEtjƒ}|jƒ||_||_||_tj||ƒdS(N(RRttagMCNotifySelectObjRƒRJtIDtisSelectRURV(RtobjTypetobjIDR*t    selectObj((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSync_SelectObj¼s 
            cCsdS(N((tattrTypeR›t allAttrList((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytCalcAttrDict_TypeËscCs)|jtj|ƒ}t||jƒƒS(N(RÔRštDef_PDict_TrainRealmLVR    R(RtfuncTypet trainRealmLV((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetTrainRealmLVRealÏscCs(t|tj||ƒt||ƒdS(N(R×RšR2tSyncTrainRealmLV(RR3R4((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetTrainRealmLVÒs cCsÝ|dkrtddƒ}n    |g}g}xh|D]`}|jtj|ƒ}| ri|dkriq4ntjƒ}||_||_|j    |ƒq4W|s¢dStj
ƒ}||_ t |j ƒ|_ tj||ƒdS(Nii
i (R7RRÔRšR2RRttagMCTrainRealmLVtFuncTypet TrainRealmLVRttagMCTrainRealmLVInfoR·RUR­RURV(RR3tsyncFuncTypeListRºtfTypeR4tlvInfoR½((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR6Ös&                    cCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetMetalíscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetWoodîscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetWaterïscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetFireðscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetEarthñscCsdS(Ni((R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetReduceSkillCDPeröscCsdS(N((Rt    reducePer((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetReduceSkillCDPer÷scCs
|jƒS(N(tGetReceivedSalary(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetFamilyMemberLVúscCs|j|ƒ|j|ƒdS(N(tSetReceivedSalarytSetFamilyMemberLV(RtfmLV((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRJûs  cCs#|jƒ}|r|Stj|ƒS(N(tGetLastWeekFamilyActiveValueRtGetPlayerServerID(RtfamilyServerID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetFamilyServerIDs cCs|j|ƒdS(N(tSetLastWeekFamilyActiveValue(Rt    fServerID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetFamilyServerIDscCsdS(N((Rt    funcIndexR0tinsidePerAttrDicttcustomAttrDict((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSetCalcAttrListValue scCs8gtdƒD] }i^q }i}i}|||fS(Ni(R(RRSR¯tattrListRTRU((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytGetCalcAttrListValuescCsR|dkr |j||ƒdStdt|tjƒƒ}|j|||ƒ|S(Ni(tNomalDictDelPropertyR    RGRštDef_UpperLimit_DWordExtNomalDictAddProperty(RRUR›tdType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR×s  cCs†g}tjƒ}|jƒ||_||_||_|j|ƒtjƒ}|jƒt|ƒ|_    ||_
t j ||ƒdS(N( RRttagMCSyncSingleBlessValueRƒRJR©tMultipleRttagMCSyncBlessValueRUtTypeCntt    BlessInfoRURV(Rt    blessTypeR›RÙtitemListt    valuePackR%((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pytSync_BlessValue!s 
              
    cCs¹|dkr;t|ƒ}|r;|}tjd|ƒq;n|j|ƒ|jƒjƒ}|rp|j|ƒnxBt|jƒƒD].}|j|ƒ}|s¤qƒn|j|ƒqƒWdS(Nis3¾³½çµØÍ¼×Ô¶¯ÉèÖÃÒÑÑ¡ÔñµÄ¾³½çÄѶÈÊÓÒ°: sightLevel=%s(    RúRRt SetSightLevelt    GetPetMgrt GetFightPetRRR(Rt
sightLevelR÷trolePetRHt    curSummon((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyR 5s   c
Cs®|jƒ}tjddƒ}tj|jƒƒ|kr=dS|jtjƒrctj    d|ƒdS|j
ƒtjddƒkrŸtj    d|j
ƒ|ƒdStjddƒ}|dkrÑtj    d|ƒdSt t j ƒƒ}tjdd    ƒ}tj d
|tjƒ}||kr2tj    d ||ƒdStjdd ƒ}tj d
|tjƒ}||krtj    d ||ƒdSddl}    |    jdd||dtƒdS(NtDeleteTestRebateis!ɾµµ²âÊÔ·µÀûÒѾ­´¦Àí¹ý£¬²»ÔÙÇëÇó!is!µÈ¼¶²»×ã²»´¦Àíɾµµ²âÊÔ·µÀû! lv=%siisûÓзµÀû±ÈÀý²»´¦Àí!is%s235959s.ɾµµ²âÊÔÆÚ¼ä²»´¦Àíɾµµ²âÊÔ·µÀû! testEndDate=%sis4·µÀûÓÐЧÆÚÒѽáÊø²»´¦Àíɾµµ²âÊÔ·µÀû! rebateEndDate=%siÿÿÿÿstestEndDate=%st    checkNeed(RÉR©R-RtGetAppIDByAccIDR RÔRštDef_PDict_DeleteTestRebateRR?R4R5tChangeTimeStrToNumtTYPE_Time_Format_YmdHMSt EventReportR(
RRtappIDt
rebateRateRHt testEndDatet testEndTimet rebateEndDatet rebateEndTimeRr((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRâJs8     cKsÃ|jƒ}tjddƒ}tj|jƒƒ|kr=dStj|ƒ}tjddƒ}tj    ||ƒsŽtj
d||f|ƒdSt t j ƒƒ}tjddƒ}tj d|tjƒ}    ||    krïtj
d||ƒdStjddƒ}
tj d|
tjƒ} || kr>tj
d    |
|ƒdS|jtjƒtd
|ƒ@rutj
d ||ƒdS|dkrÀ|jƒtjd dƒkrtj
d |jƒ|ƒdSnE|d
krtjd dƒ} | dkrtj
d|ƒdSndStjdd
ƒ} t| ƒd
kr-dS| \}}tj|    tjƒ}d||||f}|d
krštj|dƒ}|d|| f7}nddl}|jd||dtƒdS(NtInternalTestToPubActSetiis3·Ç¹«²âÇø·þID²»´¦ÀíÄÚ²âת¹«²â! serverID=%s not in %sis%s235959s&ÄÚ²âÆÚ¼ä²»´¦Àí¹«²â·µÀû! testEndDate=%sis6·µÀûÓÐЧÆÚÒѽáÊø²»´¦ÀíÄÚ²âת¹«²â·µÀû! rebateEndDate=%sis,ÄÚ²âת¹«²âÒѾ­´¦ÀíÍê±Ï²»ÔÙÇëÇó! eventType=%stInternalTestToPubAwards'µÈ¼¶²»×ã²»´¦ÀíÄÚ²âת¹«²â´´½Ç½±Àø! lv=%sis!ûÓÐÄÚ²âת¹«²â³äÖµ·µÀû±ÈÀý²»´¦Àí!sAtestEndDate=%s&inTestServerIDA=%s&inTestServerIDB=%s&eventType=%st orderCoinUsds&payMoney=%s&rebateRate=%siÿÿÿÿtInternalTestToPubRm(RÉR©R-RRnR RMRªt CheckServerIDtCheckServerIDInListRR4R5RpRšRqRÔtDef_PDict_InternalTestToPubRÖR?RUtChangeTimeNumToStrtTYPE_Time_Format_YmdtCommFunct
CoinToYuanRrR(Rt    eventTypetkwargsRRstserverIDtpubServerIDListRHRuRvRwRxRttinternalTestServerRangetinTestServerIDAtinTestServerIDBt
eventParamtpayMoneyRr((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyRãisZ         (%RR!RšRR+R"RžRÆR\RáRŒRMRlRLRjRºR”RÙR¦RRRURCRR¬RR)R:RÛR©R RVRRNRRôRÕR'RÝRKRxR R]RR¢RgRjRmR}R‚RR…RR5tjsontIPY_NotifyCodeListR‚R/R1R!RR(R6R9RIRNRQRRRYR\RcRdRiRjtDef_GiveMoney_MailRRvRyR:R”R˜RžR­R³RÅRÀRÙRÓRÜR¯RáRâR®RíRðRºRõRRøR R    RRR2R6R<RAR?RBR%ROR\R$RgRoRxRR«R7RÇR»R±RîRÿR¢RóRzRR'RR/R*RgRoRqtDef_Team_GetExpScreenDistR|R}RR‘RœR“R£R‹RšR¦R°R¾RÀRÃRÄRËRÊRÜRRáRâR    RÿRRRRXRJR<RRmRnRoRpRyRtRR–RzRsRRhR^RR`RAR9RBRIR¤R´R
RWRYRdRqRyRrR‡RŠR‘R—RRšR¡R›RŸR¨R¦R¶R¸RÅR«RÈRÊRËRR¹RÆRÍRÏRÑRÔRJRØRÕRúRÚR„R¬RÛRƒR–RàRâRãRåRçRéRÉR‡R˜R7R‰R™RðRñRòRóRîRõR2RöRøRùRúRÿRRRRR    R:RùRRRRÌRÍRR²R%R#R±RáR.R1R5R7R6R?R@RARBRCRDRFRHRJRORRRVRXR×ReR RâRã(((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerControl.pyt<module>s<                                                           3     & 
                $!
                       %            
                         6             e                           3                                                        7    \9 i        2A             ( g     l             0                 *                     &             
<     0    ^                     `    !        /                                             ÿÿ    &        
    >                      !                       #