cehua-TT
2019-01-14 ea4f0268501847eb74cee670288e6ec6c47a75e7
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
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
qD<\c
@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    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.e/Z0e1dƒ\Z2Z3Z4Z5Z6Z7d„Z8d„Z9d„Z:d„Z;d„Z<d„Z=d    „Z>d
„Z?d „Z@d „ZAd „ZBd„ZCd„ZDd„ZEd„ZFeGd„ZHd„ZId„ZJdde/d„ZKe/e/eGgdgdd„ZLdZMd„ZNd„ZOge/ePePdd„ZQd„ZRd„ZSd„ZTd „ZUd!„ZVe/d"„ZWd#„ZXdd$„ZYd%„ZZd&„Z[d'„Z\d(„Z]d)„Z^d*„Z_d+„Z`d,„Zad-„Zbd.„Zcd/„Zdd0„Zed1„Zfd2„Zgd3„Zhd4„ZieGePd5„ZjePd6„Zkdddd7„Zld8„Zmd9„ZnePgd:„Zod;„Zpd<„Zqd=fd>„ƒYZrd?„Zsd@„ZtdA„ZudB„ZvdCZwe1ewƒ\
ZxZyZzZ{Z|Z}Z~ZZ€ZdD„Z‚dE„ZƒdF„Z„dG„Z…dH„Z†dI„Z‡dJ„ZˆdK„Z‰eGde/eGdL„ZŠdM„Z‹ddN„ZŒdO„ZggdP„ZŽgdQ„ZdR„ZdS„Z‘e/dT„Z’dU„Z“gddV„Z”dW„Z•dX„Z–dY„Z—dZ„Z˜d[„Z™d\„Zšd]„Z›dS(^iÿÿÿÿNicCs‚tjtd|jƒdfƒ}|dkrG|jƒjtjƒn
||ƒ|j    t
ƒ|j tj ƒ|j tjƒdS(Ns AIType_%d.%stDoInit(t    GameWorldt GetExecFunctNPCAIt    GetAITypetNonet GetNPCAngrytInittChConfigtDef_Default_NPC_Angry_CounttSetIsNeedProcesstFalset SetSuperHittDef_SuperHitPercenttSetTickTypeCounttTYPE_NPC_Tick_Count(tcurNPCtcallFunc((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytInitNPCVs" 
 cCs2t|dƒr(t|jƒ|jƒƒS|jƒS(NtGetCurLV(thasattrtmaxRtGetLV(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCLVgscCs
|jƒS(N(t
GetMAtkMin(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetRealmLVmscCs |j|ƒS(N(t
SetMAtkMin(RtrealmLV((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
SetRealmLVnscCs
|jƒS(N(t
GetWindDef(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetIsLVSuppressoscCs
|jƒS(N(t GetThunderDef(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSuppressFightPowerpscCs |j|ƒS(N(t SetThunderDef(Rtvalue((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSetSuppressFightPowerqscCs
|jƒS(N(t
GetFireDef(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetCommendFightPowerrscCs
|jƒS(N(t GetThunderAtk(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetDropOwnerTypesscCs
|jƒS(N(t
GetCountry(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetFactiontscCs
|jƒS(N(t GetPoisionAtk(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSkillAtkRateuscCs
|jƒS(N(t
GetFireAtk(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetFinalHurtvscCs |j|ƒS(N(t
SetFireAtk(Rthurt((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt SetFinalHurtwscCs
|jƒS(N(t
GetWindAtk(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSkillEnhancexscCs
|jƒS(N(t GetPoisionDef(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetNPCSeriesyscCs“|jƒ}tjd|ƒ}|s(dSd}d}tjƒ}|jƒr¦tj|ƒrvtjƒj    t
j ƒ}q¦|j t jƒ}|s¦tjd|ƒdSn|jƒ}|dkrÙtjƒj    t
jƒ}n‡|dkrú|j t jƒ}nf|dkr|j t jƒ}nE|dkr`|j t jƒ}    |j t jƒ}
tj|    |
ƒ}n|jƒr„t||jƒƒ}n|dkr²| r²tjd    ||fƒdStj||ƒ} d
| krÝ| d
}nt||||ƒ} | j| ƒ| s    dS|r4|jƒ|kr4|j|t ƒnt!j"|ƒ} t!j#|ƒ}x—| j$ƒD]‰\}}t%|d |ƒs |d kr_t&||ƒq_q_n|d kr¿t!j'||ƒq_t(|t j)ƒ}t*|d |ƒ|ƒq_Wt!j"|ƒ}| |krd|r t!j+||ƒqd|rdt,||| ƒ}t!j+||ƒ|j-ƒ|j.ƒqdn|r|j/ƒt j0krt1||ƒndS(s½NPCÊôÐÔÔöÇ¿, NPCÊôÐԳɳ¤ÓÉÁ½¸öÒòËØ¾ö¶¨
    1.NPC³É³¤µÈ¼¶£¬³É³¤µÈ¼¶¾ö¶¨³É³¤ÊôÐÔ£¬Óë³É³¤±í½áºÏʹÓÃ
            ¿ÉÉèÖõØÍ¼NPCµÈ¼¶¶¯Ì¬³É³¤£¬µ«ÊÇÒѾ­Ë¢Ð³öÀ´µÄNPCµÈ¼¶²»±ä£¬¶¯Ì¬µÈ¼¶±ä¸üºóˢеÄNPCµÈ¼¶²Å»áʹÓÃ×îеȼ¶
            
    2.Íæ¼ÒÈËÊýÒòËØ£¬¾ö¶¨NPCÊôÐԵĶîÍâ³É³¤ÏµÊý£¬¿Éµ¥¶ÀʹÓ㬻òÕߺÍ1Ò»ÆðʹÓÃ
            ¿ÉÉèÖÃÂíÉÏË¢ÐÂNPCÊôÐÔ
            ³ýѪÁ¿Í⣬ÆäËûÊôÐÔ»á¸ù¾Ý¶¯Ì¬ÒòËØÖ±½Ó±ä¸ü
            ÑªÁ¿»á¸ù¾ÝѪÁ¿°Ù·Ö±È¶¯Ì¬±ä¸üÖÁÏàÓ¦µÄ°Ù·Ö±È
    t NPCStrengthenNisCNPCÅäÖÃÁ˰´Íæ¼ÒÈËÊý³É³¤ÀàÐÍ£¬µ«ÊÇÎÞ·¨»ñÈ¡µ½¶ÔÓ¦µÄÍæ¼ÒÈËÊý£¡npcID=%siiiisSNPCÅäÖÃÁ˳ɳ¤µÈ¼¶ÀàÐÍ£¬µ«ÊÇÎÞ·¨»ñÈ¡µ½¶ÔÓ¦µÄ³É³¤µÈ¼¶Öµ£¡npcID=%s,lvStrengthenType=%stLVsSet%st
FightPowertMaxHP(ii(2tGetNPCIDt IpyGameDataPYtGetIpyGameDataNotLogRt    GetGameFBtGetIsStrengthenByPlayerCountt FamilyRobBosstIsHorsePetRobBosst GetGameWorldtGetGameWorldDictByKeyt ShareDefinet.Def_Notify_WorldKey_HorsePetRobBossPlayerCounttGetGameFBDictByKeyRtDef_FB_NPCStrengthenPlayerCnttErrLogtGetLVStrengthenTypet"Def_Notify_WorldKey_WorldAverageLvtDef_FB_NPCStrengthenMaxLVtDef_FB_NPCStrengthenAverageLVtDef_FB_NPCStrengthenMinLVtrandomtrandinttGetCmpNPCBaseLVRRtFBLogictGetFBNPCStrengthenAttrtGetNPCStrengthenAttrDicttupdateRtSetCurLVR tGameObjtGetMaxHPtGetHPtitemsRR#tSetMaxHPtmintDef_UpperLimit_DWordtgetattrtSetHPtintt Notify_HPExtNotify_MaxHPExtGetTypetntRobott__OnFBRobotReborn(RtisReborntisDyntnpcIDtstrengthenIpyDatat strengthenLVtstrengthenPlayerCnttgameFBtlvStrengthenTypet    randMinLVt    randMaxLVt npcFBAttrDicttattrDicttbefMaxHPtbefHPtattrKeytstrengthenValuetaftMaxHPtaftHP((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoNPCAttrStrengthen{s|
 
cCstjƒjƒ}tjƒjƒ}|jƒ}tjddƒ}tj|j    ƒƒ}t
j j |iƒ}|||<|t
j |<||}g}    x[|j ƒD]M\}
} || kr¾q nt|
tƒrÝ|    j|
ƒq |    t|
ƒ7}    q Wtjd||||    fƒ|jƒ} x|    D]} | j| ƒq!Wtjƒ}xEt|jƒƒD]1}|j|ƒ}|sxqWntj||ƒqWWdS(Nt
FBRobotCfgis2¸ø»úÆ÷ÈËNPC¼¼ÄÜ: objID=%s,robotJob=%s,npcLV=%s, %s(RR@tGetTickt    GetLineIDtGetIDR:tGetFuncEvalCfgRLtchoicetkeyst
PyGameDatatg_fbRobotJobDicttgetRWt
isinstanceR]tappendtlisttDebugLogtGetSkillManagertLearnSkillByIDtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndexROtDoFBHelp(RtnpcLVtticktlineIDtobjIDt jobSkillDicttrobotJobtlineRobotJobDictt skillInfoDictt skillIDListt    skillInfotneedLVt skillManagertskillIDt playerManagertindext    curPlayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRbás6 
 
    c
CsØ|jƒ}tjddƒ}||kr.dS||}g}x[|jƒD]M\}}||kriqKnt|tƒrˆ|j|ƒqK|t|ƒ7}qKWtj    d|||fƒx|D]}    |j
|    ƒq½WdS(NtXMZZRobotSkillis¸øNPC¼¼ÄÜ: job=%s,npcLV=%s, %s( R„R:RzRWR€R]RR‚RRƒR…(
RtjobR‹R–RR’R“R”R•R—((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoGiveVSPlayerNPCSkills   
  icBCs| r| riStjƒj|ƒ}|s1iStjdƒ}|sJiSi}|t}|t}|t}    |t}
|j    ƒt
j |j ƒ} |r|s¶t jd|ƒ}n|sÀiStj|ƒ} | sÙiSt|ƒ} t|ƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| jƒ}| j ƒ}| j!ƒ}| j"ƒ}| j#ƒ}| j$ƒ} | j%ƒ}!| j&ƒ}"| j'ƒ}#| j(ƒ}$| j)ƒ}%|j*ƒ}&|j+ƒ}'|j,ƒ}(|j-ƒ})|j.ƒ}*|j/ƒ}+|j0ƒ},|j1ƒ}-|j2ƒ}.|j3ƒ}/|j4ƒ}0|j5ƒ}1t6t7j8d|dƒƒ}2t6t7j8d|dƒƒ}3t6t7j8d|dƒƒ}4|j9ƒ}5|j:|5gƒ}6xS|6D]K\}7}8t;t6t7j8d    |7|5f|8ƒƒƒ}9|9t<ƒ|7<|9||7<qW|1rt;|%|1d
ƒ|d <qn|r tj=ƒj>ƒ}:t?j@|:ƒ};d |:}<|    j:|:iƒ}=|= rî|;|    krî|    |;}=d |;}<n||
kr|
|}=d |}<nx÷|=jAƒD]æ\}7}>|7|krC||7}?nF|7dkrX| }?n1d|7}@tB||@ƒswqntC||@ƒƒ}?tD|>tEƒr°tjF|>|dƒ}An@tD|>tGƒrêd|<|7f}<t6t7j8|<|>ƒƒ}And}At;|?|Aƒ||7<qWn|S(NtNPCAttrStrengthenR5tNPCParam_AtkReplyCoefficienttAtkReplyCoefficienttNPCParam_MonterHurtt
MonterHurttNPCParam_LostHPPerSecondtLostHPPerSecondsNPCStrengthen_%s_%sgˆÃ@R7sMapCoefficient_%ssNPCCoefficient_%sR8sGet%sis%s_%s(HRt GetGameDatatFindNPCDataByIDt ReadChConfigtGetEvalChConfigtNPCAttr_ParamDicttNPCAttr_AttrStrengthenListtNPCAttr_PlayerCntCoefficienttNPCAttr_NPCPlayerCntCoefficienttGetHPExRBtDef_PerPointValueRVR:R;t PlayerControltGetPlayerLVIpyDataR+R-t
GetReMaxHPtGetReAtktGetReDeftGetReHitt    GetReMisst GetReAtkSpeedtGetReSkillAtkRatetGetReDamagePertGetReDamReducetGetReIgnoreDefRatetGetReLuckyHitRatet GetReLuckyHittGetReBleedDamaget GetReIceAtkt GetReIceDeft GetRePetAtktGetRePetSkillAtkRatetGetRePetDamPertGetReFinalHurttGetReFinalHurtReducetGetRePotionReplyt GetRePotionCDtGetReFightPowert
GetHitTimetGetDefCoefficienttGetAtkCoefficienttGetAdjustCoefficienttGetAtkIntervalt
GetHitRatet GetMissRatet GetMonterNumtGetIceAtkCoefficienttGetIceDefCoefficienttGetMaxEnduranceTimetGetFightPowerCoefficienttevaltFormulaControltGetCompileFormulatGetLVStrengthenMarkRR]tlocalstGetMaptGetMapIDtFBCommontGetRecordMapIDRWRR[R€tdicttGetDictValueByRangeKeytstr(BReRgRhRftnpcDatatattrStrengthenInfoRnt    paramDicttattrStrengthenDicttplayerCntCoefficienttnpcIDPlayerCntCoefficientt    baseMaxHPtplayerCurLVIpyDatat SkillAtkRatet    FinalHurttReMaxHPtReAtktReDeftReHittReMisst
ReAtkSpeedtReSkillAtkRatet ReDamagePert ReDamReducetReIgnoreDefRatetReLuckyHitRatet
ReLuckyHitt ReBleedDamagetReIceAtktReIceDeftRePetAtktRePetSkillAtkRatet RePetDamPert ReFinalHurttReFinalHurtReducet RePotionReplyt
RePotionCDt ReFightPowertHitTimetDefCoefficienttAtkCoefficienttAdjustCoefficientt AtkIntervaltHitRatetMissRatet    MonterNumtIceAtkCoefficienttIceDefCoefficienttMaxEnduranceTimetFightPowerCoefficientR R¢R¤tLVStrengthenMarktattrStrengthenListRqtstrengthenFormatRrtmapIDt    dataMapIDt
formulaKeytplayerCntAttrCoefficienttcoefficientDictt    attrValuet attrFuncNamet coefficient((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRQsÆ
 
 
 
                                       ( 
 
 
        
ic
: Csn|stj|ƒ}nd}
d} d} i} i}|dkrÕgg}}tjddƒ}tjddƒ}tjddƒ}tjdƒ}i}x8|jƒD]'\}}x|D]}|||<qºWq§Wnxq|jƒD]c\}
}t||
ƒ}t||ttj    ƒƒ}||}| ||7} xt
d|dƒD]û}|dk}t |||
d|d|    ƒ}|s‚qFn|\} }!}"}#| |"|#7} xœ| D]”}|dkr t j ƒj|ƒ}$|$sÜq©n|$jƒ}%|j|ƒ}||krÀtj|$ƒrJ|%|kr½|%|kr½t jd    ||%fƒq©q½qÀ|dkrŽ||kr½||kr½t jd
||fƒq©q½qÀ|| krÀ||krÀt jd |ƒq©qÀn|%râ|%|krâ|j|%ƒn|dkr ||kr |j|ƒq n| j|dƒd| |<|!j|dƒ||<q©WqFWqâWx?|D]7\}}&}'| j|dƒ|&|| |<|'||<qPWd}(g})g}*xD| jƒD]6\}}&t j ƒj|ƒ}$|$s×qªn|j|dƒ}'tj|$ƒr]xÀt
|&ƒD]Q}+tj|d |'ƒ},|,r|(d7}(|)j|,ƒ|*jtj|,ƒƒqqWn^|(ttj|&t|$jƒƒƒƒ7}(|)j||&|'gƒ|*jtj||&|'gƒƒ|sªtj|tj|&|gƒqªqªW|rþ|\}-}.}/d}0|j ƒ}1t j!ƒ}2xGtj"D]Ö\}3}4|-|3}5|.|4}6|2j#|5|6ƒsYq!n|0t$|)ƒdkrsPn|)|0},|0d7}0t%|,t&ƒr½|,\}}&}'tj||&|'ƒ},n|,sÉq!nt'j(|5|6|,d tj)|1gd|
d|/ƒq!Wnc|s"|(tj*|t+j,|(ƒkrg}7xM|)D]E}8t%|8t&ƒrT|7j|8ƒq/|7jtj-|8ƒƒ|8j.ƒq/Wtj/||j ƒg|7d| ƒnÄtj0t1i|
d6g}9xj|)D]b}8t%|8t&ƒr    |8\}}&}'tj2|||&|'t+j,gd|9ƒq½tj3||8d|9ƒq½W| rBtj|ƒj4| ƒn| ratj5|t+j6| ƒn|*| | fS(s]¸øÍæ¼Ò»÷ɱNPCµôÂä½±Àø
    @param mapID: »÷ɱµÄNPCËùÔÚµØÍ¼ID£¬×¢Òâ´ÎµØÍ¼²¢²»Ò»¶¨ÊÇÍæ¼Òµ±Ç°µØÍ¼
    @param npcCountDict: Ö´Ðе¥´ÎʱËù»÷ɱµÄnpcÊýÁ¿×Öµä {npcID:count, ...}
    @param exp_rate: »÷ɱ¹ÖÎïÏíÊܵľ­Ñé±ÈÀý
    @param mailTypeKey: »ñÈ¡ÎïÆ·±³°ü¿Õ¼ä²»×ãʱ·¢Ë͵ÄÓʼþÄ£°åkey
    @param isMail: ÊÇ·ñÇ¿ÖÆ·¢ËÍÓʼþ£¬ÈôÊÇÔò²»¿¼ÂDZ³°ü¿Õ¼ä£¬·ñµÄ»°Ö»ÔÚ±³°ü¿Õ¼ä²»×ãʱ²Å·¢ËÍÓʼþ
    @param extraItemList: ¹Ì¶¨¸½¼ÓÎïÆ·ÁÐ±í£¬Èç¹ûÐèÖ´Ðжà´Î£¬Ôò´Ë¹Ì¶¨²ú³öÁбíÐèÔÚÍâ²ã´¦ÀíºÃ£¬Äڲ㲻×ö¶à´ÎÖ´Ðд¦Àí¡£[[itemID, itemCount, isBind], ...]
    @param prizeMultiple: ½±Àø±¶Öµ, ¶ÔËùÓн±ÀøÓÐЧ£¬µÈÓÚ»÷ɱ¶à´ÎNPC£¬¶à±¶¸½¼ÓÎïÆ·
    iitSealDemonDoubleDropiitJobItemDropSetstisKillCountDropEquipExtcurGrades4    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·²¿Î»: itemID=%s,itemPlace=%ss4    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·ID¼¯ºÏ: itemID=%s,itemKey=%ss%    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·ID: itemID=%stisBindt    ownerInfot    dropNPCIDt isOnlySelfSeetsilvertNPCIDteventN(7R¯tGetPlayerExpRateR:RzRWt    GetNPCExpR]tfloatRtDef_MaxRateValueR‡tGetNPCDropInfoRR¥tGetItemByTypeIDt GetEquipPlaceRt
ItemCommont
GetIsEquipRƒRRt ItemControlertGetOutPutItemObjt GetJsonItemtmathtceilt GetPackCountt PlayerSuccesstDoAddSuccessProgressRBtSuccType_PickUpItemt GetPlayerIDRÙtDef_DropItemAreaMatrixtCanMovetlenR€R‚tChItemtAddMapDropItemtDef_NPCHurtTypePlayertGetItemPackSpacet IPY_GameWorldtrptItemtGetMailItemDicttCleart SendMailByKeytItemGive_NPCDropR tGivePlayerItemtDoLogic_PutItemInPacktAddExpt    GiveMoneytTYPE_Price_Silver_Money(:RšRt npcCountDicttexp_ratet mailTypeKeytisMailt extraItemListt prizeMultipletdropItemMapInfoRRettotalExpt
totalMoneyt itemCountDictt itemBindDictthadDropItemKeyListthadDropItemPlaceListtmPrizeItemIDListtmPrizePlaceListtmPrizeItemKeyListt itemKeyDictt itemIDKeyDicttitemKeyt
itemIDListtitemIDtcounttbaseExptaddExpt
totalCounttdCountRtdropInfot
dropIDListtdropIDBindDictt dropMoneyCntt
moneyValuetitemDatat    itemPlacet    itemCountRt    needSpacet prizeItemListt jsonItemListt_tcurItemtdropPosXtdropPosYRR™tplayerIDtgameMaptposXtposYtresultXtresultYt mailItemListt    prizeItemR"((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGiveKillNPCDropPrizesì    
                  "
  )#  
 
 
 
!$ % 
i@BcCstjd|ƒ}|s-tjd|ƒdSd}d}tjƒjtjƒ}t    |ƒdkr¬|d}|j
ƒ}|r||krtjd|||fƒdSnWx0|D](}|j
ƒ}||kr³|}Pq³q³W|stjd|||fƒdS|S(Nt NPCDropItems¸ÃNPCûÅäÖõôÂ䣡npcID=%siisF¸ÃNPCµ±Ç°ÊÀ½çµÈ¼¶ÎÞ·¨µôÂäÎïÆ·!npcID=%s,curWorldLV(%s) > maxWorldLV(%s)sB¸ÃNPCµ±Ç°ÊÀ½çµÈ¼¶ÎÞ·¨µôÂäÎïÆ·!npcID=%s,curWorldLV=%s,maxWorldLV=%s( R:tGetIpyGameDataListNotLogRRƒRR@RARBRHR8t GetMaxWorldLV(Ret ipyDataListtipyDropt
maxWorldLVt
curWorldLVtipyData((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCDropIpyData@s,
    c9CsÜt|ƒ}|sdS|jƒ}|jƒ}|r^||kr^tjd|||fƒdS|jƒ}tjƒj|ƒ}|s‰dSg}    |jƒrª|j    ƒgnt
j ddƒ}
t j |ƒ} t j|ƒ} |jƒ} | tddƒ@sd} n| tddƒ@sd} nd}tj}tjd|||
| | | f|ƒg}|jƒ}|r|jƒrt||| |ƒ}||9}|jƒ}| rØtj|| ƒ}tjd|| f|ƒn|}d}|d    d}tjd
||f|ƒxÚ|D]Ò}|\}}||}|s9Pn|}|sKqn|\}}}||}||}||}tj||ƒr—|d7}ntjd |||||||f|ƒ|sÌqn|j||||gƒqWtjd ||f|ƒnt
jd dƒ} i}!|jƒ}"xˆ|D]€\}}}}|| krltjd||fƒq1ni}#| |}$||"krØ|"|}%xit|ƒD]2}&tj|%dƒ}'|#j|'dƒd|#|'<qŸWn&|tjkrô||#d<n
||#d<x°|#j ƒD]¢\}'}(t!||||$|'|
ƒ})|)s>q nxlt|(ƒD]^}&t"j#|)ƒ}*|    j|*ƒ||g|!|*<tjd||*|||'||
|)f|ƒqKWq Wq1W|j$ƒ}+|j%ƒ},xÅ|+j ƒD]·\}-}.|.sòqÚn|,j|-dƒ}/t|/||ƒ}/|/|9}/|.|/}||}||}tj|t&ƒr]|d7}n|    |-g|7}    tjd|-|.|/||f|ƒqÚWt'|    t
jddƒƒ}    tj(|ƒ}0t)||0|    |!ƒ}1|j*ƒ}2|j+ƒ}3|3|2|}4|4tj,}5tj|4tj,tj,ƒr0|5d7}5nd}6|5rrt-||ƒ|5}6tjd|3|4|5|6f|ƒni}7x(|    D] }8|7j|8dƒd|7|8<qW|7rÏtjd|||7|1|6f|ƒn|7|1|6fS(sTÍÑ»ú¹Òɱ¹ÖµôÂäרÓú¯Êý
    Ö»Ëã: 1.±ýͼװ±¸µôÂä + 2.Ö¸¶¨ÎïÆ·IDµôÂä + 3.½ð±ÒµôÂä
    NsE³¬¹ý×î´ó¿ÉµôÂäµÈ¼¶£¬²»µôÂäÎïÆ·£¡npcID=%s,playerLV(%s) > maxDropLV(%s)tOpenJobiiisvÍÑ»ú¹Òɱ¹ÖµôÂä: npcID=%s,killCount=%s,itemJobList=%s,dropRatePlusValue=%s,equipDropRatePlus=%s,equipDropDoCountPlus=%ss)    ×°±¸ÅäÖñýͼ: %s,equipDropRatePlus=%siÿÿÿÿs    ×°±¸µôÂä±ýͼ: %s,maxRate=%ss\    ×°±¸µôÂÊ: curRate=%s,totalRate=%s,rateEx=%s,dropCount=%s,classLV=%s,color=%s,placeKey=%ss9    ×°±¸µôÂä½á¹û: killCount=%s,[½×,ÑÕÉ«,²¿Î»¼¯ºÏ,¼þÊý]=%stEquipDropPartSetss&²¿Î»¼¯ºÏkey²»´æÔÚ!npcID=%s,placeKey=%ssj    µôÂä×°±¸: npcID=%s,itemID=%s,classLV=%s,color=%s,star=%s,placeKey=%s,itemJobList=%s,randEquipIDList=%ssJ    Ö¸¶¨ÎïÆ·µôÂä: itemID=%s,dropRate=%s,doCnt=%s,totalRate=%s,dropCount=%st    MutexDropsM    ½ð±ÒµôÂÊ: dropMoneyRate=%s,moneyTotalRate=%s,dropMoneyCnt=%s,dropMoney=%ssU    ×îÖÕµôÂä: npcID=%s,killCount=%s,dropIDCountDict=%s,dropIDBindDict=%s,dropMoney=%s(.R‚Rt GetMaxDropLVRRƒR5R¥R¦tGetIsDropJobSelftGetJobR:RzR¯tGetDropEquipPertGetDropEquipDoCounttGetCanDropRatePlustpowRR&tGetPieRateDoCnttGetPieRateDropt__GetNPCDropDoCountChangetGetPlusPieListt    CanHappenRt
GetFuncCfgtGetEquipStarInfoRFR‡tGetResultByRandomListRtDef_Quality_OrangeRWt__GetEquipIDListRLR{tGetItemIDDropRatetGetItemIDMaxDropCounttDef_NPCMaxDropRatet__RemoveMutexDropIDt
IsGameBosst__GetNPCDropItemBindInfotGetDropMoneyDoCnttGetDropMoneyRatetDef_NPCMapDropRatet__GetDropMoneyValue(9t
dropPlayerRRet    killCountR~tplayerLVt    maxDropLVRqRàRct itemJobListtequipDropRatePlustequipDropDoCountPlustdropRatePlusValuet
doCountAddt doCountRatetdropEquipInfoListt pieRateDoCnttpieRateDropListt dropRateListtpreRatetmaxRatetrateInfotratet    equipInfotcurRatetclassLVtcolortplaceKeyt    totalRatet    dropCounttrateExt    placeDicttdropEquipIDDicttcolorStarRateDictt starCountDictt    placeListtcolorStarRateListRmtstartcurStarDropCounttrandEquipIDListt
randItemIDtitemIDDropRateDicttitemIDDropMaxCntDictR\tdropRatetdoCntt
isGameBossRdtdropMoneyDoCntt dropMoneyRatetmoneyTotalRateRet    dropMoneytdropIDCountDicttdropID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCDropInfoTJGYsô    -                  
 
 
 
 
        
 
! 
     /  
 
 
 
                  c[CsH |st|ƒ}|sdSn|s1|g}n|jƒ}|jƒ}    |jƒ}
|
r…|    |
kr…tjd||    |
fƒdStjƒj|ƒ} | s¸tjd||ƒdSg} i} d\}}g}|j    ƒ}|r@|r@|\}}}}t
||||ƒ}x(|D]}| j |ƒ|| |<qWn|j ƒr[|j ƒgntjddƒ}tjƒ}|jtjƒ}|jtjƒ}|s¯tj}nd}d}d}xs|D]k}|jtj|ƒd}|sô|n t||ƒ}t|tj|ƒƒ}t|tj|ƒƒ}qÈW|jƒ} | tddƒ@s_d}n| tddƒ@s{d}ng}!|jƒ}"|"rÂt |"|||ƒ}"|!t!||"|ƒ7}!n|j"ƒ}#|#rt |#|||ƒ}#|!t#||#||ƒ7}!ntj$ddƒ}$|j%ƒ|j&ƒ}%}&|o@|%p@|&}|rw|%rw||%dkrw|%\}'}(})}*}+nX|r«|&r«||&dkr«|&\}'}(})}*}+n$dddgdf\}'}(})}*}+|'},|*rþtj'|*dƒ}-|*dd}.n d}-d}.|+|$krgn|$|+}/d}0d}1t)}2gg}3}4x¿|D]·}|j*ƒj+t,j-ƒ}5|(r|)r|/rxt.|5j/ƒƒD]}6|6|/kr§qn|5j0|6ƒ}7|7j1ƒrÈqnt2j3|7ƒ}8|7j4ƒ}9|7j5ƒ}:t2j6|7ƒ};|8|(krJ|9|)krJ|:|.krJ|3j |9|8|:|;|6|j ƒgƒq|8|(ksn|9|)ksn|:|.kr|4j |9|8|:|;|6|j ƒgƒqqWn|jtj|ƒd}<|<|,krLtj7|tj||<ƒtjd    ||<|,f|jƒƒqLqLW|3j8ƒ|4j8ƒ|rjtjd
|t9|3ƒ|3f|ƒtjd |t9|4ƒ|4f|ƒn|3sv|4rŽtj$d dƒ}=|=rÚ|3|47}3|3r‹|3dd }0|3dd}1tjd|0|1f|ƒq‹qŽtj$d dƒ}>t9|3ƒ|>kr |3|47}3ntjd|>|ƒt:j;dt9|3ƒdƒ}?tjd|?|3f|ƒ|3|?d }0|3|?d}1tjd|0|1f|ƒn|rÆtjd|||'|(|)|-|.|0|1f    |ƒni}@|j<ƒ}Ai}Btjddƒ}C||Ckr-|C|}B|r|ntjƒjtj=ƒ}ni}D|j>ƒ}ExN|!D]F\}F}G}H|G|Ekrº|E|G}I|Dj?|Gdƒ}J|J|Ikr©tjd|G|If|ƒqFn|Jd|D|G<n|)|Gkrs    |(rs    |-dkrs    |0rs    |2 rs    t@}2tA||(|)|/|-|1g|0ƒ}K|Ks    qFnt:jB|Kƒ}L| j |Lƒ|)|+g|@|L<tjd||L|(|)|0|-|1|Kf|ƒqF|H|$krœ    tjd||HfƒqFn|$|H}M|G|Akrï    |A|G}N|BrÚ    tC|G|N|B|ƒ}Nntj'|Ndƒ}On|GtjDkr
d}Ond}OtA||F|G|M|O|ƒ}K|Ks4
qFnt:jB|Kƒ}L| j |Lƒ|G|Hg|@|L<tjd||L|F|G|O|H||Kf|ƒqFW|2 r: |(r: |)r: |-dkr: |0r: tA||(|)|/|-|1g|0ƒ}K|Kr: t:jB|Kƒ}L| j |Lƒ|)|+g|@|L<tjd||L|(|)|-|0|1|Kf|ƒq: n| tE|||||ƒ7} tF| tj$ddƒƒ} tjG| ƒ}PtH||P| |@ƒ} |ra tjddƒ}Q||Qkr* |Q|}R|rÏ |ntjƒjtj=ƒ}|Rj?|gƒ}Sg}Tx4|SD]\}U}V|T|Ug|V7}Tq Wn |jIƒ}Tx(|TD]}W| j |Wƒd| |W<q= Wn| r‡ tjd|| | f|ƒn|jJƒ}X|jKƒ}Y|YtjLkr· |X}n?d}x6t.|XƒD](}ZtjM|YtjLƒrÊ |d7}qÊ qÊ W|r tN||ƒ}n| r8 |Pr8 tjd||jƒƒn| | ||fS(s»ñÈ¡NPCµôÂäÐÅÏ¢, »÷ɱ¼°É¨µ´Í¨Ó㬵÷Óøú¯Êý»ñµÃµôÂäÐÅÏ¢£¬È»ºóÔÙ¿´µôÂ䵨°åÉÏ»¹ÊÇÖ±½Ó·ÅÈë±³°ü
        @param dropPlayer: ÓÃÓÚÅжϵ÷ÓÃÏà¹ØÓõÄÍæ¼ÒʾÀý£¬¸ÃÍæ¼Ò²¢²»Ò»¶¨ÊÇ»÷ɱÕߣ¬Ö»Êǰ´Ò»¶¨¹æÔòÉ趨µÄµôÂäÅжÏÒÀ¾ÝµÄÍæ¼Ò
                            Èç¶ÓÎ飬ȡµÈ¼¶×î´óµÄÍæ¼Ò£¬¸ÃÍæ¼Ò²¢²»Ò»¶¨ÊÇ»÷ɱÕß
        @param mapID: µôÂäÎïÆ·ËùÊôµØÍ¼£¬×¢Òâ´ËµØÍ¼²¢²»Ò»¶¨Êǵ±Ç°µØÍ¼£¬Èçɨµ´Ê±ÐèʹÓÃÄ¿±ê¸±±¾µØÍ¼
        @param npcID: µôÂäÎïÆ·µÄNPCID
        @param ownerPlayerList: ÓйéÊôµÄÍæ¼ÒÁбí
        @param isSingle: ÊÇ·ñÖ»´¦Àíµ¥¶ÀÍæ¼ÒµôÂäÂß¼­£¬Ò»°ã¶¼Ä¬ÈÏTrue£¬Ä¿Ç°Ö»Óг¡¾°É±¹ÖµôÂäÐèÒª¿¼ÂÇÃþ¹ÖµÄÇé¿öϲÅΪFalse£¨Íâ²ãÌØÊâ´¦Àí£©
        @return: dropIDList, dropIDBindDict, dropMoneyCnt, moneyValue
                None-ûÓеôÂä
                ---------------
                dropIDList        -    µôÂäµÄÎïÆ·IDÁбí, Í¬¸öitemID¿ÉÄÜÔÚÁбíÖÐÓжà¸ö [itemID, itemID, ...]
                dropIDBindDict    -    µôÂäµÄÎïÆ·ID°ó¶¨ÐÅÏ¢ {itemID:ÊÇ·ñ°ó¶¨, ...}
                dropMoneyCnt      -    µôÂä½ð±ÒλÖÃÊý
                moneyValue        -    Ã¿¸öλÖõĽð±ÒÊýÁ¿
    NsE³¬¹ý×î´ó¿ÉµôÂäµÈ¼¶£¬²»µôÂäÎïÆ·£¡npcID=%s,playerLV(%s) > maxDropLV(%s)s&»ñÈ¡NPCµôÂäÅäÖôíÎó!±í²»´æÔÚ¸ÃNPCID=%siRƒiiR„s9Íæ¼Ò»÷ɱ´ÎÊý: npcID=%s,killCount=%s,maxRecordKillCount=%ssM¶¼²»Âú×ãÄ¿±ê×°±¸µÄÓÅÏȼ¶ÐÅÏ¢: npcID=%s, ÊýÁ¿=%s, ÑÕÉ«,½×,ÐÇ,ÆÀ·Ö,²¿Î»,Ö°Òµ=%ssM²¿·ÖÂú×ãÄ¿±ê×°±¸µÄÓÅÏȼ¶ÐÅÏ¢: npcID=%s, ÊýÁ¿=%s, ÑÕÉ«,½×,ÐÇ,ÆÀ·Ö,²¿Î»,Ö°Òµ=%stDropEquipPlaceModeiþÿÿÿiÿÿÿÿs+µôÂäÄ¿±ê²¿Î»È¡×îÓŽâ: tagPlace=%s,tagJob=%ss1ÓÅÏÈËæ»ú¶¼²»Âú×ãÄ¿±ê×°±¸µÄ,randPlaceCountLimit=%ssAµôÂäÄ¿±ê²¿Î»Ëæ»ú, randPlaceIndex=%s, ÑÕÉ«,½×,ÐÇ,ÆÀ·Ö,²¿Î»,Ö°Òµ=%ss3µôÂäÄ¿±ê²¿Î»Ëæ»ú²»Âú×ãÌõ¼þµÄ: tagPlace=%s,tagJob=%ss¸½¼ÓµôÂäÖ¸¶¨Ä¿±ê×°±¸ÐÅÏ¢: npcID=%s,Íæ¼Ò×îÉٵĻ÷ɱ´ÎÊý=%s,Ä¿±ê»÷ɱÊý=%s,tagClassLV=%s,tagColor=%s,tagStar=%s,tagStarMin=%s,tagPlace=%s,tagJob=%stFBGradeEquipDropRates6Òѳ¬¹ý¸ÃÑÕɫװ±¸×î´óµôÂäÊý£¬²»µô£¡color=%s,maxCount=%ssrÌæ»»Ö¸¶¨ÑÕɫװ±¸: npcID=%s,itemID=%s,tagClassLV=%s,tagColor=%s,tagPlace=%s,tagStar=%s,tagJob=%s,randEquipIDList=%ss&²¿Î»¼¯ºÏkey²»´æÔÚ!npcID=%s,placeKey=%ssfµôÂä×°±¸: npcID=%s,itemID=%s,classLV=%s,color=%s,star=%s,placeKey=%s,itemJobList=%s,randEquipIDList=%ssrµôÂäÖ¸¶¨Ä¿±ê×°±¸: npcID=%s,itemID=%s,tagClassLV=%s,tagColor=%s,tagStar=%s,tagPlace=%s,tagJob=%s,randEquipIDList=%sR…is6×îÖÕµôÂäÎïÆ·: npcID=%s,dropIDList=%s,dropIDBindDict=%ssBossûÓеôÂäÎïÆ·,NPCID=%s(ii(OR‚R5RR†RRƒR¥R¦RFtGetKillCountDroptGetKillCountDropItemListRR‡RˆR:RzR<RDRtDef_FB_DropDoCountAddtDef_FB_DropDoCountRateR&tNomalDictGetPropertytDef_PDict_NPCKillCountRYRR¯R‰RŠR‹RŒRRt__GetNPCPieRateEquipDroptGetIndepRateDoCntt__GetNPCIndepRateEquipDropR’tGetKillCountDropEquipExtGetKillCountDropEquipEx2R”RR tGetItemManagertGetPackR=trptEquipR‡tGetCounttGetAttIsEmptyR*tGetItemClassLVt GetItemColortGetItemQualitytGetEquipGearScoretNomalDictSetPropertytsortR8RLRMR“t Def_FB_GradetGetIndepRateMaxDropCountRtTrueR–R{t__GetFBGradeColorStarRateListR•t__GetAppointDropItemIDListRšR›RœtGetPriItemIDDropRRžRŸR‘R ([R¡RRetownerPlayerListR~tisSingleRRRqR£R¤RàRcRdReRftkillCountDropIDListtkillCountDropInfot needKillCounttisDropInItemPackRtkillDropItemListt kDropItemIDR¥RiR©RªtdropEquipExKillCountR¦R§t ownerPlayertownerKillCountR¨R«R¬tindepRateDoCntR»tkillCountDropEquipExtkillCountDropEquipEx2t tagKillCountt
tagClassLVttagColorttagStarRateListt tagPlaceKeytmaxRecordKillCountttagStart
tagStarMint tagPlaceListttagPlacettagJobttagItemReplaceStatettagPlaceSortListttagPlaceSortList2t playerEquipt
equipIndextcurEquiptcurEquipClassLVt curEquipColort curEquipStartequipGSR¢tisOptimalPlacetrandPlaceCountLimittrandPlaceIndexR¼R½tgradeColorStarRateDicttfbGradeColorStarRateDicttcolorDropCntDicttcolorMaxDropCntDictRµR¶R·tmaxCountR¹RÃRÄR¿RÀRÁRÉtfbGradePriItemIDDropDicttgradePriItemIDDropDicttpriDropInfoListt priDropIDListt    priItemIDt priItemCountt    priDropIDRÊRËRm((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR'ôs           -              $      $($/     !
 
#& 
      )  
'  
 +!     & 
 
         '%!     ) 
$           cCs„g}|df}xkt|ƒD]]\}}|\}}    |dkrL|}
n|||dd}
||    f} |    s}|
} nÄ| |krÜ|| } |dks±|t| ƒkr·dn | |d}t|
|dƒ} ne||kr;||} |dks|t| ƒkrdn | |d}t|
|dƒ} n|
} |s]|j| |    gƒq|j|dd| |    gƒqW|S(Niii'gˆÃ@iÿÿÿÿ(t    enumerateR8R]R(R¶RÀRRt newRateListtcommKeytiR±R²RÁtsrcRatetkeytnewRatet starRateListtstarRate((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRís.             
2 
2#cCs—tj|ƒ}tjddƒ}tjddƒ}tjddƒ}tjddƒ}tjddƒ}tjddƒ}    tjd    dƒ}
|j|dƒ} |    j|gƒ} |
j|gƒ} i}xÇ|D]¿}||krèqÐn||kr||\}}||ko||k}n`|| kr4t}nK|| krIt}n6| dkr^| }n!|rs||k}n ||k}t|ƒ||<qÐW|S(
NtEquipDropBindingRuleiitBossDropBindingRuleitMonsterDropBindingRuletMapDropBindRuletMapDropItemNoBindtMapDropItemBind(    RÛRÜR:R’RRRìR R](RRÉRcR¼tunBindEquipPlaceKeyListtdefaultMaxBindColortbossDropBindIDListtmonsterDropNoBindIDListtmapDropBindDicttmapDropItemNoBindDicttmapDropItemBindDicttmapDropItemIsBindtmapDropItemNoBindListtmapDropItemBindListRdt
dropItemIDR¶R·R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRœBs:                   cCsO|tjkr/tdt||dƒƒ}n|rKtd||ƒ}n|S(NigˆÃ@(RR&RR](tdoCountRªR©((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRos
 cCs¶x¯|D]§}t}x˜|D]}||kr2qn|sŠt}|j|ƒ}|dkrx(t|dƒD]}|j|ƒqjWqqnx||kr©|j|ƒqWqWqW|S(Ni(R RìR]R‡tremove(Rct mutexDropInfot mutexDropListtisMutextmutexIDt curDropIDCntRm((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRšws    c7
Csôg}|jƒ}tjddƒ}tjddƒ}tjddƒ}    |jƒ}
|jƒ} | r€x| jƒD]\} } | |kr‘qsn|| }t|ƒ|krÍtjd|| |fƒqsn| t    }| t    } |}|
j
| dƒ}t |||ƒ}x9t |ƒD]+}tj | dt    ƒs9qn|d7}qW||d}x!t |ƒD]}|j|ƒqbWqsWn|jƒ}|rÁx,|jƒD]\}} || kr½qŸn| t    }| t    } |}|
j
|dƒ}t |||ƒ}x9t |ƒD]+}tj | dt    ƒs)qn|d7}qWx€t |ƒD]r}||    krr|    |}tj|ƒ}n+||krD||}tj|ƒ}nqD|s©qDn|j|ƒqDWqŸWn|jƒ}|jƒ}tjddƒ}tjddƒ}tjƒ}x}|jƒD]o\}} | s.qn||kr@qn|j
|dƒ}||kr×ttjƒƒ}|jtj|ƒ} ||d    }!|!|| }"|"d
krétjd ||!|| |"fƒqqént |||ƒ}x™t |ƒD]‹}tj | dt    ƒsqön|j|ƒ||kröt||gƒ}#tjƒjd
d
d
d|#t|#ƒƒtj |||ƒPqöqöWqWxþ|jƒD]ð\}}$|$\}%}&||%krÀq–n|jtj!|ƒ}'t"t#j$d ||&ƒƒ} tj | dt    ƒ}(|(r6|j|ƒtj%||||'| ƒn|(rBd
n|'d})t||)gƒ}#tjƒjd
d
d
d |#t|#ƒƒq–Wtj&ddƒ}*||*krð|*|}+t'|jtj(|ƒdtj)ƒ},tj*d||,fƒt||,gƒ}#tjƒjd
d
d
d|#t|#ƒƒ|,|+krð|+|,\}-}.}/x«|.jƒD]\}}0|-rÊtj+ƒj,|ƒ}1|1sˆqUn|1j-ƒd}2|2rÊ|2|jƒkrÊtjd|ƒqUqÊn||g|07}tj*d||0fƒqUW|/rí|-rªg}3x‡|/D]\}4}5tj+ƒj,|4ƒ}1|1s<qn|1j-ƒd}2|2r{|2|jƒkr{tjd|4ƒqn|3j|4|5gƒqWtj|3ƒ\}}6ntj|/ƒ\}}6||g|67}tj*d||6fƒqíqðn|S(NRiiis@Ö°ÒµÎïÆ·¼¯ºÏkeyûÓÐÅäÖöÔÓ¦Ö°ÒµID: npcID=%s,jobItemKey=%s,job=%sR°t GlobalDropCDtNPCGlobalDropRatei<isT¸ÃÎïÆ·È«¾ÖµôÂäCDÖУ¬²»µôÂ䣡itemID=%s,cdTime=%s,curTime=%s,lastDrop=%s,remainTime=%ssKilledCntDropRate_%stGlobalDropRates¸üÐÂÈ«·þ»÷ɱ´ÎÊý£ºnpcID=%s, %stGlobalKillCountids1È«·þ»÷ɱ´ÎÊý±Øµô£¬·Ç±¾Ö°Òµ¿ÉÓ㬲»µôÂä! itemID=%ss,È«·þ»÷ɱ´ÎÊý±ØµôÎïÆ·: itemID=%s,itemCount=%ss6È«·þ»÷ɱ´ÎÊý±ØµôËæ»ú£¬·Ç±¾Ö°Òµ¿ÉÓ㬲»µôÂä! rItemID=%ss8È«·þ»÷ɱ´ÎÊý±ØµôËæ»úÎïÆ·: randItemID=%s,randItemCount=%s(.RˆR:R’tGetItemKeyMaxDropCounttGetItemKeyDropRateJobRWR8RRFR™RRR‡R‘RtGetItemKeyDropRateR”RLR{R—R˜R@R]ttimeRARBt Def_Notify_WorldKey_LastDropTimeRƒRßtGetPlayerManagertGameServer_QueryPlayerResulttDataRecordPacktDR_GlobalDropCDt$Def_Notify_WorldKey_DropNPCKilledCntRÔRÕRÖtDR_GlobalDropRateRzRYt"Def_Notify_WorldKey_NPCKilledCountRZtLogR¥R(t GetJobLimit(7RšReR~RªR©tdropItemIDListRœRt itemDropSetstitemDropRateSetstItemKeyMaxDropCountDicttItemKeyDropRateJobDictt
jobItemKeyRÇt jobItemListt mustDropCountt canDropCountRÈRmt    jobItemIDtItemKeyDropRateDictRZtrandItemRateListRÄt randItemListRÅRÆtglobalDropCDDicttglobalDropRateDicttgwR\tcurTimet lastDropTimetcdTimet
remainTimetmsgInfoRbt    npcIDListt
rateFormatt    killedCnttisDropt updKilledCnttglobalKillDropDicttkillCountDropDicttupdNPCKilledCountt
isJobLimittitemIDCountDicttrandItemIDCountListRiRgtitemJobtrandJobItemListtrItemIDt
rItemCountt randItemCount((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRîs    
 
 
 
 
 
 
                (    , 
&(      c    Csd|||f}|tjkr2tj|}n/i}tjƒ}    xðtjjƒD]ß}
xÖ|
D]Î} |    j| ƒx¸t|    j    ƒƒD]¤} |    j
| ƒ} | j ƒs®q‡nt j | ƒ|krÉq‡n| jƒ|kráq‡n| jƒ|krùq‡n| jƒd}| jƒ}| jƒ|||f<q‡WqaWqTW|tj|<tjd||tjfƒg}x{|jƒD]m\}}|\}}|r¤||kr¤qtn||kr¶qtn|dkrÔ||krÔqtn|j|ƒqtW|stjd|||||||fƒn|S(Ns%s_%s_%sids-»º´æµôÂä×°±¸ID: classLV_color_star=%s, %s, %ssbÕÒ²»µ½¿ÉµôÂäµÄ×°±¸ID: npcID=%s,classLV=%s,color=%s,star=%s,placeList=%s,tagPlace=%s,itemJobList=%s(R}tg_filterEquipDictRR¥RtDef_PlaceEquipTypetvaluestFilterItemByTypeR‡tGetFilterItemCountt GetFilterItemt GetCanNPCDropR*RäRåRæRTR)t GetItemTypeIDRSRWRRRF(ReRµR¶R¿RÁR¥RR'tfilterItemIDDicttgameDatat itemTypeListtitemTypeR%RgRuRhR[t itemJobPlaceR\((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR–?sJ     "        cCspg}|jƒ}|s|ntj||ƒ}x9t|ƒD]+}tj|ƒ}|r=|j|ƒq=q=W|S(N(RŽRRR‡R”R(R~RÈt equipDropPlusR«R­R®RmRb((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÙrs cCsª|jƒ}|jƒ}i}tjddƒ}||krm||}|rR|ntjƒjtjƒ}ng}x0t    |ƒD]"}    x|j
ƒD] \}
} | } |
d} | |kr|| }|dksã|t |ƒkrédn ||d}t | |dƒ} n|s| n| t | |dƒ} | t }| t } |}tj| dt ƒrn|d7}n|szq“nx!t    |ƒD]}    |j|
ƒq‡Wq“Wq€W|S(NRÒiii'gˆÃ@R°(R9tGetIndepRateDropR:RzRR<RDRRêR‡t    iteritemsR8R]R™R‘R(R~RÈR‡RRet indepRateDicttgradeColorRateDicttfbGradeColorRateDictR«RmRbR²RÇR¶t colorRateListt    colorRateR\t curDropCount((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÛ€s6   
'
 
2$
 
 cCsøtj|ƒ}|dkr<tj|jƒ|jƒƒ}n|dkrLdS|}|dkrÓd}t|jƒ|ƒt    j
}t |||ƒ}tj |ƒ}|dkrÓt ||tt    j
ƒƒ}qÓn|dkrôtjddƒ}n|S(Niiÿÿièýiúÿ( ROtOnGetNPCDropMoneyRLRMtGetDropMoneyMintGetDropMoneyMaxRR%tGetGoldFoundRateRBR&R]tOnGetOuterMoneyRate(RšR~t    baseMoneyRft    addRateExtaddRatetouterMoneyRate((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR ´s  !   # c Cs |jtj|ƒ}|d}|dr.gS|d7}g}||kråd}x|D]y}tjƒj|ƒ}    |    stjd|ƒqWn|    jƒd}
|rÃ|
rÃ|
|jƒkrÃqWn|j    |ƒqWW|dd} n
|d} t
j |tj|| ƒ|S(Ni
isµôÂäÎïÆ·ID²»´æÔÚ, dropItemID=%sid( R×RtDef_PDict_NPCKillCountDropRR¥R(RFRTRˆRR¯Rè( RšReRôRöt
dropRecordR¢t jobDropInfoRrR;RgRut recordValue((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÔÎs*
 
 
 
cCs>tjddƒ}|dkr"dS|||dkr:dSdS(Niii ièi(RLRM(tcurTicktlastActionTickRe((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytIsInActionTimeøs  cCs|jƒtjkrtStS(N(tGetGameNPCObjTypeR=t
gnotSummonRìR (R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt IsSummonNPCscCsIxBtd|jƒƒD]+}|j|ƒ}|jƒ}|jƒqWdS(Ni(trangetGetSummonCounttGetSummonNPCAtRR@(RšR%t    summonNPCtangry((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytClearSummonAngry_Players cCs)|jƒ}|dkrdStj|ƒS(N(tGetOwnerRRt GetObjDetail(R¦tcurSummonOwner((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSummonOwnerDetels  cCs3t|ƒ}|stS|jƒtjkr/tStS(N(tGetNpcObjOwnerDetailR tGetGameObjTypeR=t    gotPlayerRì(tnpcObjt ownerDetail((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNpcObjOwnerIsPlayer*s  cCsU|jƒ}d}|tjkr0t|ƒ}n!|tjkrQtj|ƒ}n|S(N(R RR=R¡R¬tgnotPett
PetControlt GetPetOwner(R°t
npcObjTypeR±((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR­;s cCs±|dkrdSt|dƒsN|jtjƒ}|rJtj|tjƒSdS|j    ƒ}|dkrjdStj|j
ƒ|ƒ}|dkr­|tjkr­|j ƒr­dS|S(NR©( RRt GetDictByKeyRt!Def_NPC_Dict_SummonMapNPCPlayerIDRtGetObjR=R¯R©RyRã(t
curobjTypet    curSummontsummonPlayerIDR«tcurSummonOwnerDetel((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSummonNPCOwnerOs   'c
CsÜtjƒ}|jƒ}|jƒ}d}x«|D]£}|j||d||dƒ}|seq1nxltd|jƒƒD]U}|j|ƒ}    tj    |    ƒdkr«q{n|    j
ƒt j krÆq{n|d7}q{Wq1W|S(Nii( RRÙtGetPosXtGetPosYt    GetPosObjR£t GetObjCountt GetObjByIndexRTRVR®R=R¯(
RtmatrixRrtsrcPosXtsrcPosYtcurPlayerCounttcurPostmapObjR%tcurObj((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetPlayerCountInSightByMatrixps     "cCsèg}|jƒ}xÏtd|ƒD]¾}|j|ƒ}|dkrIq"n|jƒtkraq"n|jƒ}|tjkr‚q"n|j    ƒr”q"nt
j |ƒdkr¯q"nt j |jƒ|ƒ}|sÓq"n|j|ƒq"W|S(Ni(tGetInSightObjCountR£tGetInSightObjByIndexRt
GetVisibleR R®R=R¯RãRTRVRR¹RyR(RtplayListt seeObjCountR%tseeObjt
seeObjTypet curTagPlayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetInSightPlayerList_NPC‘s(    c Cssg}|jƒ}xZtd|ƒD]I}|j|ƒ}|dkrIq"n|jƒtkraq"n|jƒ}|tjkr‚q"n|j    ƒr”q"nt
j |ƒdkr¯q"n|j ƒ}||j ƒkrà|j |ƒq"n|sìq"n|jƒ}    tj||ƒ}
|
sq"n|
jƒ} |    dks"| dkr@q"n|    jƒ| jƒkr^q"n|j |
ƒq"W|S(Ni(RÌR£RÍRRÎR R®R=R¯RãRTRVRyRtGetTeamRR¹t    GetTeamID( RšR¦t    checkTeamRÏtseePlayerCountR%RÑRÒtseeObjIDt curPlayTeamRÓt
curTagTeam((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetInSightPlayerList_SummonNPC¼s@        c Csªd}d}|dks$|dkr(tSx{td|jƒƒD]d}|j|ƒ}|dkreq>ntj|ƒdkr€q>n|jƒs’q>ntj    ||ƒrªq>ntj
|j ƒ|j ƒ|j ƒ|j ƒƒ}||krìq>ntj |jƒ|jƒƒ}    |    dkr3tjd|jƒƒq>ntj||    ƒsKq>ntj||    d|ƒd}
|
tjkr|q>n|d7}||ksž||kr>tSq>WtS(Nii s&curNPC = %s ²éÕÒ¶ÔÏó, »ñµÃ¶ÔÏóʵÀýʧ°Üi(RìR£RÌRÍRRTRVRÎRt    IsSameObjtGetDistR¿RÀR¹RyR®RSR9t AttackCommontCheckCanAttackTagt
BaseAttacktGetTagRelationRtType_Relation_EnemyR ( Rt    checkDistt
checkCountRŒR]RR%RÑttagDistt seeObjDetailtrelation((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt&CheckCanAttackTagLimitCountInSight_NPCús<  0  
cCs
tjƒS(N(tGameLogic_FamilyInvadetGetDefaultMaxAngryNPCIDList(((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRëWscCs9|jƒtjkrdS|jƒs5|jtƒndS(N(t GetCurActionR=tlaNPCDietGetIsNeedProcessR
Rì(R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSetNPCInBattleState_s
 cCsp|jƒg}|jƒ}xHt|jƒƒD]4}|j|ƒ}|sOq.n|j|jƒƒq.Wt|ƒS(N(t
GetAtkDistR„R£t GetSkillCounttGetSkillByIndexRR(RtdistListR–R™tskill((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCMaxAtkDistss cCs»|jƒtg|jƒtg|jƒtg|jƒtgg}|rd|j|jƒtgƒn|jƒtj    kr•|j|j
ƒt gƒn|r·|j|j ƒtgƒn|S(N( t GetBuffStateR tGetDeBuffStatetGetProcessBuffStatetGetProcessDeBuffStateRtGetAuraR R=R³t GetPassiveBufRìtGetActionBuffManager(Rt getActionBufft getAuraBufftbuffRefreshList((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCBuffRefreshListˆs$cCsN|jƒ|krdS|jƒ}|jƒ}|tjkr‘|j|ƒ|t|dƒkr|jtj    ƒ r|j
t|dƒƒndS|tj krè|j|ƒ||dkrä|jtj    ƒ rä|j
|dƒndS|tj kr-|jtj ƒ|jtj    ƒs)|j
|ƒndSt jd||jƒfƒdS(Nis.ChangeNPCMoveType unKnowType = %s, curNPC = %s(tGetCurMoveTypetGetSpeedt GetOrgSpeedR=tmtRuntSetCurMoveTypeR]R·RtDef_NPC_Dict_SpeedPertSetSpeedtmtSlowtmtNormalRRFR9(Rt changMoveTypetchangeSuperSpeedt curNPCSpeedtcurNPCBaseSpeed((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytChangeNPCMoveType¢s*   ) #cCsàtjƒjƒ}|sdStjƒjƒ}|j|ƒ|j||ƒ|j|ƒ|dkrt|j|ƒnt    |ƒ|dkrš|j
|ƒn|dkr¼|j t j |ƒntj||ƒt|||ƒ|S(Ni(Rt GetNPCManagertAddPlayerSummonNPCR@Rwt SetNPCTypeIDtRebornt SetBornTimet    SetAITypeRt SetLastTimetSetDictRR¸ROtDoFBRebornSummonNPCt__NotifyMapPlayerSummonMapNPC(tnpcIdtrebornXtrebornYtaiTypetlastTimeRqR»RŒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt SummonMapNpcÏs"   
  cCs‰tjƒ}|jƒ||_||_||_tjƒ}xEt|j    ƒƒD]1}|j
|ƒ}|sqqPnt j ||ƒqPWdS(N( tChPyNetSendPackttagMCSummonMapNPCR@R!tPosXtPosYRR†R£RˆR‰t NetPackCommont SendFakePack(tsummonIDt
rebornPosXt
rebornPosYtmapNPCR˜R™Rš((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRìs 
             c
Csg}|jƒ}x6t|jƒƒD]"}|j|ƒ}|j|ƒq%Wx|D]}t|ƒqRW|jƒtjkr‹t    j
|ƒn|j t j ƒ}|dkr¿|jt j dƒnt j|ƒritjd|ƒ}|rY|jƒt jkrYt|dƒtjƒjt j|tjƒjƒƒt|ƒt jkrYtj|ƒqYntj |ƒnt!j"|ƒ|j#ƒt j$krØtjƒj%ƒ}t&j'j(|iƒ}    |    j)|j*ƒdƒ|    t&j'|<n|j+|j t j,ƒ|j t j-ƒ|j t j.ƒƒdS(NitBOSSInfo(/R9R£R¤R¥Rt    SetDeadExR®R=tgotNPCROt DoFB_NPCDeadR·RR¸RR›R:R;RÚtDef_FBMapID_SealDemontGameServe_GameWorldBossStateRR<t SetGameFBDicttMap_NPC_WorldBossDeadTickR@RwR'tDropOwnerType_FamilyR>tClearFamilyOwnerBossHurttChNPCt OnNPCSetDeadRßtClearTeamPlayerHurtValueR`RaRxR}R~RtpopRytSetDeadtDef_NPCDead_ReasontDef_NPCDead_KillerTypetDef_NPCDead_KillerID(
Rt summon_ListtnpcidR™t curSummonNPCR¦R¼RRR‘((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR*ÿs<    ) c        Cs¦tjƒjƒ}tjƒjƒ}tjƒjƒ}t||||||||gƒ}tjƒjdddd|t|ƒƒtj    d|||||fƒdS(NitKillGameWorldBosssLBoss±»»÷ɱ: bossID=%s,dataMapID=%s,realMapID=%s,copyMapID=%s,killerIDList=%s(
RR@RÚt GetRealMapIDt GetCopyMapIDRßRLRMR8Rƒ(    tbossIDtkillPlayerNamet    hurtValuetisNotifyt killerIDListRt    realMapIDt    copyMapIDtkillMsg((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGameServer_KillGameWorldBoss1s$( c    Cs[tjƒjƒ}tjƒjƒ}tjƒjƒ}t|||||gƒ}tjƒjddddd|t|ƒƒtj    d|||||fƒ|sW|t
j kr7t
j |}tjƒjƒ}tjƒjƒ}t j ||||ƒ}|sdS|jƒ}tjƒjtj||fdƒqWtjƒjtj|dƒndS(NitGameWorldBossStates%ssIBoss״̬±ä¸ü: bossID=%s,isAlive=%s,dataMapID=%s,realMapID=%s,copyMapID=%s(RR@RÚR?R@RßRLRMR8RƒRtDef_CrossZoneTableNameR:tGetIpyGameDatat    GetZoneIDtSetGameWorldDictRBt,Def_Notify_WorldKey_GameWorldBossRebornCrosst'Def_Notify_WorldKey_GameWorldBossReborn(    RAtisAliveRRFRGtstateMsgt    tableNamet zoneIpyDatatzoneID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR.:s&,      & c    Csætjddƒ}tj||ƒ}|dkrÞtj|}|j|dƒd}tj    |||ƒt
j ||ƒtj d|j ƒ|fƒi|d6|d6|d6|jƒd6|j ƒd    6}tjd
||ƒn|rèdS|tjkretj|tjdƒtj|tjƒtj|tjdƒtj|tjdƒtj |tj!dƒn|tj"krâtj|tj#dƒtj|tj$ƒtj|tj%dƒtj|tj&dƒtj |tj'dƒndS( NtKillBossCntLimitiis$½ñÈÕɱ¹Ö´ÎÊý  playerID=%s, newCnt=%sRŽRAttouchCnttAccIDtPlayerIDtAddKillBossCnt((R:R’RtGetDictValueByKeyRRtDef_PDict_Boss_KillCntR×R¯Rèt BossHurtMngtNotifyAttackBossCntRƒR5tGetAccIDRNt SendEventPackRBtDef_Boss_Func_WorldR2R3tSuccType_KillWorldBosstPlayerActivitytAddDailyActionFinishCnttDailyActionID_WorldBOSStPlayerBossReborntAddBossRebornActionCnttDef_BRAct_WorldBOSStPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_WorldBosstPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_WorldBOSStDef_FBMapID_BossHometSuccType_KillBossHomeBosstDailyActionID_BOSSHometDef_BRAct_BOSSHometDef_PPAct_BossHometDef_WPAct_BOSSHome(    RšReRt isCrossServertkillBossCntLimitDictt
limitIndexR'tnewCnttdataDict((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnPlayerKillBossPs4  t
NPCControlcBseeZdYZd„Zed„Zed„Zd„Zdd„Z    dd„Z
dd„Z d    „Z d
„Z d „Zd „Zed „Zd„Zeed„Zd„Zd„Zd„Zejed„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z dd„Z!d„Z"d„Z#d„Z$ed „Z%ed!„Z&ed"„Z'd#„Z(d$„Z)d%„Z*d&„Z+d'„Z,d(„Z-d)„Z.d*„Z/d+„Z0d,„Z1d-„Z2d.„Z3d/„Z4d0„Z5ej6d1„Z7d2„Z8d3„Z9eed4„Z:eed5„Z;d6„Z<d7„Z=d8„Z>d9„Z?d:„Z@d;„ZAd<„ZBd=„ZCd>„ZDd?„ZEd@„ZFdA„ZGgdB„ZHdC„ZIdD„ZJdE„ZKdF„ZLdG„ZMdH„ZNdI„ZOdJ„ZPdK„ZQdL„ZRdM„ZSeedN„ZTdO„ZUdP„ZVdQ„ZWdR„ZXedS„ZYdT„ZZdU„Z[edYdV„Z\dW„Z]dX„Z^RS(ZcCsU||_d|_d|_d|_i|_g|_g|_d|_d|_    dS(Ni(
t_NPCControl__InstanceRt_NPCControl__MaxHurtPlayert_NPCControl__LastHurtPlayert_NPCControl__Killert_NPCControl__AllKillerDictt_NPCControl__FeelPlayerListt_NPCControl__ownerPlayerListt_NPCControl__OwnerHurtTypet_NPCControl__OwnerHurtID(tselftiNPC((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__init__‚s                                    cCsú|j}|jƒ}|jƒ}||}||}    t|ƒ|kr^|t|ƒ|}nt|    ƒ|kr‡|    t|    ƒ|}    n||}
||    } tjƒ} | j|
| ƒ rð|rðtj|||ƒ} | jƒ}
| jƒ} n|
| fS(N(    R|R¿RÀtabsRRÙR7tGameMaptGetEmptyPlaceInArea(R…tdestXtdestYtdisttfixPosRRsRttdirXtdirYt    moveDestXt    moveDestYRrt    resultPos((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetMoveNearPos–s"      
 
 
 
  c Cs¡|j}|jƒ}|jƒ}tj|||||ƒ\}}    tjƒ}
|
j||    ƒ r—|r—tj||    dƒ} | jƒ}| jƒ}    n||    fS(Ni(    R|R¿RÀRtPosInLineByDistRÙR7R‰RŠ( R…tplayerXtplayerYRRŽRRsRtR‘R’RrR“((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetMoveNearPosEx¯s      !  cCsR|j}tj||ƒ}|sEtjd|jƒ||fƒdS|j|ƒS(Ns.NPCÒÆ¶¯µ½Ä¿±êʧ°Ü,NPCID = %s Ä¿±êID=%d,Type=%d(R|RR¹RStGetNametMoveToObj_Detel(R…RŽtobjTypeRt tagObjDetel((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt    MoveToObjÃs      icCs•|j}|jƒ|jƒ}}tj||||ƒ}||kr|dkr|||||}|||||}n|j||ƒdS(Ni(R|R¿RÀRRÞtMove(R…tdestPosXtdestPosYt sigleMoveDisRtcurPosXtcurPosYtcurDis((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytMoveToPosStepByStepÕs    ic Cs³|j}tj|tjtjƒs(dS|jƒ}|jƒ}|jƒ}|jƒ}|dkr€t    |j
ƒddƒ}n|j ƒdkr|j |j ƒƒ}tj|||jƒ|jƒƒ}    |jƒdkr|    |jƒkr|jƒdSn|j|||ƒ\}
} tj|
| dƒ} | jƒ}
| jƒ} |jƒtjkr“tjƒjƒ|jƒdkr“|j|
| ƒdSt|tjƒ|j|
| ƒS(Niii°(R|tOperControlManagertIsObjCanDoActionRtDef_Obj_ActState_ServerActR=toalMoveR¿RÀRRðtGetRefreshPosCounttGetRefreshPosAttGetCurRefreshPointIndexRRÞt GetMoveDisttMoveBackR˜R‰RŠRìt    laNPCMoveR@Rwt GetActionTickt
SetDestPosRR    Rž( R…Rœt moveAreaDistRRsRtR‹RŒt curRefreshPostmoveDistR‘R’R“((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRšås6              $$
   " cCsÉ|j}tj|tjtjƒs(dStjƒ}|j    ƒ}|j
ƒ}|j ||ƒ}|sht S|j ƒdkr~t Sx«t|j ƒƒD]—}    |j|    ƒ}
|
jƒ} | tjkrÇq‘ntj|
jƒ| ƒ} | sëq‘n| jƒtjkr‘| jƒr‘| jƒ|jƒkr‘t Sq‘W||krH||krHt S|dkrlt|jƒdƒ}ntj|||ƒ} | j    ƒ}| j
ƒ}||ks±||krÅ|j||ƒtSt S(Niii(R|R¦R§RR¨R=R©RRÙR¿RÀRÁR RÂR‡RÃR®R+R¹RyR R¡R©RYRðR‰RŠRžRì(R…RsRtt fixAreaDistRRrtnpcPosXtnpcPosYRÉR%RÊt
curObjTypetcurTagR“R‘R’((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt    FixTagPos-    sD             9   cCs|j}|jƒ}|jƒ}tj||ƒ}|dkrFtjS|jƒdkr_tjStj    |||jƒ|jƒƒS(Ni(
R|R¿RÀRR¹RRtDef_NPCErrorMaxDistRyRÞ(R…ttagIDttagTypeRRsRtttagObj((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetTagDistk    s       c
Cs8|j}|jƒ}|tjkr(tStj||ƒr>tS|jƒ}|jƒ}|j    ||ƒ}|dkrŠ|j ƒdkrŠtStj ||ƒ}|dkrÃtj d|jƒƒtS|j||ƒrÙtStj||ƒsïtStj||ƒstStj||d|ƒd}    |    tjkr4tStS(Nis&curNPC = %s ²éÕÒ¶ÔÏó, »ñµÃ¶ÔÏóʵÀýʧ°Ü(R|R®R=tgotItemR RRÝRyRt FindNPCAngryRt GetAngryValueR¹RSR9t_NPCControl__GuaedAttackTruckRìRßtCanAttackByPathRàRáRâRRã(
R…RÑRŒRRÒRÙtnpcAngryt
angryValueRçRè((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__CheckAddToAngryList    s2        cCs²|j}|jƒtjkr"dS|jƒtjksL|jƒtjkrPdS|jƒdkrt    j
||d|ƒ rdSt    j ||d|ƒd}|t jkr®dStS(Ni(R|R`R=tntGuardR®R+R t    gnotTruckRRát GetCanAttackRRâRRãRì(R…RÑRŒRRè((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GuaedAttackTruck¹    s    +cCsC|j}tj|ƒ r?t|ƒ r?|jƒtjkr?tStS(N(R|RR›R)R`RaR Rì(R…R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetIsBossViewÑ    s    2cCs|j}t}|jƒdkr%|S|jƒjdƒ}| rT|j|ƒrT|Stjƒjƒ}tjƒj    ƒ}|j
ƒs7t j |ƒ}t jddƒ}    ||    kr¾|    |}
n*|tjkrât jddƒ}
nd}
|jƒ} x¢td| ƒD],} |j| ƒ} | dkr+qntj| ƒdkrFqn| jƒsXqn|j| |ƒspqntj|jƒ|jƒ| jƒ| jƒƒ}||jƒkr¸qntjtj |}| j!ƒtj"kr|
rÿ| j#ƒ|
krÿqn|tj$7}n|j%| |ttƒrt&}qqWnb|j'|j(ƒƒ}|j)ƒ} x>td| ƒD]-} |j*| ƒ} | dkrqhntj| ƒdkrªqhn| jƒs¼qhn|j| |ƒsÔqhntj+|ƒr |j,| jƒ| jƒ|ƒ r qhntj|jƒ|jƒ| jƒ| jƒƒ}tjtj |}| j!ƒtj"krt|tj$7}n|j%| |ttƒrht&}qhqhW|S(Niit AngryNPCCounti(-R|R t
GetAtkTypeRtGetAngryValueTagt_NPCControl__IsValidAngryObjRRÙt GetMapFBTypeRÚRÌRÛRÜR:RzR=tfbtNullR’tGetAttentionPlayersCountR£tGetAttentionPlayerByIndexRRTRVRÎt _NPCControl__CheckAddToAngryListRÞR¿RÀtGetSightRtDef_NPCFirstSightAngryValuetDef_Screen_AreaR®R¯tGetAngryNPCCounttDef_NPC_SeePlayerAddAngrytAddObjToAngryListRìR«R¬RÌRÍR›tGetIsInRefreshPoint(R…RŒt
isUpdAngryRt
needResorttcurAngrytmapTypeRt recordMapIDtmapAngryNPCCountDicttangryNPCCountLimitRØR%RÑRt addAngryValuet refreshPoint((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytAddInSightObjToAngryListß    sv          0   10 cCsœ|s
dS|jƒtjkr8|jƒtjkr8dS|}|dkr]||jƒ7}n|jƒtjkrˆ|tj    |ƒ7}n|j
||ƒdS(N( R®R=R+R`tntFairyRt GetSkillAngryR¯R¯t GetAddAngryRÛ(R…tobjDetelRCtuseSkilltaddAngry((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytAddObjDetelToAngryList_ByAttackN
s c
Cs/|j}tj||ƒrtStj|ƒs2tS|jƒ}|jƒ}|rg|j||ƒ rgtSd}|t
j krßt |ƒt jkrßtj||ƒ}    |    rÜ|    jƒdkrÜtjƒj|    jƒƒ}qÜqßnt|jƒ|ƒ}t|dƒ}|jƒ}
|ràtjd|jƒ|fƒxÄt|jƒƒD]”} |j| ƒ} | dksE| jƒdkr~qEn| jƒ} | |kr |dn|}tjd| | |fƒ|j|
| |||ƒqEWn|j|
||||ƒtj|ƒdkr+|jƒ r+|j t!ƒnt!S(Niis,NPCÌí¼Ó¶ÓÎé³ðºÞ: teamID=%s,plusAngryValue=%ss%    i=%s,playerID=%s,addAngryValue=%s("R|RRÝR RßtCheckObjCanDoLogicR®Ryt_NPCControl__CheckCanAddAngryRR=R¯R'RtDropOwnerType_MaxAngryR¹RÖtGetTeamManagertFindTeamtFixValueByValueExt
GetMaxHPExRRRƒR‡tGetMemberCountt    GetMemberR5t_NPCControl__AddAngryValueRTRVRîR
Rì(R…RÊtplusAngryValuetcanPiletcheckRR¸tcurObjIDt addAngryTeamRšRÅR%t curTeamPlayert teamPlayerIDRä((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÛn
s@      $   "cCsv|j||ƒ}|dks0|jƒdkrF|j|||ƒn,|rr|jt|jƒ|tjƒƒndS(Ni(RÁRRÂtAddAngryt SetAngryValueRYRRZ(R…RÅRûR¸RøRùRÆ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__AddAngryValue¥
s &c    Csp|j}tj||ƒ}|s<tjd||fƒtStj||ddƒd}|tj    krktS|j
ƒt j kr„t Stj|jƒt jƒ}tt j|ƒ}|s»t S|t jkrùtj||ƒràtStj||ƒsltSns|t jkrl|j
ƒt j kr!t Stt j|ƒ}|s=t Stj||ƒrStStj||ƒsltSnt S(Ns&###Ìí¼Ó³ðºÞ,ÎÞ·¨²éÕÒÄ¿±êʵÀý = %s , %si(R|RR¹RSR RáRâRRRãR R=R¡RìRyR+R¾R¯RÝRßtCheckPlayerAttackMode_Player(    R…RûR¸Rt curObjDetelRèt curNPCDetelt curNPCOwnert curObjOwner((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__CheckCanAddAngry¸
s<    cCs{|j}|jƒ}tƒ}t}|j|jƒƒ}x;td|jƒƒD]$}|j|ƒ}|j    ƒ}    |j
ƒ}
|    sˆqOnt j |    |
ƒ} | s¼|j |    |
ƒt}qOn|
tjkræ| jƒ|kræqOqæntj|| ƒs|j |    |
ƒt}qOn|j| jƒ| jƒ|ƒsQ|j |    |
ƒt}qOnt j| jƒ| jƒ|jƒ|jƒƒ} | |jƒkr¯|j |    |
ƒt}qOn|jƒs|j| ƒsæ|j |    |
ƒt}qOn| t|ƒkr|j |    |
ƒt}qOqnt j|ƒr,qOntj|| d|ƒ} | dt j!krO|j |    |
ƒt}qOqOqOW|S(Ni("R|RRëR R«R¬R£t GetAngryCountRÏtGetObjIDt
GetObjTypeRR¹t DeleteAngryRìR=R+R9RßRàRÜR¿RÀRÞRÖRt CanSeeOtherRõtGetNPC_Is_GateRáRâRRRã(R…RŒRRÅtdefaultMaxAngryNPCIDListRÞRåR%RÆtangryIDt    angryTypeRÊRRè((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRemoveDeathInAngryListø
sb               !0     
c    Csß|j}|jƒ}||jƒ}||kr5dS|j|ƒ}|j||ƒpY|}|r²|jƒdkr²tj|ƒr²t    |ƒ r²|j
ƒdkr²|j ƒq²n|s¾|rÎ|j |ƒn |j |ƒdS(Ni(R|RtGetLastResortTickRRætGetMaxAngryTagRRTRVR)RR®tResorttSetLastResortTick(    R…RŒtrefreshIntervalRÝRRÅtlastTickt removeRsortRÞ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRefreshAngryListJ s      4  cCs^|j}|jƒ}xBtd|jƒƒD]+}|j|ƒ}|j|ƒsUq+n|SWdS(Ni(R|RR£RRÏRÐR(R…Rt angryManagerR%Rß((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRm s     cCsR|dks|jƒdkr"dS|jƒ}|dkr>dS|jƒrNdS|S(Ni(RR    RÂt GetIsDisable(R…Rßt curAngryValue((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__IsValidAngryObj‚ s   cCs#|j}|jƒ}|jƒtS(N(R|RR@Rì(R…RRß((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt ClearNPCAngry– s     
cCs#|j}|jƒ}|jƒtS(N(R|tGetPlayerHurtListR@Rì(R…Rt npcHurtList((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytClearNPCHurtList¡ s     
cCs®tj|ƒ}tj|ƒ}| s,| rAtjd|ƒtS||tjkrrtjd|||fƒtS|j|d|d|ƒsªtjd||fƒtSt    S(Ns3Íæ¼Ò²»ÔÚ±¾µØÍ¼»òÒѳ¤¾ÃÀëÏߣ¡Çå³ý¸ÃÉËѪ£¡playerID=%ssH±¾µØÍ¼ÀëÏßÍæ¼Ò³¬¹ý±£»¤Ê±³¤£¡Çå³ý¸ÃÉËѪ£¡playerID=%s,tick=%s,leaveTick=%siis5±¾µØÍ¼ÀëÏßÍæ¼Ò²»ÔÚ±£»¤ÇøÓòÄÚ£¡playerID=%s,leavePos=%s(
R¯tGetPlayerLeaveServerTicktGetPlayerLeaveServerPosRRƒR RtDef_PlayerOfflineProtectTimeRÜRì(R…RåRqRŒt    leaveTicktleavePos((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__IsBossHurtOfflineProtect¨ scCsÕ|dkr)|j|||ƒs%tStS|j|jƒ|jƒ|ƒs_tjd|ƒtS|j    ƒrotS|j
ƒdks–|j ƒt j krÑ|jtjƒ}tjƒ|tjddƒkrÑtSntS(Ns.ÉËÑªÍæ¼Ò²»ÔÚboss·¶Î§ÀÇå³ý¸ÃÉËѪ!playerID=%sit BossHurtValuei(Rt%_NPCControl__IsBossHurtOfflineProtectRìR RÜR¿RÀRRƒRÖRVtGetPlayerActionR=tpaDieR×RtDef_Player_Dict_DeadTimeRJR:R’(R…t
hurtPlayerRåthurtIDRŒtdeadTime((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__IsClearPlayerHurt» s ! '"c Csp|j}g}tjƒ}tjƒjƒ}tj|ƒ}x |D]}    |j|    ƒ}
|
r#|
jƒ|krvqCn|
jƒdks|
j    ƒt
j krÚ|
j t jƒ} tjƒ| tjddƒkrÚqCqÚn|j|
jƒ|
jƒ|ƒrHtj|
|tƒrH|j|    ƒqHqC|j||    |ƒrC|j|    ƒqCqCW|sltjd||fƒn|S(NiR(isOÉËѪ¶ÓÎéûÓлî×ŵĶÓÔ±ÔÚbossÇøÓòÄÚ£¬Çå³ý¸ÃÉËѪ!teamID=%s,mapTeamPlayerIDList=%s(R|RRLR@R@t
PlayerTeamtGetMapTeamPlayerIDListtFindPlayerByIDRVR*R=R+R×RR,RJR:R’RÜR¿RÀRßtCheckKillNPCByCntR RR)Rƒ( R…RåtteamIDRŒRtteamHurtPlayerIDListt    playerMgrRGtmapTeamPlayerIDListRqRýR/((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetTeamHurtNPCPlayerIDListØ s,      '"    !i¸ cCsz|j}|jƒ s+t|ƒtjkr/dS|jƒ}||jtjƒ|krt|jƒrp|j    |ƒSdS|j
tj|ƒi}|j |j ƒƒ}|jƒ}d}x[t |ƒD]M}    |j|    ƒ}
|
jƒ} |
jƒ} |
jƒ} | sqÁn| tjkr³tj| tjƒ}|j||| |ƒr |
jƒ|sXdn    |jƒ}|r°tjd| |fƒtj||tj| ƒq°qd}d|| <qÁ| tjkrÁ|j|| |ƒ}|sê|
jƒqd}x|D]}| ||<q÷WqÁqÁWtjƒj ƒ}t!|ƒrF|j"|||ƒn|j#ƒ|j
tj$|ƒ|rv|j    |ƒSdS(Nis7¼ÓÈë¶ÓÎé£¬Ö®ÆøµÄÉËÑª×ªÒÆµ½¶ÓÎéÖУ¡playerID=%s,teamID=%si(%R|t    GetIsBossR'RtDropOwnerType_MaxHurtRR·t Def_NPC_Dict_LastRefreshHurtTickt GetHurtCountt _NPCControl__GetAtkObjByHurtListRR«R¬R‡t    GetHurtAtt GetValueTypet
GetValueIDt GetHurtValueR;RR¹R=R¯t_NPCControl__IsClearPlayerHurtR@RÖRƒRßt AddHurtValuetDef_NPCHurtTypeTeamt'_NPCControl__GetTeamHurtNPCPlayerIDListRÙRÚtIsMapNeedBossShuntt_NPCControl__UpdBossShuntInfotSorttDef_NPC_Dict_InHurtProtect(R…RŒRRR thurtPlayerDictRåt    hurtCounttisInHurtR™thurtObjthurtTypeR.RCR-R5R6t    tPlayerIDR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRefreshHurtListü sZ    "       
 
 cCsG|j}|jƒ}tjƒjƒ}||f}tjj|iƒ}t}    x |j    ƒD]\}
} | \} } }| |krˆq[n|
|kr+||
}|| kræ||dg||
<t
}    tj d|
|| |f|ƒqm|rm||dg||
<t
}    tj d|
|| |f|ƒqmq[|s[|| |g||
<t
}    tj d|
|| |f|ƒq[q[Wx¬|j    ƒD]ž\}
} |
|krÏ|| dg||
<t
}    tj d|
|| f|ƒq~||
d|kr~|| dg||
<t
}    tj d|
|| f|ƒq~q~W|    rC|tj|<t ||ƒndS(NisRboss·ÖÁ÷ -> Íæ¼Ò¶Ô¸ÃbossµÄÉ˺¦±ä¸ü¶ÓÎé!playerID=%s,npcID=%s,teamID=%s,newTeamID=%ssZboss·ÖÁ÷ -> Íæ¼Ò¶Ô¸ÃbossµÄ¹ØÁª×´Ì¬×ªÎªÉ˺¦×´Ì¬!playerID=%s,npcID=%s,teamID=%s,newTeamID=%ssWboss·ÖÁ÷ -> Íæ¼Ò²»ÔÚ¸ÃbossÉËѪÖУ¬ÉèÖÃΪ¹ØÁª×´Ì¬!playerID=%s,npcID=%s,teamID=%s,tick=%ss=boss·ÖÁ÷ -> ÐÂÔöÍæ¼Ò¶ÔbossÉ˺¦!playerID=%s,npcID=%s,teamID=%ss=boss·ÖÁ÷ -> É˺¦×ªÒƵ½±¾bossÉÏ!playerID=%s,npcID=%s,teamID=%s( R|R9RR@RxR}tg_bossShuntPlayerInfoRR RWRìRƒtGameServer_WorldBossShuntInfo(R…RRKRŒRReRR'tshuntPlayerDictt shuntChangeRqt    shuntInfoRAR5t relatedTickt    newTeamID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__UpdBossShuntInfo< sP        
               $ cCsXxQt|jƒƒD]=}|j|ƒ}|j|tƒ\}}|sL|r|SqWdS(sÙµÚÒ»¸ö¿É¹¥»÷µÄ×î´óÉËѪ¶ÔÏó£¬Ò²ÊÇʵ¼ÊµÄ¹éÊôÕß»ò¶ÓÎé
        ÒòÎªÍæ¼ÒÉËѪµôÏß¡¢ËÀÍöÓÐÒ»¶¨Ê±¼äµÄ±£Áô»úÖÆ£¬¹Ê×î´óÉËѪ²»Ò»¶¨Êǿɹ¥»÷Ä¿±ê(¹éÊôÕß)
        ×¢Òâ: ¸Ã¹æÔò±ØÐëÓë×îÖÕËã¹éÊôµÄ¹æÔòÒ»Ö£¬²»È»¿ÉÄܵ¼Ö¹éÊô´íÂÒ
        N(R‡R=R?t_NPCControl__GetTagByHurtObjRì(R…R R™RNRštcurTeam((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetAtkObjByHurtListq s  cCs|j}|jtjƒS(s¯NPCÊÇ·ñÉËѪ±£»¤ÖÐ
        ÒòΪÊÖÓαȽϻá³öÏÖÍøÂçÇл»µÄÇé¿ö£¬´Ëʱ»á¿ÉÄÜ»áÒýÆðµôÏßÖØÁ¬
        ËùÒÔÕë¶ÔÊÖÓÎ×öÁ˵ôÏß3·ÖÖÓÄÚÉËѪ±£»¤£¬·ÀÖ¹Íæ¼ÒÖØÁ¬ºóÉËѪ±»Çå¿Õ£¬ÌåÑé²»ºÃ£»
        (R|R·RRJ(R…R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytIsInHurtProtect€ s    cCs@|j}t|t|ƒ}x|D]\}}|jƒq"WdS(N(R|RRìR@(R…tisClearAuraBuffRRÿt    buffStatet    canPileup((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt ClearAllBuff s
    cCs%|jƒ|jƒ|j|ƒtS(N(RR!RaRì(R…R^((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__ClearNPCAllState› s
 
 cCsx|j}|jtƒ|s:tj|ƒtj|ƒkrQ|jƒ|jƒn|jd|ƒ|st|j    ƒnt
S(NRc( R|t_NPCControl__ClearNPCAllStateR RTRVRUt_NPCControl__InitNPCSummont_NPCControl__NormalNPCInItCDtRefreshNPCStateR^Rì(R…RcR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt ResetNPC_Init© s     $
  cCs~|j}|jdƒ|jdƒ|jƒ}xHt|jƒƒD]4}|j|ƒ}|dkriqBn|jdƒqBWdS(Ni(    R|t SetAttackTicktSetUseSkillTickR„R£RñRòRtSetLastUseTick(R…Rt curNPCManagerR%t curNPCSkill((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__NormalNPCInItCDÄ s        cCsg|j}g}x6t|jƒƒD]"}|j|ƒ}|j|ƒq"Wx|D]}t|ƒqOWdS(N(R|R£R¤R¥RR*(R…RtcurNPC_Summon_ListR™R¦R=((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__InitNPCSummonÙ s     c    CsW|j}|jƒ}|j|ƒ}|jƒ}|jƒ}|jƒ}|jƒ}|jƒtjkr¥||ks||kr¥t|tj    ƒ|j
||ƒdSt ||j ƒƒs¾dS|d}||j ƒkrãd}n|j|ƒ|j|ƒ}|jƒ}|jƒ}||kr3||kr3dSt|tjƒ|j
||ƒdS(Nii(R|tGetCurPatrolIndextGetPatrolPosAtR¿RÀRR=RRRRžRŸR°tGetPatrolPosCounttSetCurPatrolIndex(    R…RŒRt patrolIndext    patrolPost
patrolPosXt
patrolPosYt curNPC_PosXt curNPC_PosY((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt __PatrolMoveì s4         
       cCsÔ|j}|jƒdkr,|j|ƒdS|j|jƒƒ}t|jƒdƒ}|jƒ}|jƒ}||}||}||}    ||}
|jƒ} |jƒ} |j    ƒ} t
|| | ƒ}t|| | ƒ}t
|    | | ƒ}    t|
| | ƒ}
||kr |j ƒdS|    |
kr:|j ƒdSt ||j ƒƒsSdStj||ƒ}tj|    |
ƒ}t|tjƒtjƒj|jƒ|jƒ||dƒ}|j|jƒ|jƒƒdS(Nii(R|Rrt_NPCControl__PatrolMoveR«R¬RYt GetMoveAreaR¿RÀtGetAreaRR®RŸR°RLRMRR=RRRÙt LineNearToPosRž(R…RŒRtPosMaptmoveAreaRsRtt minMovePosXt maxMovePosXt minMovePosYt maxMovePosYtposMapXtposMapYt
posMapAreatnewPoint((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoNormalNPCMove" sD       
 
 
 
 
 
cCstj|jƒƒS(N(Rt GetPsycoFunct)_NPCControl__Func_GetRandPosInRefreshArea(R…((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetRandPosInRefreshAreaa scCs§|j}|j|jƒƒ}|jƒ}|jƒ}|jƒtjkrTd}n |jƒ}t    j
|||ƒ\}}|dkr|dkr||gS||fS(Ni( R|R«R¬R¿RÀR`R=t ntFunctionNPCR}R‰tGetNearbyPosByDis(R…RtposMapR…R†R‡RstpoxY((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__Func_GetRandPosInRefreshAreah s           
cCs™|j}|j|jƒƒ}|j|jƒ|jƒ|ƒrCtS|jƒtj    kr•|j
ƒtj kr•|j|j ƒ|j ƒ|ƒr•tSntS(N(R|R«R¬RÜR¿RÀRìRìR=R¯RRt GetDestPosXt GetDestPosYR (R…RRå((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytIsInRefreshArea‚ s    !!cCs‚|s
tS||jƒ|jƒkr~||jƒ|jƒkr~||jƒ|jƒkr~||jƒ|jƒkr~tStS(N(R R¿R­RÀRì(R…R¢R£Rå((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÜ› scCs³|j}|jƒ}|dkratjd|dƒ}|j|ƒ}|jƒ}|jƒ}n|jƒ\}}|jƒsŒ|j    ƒnt
|t j t ƒ|j||ƒdS(Nii(R|RrRLRMRqR¿RÀRŒR]RgRR=RRìRž(R…Rt patrolCountRtRuRsRt((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR®¬ s         cCsb|j}|jtjd|jƒdƒƒ|jƒ\}}|j||tƒ|j|ƒdS(Nii(    R|tSetCurRefreshPointIndexRLRMRªRŒRR tDoNPCRebornCommLogic(R…RŒRRsRt((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt DoNPCRebornË s     # cCsÇ|j}|jtƒtj|tj|ƒƒ|jƒj|ƒ|jƒ|j    t
j dƒ|j    t
j dƒt j|ƒtj||ƒ|jƒ}t
j|ƒrútjd|ƒ}|rút|dƒt|ƒt
jkr÷tj|ƒq÷qún|jƒ}x t|jƒƒD]Œ}|j|ƒ}| sG|jƒdkrKPn|jƒt
j krfqnt!j"d|j#ƒ|jƒ|j$ƒfƒt%j&|||ƒqW|j'ƒ|j(||ƒdS(NiR)is/NPC¸´»î£¬Ì×ÉϹ⻷: objID=%s,npcID=%s,skillID=%s()R|RgRìRTR\RURRt RebornNotifyRRtDef_NPC_Dict_HPPerLogicMarkt!Def_NPC_Dict_RebornPreNotifyIndexR3t OnNPCRebornROt DoFBRebornNPCR9R›R:R;R.R'R1R>tFamilyOwnerBossOnRebornR„R‡RñRòtGetSkillTypeIDt GetSkillTypetDef_SkillType_AuraRRƒRyt
GetSkillIDt
SkillShellt NPCUseSkillt NotifyAppeart NotifyNPCShow(R…RŒRtcurNPCIDRR–R™Rë((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR—× s8     
    ,
c
Cs!tjƒjƒ}tjd||ƒ}|s1dS|jƒrAdStjƒjtj    |ƒ}|rgdS||j
ƒ}tjƒj tj    ||ƒt j ƒ}||_tjƒ}xKt|jƒƒD]7}|j|ƒ}    |    jƒsïqÈntj|    |ƒqÈWtjd|||fƒdS(NtNPCShows&¿ªÊ¼NPCÐã: npcID=%s,tick=%s,endTick=%s(RRÙRÚR:R;t GetShowTypeR<RDRtDef_FBDict_NPCShowEndTicktGetProtectTimeR/Rt tagMCNPCShowR!R†R‡RˆR‰R5R#R$Rƒ(
R…ReRŒRtnpcShowIpyDatatendTickt npcShowPackR˜R™tplayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¦s*        cCsdS(N((R…((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR™)scCsC|j}|jƒ}tjdƒ}||kr4dStjd|ƒ}t|jƒdtƒ}tj|ƒdtj    |ƒ}|j
t j ƒ}    ||    }
xŽ|
D]†} || kr¸Pn|| \} } }| rüt jddtjƒjƒ|| gƒn|dkr|j|t jƒn|    d7}    q¢W|jt j |    ƒdS(    NtHPPerLogicNPCIDLists HPPerLogic_%streverseidit
FB_liubo_0ti(R|R9R§R¨tsortedR|RìRTRVRUR·RRšR¯t WorldNotifyRRÙRÚt%_NPCControl__GiveNearbyPlayerPrestigetDef_Matrix_SixR(R…tdropTypetownerIDRR§thpPerLogicNPCIDListthpPerLogicDictt    hpPerListtnowHPPerthpPerLogicMarktlogicHPPerListthpPerRDtdropItemTemplatetaddPrestigeFormat((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt DoHPPerLogic8s*       
  + cCsdS(N((R…RÃRÄ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GiveNearbyPlayerPrestigefs"cCs“|j}|jƒdkrdS|jƒdkrXtjd|jƒƒ|j|ƒn|jƒ||jƒ}|dkr‚dS|j|ƒdS(Nis¼ì²âµ½NPC¿ìËÙ¸´»î %si(R|tGetRefreshTimeR°RRƒRyt SetActionTickR˜(R…RŒRRh((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDieTicks      c     Csè|jƒ}tjdƒ}||kr+dS||\}}|jtjƒ}|t|ƒkrcdSttj    |dƒƒ}||}    ||    kr–dS|j
tj|dƒt j ƒj ƒ}
tjd||||    |
||gƒdS(NtRebornPreNotifyNPCgLí@ii(R9R§R¨R·RR›R8R]R/R0RRR@RÚR¯R¶( R…RRhRetpreRebornNotifyNPCDicttnotifyMinuteListt
notifyMarkt notifyIndextreaminMt notifyMinuteR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoNPCRebornPreNotify¤s   
 %cCs|j||ƒ|jƒdS(N(tRefreshNPCAttrStatetRefreshNPCActionState(R…t canSyncClientRc((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRf¾scCs©|j}|jƒ|jƒ|j|jƒƒ|jtjƒ|j|j    ƒƒ|j
ƒt j kr|t j||ƒdSt||ƒtj|ƒ}|j|ƒdS(N(R|tClearBattleEffecttResetNPCBattleStateRRR RR tSetAtkIntervaltGetBaseAtkIntervalR R=R³R´tRefurbishPetAttrRuR£tCalcBuffer_NPCBattleEffecttRefreshNPCSpeed(R…RÓRcRt allAttrList((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÑÊs    
 
 
  c
Csö|j}tjtjƒjƒƒ}tjƒ}tjd||ƒ}|sOdSt    ||ƒ|j
ƒ}|j ƒ}|j ƒ}t ttjddƒƒƒ}    tjd|jƒ||    fƒtj||    ƒtj||    ƒ|jƒ|jƒdS(s¢ÖúÕ½»úÆ÷ÈËÖ»ÉèÖÃѪÁ¿ÊôÐÔ
                        ÑªÁ¿Ëã·¨£¬£¨ÖúÕ½Íæ¼Ò=ÖúÕ½»úÆ÷ÈË£©£ºÃ¿¸ö¸±±¾ÅäÖÃÉ˺¦*£¨ÖúÕ½Íæ¼ÒÕ½Á¦/¸±±¾¹æ¶¨Õ½Á¦£©*ϵÊýÖµ  ÏµÊýÖµÔݶ¨Îª50
        t FBHelpBattleNtHelpBattleRobotis3ÉèÖÃÖúÕ½»úÆ÷ÈËÊôÐÔ: objID=%s,fightPower=%s,maxHP=%s(R|RÛRÜRRÙRÚtGetFBPropertyMarkR:RLR#tGetFightPowerMintGetRobotBaseHurttGetRobotHPCoefficientR]RÔtGetFuncCompileCfgRƒRyRTRXR\R^R_(
R…t
fightPowerRRt
funcLineIDRt fbFightPowertbaseHurtt hpCoefficienttmaxHP((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSetHelpBattleRobotRebornAttrñs"          
 
cCsÞ|j}|tjjtjdƒ}|sV|jtjƒr©|jtjdƒq©nSt|j    ƒt
j t dt t
j |ƒƒƒ}|j|ƒ|jtj|ƒtjƒjƒtjkrÚt||j    ƒƒndS(NigY@(R|RtCalcAttr_BattleNolineRtTYPE_Calc_AttrSpeedR·RRR]RRBR&RR%RRRÙRÚtDef_FBMapID_GatherSoultNPCSpeedChangeNotify(R…RÛRtspeedPertspeed((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÚ
s    3 cCs'|j}tj|ƒtj|ƒdS(N(R|R¦tClearObjActionStateR£tCalcBuffer_ActionState(R…R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÒs     cCs;|j|ƒ}|j|ƒ}|s*|r7|jƒndS(N(tRefreshBuffStateNoTimelytRefreshBuffStateTimelyRÑ(R…RŒtrefreshAtrefreshB((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRefreshBuffState-s cCsù|j}||jtjƒtjtjkr3dS|jtj|ƒt}tj||j    ƒ|ƒ}|pt|d}tj||j
ƒ|ƒ}|pŸ|d}tj||j ƒ|ƒ}|pÊ|d}t j ||ƒt j||ƒ}|pø|S(Ni(R|t GetTickByTypeRtTYPE_NPC_Tick_BufftTYPE_NPC_Tick_Timet SetTickByTypeR t    BuffSkillt RefreshBuffRöR÷Rút SkillCommontCheckAddAuraSkilltCheckAuraSkill(R…RŒRtrefreshtresult((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRò<s    &cCsÂ|j}||jtjƒtjtjkr3dS|jtj|ƒtj||jƒ|ƒtj||j    ƒ|ƒtj||j
ƒ|ƒ}|drª|j ƒnt j ||ƒ|dS(Nii(R|R÷RtTYPE_NPC_Tick_Buff_TimelyRùRúRûRüRøRùRüRÒR£tProcessPersistBuff(R…RŒRR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRó[s    
 cCsë|j}|jƒ}|jƒ|jƒ|jƒ|jsBdn |jjƒ}tjd|ƒ}|r×t    |ƒt
j kr–t j ||jƒ}ng|jD]}|jƒ^q }t|jƒ|dt|ƒn|jƒjƒdS(NR´R)i(R|R9t!_NPCControl__SetFeelNPCPlayerListt_NPCControl__GiveObjPrizet_NPCControl__EventKillNpcRt GetPlayerNameR:R{R'RR1R>tFamilyOwnerBossOnKilledR„R‚R5RIRìRR@(R…RRet
killerNamet bossIpyDataR°RE((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt __KillLogicys    
 
 
"c Cs|j}g|_|jƒ}g}xÔt|jƒƒD]À}|j|ƒ}|j|ƒ}|sgq7n|d}|d}|r ||kr |j|ƒq n|r7tj    ||j
ƒ|j ƒƒ}    x-|    D]"}
|
|krÎ|j|
ƒqÎqÎWq7q7W||_dS(Nii( R|RRR‡R=R?RZRR¯tGetAreaTeamMemberR¿RÀ( R…RR teventPlayerListR™RNt hurtObjTypeRšR[t
playerlistt
teamPlayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__SetFeelNPCPlayerList«s*         
 
 !      cCsn|jr|j|jƒnxK|jD]@}|jrV|jjƒ|jƒkrVq&n|j|tƒq&WdS(N(Rt_NPCControl__MissionOnKillNPCRR5Rì(R…t eventPlayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__EventKillNpcÓs    $cCsY|s
dStjddƒ}|s&dSx$|D]\}}||kr-|Sq-W|ddS(Nit    GoldModeliiÿÿÿÿ(R:Rz(R…Rft moneyItemListR]tmoneyID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetDropMoneyModelIDás c
CsÔ|j}|jƒ}g}|jƒ}|jƒ}|rc||krctjd|||fƒ|Stjddƒ}    ||    kræ|    |}
tjƒj    t
j ƒ} |
j | gƒ} g} x4| D]\}}| |g|7} qÂWn |j ƒ} |jƒ}|r•xŽ|jD]€}|\}}}}t||||ƒ}xP|D]H}|j||||gƒtjd|||||f|jƒƒqBWqWnx8|D]0}x'| D]}|j||dtgƒq©WqœW|S(s›ÌØÊâµôÂä (˽ÓÐÌØÊâµôÂä + »÷ɱ´ÎÊýÌØÊâµôÂä), Ö§³ÖÃþ¹Ö
        @return: None
        @return: [[ownerPlayer, itemID, isBind, isDropInItemPack], ...]
        sO³¬¹ý×î´ó¿ÉµôÂäµÈ¼¶£¬²»µôÂäÎïÆ·£¬ÌØÊâµôÂ䣡npcID=%s,playerLV(%s) > maxDropLV(%s)RÒis[»÷ɱ´ÎÊý±Øµô(¿ÉÃþ¹Ö): npcID=%s,dropItemID=%s,needKillCount=%s,isDropInItemPack=%s,isBind=%si(R|R9RR†RRƒR:RzR<RDRRêRRïRÓRRÔRR5R (R…R¡RðR~RRetspecDropItemListR£R¤RRRRRRR Rót
feelPlayerRôRõRRötkillCountDropItemListR;Rù((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__NPCSpecialDropItemís<        
       +  !cCsø|j}|jƒ}|sdSi}g}xª|D]¢}t|||d|ƒ}    |    s\q2n|    \}
} } } |j| ƒ}| r—|
|g| 7}
n|jƒ}x!|
D]}|j||gƒqªW|j| ƒq2Wtj|ƒt    j
ƒ}|j ƒ|j ƒ}}d}xát jD]Ö\}}||}||}|j||ƒsRqn|t|ƒdkrlPn||\}}|d7}||kr˜| nd}|j|dƒ}|j||||ƒ}|sÔqn|j|||t j|ƒqWdS(s%NPCµôÂäÎïÆ·, ¶àÍæ¼ÒÿÈËÒ»·Ý, »ìºÏµôÂäNR~ii(R|R9R't _NPCControl__GetDropMoneyModelIDR5RRRRLtshuffleRRÙR¿RÀRR6R7R8Rt_NPCControl__CreateDropItemt_NPCControl__MapCreateItemR;(R…tdropPlayerListRR~RRetdropItemBindDictt dropItemListR¡RbRcRdReRfRt dropPlayerIDRÏRrRoRpR™RsRtRuRvR\RºtitemCntRRn((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__NPCDropItemByPlayerssL          
 
 
 c$CsT|s
dS|j}|jƒ}tjƒjƒ}tj|ƒ}tj|ƒ}|r~tj    d||j
ƒf|j
ƒƒn|tj kr‘dSt |ƒ}    |    sß|rÛtj ƒjtjƒ}
tjd||
fƒndSgiddf\} } } }t|||||    tƒ}|r3|\} } } }n|j|ƒ}|rb| rb| |g| 7} nd}|j|||    ƒ}| |gt|ƒ7} t| ƒdkrÃtj|ƒtj| ƒn| r|rtjd|jƒ|    jƒ|    jƒf|j
ƒƒntjƒ}|jƒ|jƒ}}d}xtjD]\}}||}||}|j||ƒsuq=n|t| ƒdkrPnt}| |}|d7}||kr|sÁq=nd}|d\}}}}tj |j
ƒ} }!|d}n=|}||} }!||kr%|nd}| j!|dƒ}|j"||||ƒ}"|"saq=n|tj#kr»t$j%|||ƒt&j'|"ƒ}#|j(|||||#ƒ|"j)ƒq=n|r3|"j*tj+tj,ƒt&j'|"ƒ}#t-j.||"t/t/dd    ti|d
6gƒrL|j(|||||#ƒqLq=|j0|"||| |!ƒq=WdS( Ns%NPC¿ªÊ¼µôÂä: npcID=%s,dropPlayerID=%ss(È¡²»µ½NPCµôÂäÐÅÏ¢!npcID=%s,curWorldLV=%sitSpecItemis8BossûÓеôÂä: dropPlayerLV=%s,ipyWorldLV=%s,maxDropLV=%siR"tNPCDropRe(1R|R9RRÙRÚRÛRÜRR›RSR5tDef_FBMapID_MunekadoTrialR‚R@RARBRHRFR'R Rt_NPCControl__NPCSpecialDropItemR8RLRRR|R†R¿RÀR6R7R;RRRìtGameLogic_GatherSoultKillGatherSoulNPCDropAwardR9tGetMapDropItemDataStrtSendVirtualItemDropR@t SetUserAttrtDef_IudetSourcetItem_Source_VirtualItemDropR,RDRìR ($R…R¡ROR.RðRReRRÉR~R€RcRdReRfRbRt specItemSigntplayerSpecDropListRrRoRpR™RsRtRuRvRõR\R%RùRt    ownerTypeRºRntdropItemDataStr((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt __NPCDropItemVs”     )        / 
 
 
 
 
cCsVtjƒ}||_||_||_||_t|jƒ|_tj    ||ƒdS(N(
RttagMCVirtualItemDropt
ItemTypeIDR!R"tUserDataR8t UserDataLenR#R$(R…R°R\RsRtt userDataStrt    vItemDrop((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR.¹s                 cCs‡|j}|jƒtj|dƒ|jƒ|jƒ}|tjkrLdS|tjkrlt    j
|ƒdS|j t ƒt |ƒdS(Ni(R|t_NPCControl__KillLogicRTR\RcR R=RÉR³R´t
SetPetDeadR
R R*(R…RtcurNPC_GameNPCObjType((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt    SetKilledÈs    
 
 
cCs |j}|jƒ}|stStj|ƒ}tj|ƒ|krZ|jtjdƒtS|j    ƒt
j krst S|j ƒrƒt S|jƒ}| s³||jƒtjdkrÈ|j|dƒt S||jƒtjkråt St||dƒ}tj|d|tƒ|j|ƒt S(NiiiÐgˆÃ@(R|t GetHPRestoreR RTRURVRRRšRìR=t    laNPCNullRìR]tGetRestoreTimetDef_NPC_ProcessHP_TicktSetRestoreTimeR]Rýt
SkillAddHP(R…RŒRt hpRestoreRatet curNPCMaxHPtlastRestoreTimet restoreValue((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytProcessHPRestores,       $ cCsdS(N((R…RŒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytProcessBattleHPRestoreGsc Cs×|j}|jƒ}|jƒ|_|jƒ|_tj|ƒ}|j|ƒ\|_    }}}|||_
|_ |r–t j d|||fƒn|jƒt|j    ƒdkrƒd}d}g}    x—|j    jƒD]†}
|jsò|
|_n|js|
|_n|js|
|_n||
jƒkrC|
jƒ}|
}n|j|
ƒ|    j|
ƒq×W|    |_|j||||    ƒng|dkr¥|j|||ƒnE|tjkrÇ|j||ƒn#|rêt jd|||fƒn|rzi|jƒd6|d6t jƒjƒd6t jƒj ƒd6|r?|j!ƒndd6|j    j"ƒd    6|d
6|d 6} t#j$d | ƒnt%r“t%|||ƒn|j&ƒ} | ddkrÃ| d dkrÃdSt'j(| |ƒdS(Ns-__GiveObjPrize npcID=%s,hurtType=%s,hurtID=%sis*NPC¹éÊôÒì³£:npcID=%s,hurtType=%s,hurtID=%sRŽRARRR5tkillerIDROR.tKillBossRecordi()R|R9t"_NPCControl__FindLastTimeHurtObjExR~t_NPCControl__FindBossMaxHurtObjR}RR›t_NPCControl__FindNPCKillerInfoR€RƒR„RRSt _NPCControl__DoLastTimeHurtLogicR8RR|RRt#_NPCControl__KilledByPlayerSetPrizeRR‚t_NPCControl__NPCDropItemt!_NPCControl__KilledByTeamSetPrizetDef_NPCHurtTypeFamilyt#_NPCControl__KilledByFamilySetPrizeRFRyRÙRÚR@RxRÖR|RNR`tOnNPCDiet _NPCControl__FindLastTimeHurtObjt PlayerActiontGetAwardOnKillNPC( R…RReRÉR[ROR.R¡t maxPlayerLVRðRšRytlastTimeHurtObj((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GiveObjPrizehs\     
                          *,!  cCse|j}|sdS|jƒ}|tjkr2dS|j}tj||ƒtj||j    ƒƒdS(N(
R~R®R=R¯R|t    PlayerViptDoAddVIPKillLVExpR¯tAddZhenQiByKillNPCtGetSP(R…tlastHurtPlayerR¸R((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoLastTimeHurtLogic®s          cCst|j}|jƒ}|jƒ}tjƒjƒ||f}|tjkr·tjj|ƒ\}}}}    |r{|j    ƒnd}
tj
d||j ƒ|
||    fƒ||||    fSd}d}    i}d}t |ƒ} |rûtj
d|| fƒn| tjkrœ|jƒ} | jƒ|r@tj
d| jƒƒnx$t| jƒƒD]B} | j| ƒ}|r—tj
d| |jƒ|jƒfƒn|j|d|ƒ\}}|dkræ|dkræ|rStj
dƒqSqSn|rG|jƒ}||kr|||<n|r4tj
d|| |fƒn|dtj|fS|rS|}|r|tj
d    || |j    ƒfƒn||tj|j    ƒfSqSWnË| tjkrõ|jrg|jjƒ}||krò|j||<|dtj|fSqgnr| tjkrg|jƒ\}}|r5||tj|j    ƒfS|rg|||jƒ<|dtj|jƒfSn|jrõ|jjƒ}|jj    ƒ}
|r±tj
d
|||
fƒn|
rÏtj ƒj!|
ƒ}n| rõ||krõ|j||<qõn| tj"kr*tj#}|rƒtj
d |ƒqƒnY| tj$krƒt%j&|ƒ}|dkrƒtj'}|}    |r€tj
d |ƒq€qƒn|dkrd|rÍtj}|j    ƒ}    |ratj
d ||    fƒqaqd|rtj}|j ƒd}    |ratj
d||    fƒqaqdtj(ƒj)ƒtj*krdt+j,ƒ}|ra|jƒ}    |||    <tj}qaqdn||||    fS(NisKNPC±»»÷ɱ£¬¹éÊôÐÅÏ¢: key=%s,playerIDList=%s,teamID=%s,hurtType=%s,hurtID=%ss"NPC±»»÷ɱ, key=%s,dropOwnerType=%ss hurtCount=%ss(hurtIndex=%s,hurtValueType=%s,valueID=%stisLogs&    µ±Ç°ÉËѪ¶ÔÏ󳬳öÖ¸¶¨·¶Î§»òÒѾ­ËÀÍös;    ¹éÊô×î´óÉËÑªÍæ¼Ò: npcID=%s,dropOwnerType=%s,playerID=%ss9    ¹éÊô×î´óÉËѪ¶ÓÎé: npcID=%s,dropOwnerType=%s,teamID=%ss8    ¹éÊô×îºóÒ»»÷£¬npcID=%s,lastHurtPlayerID=%s,teamID=%ss    ÎÞ¹éÊô...npcID=%ss    ÕóÓª¹éÊô...factionID=%ss$    ¹éÊôĬÈ϶ÓÎé, npcID=%s,teamID=%ss&    ¹éÊôĬÈÏÍæ¼Ò, npcID=%s,playerID=%s(-R|R9RyRR@RxR}tg_npcKillerInfoR6RÖRSR|RR'RR;RRIR=R‡R?R@RARZR5R;REtDropOwnerType_MaxHurtPlayerR}Rðt_NPCControl__GetMaxAngryInfoR~RñRòtDropOwnerType_AlltDef_NPCHurtTypeAlltDropOwnerType_FactionROtGetNPCItemProtectFactiontDef_NPCHurtTypeFactionRÙRÚRìRÛtGetCurSingleFBPlayer(R…RÉRReRŽR't
killerDicttkillTeamROR.R5t dropOwnerTypeR R%t
maxHurtObjRšR[RqtmaxHurtPlayerIDtmaxAngryPlayert maxAngryTeamtlastHurtPlayerIDtprotectFactionR°((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindNPCKillerInfoás¼            
)   #                                
cCs’|jƒ}|sdS|jƒ}|jƒ}|tjkrAdStj||ƒ}|s]dS|jƒ}|sy|dfS|tj    ƒj
|ƒfS(s  »ñÈ¡×î´ó³ðºÞËù¹éÊôµÄÍæ¼Ò, ¶ÓÎé N(NN(NN(NN( RRR    R
R=R¯RR¹RÖRñRò(R…RßRt angryObjTypeR¹R5((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetMaxAngryInfo^s    
cCsD|j}|jƒ}|jƒdkr+dS|jƒ}|j|ƒS(Ni(NN(R|RR=RtGetLastTimeHurtValueRZ(R…RR Rr((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindLastTimeHurtObjys       cCs>|j}|jtjƒ}tjƒj|ƒ}|s:dS|S(N(R|R·RtDef_PlayerKey_LastHurtRRLR3R(R…RRqRš((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindLastTimeHurtObjEx†s     cCsT|j}|jtj|jƒ|jƒfƒ}tjƒj|ƒ}|sPdS|S(N(
R|R·RtDef_NPC_Dict_BossMaxHurtIDRyR9RRLR3R(R…Rt    maxHurtIDRš((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindBossMaxHurtObjs     (c Cs‡|j}|jƒ}d}|dkrBtjd|jƒƒ|S|j|jƒƒ}|jƒ}|tj    krtj
|j ƒt j ƒ}    |    dkrÃ|r¿tjd||j ƒfƒn|S|    jƒdksê|    jƒt jkr|rtjd||j ƒfƒn|S|rz|j|    jƒ|    jƒ|ƒs|rstjd||j ƒ|    jƒ|    jƒfƒn|Sn‡tj|jƒ|jƒ|    jƒ|    jƒƒtjkr|rýtjd||j ƒ|jƒ|jƒ|    jƒ|    jƒfƒn|S|    df}|    dfS|tjkrp|j ƒ}
tjƒj|
ƒ} |rgtjd||
fƒn| dkr‘|rtjd|
ƒn|S|r±tjd    | jƒƒnx¸t| jƒƒD]¤} | j| ƒ} | dks÷| jƒdkr|rÄtjd
| ƒqÄqÄn| jƒdks>| jƒt jkrj|rÄtjd | | jƒfƒqÄqÄn|rÒ|j| jƒ| jƒ|ƒs[|rÄtjd | | jƒ| jƒ| jƒfƒqÄqÄq[n‰tj|jƒ|jƒ| jƒ| jƒƒtjkr[|rÄtjd | | jƒ|jƒ|jƒ| jƒ| jƒfƒqÄqÄnd| f}|SW|S|tjkrƒ|S|S(NsÉËѪ¶ÔÏó´íÎó,npcID=%ss*ÕÒ²»µ½¸ÃÄ¿±êÉËÑªÍæ¼Ò: npcID=%s,playerID=%sis*¸ÃÄ¿±êÉËÑªÍæ¼ÒÒÑËÀÍö: npcID=%s,playerID=%ss<¸ÃÄ¿±êÉËÑªÍæ¼Ò²»ÔÚNPCÇøÓòÄÚ: npcID=%s,playerID=%s,pos(%s,%s)sO¸ÃÄ¿±êÉËÑªÍæ¼Ò³¬³öÖ¸¶¨¾àÀë: npcID=%s,playerID=%s,npcPos(%s,%s),playerPos(%s,%s)s Ä¿±êÉËѪ¶ÓÎé: npcID=%s,teamID=%ssÕÒ²»µ½Ä¿±ê¶ÓÎé, teamID=%ss¶ÓÎé³ÉÔ±Êý: GetMemberCount=%ss    i=%s, Î޸öÓÔ±£¡s$    i=%s, ¶ÓÔ±ÒÑËÀÍö£¡memPlayerID=%ss6    i=%s, ¶ÓÔ±²»ÔÚNPCÇøÓòÄÚ£¡memPlayerID=%s,pos(%s,%s)sI    i=%s, ¶ÓÔ±³¬³öÖ¸¶¨¾àÀ룡memPlayerID=%s,npcPos(%s,%s),playerPos(%s,%s)(NN(R|R9RRRƒR«R¬R@RR;R¹RAR=R¯RSRVR*R+RÜR¿RÀRÞtDef_Team_GetExpScreenDistRERñRòRõR‡RöR5tDef_NPCHurtTypeNPC(R…RrtisCheckRefreshAreaReRRet hurtObjTupleRåtmaxHurtValueTypeRšR5R[R%Rý((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetTagByHurtObj¡sŽ         ' !    )!    ; 
  ' !    )    !    ; cCsf|j}|j|jƒt|ƒ}tj|ƒ}|j|tjƒ|j|||j    ƒtƒdS(N(
R|t_NPCControl__GetExpRR R¯RERBtDef_ViewExpType_KillNPCt_NPCControl__KillNPCFuncExR5(R…RšRtadd_Expt playerControl((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KilledByPlayerSetPrize s     c Csa|j}tj||jƒ|jƒd|jƒƒ}|sitjd|jƒ|j    ƒ||fƒdS|j
s‚|d|_
n|j s›|d|_ n|j s´|d|_ n|dj ƒ}d}d}g}    xe|D]]}
|
jƒ} || kr
| }|
}n|    j|
ƒ|j|
ƒ|j|
||tƒqÝW|    |_|j||||    ƒdS(NResS½±Àø¹éÊô¶ÓÎ飬µ«ÊDz»´æÔÚ¿É»ñµÃ¸Ã½±ÀøµÄ¶ÓÔ±!npcID=%s,teamID=%s,hurtType=%s,hurtID=%si(R|R¯R R¿RÀt_NPCControl__GetIsLogRRFR9RÖR~R}RR5RRRt_NPCControl__DoNormalTeamExpRŠRìR‚RT( R…R[ROR.RRR€t    teamMaxLVR¡RðRšt curPlayerLV((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KilledByTeamSetPrize%s6    -                              cCsÜ|j}d}d}g}|j|jƒƒ}tjƒ}x£t|jƒƒD]}    |j|    ƒ}
|
spqOn|
j    ƒ|ksO|j
|
j ƒ|
j ƒ|ƒ rªqOn|
j ƒ} || krÑ| }|
}n|j|
ƒqOW||_|stjd|jƒ||fƒn|s&|j}n|sPtjd|jƒ||fƒdS|jse||_n|jsz||_n|js||_n|jƒ} x$|D]} |j| || tƒq¢W|j||||ƒdS(NisI½±Àø¹éÊôÏÉÃË£¬µ«ÊDz»´æÔÚ¿É»ñµÃ¸Ã½±ÀøµÄ³ÉÔ±!npcID=%s,hurtType=%s,hurtID=%ss;½±Àø¹éÊôÏÉÃË£¬ÕÒ²»µ½µôÂäÍæ¼Ò!npcID=%s,hurtType=%s,hurtID=%s(R|RR«R¬RR†R‡RˆR‰t GetFamilyIDRÜR¿RÀRRR‚RSR9R~RFR}RR5RŠR RT(R…ROR.RtmaxLVR¡RðRåt copyPlayerMgrR™R°R‘R€Rš((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KilledByFamilySetPrizeLsL     4                                    c    Cs5|jƒ}|jƒ}tjƒjƒ}tjtjƒjƒƒ}|tj    krXdStj
ƒr¯|tj kr†t j ||ƒntj|ƒr«t|||tƒndS|tj krÑt j ||ƒn;|jƒ|jƒtjdƒkr tj|tjƒntj|ƒr1t|||tƒndS(NtDailyQuestKillMonster(R9R®RRÙRÑRÛRÜRÚR=R+t IsCrossServerRÒROtDoFB_DropOwnerRR›RzRìRR:R’RcRdRBtDailyActionID_KillNPCR (    R…RšRRMt
isTeamKillRet
defObjTypet    mapFBTypeR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KillNPCFuncEx†s&   %c
Cs
|j}|jƒ}|tjkrCttj|ƒ}|rVdSn|tjkrVdS|jƒ}tj    ddƒ}t
j ||ƒ}|t j k}    |rÄtj||ƒ|    rêtj|ƒqên&tj||ƒ|    rêtj|ƒntj|t jd|gƒdS(NRVi(R|R R=R¡R¾R¯t
gnotNormalR9R:R’RR[RBRat
EventShelltEventRespons_OnKillByFeelt EventRespons_KillWorldBossByFeeltEventRespons_OnKillByIdtEventRespons_KillWorldBossR2R3tSuccType_KillSpecificNPC(
R…RštisFeelRR¶RReRvRwt isWorldBoos((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__MissionOnKillNPC¬s*      cCstj|jƒS(N(RR›R|(R…((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
__GetIsLogÌscCsT|j}|j|jƒt|ƒ}|s.dStj|ƒ}|j|tjƒdS(N(R|RˆRRìR¯RERBR‰(R…RšRR‹RŒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoNormalTeamExpÜs    c
Csð|j}d}tjƒjƒtjkr?tj||ƒ}n|dkrO|S|jƒ}|dkrkdS|swdn    |j    ƒ}|r¼|s“dSt
j ||ƒ}|s¯dS||9}n|j ƒ}t tjdtjddƒƒƒ}    |    S(NitExpAttenuationi(R|RRÙRÑR=RÒROt OnGetNPCExptGetExpR5RßtGetTeamPlayerHurtPerRRÔRÕRÖR:R’(
R…R£tisTeamR°RR^RqthurtPerR‹texp((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetExpñs(         $c     Cs×|s
dS|j}|jƒ}|jƒs1dn|}t|jƒdks[|tjkrj|jjƒng}    tj    |||d|||    gd|ƒ}
|
dkr·t j dƒdS|
j |jƒ|jƒƒdS(NiiRRsµôÂäÎïÆ·,ÎÞ·¨ÕÒµ½µØÍ¼µôÂäÎïÆ·(R|R9R:R8R€RtDef_NPCHurtTypeSpecialR|R9R:RRRStSetByObjR®Ry( R…RnRsRtR¹RºRR§RtspecOwnerIDListt
curMapItem((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__MapCreateItems     9*  cCsXtj|ƒ}|sdStjƒjƒ}tj|ƒ}|j|ƒ|j|ƒ|S(N(    R,R-RRÙRÚRÛRÜtSetCountt    SetIsBind(R…RR\R]RRntcurMapID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__CreateDropItem<s  N(_t__name__t
__module__RR|R‡RìR”R˜RR¥RšRºR¿RÕRÃRÌR RæRíRÛR÷RïRRt Def_NPCRefreshAngryValueIntervalRRRÐRR!R)RCRFRQRHR>R]RaRcRgReRdR{R‰RŒR‹R”RÜR®R˜R—R¦R™RÄtDef_Matrix_ThreeR·RÈt!_NPCControl__DoNPCRebornPreNotifyRfRÑRéRÚRÒRöRòRóR=RRRR*t!_NPCControl__NPCDropItemByPlayersRTR.R@RKRLRRRRQRhRYRORPRZRSRURWRŠRRŽRRˆR R(((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR{zs®            H >        :         o     7        @    R#                             $ @    5                       6    ?                             -    %        .*         '                            2    (             /    : c        T    +    !    F    3    }             
    j        '    :    &          +     cCs]tjƒj|ƒ}|sdS|jƒ}|s5dS|jƒ}|jƒ}t|||ƒS(Ni(RR¥R¦R­Rt
CalcNPCExp(RšReRàR^R‹R£((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR$Ks   cCs(ttjdtjddƒƒƒ}|S(NR«i(RÔRÕRÖR:R’(R^R£R‹R±((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÂVs$cCsFtjtd|jƒdfƒ}|dkr2dS||||ƒdS(Ns AIType_%d.%stOnAttackDieByPlayer(RRRRR(RRšRôR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnPlayerAttackNPCDieas" cCs<|dkr|Stt|ƒƒ}t|td|ƒdƒS(Nii
i(R8RßRRŒ(tvalueExR"tnlen((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRójs i
cCsY|jƒ}tjdƒ}||kr+tS||}t|ƒtkrKtS|t}|S(Nt CollectNPCCfg(R9R§R¨RìR8tDef_CollNPCCfg_LentDef_CollNPCCfg_CanTogether(RRet collectNPCCfgtcollectNPCInfotcanCollTogether((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytCanNPCCollectTogether…s  
 
c Cs_|jƒ}tjdƒ}||kr8tjdƒtS||}t|ƒtkritjd|ƒt    S|t
j dƒk}|rÖt t j|ƒ}|s t    S|jƒ|jƒkrÖtjd|jƒƒt    Sn|t}t|ƒ}| rE|dkrE||jƒkrEtjdƒ|t}    |    rAtj||    ƒnt    Sd\}
} t||ƒ} | ru| \}
} n|
dkr«| |
kr«tj||t|
gƒt    St    } |t}|rd|\}}|dkrd|jƒjt jƒ}tj|||ƒ\}}}}| ra| ratjd|||fƒtj||t|||gƒt    Sqdntj|t jƒstj|d    ƒt    S| rµt ||ƒ rµtjd
ƒt    S|t!}t"j#|t$j%ƒ}|r
t&d t'|t(j)|t*t(j)ƒƒƒ}ntj+||t j,d |jƒƒt-j.||ƒt/j0||jƒt$j1d ƒdS(NRÇs"DoCollectNPCBegin ·ÇÌØ¶¨²É¼¯NPC...s#CollectNPCCfg.txtÅäÖôíÎó£¬npcID=%st RealmSitNPCIDs/²»Äܲɼ¯×Ô¼ºµÄ´ò×øÕÙ»½ÊÞ summonOwner.GetID()=%sis"DoCollectNPCBegin ²»ÔÊÐíͬʱ²É¼¯£¡s@DoCollectNPCLogic ²É¼¯ÏûºÄÎïÆ·²»×ã,npcID=%s,costItemID=%s,cnt=%stGeRen_lhs_202580s%DoCollectNPCBegin SetCollectNPC fail!ièt    prepareIDi(ii(2R9R§R¨RRƒR R8RÈRFRìR:R’R¾R=R¯RyRÉtGetCollectNPCPlayerIDR5tDef_CollNPCCfg_SysMsgMarkR¯t
NotifyCodetGetCollTimeLimitInfotDef_CollNPCCfg_LimitSysMsgMarktDef_CollNPCCfg_CostItemInfoRÞRßR>R*tGetItem_FromPack_ByID_ExExt Def_CollNPCCfg_NotCostItemNotifytCheckPackHasSpacet SetCollectNPCtDef_CollNPCCfg_PrepareTimeR_tGetPrivilegeValueRtVIPPrivilege_CollTimeReduceRateRR]RBR&R%tSync_PrepareBegintpstMissionCollectingROtOnBeginCollectRßRDR;(RšRReRÊRËt isSitCollectt summonOwnerRÌtcollectPlayerIDtsysMarkt limitMaxTimet todayCollTimet collLimitInfot    isAutoBuyt costItemInfot
costItemIDt costItemCnttitemPacktenought    indexListthasBindtlackCntt prepareTimetcollTimeReduceRate((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoCollectNPCBegin–sz   
 
 % 
 
      
 
0 cCs™tjdƒ}xƒ|jƒD]u}||kr4qn||d}d}x(|D] }||jtj|ƒ7}qOWtjd||fƒ||fSWdS(NtCollectNPCIDTimeLimitis$    limitMaxTime=%s,todayCollTime=%s(R§R¨R|R×RtDef_PDict_CollNpcIDCollTimeRRƒ(RšRetnpcIDCollectCntLimitDictt
npcIDTupleRåRæt    collNPCID((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÔës   cCs•|jƒ}|jƒ}|jtjƒ}|rktjƒj|ƒ}|rk||krktjdƒt    Sn|j
tj|ƒ|j
tj |ƒt S(Ns?SetNPCColleced ÓÐÈËÔڲɼ¯ÇÒ²»ÊÇͬһ¸öÈË£¬Ôò²»¿ÉÖØÐÂÉèÖòɼ¯¶ÔÏó( R5RyR·RtDef_NPC_Dict_CollectPlayerIDRRLR3RƒR RtDef_PlayerKey_CollectNPCObjIDRì(RšRt curPlayerIDt curNPCObjIDtcurCollectPlayerIDtcurCollectPlayer((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÚýs   cCsi|jtjƒ}|dkr"dStjƒj|ƒ}|setjd|ƒ|jtjdƒdS|S(Nis>GetCollectNPCID ÓÐcurCollectPlayerID=%s£¬µ«ÕÒ²»µ½¸ÃÍæ¼Ò£¬ÖØÖÃ!(R·RRùRRLR3RƒR(RRýRþ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÑs     cCsd|jtjƒ}|dkr"dStj|ƒ}|rM|jtjdƒn|jtjdƒdS(Ni(R·RRúRt FindNPCByIDRRù(RštcollectNPCObjIDR((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytClearCollectNPC#s cCs#t||tdƒ}t|ƒ|S(Ni(tDoGetCollectionNPCAwardLogicRìR(RšRetisOK((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoCollectNPCOK6s
c
Cs£|j}|j}|j}|j}|j}tjƒj|ƒ}t||ƒ}    |    sltj    d|ƒdStj    d|||fƒt
||||||ƒdS(Ns.¸ÃNPC²»ÊÇ×Ô¶¨Òå²É¼¯NPCÏä×Ó, ²»¿É¿ªÆô! npcID=%ss3OnOpenCollNPCBox...npcID=%s,openCnt=%s,isAutoBuy=%s( tMapIDR!tOpenCntt    IsAutoBuyt
IsOnlyGoldRRLR‰RÔRƒR(
R™t
clientDataRŒRRetopenCntRèt
isOnlyGoldRšRç((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnOpenCollNPCBoxFs                    c1 Cs²tjd||fƒtjdƒ}||krGtjd|ƒtS|dkrWtS||}t|ƒtkrˆtjd|ƒtSd\}}    |t    }
|
rÅt|
ƒdkrÅ|
\}}    ntj
ƒj |ƒ} | sätSd} d} t ||ƒ}|r|\} } n| dkrlt d| | ƒ}t||ƒ}|dkrltjd| | fƒtSn|    |}d}|dkr˜|dkr˜tj||ƒ\}}}|sÌt d|||ƒn|}d}d}|dkr8| r8tjd|||    |||fƒtj||t|||    gƒtS|dkr˜tj|tjƒ}||}|dkrstStj|tj|tƒs•tSq˜ng}t||tƒ}|d \}}t|ƒdkrÝ|dng}|sþtjƒjƒ}nd}|s|r‘xkt|ƒD]]}||kr5d    nd}t|||||||ƒ}|scPn|j|ƒ|d    7}qW|dkr—tSn|}|j ƒ} tj!|ƒ}!tj"|ƒ}"t#|t$ƒ|}#t#|t%ƒ|}$|t&|}%tj|ƒ}&|&j'|#ƒi|t(j)6}'tj*|tj+|$t(j,|'ƒtj-||%ttd
ƒtjd ||#|$|%fƒ|dkr"|dkr"|}(|s|\})}*|j.ƒj/tj0ƒ}+|dkr'|(|krÞ|n|(},|(|,8}(tj1||+|)|,td ƒtjd |,|j2ƒƒn|(dkr|dkr|(|krQ|n|(}-|(|-8}(tj1||+|*|-td ƒtjd|-|j2ƒƒqn|(dkr"t3|(|ƒ}.i|d6|(d6|t(j46}/tj5|tj|.t(j6|/|(ƒtjd|(||.f|j2ƒƒq"n|ry| |}0tj7|t(j8||0ƒt9|d|gƒtjd| |0fƒnt:j;|t<j=||gƒt>||#|$|%||ƒtS(Ns5DoGetCollectionNPCAwardLogic...npcID=%s,collectCnt=%sRÇs    ·ÇÌØ¶¨²É¼¯NPC...npcID=%sis#CollectNPCCfg.txtÅäÖôíÎó£¬npcID=%sis=    ¸ÃNPCÒÑ´ïµ½×î´ó²É¼¯´ÎÊý: todayCollTime=%s,limitMaxTime=%ssW    ²É¼¯ÏûºÄÎïÆ·²»×ã,npcID=%s,costItemID=%s,costItemCnt=%s,collectCnt=%s,hasCnt=(%s+%s)it
Collections4    successCnt=%s,addExp=%s,addMoney=%s,addZhenQi=%st
CollectNPCs        ¿Û³ý°ó¶¨µÀ¾ß: %ss        ¿Û³ýδ°óµÀ¾ß: %stPerGoldt    unCostCnts;        ¿Û³ýÏûºÄ×êʯ: unCostCnt=%s,perGold=%s,reduceGold=%sRjs9        Ôö¼Óµ±Èղɼ¯´ÎÊý: todayCollTime=%s,updCollTime=%s(ii(?RRƒR§R¨R RìR8RÈRFRÖR¥R¦RÔRRYR*tGetPackItemBindStateIndexInfoR¯RÓRØtPlayerSuperMarkettGetStoreItemPriceR=tTYPE_Price_Gold_Moneyt    HaveMoneyt__GetGiveCollectItemInfotDef_CollNPCCfg_GiveItemModeIDRÙRÚR‡t __DoGiveCollectionNPCSingleAwardtextendRtGetPlayerReExptGetPlayerReMoneyRÔtDef_CollNPCCfg_ExpFormattDef_CollNPCCfg_MoneyFormattDef_CollNPCCfg_ZhenQiRERtDef_Give_Reason_SonKeyRFRGtDef_GiveMoney_CollectNPCtPlayerAddZhenQiRÞRßR>t
ReduceItemR5R]tDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyStoreItemRèRõtSyncCollNPCTimeR2R3RBtSuccType_CollecttSyncCollectionItemInfo(1RšReRèt
collectCntRR RÊRËRêRëRéRRåRæRçt canCollectCnttcostItemCntTotaltbindCnttcostItemIndexListt    unBindCntRðtlackCosttitemGoldtgiveItemInfoListt    prizeInfot pieRandomListtrandomAllInfoListtbesureInfoListt
successCntR%Rt getItemInfotreLVtreExptreMoneyR_taddMoneyt    addZhenQiRŒt addDataDictRt bindIndexListtunBindIndexListRìt bindCostCntt unBindCostCntt
reduceGoldtinfoDictt updCollTime((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRVsÞ  
 
 
#     
 
"            
 
       
cCsg}|r+tj|ƒ}|j|ƒn|r|\}    }
g} xv|
D]n} | d} | d}| tjkr|j|ƒ|    d8}    qJntj| tjƒs«qJn| j|ƒqJW|    dkr| rt|    t| ƒƒ}|jt    j
| |ƒƒqn|r£|j t j |ƒ}|\}}||kr\|g}tjd|||fƒn||kr£|d7}tj|t j ||ƒtjd|ƒq£ntjd|ƒg}xÏ|D]Ç\}}}tj|tjƒséPn|pò|}tj|ƒ}|jƒ}|j|ƒ|j|ƒtj|||ƒtj||ttddti|d6gƒsoPn|j||||gƒqÁW|S(    Niis7    ´Ë´Î±Ø³öÎïÆ·, npcID=%s,besureCnt=%s,collTotalCnt=%ss    ¸üвɼ¯×Ü´ÎÊý: %ss%    ×îÖտɵõ½ÎïÆ·giveItemInfoList=%sR"RRe(RR”RRBR&R‘RYR8RRLtsampleR×RtDef_PDict_CollNpcCollTotalCntRƒR¯RèR*RÙR=R>R,R-t GetUserDataR¸R¹tNotifyItemDropByKillRDRìR (RšRRetsetBindR3R4R5R1tpieRandomItemInfot maxRandomCnttrandomInfoListtrandomInfoListExtitemInfotgiveRatetappendItemInfot getRandomCntt collTotalCntt    besureCnttbesureItemInfotsyncItemInfoListR\R%Rt
getItemObjtuserData((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRæs\  
 
 
       
    c    Cs«dS|dkr3|dkr3|dkr3| r3dStjƒ}|jƒ||_||_||_||_g|_x |D]}d\}}    }
} } t|ƒdkr¼|\}    }
} nQt|ƒdkrã|\}}    }
} n*t|ƒdkr |\}}    }
} } n|    dkrq}ntj    ƒ} | jƒ|| _
|    | _ |
| _ | | _ t| ƒ| _| | _|jj| ƒq}Wt|jƒ|_tj||ƒdS(NiR´iii(iiiis(RttagMCCollectionItemInfoR@R!tExpt SilverMoneytZhenQit CollItemListR8ttagMCCollectionItemtItemTypetItemIDtItemCnttIsBindt ItemInfoLentItemInfoRt CollItemIDCntR#R$(RšR_R;R<RUt collectNPCIDt collItemInfot syncItemInfoR…R\R%RRNtcollItem((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR(As@+ 
                       
                    c
Cs5|sgggSd}|jƒ}xH|jƒD]:\}}|d|koZ|dknr/|}Pq/q/W|s}gggStjd|ƒ}|s gggSd}|jƒ}x*|jƒD]}    ||    kr¿|    }Pq¿q¿W||kr tjd||fƒgggStjd|||||fƒ||S(NR´iisCollectItemInfo_%ss+CollectItemInfo_%s.txt can not find key=%s!s@    __GetGiveCollectItemInfo job=%s,modeID=%s,key=%s,itemList=%s((    RRWR§R¨RˆR|RRFRƒ(
Ršt lvModeIDDicttmodeIDR£tlvKeytmIDStrtcollectItemInfoDicttinfoKeyRœR'((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRls2
 $
 
 
    cCsæ|s?tjdƒ}x'|jƒD]}|t|ƒ7}q"Wn|râtjƒ}|jƒg|_xV|D]N}tjƒ}|jƒ||_    |j
t j |ƒ|_ |jj|ƒqkWt|jƒ|_tj||ƒndS(NRô(R§R¨R|R‚RttagMCNPCIDCollectionCntInfoR@tNPCCollCntListttagMCNPCIDCollectionCntR!R×RRõt CollectionCntRR8t
CollNPCCntR#R$(Ršt funcTypeListRjtcollectNPCIDTimeLimitR÷t npcIDCollInfoRet collCntInfo((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR&‘s" 
      
    cCs{tjdƒ}x[|jƒD]M\}}|d}|s>qnx(|D] }tj|tj|dƒqEWqWt|ƒdS(NRôii(R§R¨RWR¯RèRRõR&(RšRtRuR÷Rwt isResetOnDayRe((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytCollNPCTimeOnDay©s
 "
c    Cs i}|s|Stjƒ}tjdt|ƒƒg}xIt|jƒƒD]5}|j|ƒ}|jƒ}|dkrqLn|jƒ}||krqLn|j    |ƒd}    t
j |ƒ}
|j ƒ} |j ƒ} t
j|ƒ} d}|jƒtjks|jƒ rbd}    |jƒ}|dkrbtd||jƒƒ}td||ƒd}qbn||
| | | |    |g||<qLWtjdt|ƒƒ|S(NsGetNPCInfo...queryNPCIDList=%siiiès    npcInfoDict=%s(RRRƒRßR£t GetNPCCountt GetNPCByIndexRyR9RRTRVR¿RÀRURìR=RítIsAliveRÆRR°(tqueryNPCIDListRŒt npcInfoDicttgameNPCManagert findNPCIDListR™RtcurIDR§RQtcurHPRsRtRètrefreshRemaindSecondt refreshTimetpassTick((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetNPCInfoºs<        "  #cCsýtjƒ}|jƒ||_||_g|_x£|jƒD]•\}}|\}}}    }
} } } tjƒ}|jƒ||_||_    ||_
|    |_ |
|_ | |_ | |_| |_|jj|ƒq>Wt|jƒ|_tj||ƒdS(N(RttagMCNPCInfoListR@Rt    PlayerCntt NPCInfoListRWt tagMCNPCInfotObjIDR!tNPCHPR8R!R"tIsActivet RefreshSecondRR8t
NPCInfoCntR#R$(RšRt    playerCntR~t npcInfoPackRtnpcInfoR§R‚RèRsRtRQRƒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt SyncNPCInfoés* 
             
                                c    Cs¼i}tjƒ}tjdt|ƒƒt|tƒrñxft|j|ƒƒD]œ}|j||ƒ}|j    ƒ}|dkr„qNn|j
ƒ}|r¨||kr¨qNn|j ƒt j ksN|jƒ rÐqNn|j|dƒd||<qNWn°x­t|jƒƒD]™}|j|ƒ}|j    ƒ}|dkr7qn|j
ƒ}|r[||kr[qn|j ƒt j ks|jƒ rƒqn|j|dƒd||<qWtjdt|ƒƒ|S(Ns!GetNPCCntInfo...queryNPCIDList=%siis    npcCntDict=%s(RRRƒRßR€R]R‡tGetNPCCountByGWIndextGetNPCByIndexByGWIndexRyR9RìR=RíR|RRzR{(    R}RŒRGt
npcCntDictRR™RRR§((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetNPCCntInfos8    "!   "cCs£tjƒ}|jƒ||_g|_xR|jƒD]D\}}tjƒ}|jƒ||_||_|jj    |ƒq5Wt
|jƒ|_ t j ||ƒdS(N(RttagMCNPCCntListR@RR‰RWttagMCNPCCntInfoR!tCntRR8RR#R$(RšRR–R‘R<tnpcCntR’((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSyncNPCCntInfo6s 
         
        c Cs£tjddƒ}||kr"dStjddiƒ}tjddƒ}    tjddƒ}
t} d} ||
kr‹t} |
j|ƒ} nª||    kr³t} |    j|ƒd} n‚|\}}}}} |d|d    |} tj||ƒ}|r5|\}}}||kr5||kr5||kr5t} q5n| s?dSt|||||| | |gƒ}tjƒj    d
d
d
d |t
|ƒƒtj d ||ƒdS( NtDropRecordBossIDitDropRecordEquipmenttDropRecordValuetDropRecordNormalR´i'ièiditBossDropGoodItems$·¢ËÍGameServer¼Ç¼ʰȡµôÂäºÃÎïÆ·: %s( R:RzR RìR™RR[RßRLRMR8Rƒ(RRet
playerNameRqR\R³t serverGroupIDt recBossIDListtrecDropEquipInfoDicttrecSpecialItemIDListt recItemIDListt
needRecordt itemUserDatat weightValuet
equipPlacet itemClassLVt    itemColort itemQualitytrecordConditiont needClassLVt needItemColortneedItemQualityt dropEquipMsg((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSendGameServerGoodItemRecordGs6   $ $(cCsdS(N((R™R    RŒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnBuyCollectionCntvs!cCsdS(N((R™R    RŒ((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnBuyKillBossCnt¡scCss|j}|j}tjƒjtj|ƒ}|s8dStjƒjtj|dƒtjd|||fƒdS(Nis,ClientNPCShowEnd npcID=%s,endType=%s,tick=%s(    R!tEndTypeRR<RDRRªR/Rƒ(R™R    RŒRetendTypeR®((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt OnNPCShowEndÈs        cCsZtjddƒ}tjƒjtjƒd}||krVtjddƒ}||kStS(Nt    BossShuntii(    R:R’RR@RARBtDef_Notify_WorldKey_ServerDayRzR (RtbossShuntMaxServerDayt openServerDaytbossShuntMapIDList((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRGÒs  
cCs^||f}tjj|iƒ}||jƒ|g||jƒ<|tj|<t||ƒdS(N(R}RRRRÖR5RS(RšRRReRŒR'RT((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytAddBossShuntRelatedPlayerÛs    cCs||f}tjj|iƒ}t|||gƒ}tjƒjdddd|t|ƒƒtjd|||f|ƒdS(NitWorldBossShuntInfosE֪ͨGameServerµØÍ¼Boss·ÖÁ÷ÐÅÏ¢: mapID=%s,lineID=%s,shuntPlayerDict=%s(    R}RRRRßRRLRMR8Rƒ(RRR'RTtmsgStr((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRSäs  (cCsitjƒ}|jƒ|jƒ|_|jƒ|_tj|_    ||_
|j |j ƒ|j ƒƒdS(N(t ChNetSendPackttagObjInfoRefreshR@RyR‹R®tObjTypeR=tCDBPlayerRefresh_Speedt RefreshTypetValuet    NotifyAllt    GetBuffert    GetLength(RRïtsendPack((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRíìs 
     (œR=RR¯R‰RR R£RûRáRÂRýRßR,R*ROR§R´RR¦RBR9RZRRNR#RÛRcR2R]RRêR+RÕtPlayerMagicWeaponRfRiRlR>R:R}R1R_RTR3RLR/RJRRXR£R©RªR«R¬tNPCAttr_DynNPCLVMaptNPCAttr_DynPCCoefficientMapRRRRRR R#R%R'R)R+R-R0R2R4R RuRbRRQRyR™R‚RÐRìR'RíRœRRšRîR–RÙRÛR RÔRŸR¢R¨R¬R²R­R¾RËRÔRÜRéRëRïRõRRRRR*RIR.RzR{R$RÂRÄRóRÈRÉRÒRÖRÛRRRRRØRÕRÍRóRÔRÚRÑRRR RRR(RR&RyR†R“R—RœR´RµR¶R¹RGR¿RSRí(((sfE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt<module>s,                                               
                                                             f        |    ­        ›ÿ+    $    -            ² 3     4        *             
                !    !    +    >    ]             -        2            *ÿÿÿÿÿÿÿÿÿÿÿÜ                           *        U                            [ +    %     /     .    /    +    '