cehua_wcy
2018-08-24 36b8e422f96afa333b464cf666cdd4abec17a878
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
[Ã~[c    @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+e,Z-e.dƒ\Z/Z0Z1Z2Z3d„Z4d„Z5d„Z6d„Z7d„Z8d„Z9d    „Z:d
„Z;d „Z<d „Z=d „Z>d„Z?d„Z@eAd„ZBdde,d„ZCe,e,eAgdgd„ZDdZEd„ZFd„ZGge,eHeHd„ZId„ZJd„ZKd„ZLd„ZMd„ZNe,d„ZOd„ZPd „ZQd!„ZRd"„ZSd#„ZTd$„ZUd%„ZVd&„ZWd'„ZXd(„ZYd)„ZZd*„Z[d+„Z\d,„Z]d-„Z^d.„Z_d/„Z`d0„ZaeAeHd1„ZbeHd2„Zcdddd3„Zdd4„Zed5„ZfeHd6„Zgd7fd8„ƒYZhd9„Zid:„Zjd;„Zkd<„Zld=Zme.emƒ\    ZnZoZpZqZrZsZtZuZvd>„Zwd?„Zxd@„ZydA„ZzdB„Z{dC„Z|dD„Z}eAde,eAdE„Z~dF„ZddG„Z€dH„ZggdI„Z‚gdJ„ZƒdK„Z„dL„Z…dM„Z†dN„Z‡gdO„ZˆdP„Z‰dQ„ZŠdR„Z‹dS„ZŒdT„ZdU„ZŽdS(Viÿÿÿÿ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((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytInitNPCSs" 
 cCs2t|dƒr(t|jƒ|jƒƒS|jƒS(NtGetCurLV(thasattrtmaxRtGetLV(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCLVdscCs
|jƒS(N(t
GetMAtkMin(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetRealmLVjscCs
|jƒS(N(t
GetWindDef(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetIsLVSuppresskscCs
|jƒS(N(t GetThunderDef(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSuppressFightPowerlscCs |j|ƒS(N(t SetThunderDef(Rtvalue((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSetSuppressFightPowermscCs
|jƒS(N(t
GetFireDef(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetCommendFightPowernscCs
|jƒS(N(t GetThunderAtk(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetDropOwnerTypeoscCs
|jƒS(N(t
GetCountry(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetFactionpscCs
|jƒS(N(t GetPoisionAtk(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSkillAtkRateqscCs
|jƒS(N(t
GetFireAtk(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetFinalHurtrscCs
|jƒS(N(t
GetWindAtk(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSkillEnhancesscCs
|jƒS(N(t GetPoisionDef(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetNPCSeriestscCsÕ|jƒ}tjd|ƒ}|s(dSd}d}tjƒ}|jƒr||jtjƒ}|s|tj    d|ƒdSn|j
ƒ}|dkr¯tj ƒj t jƒ}nB|dkrÐ|jtjƒ}n!|dkrñ|jtjƒ}n|d kr| rtj    d||fƒdStj||ƒ}    d    |    krJ|    d    }nt||||ƒ}
|
j|    ƒ|
svdS|r¡|jƒ|kr¡|j|tƒntj|ƒ} tj|ƒ} x—|
jƒD]‰\} }t|d
| ƒs | d krÌt||ƒqÌqÌn| d kr,tj||ƒqÌt|tj ƒ}t!|d
| ƒ|ƒqÌWtj|ƒ}| |krÑ|rtj"||ƒqÑ|rÑt#|| | ƒ}tj"||ƒ|j$ƒ|j%ƒqÑndS(s½NPCÊôÐÔÔöÇ¿, NPCÊôÐԳɳ¤ÓÉÁ½¸öÒòËØ¾ö¶¨
    1.NPC³É³¤µÈ¼¶£¬³É³¤µÈ¼¶¾ö¶¨³É³¤ÊôÐÔ£¬Óë³É³¤±í½áºÏʹÓÃ
            ¿ÉÉèÖõØÍ¼NPCµÈ¼¶¶¯Ì¬³É³¤£¬µ«ÊÇÒѾ­Ë¢Ð³öÀ´µÄNPCµÈ¼¶²»±ä£¬¶¯Ì¬µÈ¼¶±ä¸üºóˢеÄNPCµÈ¼¶²Å»áʹÓÃ×îеȼ¶
            
    2.Íæ¼ÒÈËÊýÒòËØ£¬¾ö¶¨NPCÊôÐԵĶîÍâ³É³¤ÏµÊý£¬¿Éµ¥¶ÀʹÓ㬻òÕߺÍ1Ò»ÆðʹÓÃ
            ¿ÉÉèÖÃÂíÉÏË¢ÐÂNPCÊôÐÔ
            ³ýѪÁ¿Í⣬ÆäËûÊôÐÔ»á¸ù¾Ý¶¯Ì¬ÒòËØÖ±½Ó±ä¸ü
            ÑªÁ¿»á¸ù¾ÝѪÁ¿°Ù·Ö±È¶¯Ì¬±ä¸üÖÁÏàÓ¦µÄ°Ù·Ö±È
    t NPCStrengthenNisCNPCÅäÖÃÁ˰´Íæ¼ÒÈËÊý³É³¤ÀàÐÍ£¬µ«ÊÇÎÞ·¨»ñÈ¡µ½¶ÔÓ¦µÄÍæ¼ÒÈËÊý£¡npcID=%siiisSNPCÅäÖÃÁ˳ɳ¤µÈ¼¶ÀàÐÍ£¬µ«ÊÇÎÞ·¨»ñÈ¡µ½¶ÔÓ¦µÄ³É³¤µÈ¼¶Öµ£¡npcID=%s,lvStrengthenType=%stLVsSet%st
FightPowertMaxHP(ii(&tGetNPCIDt IpyGameDataPYtGetIpyGameDataNotLogRt    GetGameFBtGetIsStrengthenByPlayerCounttGetGameFBDictByKeyRtDef_FB_NPCStrengthenPlayerCnttErrLogtGetLVStrengthenTypet GetGameWorldtGetGameWorldDictByKeyt ShareDefinet"Def_Notify_WorldKey_WorldAverageLvtDef_FB_NPCStrengthenMaxLVtDef_FB_NPCStrengthenAverageLVtFBLogictGetFBNPCStrengthenAttrtGetNPCStrengthenAttrDicttupdateRtSetCurLVR tGameObjtGetMaxHPtGetHPtitemsRR tSetMaxHPtmintDef_UpperLimit_DWordtgetattrtSetHPtintt Notify_HPExtNotify_MaxHPEx(RtisReborntisDyntnpcIDtstrengthenIpyDatat strengthenLVtstrengthenPlayerCnttgameFBtlvStrengthenTypet npcFBAttrDicttattrDicttbefMaxHPtbefHPtattrKeytstrengthenValuetaftMaxHPtaftHP((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoNPCAttrStrengthenvsh
 
ic>CsX| r| riStjƒj|ƒ}|s1iStjdƒ}|sJiSi}|t}|t}|t}    |jƒt    j
|j ƒ}
|rS|s¬t j d|ƒ}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.ƒ}*|j/ƒ}+|j0ƒ},|j1ƒ}-|j2ƒ}.|j3ƒ}/|j4ƒ}0t5t6j7d|dƒƒ}1t5t6j7d|dƒƒ}2t5t6j7d|dƒƒ}3xM|D]E\}4}5t8t5t6j7d    |4|5ƒƒƒ}6|6t9ƒ|4<|6||4<qæW|0rSt8|$|0d
ƒ|d <qSn|rTtj:ƒj;ƒ}7t<j=|7ƒ}8|    j>|7iƒ}9|9 r¬|8|    kr¬|    |8}9nx¥|9j?ƒD]”\}4}:|4|krÞ||4};nF|4d kró|
};n1d |4}<t@||<ƒsq¹ntA||<ƒƒ};tjB|:|dƒ}=t8|;|=ƒ||4<q¹Wn|S(NtNPCAttrStrengthenR/tNPCParam_AtkReplyCoefficienttAtkReplyCoefficienttNPCParam_MonterHurtt
MonterHurttNPCParam_LostHPPerSecondtLostHPPerSecondsNPCStrengthen_%sgˆÃ@R1R2sGet%si(CRt GetGameDatatFindNPCDataByIDt ReadChConfigtGetEvalChConfigtNPCAttr_ParamDicttNPCAttr_AttrStrengthenListtNPCAttr_PlayerCntCoefficienttGetHPExR>tDef_PerPointValueRIR4R5t PlayerControltGetPlayerLVIpyDataR(R*t
GetReMaxHPtGetReAtktGetReDeftGetReHitt    GetReMisst GetReAtkSpeedtGetReSkillAtkRatetGetReDamagePertGetReDamReducetGetReIgnoreDefRatetGetReLuckyHitRatet GetReLuckyHittGetReBleedDamaget GetReIceAtkt GetReIceDeft GetRePetAtktGetRePetSkillAtkRatetGetRePetDamPertGetReFinalHurttGetReFinalHurtReducetGetRePotionReplyt GetRePotionCDtGetReFightPowert
GetHitTimetGetDefCoefficienttGetAtkCoefficienttGetAdjustCoefficienttGetAtkIntervalt
GetHitRatet GetMissRatet GetMonterNumtGetIceAtkCoefficienttGetIceDefCoefficienttGetMaxEnduranceTimetGetFightPowerCoefficienttevaltFormulaControltGetCompileFormulaRPtlocalstGetMaptGetMapIDtFBCommontGetRecordMapIDtgetRJRRNtGetDictValueByRangeKey(>RURWRXRVtnpcDatatattrStrengthenInfoR\t    paramDicttattrStrengthenListtplayerCntCoefficientt    baseMaxHPtplayerCurLVIpyDatat SkillAtkRatet    FinalHurttReMaxHPtReAtktReDeftReHittReMisst
ReAtkSpeedtReSkillAtkRatet ReDamagePert ReDamReducetReIgnoreDefRatetReLuckyHitRatet
ReLuckyHitt ReBleedDamagetReIceAtktReIceDeftRePetAtktRePetSkillAtkRatet RePetDamPert ReFinalHurttReFinalHurtReducet RePotionReplyt
RePotionCDt ReFightPowertHitTimetDefCoefficienttAtkCoefficienttAdjustCoefficientt AtkIntervaltHitRatetMissRatet    MonterNumtIceAtkCoefficienttIceDefCoefficienttMaxEnduranceTimetFightPowerCoefficientRfRhRjR_tstrengthenFormatR`tmapIDt    dataMapIDtplayerCntAttrCoefficienttcoefficientDictt    attrValuet attrFuncNamet coefficient((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRDÌs¬
 
 
                                      "         
ic    9 Csh|stj|ƒ}nd}    d}
d} i} i} |dkrÕgg}}tjddƒ}tjddƒ}tjddƒ}tjdƒ}i}x8|jƒD]'\}}x|D]}|||<qºWq§Wnxk|jƒD]]\}    }t||    ƒ}t||ttj    ƒƒ}||}|
||7}
x
t
d|dƒD]õ}|dk}t |||    d|ƒ}|s|qFn|\}} }!}"| |!|"7} xœ|D]”}|dkrt j ƒj|ƒ}#|#sÖq£n|#jƒ}$|j|ƒ}||krºtj|#ƒrD|$|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|ƒqn| j|dƒd| |<| j|dƒ| |<q£WqFWqâWx?|D]7\}}%}&| j|dƒ|%|| |<|&| |<qJWd}'g}(g})xD| jƒD]6\}}%t j ƒj|ƒ}#|#sÑq¤n| j|dƒ}&tj|#ƒrWxÀt
|%ƒD]Q}*tj|d |&ƒ}+|+rÿ|'d7}'|(j|+ƒ|)jtj|+ƒƒqÿqÿWn^|'ttj|%t|#jƒƒƒƒ7}'|(j||%|&gƒ|)jtj||%|&gƒƒ|s¤tj|tj|%|gƒq¤q¤W|rø|\},}-}.d}/|j ƒ}0t j!ƒ}1xGtj"D]Ö\}2}3|,|2}4|-|3}5|1j#|4|5ƒsSqn|/t$|(ƒdkrmPn|(|/}+|/d7}/t%|+t&ƒr·|+\}}%}&tj||%|&ƒ}+n|+sÃqnt'j(|4|5|+d tj)|0gd |    d|.ƒqWnc|s|'tj*|t+j,|'ƒkr—g}6xM|(D]E}7t%|7t&ƒrN|6j|7ƒq)|6jtj-|7ƒƒ|7j.ƒq)Wtj/||j ƒg|6d| ƒnÄtj0t1i|    d6g}8xj|(D]b}7t%|7t&ƒr|7\}}%}&tj2|||%|&t+j,gd|8ƒq·tj3||7d|8ƒq·W|
r<tj|ƒj4|
ƒn| r[tj5|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£¬¶à±¶¸½¼ÓÎïÆ·
    iitSealDemonDoubleDropiitJobItemDropSetstisKillCountDropEquipExs4    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·²¿Î»: itemID=%s,itemPlace=%ss4    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·ID¼¯ºÏ: itemID=%s,itemKey=%ss%    ¶à±¶½±Àø²»ÄܸøµÄÎïÆ·ID: itemID=%stisBindt    ownerInfot    dropNPCIDt isOnlySelfSeetsilvertNPCIDteventN(7RttGetPlayerExpRateR4tGetFuncEvalCfgRJt    GetNPCExpRPtfloatRtDef_MaxRateValuetxrangetGetNPCDropInfoRRktGetItemByTypeIDt GetEquipPlaceR¡t
ItemCommont
GetIsEquiptDebugLogRtappendt ItemControlertGetOutPutItemObjt GetJsonItemtmathtceilt GetPackCountt PlayerSuccesstDoAddSuccessProgressR>tSuccType_PickUpItemt GetPlayerIDRtDef_DropItemAreaMatrixtCanMovetlent
isinstancetlisttChItemtAddMapDropItemtDef_NPCHurtTypePlayertGetItemPackSpacet IPY_GameWorldtrptItemtGetMailItemDicttCleart SendMailByKeytItemGive_NPCDropR tGivePlayerItemtDoLogic_PutItemInPacktAddExpt    GiveMoneytTYPE_Price_Silver_Money(9t    curPlayerRÐt npcCountDicttexp_ratet mailTypeKeytisMailt extraItemListt prizeMultipletdropItemMapInfoRUttotalExpt
totalMoneyt itemCountDictt itemBindDictthadDropItemKeyListthadDropItemPlaceListtmPrizeItemIDListtmPrizePlaceListtmPrizeItemKeyListt itemKeyDictt itemIDKeyDicttitemKeyt
itemIDListtitemIDtcounttbaseExptaddExpt
totalCounttdCountRÙtdropInfot
dropIDListtdropIDBindDictt dropMoneyCntt
moneyValuetitemDatat    itemPlacet    itemCountRÚt    needSpacet prizeItemListt jsonItemListt_tcurItemtdropPosXtdropPosYRÝtindextplayerIDtgameMaptposXtposYtresultXtresultYt mailItemListt    prizeItemRà((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGiveKillNPCDropPrize9sì    
                  "
  )#  
 
 
 
!$ % 
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( R4tGetIpyGameDataListNotLogRRìRR<R=R>R?Rút GetMaxWorldLV(RUt ipyDataListtipyDropt
maxWorldLVt
curWorldLVtipyData((sV.\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(.RHRt GetMaxDropLVRRìR÷RkRltGetIsDropJobSelftGetJobR4RâRttGetDropEquipPertGetDropEquipDoCounttGetCanDropRatePlustpowRRåtGetPieRateDoCnttGetPieRateDropt__GetNPCDropDoCountChangetGetPlusPieListt    CanHappenRít
GetFuncCfgtGetEquipStarInfoR:RætGetResultByRandomListR¡tDef_Quality_OrangeRJt__GetEquipIDListtrandomtchoicetGetItemIDDropRatetGetItemIDMaxDropCounttDef_NPCMaxDropRatet__RemoveMutexDropIDt
IsGameBosst__GetNPCDropItemBindInfotGetDropMoneyDoCnttGetDropMoneyRatetDef_NPCMapDropRatet__GetDropMoneyValue(9t
dropPlayerRÐRUt    killCountRDtplayerLVt    maxDropLVR7R£R(t itemJobListtequipDropRatePlustequipDropDoCountPlustdropRatePlusValuet
doCountAddt doCountRatetdropEquipInfoListt pieRateDoCnttpieRateDropListt dropRateListtpreRatetmaxRatetrateInfotratet    equipInfotcurRatetclassLVtcolortplaceKeyt    totalRatet    dropCounttrateExt    placeDicttdropEquipIDDicttcolorStarRateDictt starCountDictt    placeListtcolorStarRateListR2tstartcurStarDropCounttrandEquipIDListt
randItemIDtitemIDDropRateDicttitemIDDropMaxCntDictR!tdropRatetdoCntt
isGameBossR)tdropMoneyDoCntt dropMoneyRatetmoneyTotalRateR*t    dropMoneytdropIDCountDicttdropID((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCDropInfoTJGsô    -                  
 
 
 
 
        
 
! 
     /  
 
 
 
                  c[Cs- |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=|%}|rt|$rt||$dkrt|$\}&}'}(})}*nX|r¨|%r¨||%dkr¨|%\}&}'}(})}*n$dddgdf\}&}'}(})}*|&}+|)rûtj'|)dƒ},|)dd}-n d},d}-|*|#krgn|#|*}.d}/d}0t)}1gg}2}3x¿|D]·}|j*ƒj+t,j-ƒ}4|'rš|(rš|.ršxt.|4j/ƒƒD]}5|5|.kr¤qŒn|4j0|5ƒ}6|6j1ƒrÅqŒnt2j3|6ƒ}7|6j4ƒ}8|6j5ƒ}9t2j6|6ƒ}:|7|'krG|8|(krG|9|-krG|2j |8|7|9|:|5|j ƒgƒqŒ|7|'ksk|8|(ksk|9|-krŒ|3j |8|7|9|:|5|j ƒgƒqŒqŒWn|jtj|ƒd};|;|+krItj7|tj||;ƒtjd    ||;|+f|jƒƒqIqIW|2j8ƒ|3j8ƒ|rgtjd
|t9|2ƒ|2f|ƒtjd |t9|3ƒ|3f|ƒn|2ss|3r‹tj$d dƒ}<|<r×|2|37}2|2rˆ|2dd }/|2dd}0tjd|/|0f|ƒqˆq‹tj$d dƒ}=t9|2ƒ|=kr|2|37}2ntjd|=|ƒt:j;dt9|2ƒdƒ}>tjd|>|2f|ƒ|2|>d }/|2|>d}0tjd|/|0f|ƒn|rÃtjd|||&|'|(|,|-|/|0f    |ƒni}?|j<ƒ}@i}Atjddƒ}B||Bkr|B|}Atjƒjtj=ƒ}Cni}D|j>ƒ}ExN| D]F\}F}G}H|G|Ekr«|E|G}I|Dj?|Gdƒ}J|J|Ikrštjd|G|If|ƒq7n|Jd|D|G<n|(|Gkrd    |'rd    |,dkrd    |/rd    |1 rd    t@}1tA||'|(|.|,|0g|/ƒ}K|Ks        q7nt:jB|Kƒ}L| j |Lƒ|(|*g|?|L<tjd||L|'|(|/|,|0|Kf|ƒq7|H|#kr    tjd||Hfƒq7n|#|H}M|G|@krà    |@|G}N|ArË    tC|G|N|A|Cƒ}Nntj'|Ndƒ}On|GtjDkrø    d}Ond}OtA||F|G|M|O|ƒ}K|Ks%
q7nt:jB|Kƒ}L| j |Lƒ|G|Hg|?|L<tjd||L|F|G|O|H||Kf|ƒq7W|1 r+ |'r+ |(r+ |,dkr+ |/r+ tA||'|(|.|,|0g|/ƒ}K|Kr+ t:jB|Kƒ}L| j |Lƒ|(|*g|?|L<tjd||L|'|(|,|/|0|Kf|ƒq+ n| tE|||||ƒ7} tF| tj$ddƒƒ} tjG|
ƒ}PtH||P| |?ƒ} |rF tjddƒ}Q||Qkr |Q|}Rtjƒjtj=ƒ}C|Rj?|Cgƒ}Sg}Tx4|SD]\}U}V|T|Ug|V7}Tqë Wn |jIƒ}Tx(|TD]}W| j |Wƒd| |W<q" Wn| rl tjd|| | f|ƒn|jJƒ}X|jKƒ}Y|YtjLkrœ |X} n?d} x6t.|XƒD](}ZtjM|YtjLƒr¯ | d7} q¯ q¯ W| ró tN||ƒ}n| r |Pr 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=%siRIiiRJs9Íæ¼Ò»÷ɱ´ÎÊý: 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=%sRKis6×îÖÕµôÂäÎïÆ·: npcID=%s,dropIDList=%s,dropIDBindDict=%ssBossûÓеôÂäÎïÆ·,NPCID=%s(ii(ORHR÷RRLRRìRkRlR:tGetKillCountDroptGetKillCountDropItemListRíRMRNR4RâR6R8RtDef_FB_DropDoCountAddtDef_FB_DropDoCountRateRåtNomalDictGetPropertytDef_PDict_NPCKillCountRLRRtRORPRQRRRSRUt__GetNPCPieRateEquipDroptGetIndepRateDoCntt__GetNPCIndepRateEquipDropRXtGetKillCountDropEquipExtGetKillCountDropEquipEx2RZRR tGetItemManagertGetPackRtrptEquipRætGetCounttGetAttIsEmptyRêtGetItemClassLVt GetItemColortGetItemQualitytGetEquipGearScoretNomalDictSetPropertytsortRúR]trandintRYt Def_FB_GradetGetIndepRateMaxDropCountR¡tTrueR\R^t__GetFBGradeColorStarRateListR[t__GetAppointDropItemIDListRbRcRdtGetPriItemIDDropReRfRgRWRh([RiRÐRUtownerPlayerListRDtisSingleRÙR7RkRlR£R(R)R*R+tkillCountDropIDListtkillCountDropInfot needKillCounttisDropInItemPackRÚtkillDropItemListt kDropItemIDRmRYRqRrtdropEquipExKillCountRnRot ownerPlayertownerKillCountRpRsRttindepRateDoCntRƒtkillCountDropEquipExtkillCountDropEquipEx2t tagKillCountt
tagClassLVttagColorttagStarRateListt tagPlaceKeytmaxRecordKillCountttagStart
tagStarMint tagPlaceListttagPlacettagJobttagItemReplaceStatettagPlaceSortListttagPlaceSortList2t playerEquipt
equipIndextcurEquiptcurEquipClassLVt curEquipColort curEquipStartequipGSRjtisOptimalPlacetrandPlaceCountLimittrandPlaceIndexR„R…tgradeColorStarRateDicttfbGradeColorStarRateDicttcurGradetcolorDropCntDicttcolorMaxDropCntDictR}R~RtmaxCountRR‹RŒR‡RˆR‰R‘tfbGradePriItemIDDropDicttgradePriItemIDDropDicttpriDropInfoListt priDropIDListt    priItemIDt priItemCountt    priDropIDR’R“R2((sV.\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    enumerateRúRPRí(R~RˆRßRát newRateListtcommKeytiRyRzR‰tsrcRatetkeytnewRatet starRateListtstarRate((sV.\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 R4RXR¡RRµR RP(RÐR‘R(R„tunBindEquipPlaceKeyListtdefaultMaxBindColortbossDropBindIDListtmonsterDropNoBindIDListtmapDropBindDicttmapDropItemNoBindDicttmapDropItemBindDicttmapDropItemIsBindtmapDropItemNoBindListtmapDropItemBindListR)t
dropItemIDR~RRÚ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRdës:                   cCsO|tjkr/tdt||dƒƒ}n|rKtd||ƒ}n|S(NigˆÃ@(RRåRRP(tdoCountRrRq((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRUs
 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(R(t mutexDropInfot mutexDropListtisMutextmutexIDt curDropIDCntR2((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRb s    c%
Cshg}|jƒ}tjddƒ}|jƒ}|jƒ}    |    r\x|    jƒD]\}
} |
|krmqOn||
} t| ƒ|kr©tjd||
|fƒqOn| t    } | t    } | }|j
|
dƒ}t |||ƒ}x9t |ƒD]+}tj | dt    ƒsqôn|d7}qôW| |d}x!t |ƒD]}|j|ƒq>WqOWn|jƒ}|r›x*|jƒD]\}
} |
|kr™q{n||
} t| ƒ|krÕtjd||
|fƒq{n|
|    krçq{n| t    } | t    } | }|j
|
dƒ}t |||ƒ}x9t |ƒD]+}tj | dt    ƒsSq2n|d7}q2Wx0t |ƒD]"}tj| ƒ}|j|ƒqnWq{Wn|jƒ}|jƒ}tjddƒ}tjddƒ}tjƒ}x}|jƒD]o\}} | sqðn||krqðn|j
|dƒ}||kr±ttjƒƒ}|jtj|ƒ}||d}|||}|dkrÃtjd    |||||fƒqðqÃnt |||ƒ}x™t |ƒD]‹}tj | dt    ƒsñqÐn|j|ƒ||krÐt||gƒ}tjƒjdddd|t|ƒƒtj|||ƒPqÐqÐWqðWxþ|jƒD]ð\}}|\} }!|| kršqpn|jtj |ƒ}"t!t"j#d
||!ƒƒ} tj | dt    ƒ}#|#r|j|ƒtj$||||"| ƒn|#rdn|"d}$t||$gƒ}tjƒjdddd |t|ƒƒqpW|S( NRØis@Ö°ÒµÎïÆ·¼¯ºÏkeyûÓÐÅäÖöÔÓ¦Ö°ÒµID: npcID=%s,jobItemKey=%s,job=%sRxt GlobalDropCDtNPCGlobalDropRatei<isT¸ÃÎïÆ·È«¾ÖµôÂäCDÖУ¬²»µôÂ䣡itemID=%s,cdTime=%s,curTime=%s,lastDrop=%s,remainTime=%ssKilledCntDropRate_%stGlobalDropRate(%RNR4RXtGetItemKeyMaxDropCounttGetItemKeyDropRateJobRJRúRR:RaR¡RURæRWRítGetItemKeyDropRateR]R^R_R`R<RPttimeR=R>t Def_Notify_WorldKey_LastDropTimeRìtstrtGetPlayerManagertGameServer_QueryPlayerResulttDataRecordPacktDR_GlobalDropCDt$Def_Notify_WorldKey_DropNPCKilledCntR™RšR›tDR_GlobalDropRate(%R RURDRrRqtdropItemIDListtjobRØtItemKeyMaxDropCountDicttItemKeyDropRateJobDictt
jobItemKeyRt jobItemListt mustDropCountt canDropCountRR2t    jobItemIDtItemKeyDropRateDictt randJobItemIDRRŽtglobalDropCDDicttglobalDropRateDicttgwR!tcurTimet lastDropTimetcdTimet
remainTimetmsgInfoR't    npcIDListt
rateFormatt    killedCnttisDropt updKilledCnt((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR·6s¸    
 
 
 
 
 
                (    ,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(t
PyGameDatatg_filterEquipDictRRkRtDef_PlaceEquipTypetvaluestFilterItemByTypeRætGetFilterItemCountt GetFilterItemt GetCanNPCDropRêR¬R­R®t GetJobLimitRét GetItemTypeIDtLogRJRRíR:(RUR}R~R‡R‰RmRÐRñtfilterItemIDDicttgameDatat itemTypeListtitemTypeRïR,titemJobR-R t itemJobPlaceR!((sV.\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(RTRRVRæRZRí(RDRt equipDropPlusRsRuRvR2R'((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¡ês cCsž|jƒ}|jƒ}i}tjddƒ}||kra||}tjƒ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 ƒrb|d7}n|snq‡nx!t    |ƒD]}    |j|
ƒq{Wq‡WqtW|S(NRšiii'gˆÃ@Rx(R3tGetIndepRateDropR4RâRR6R8RR³Ræt    iteritemsRúRPRaRWRí(RDRRERUt indepRateDicttgradeColorRateDicttfbGradeColorRateDictRáRsR2R'RzRR~t colorRateListt    colorRateR"t curDropCount((sV.\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úÿ( RBtOnGetNPCDropMoneyR]R²tGetDropMoneyMintGetDropMoneyMaxRRätGetGoldFoundRateR>RåRPtOnGetOuterMoneyRate(R RDt    baseMoneyR+t    addRateExtaddRatetouterMoneyRate((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRh,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_NPCKillCountDropRRkRèR:R<RNRíRtR°( R RUR½R¿t
dropRecordRjt jobDropInfot
isJobLimitRR,RCt recordValue((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRœFs*
 
 
 
cCs>tjddƒ}|dkr"dS|||dkr:dSdS(Niii ièi(R]R²(tcurTicktlastActionTickR*((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytIsInActionTimeps  cCs|jƒtjkrtStS(N(tGetGameNPCObjTypeRt
gnotSummonRµR (R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt IsSummonNPCscCsIxBtd|jƒƒD]+}|j|ƒ}|jƒ}|jƒqWdS(Ni(trangetGetSummonCounttGetSummonNPCAtRR(R Rït    summonNPCtangry((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytClearSummonAngry_PlayerŠs cCs)|jƒ}|dkrdStj|ƒS(N(tGetOwnerRRt GetObjDetail(RetcurSummonOwner((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSummonOwnerDetel”s  cCs3t|ƒ}|stS|jƒtjkr/tStS(N(tGetNpcObjOwnerDetailR tGetGameObjTypeRt    gotPlayerRµ(tnpcObjt ownerDetail((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNpcObjOwnerIsPlayer¢s  cCsU|jƒ}d}|tjkr0t|ƒ}n!|tjkrQtj|ƒ}n|S(N(R_RRR`RktgnotPett
PetControlt GetPetOwner(Rot
npcObjTypeRp((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRl³s cCs±|dkrdSt|dƒsN|jtjƒ}|rJtj|tjƒSdS|j    ƒ}|dkrjdStj|j
ƒ|ƒ}|dkr­|tjkr­|j ƒr­dS|S(NRh( RRt GetDictByKeyRt!Def_NPC_Dict_SummonMapNPCPlayerIDRtGetObjRRnRhtGetIDR«(t
curobjTypet    curSummontsummonPlayerIDRjtcurSummonOwnerDetel((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetSummonNPCOwnerÇs   '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    GetPosObjRbt GetObjCountt GetObjByIndexRGRIRmRRn(
RtmatrixR8tsrcPosXtsrcPosYtcurPlayerCounttcurPostmapObjRïtcurObj((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetPlayerCountInSightByMatrixès     "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(tGetInSightObjCountRbtGetInSightObjByIndexRt
GetVisibleR RmRRnR«RGRIRRxRyRí(RtplayListt seeObjCountRïtseeObjt
seeObjTypet curTagPlayer((sV.\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ŒRbRRRŽR RmRRnR«RGRIRyRítGetTeamRRxt    GetTeamID( R Ret    checkTeamRtseePlayerCountRïR‘R’tseeObjIDt curPlayTeamR“t
curTagTeam((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetInSightPlayerList_SummonNPC4s@        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µRbRŒRRRGRIRŽRt    IsSameObjtGetDistRR€RxRyRmR>R3t AttackCommontCheckCanAttackTagt
BaseAttacktGetTagRelationRtType_Relation_EnemyR ( Rt    checkDistt
checkCountttickR"RäRïR‘ttagDistt seeObjDetailtrelation((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt&CheckCanAttackTagLimitCountInSight_NPCrs<  0  
cCs
tjƒS(N(tGameLogic_FamilyInvadetGetDefaultMaxAngryNPCIDList(((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¬ÏscCs9|jƒtjkrdS|jƒs5|jtƒndS(N(t GetCurActionRtlaNPCDietGetIsNeedProcessR
Rµ(R((sV.\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
GetAtkDisttGetSkillManagerRbt GetSkillCounttGetSkillByIndexRíR(RtdistListt skillManagerR6tskill((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCMaxAtkDistës 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_RRrt GetPassiveBufRµtGetActionBuffManager(Rt getActionBufft getAuraBufftbuffRefreshList((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetNPCBuffRefreshLists$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 GetOrgSpeedRtmtRuntSetCurMoveTypeRPRvRtDef_NPC_Dict_SpeedPertSetSpeedtmtSlowtmtNormalRR:R3(Rt changMoveTypetchangeSuperSpeedt curNPCSpeedtcurNPCBaseSpeed((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytChangeNPCMoveTypes*   ) #cCsàtjƒjƒ}|sdStjƒjƒ}|j|ƒ|j||ƒ|j|ƒ|dkrt|j|ƒnt    |ƒ|dkrš|j
|ƒn|dkr¼|j t j |ƒntj||ƒt|||ƒ|S(Ni(Rt GetNPCManagertAddPlayerSummonNPCR<tGetTickt SetNPCTypeIDtRebornt SetBornTimet    SetAITypeRt SetLastTimetSetDictRRwRBtDoFBRebornSummonNPCt__NotifyMapPlayerSummonMapNPC(tnpcIdtrebornXtrebornYtaiTypetlastTimeR7R{R¦((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt SummonMapNpcGs"   
  cCs‰tjƒ}|jƒ||_||_||_tjƒ}xEt|j    ƒƒD]1}|j
|ƒ}|sqqPnt j ||ƒqPWdS(N( tChPyNetSendPackttagMCSummonMapNPCRRßtPosXtPosYRtGetMapCopyPlayerManagerRbtGetPlayerCounttGetPlayerByIndext NetPackCommont SendFakePack(tsummonIDt
rebornPosXt
rebornPosYtmapNPCt playerManagerR6R ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÜds 
             c Csg}|jƒ}x6t|jƒƒD]"}|j|ƒ}|j|ƒq%Wx|D]}t|ƒqRW|jƒtjkr |j    ƒtj
kr t j |ƒn|j tjƒ}|dkrÔ|jtjdƒntj|ƒrÊtjd|ƒ}|rÊ|jƒtjkrÊtjƒjƒ}tjƒjƒ}    |d||    g}
tjƒjddddd|
tt|
ƒƒƒtj|} tjƒj | dƒtj!ƒj"tj#|tjƒj$ƒƒqÊnt%j&|ƒt'j(|ƒ|j)|j tj*ƒ|j tj+ƒ|j tj,ƒƒdS(NitBOSSInfotGameWorldBossStates%s(-R3RbRcRdRít    SetDeadExRmRtgotNPCR_R`RBtDoFB_SummonNPCDeadRvRRwRÚRcR4R5RžtDef_FBMapID_SealDemonRRR<t    GetLineIDRRRúRR>t'Def_Notify_WorldKey_GameWorldBossReborntSetGameWorldDictR6t SetGameFBDicttMap_NPC_WorldBossDeadTickRÔRŸtClearTeamPlayerHurtValuet BossHurtMngtClearHurtValueListtSetDeadtDef_NPCDead_ReasontDef_NPCDead_KillerTypetDef_NPCDead_KillerID( Rt summon_ListtnpcidR6t curSummonNPCReR|RGRÐtlineIDtmsgListtbosskey((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRóws<    /  cCsbd}tjƒjƒ}t||||||gƒ}tjƒjdddd|t|ƒƒdS(NitKillGameWorldBoss(RRRžRRRRú(tbossIDt
killerNamet    hurtValuetisNotifyt isAddKillCntRÐtkillMsg((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGameServer_KillGameWorldBoss§s
(t
NPCControlcBsGeZdVZd„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@„ZFgdA„ZGdB„ZHdC„ZIdD„ZJdE„ZKdF„ZLdG„ZMdH„ZNdI„ZOdJ„ZPdK„ZQedL„ZRdM„ZSdN„ZTdO„ZUedP„ZVdQ„ZWdR„ZXedVdS„ZYdT„ZZdU„Z[RS(WcCs:||_d|_d|_d|_i|_g|_dS(N(t_NPCControl__InstanceRt_NPCControl__MaxHurtPlayert_NPCControl__LastHurtPlayert_NPCControl__Killert_NPCControl__AllKillerDictt_NPCControl__FeelPlayerList(tselftiNPC((sV.\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(    RRR€tabsRRRùtGameMaptGetEmptyPlaceInArea(RtdestXtdestYtdisttfixPosRR9R:tdirXtdirYt    moveDestXt    moveDestYR8t    resultPos((sV.\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(    RRR€RtPosInLineByDistRRùRR( RtplayerXtplayerYR R!RR9R:R$R%R8R&((sV.\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(RRRxR>tGetNametMoveToObj_Detel(RtobjIDtobjTypeRt tagObjDetel((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt    MoveToObj÷s      icCs•|j}|jƒ|jƒ}}tj||||ƒ}||kr|dkr|||||}|||||}n|j||ƒdS(Ni(RRR€RRžtMove(RtdestPosXtdestPosYt sigleMoveDisRtcurPosXtcurPosYtcurDis((sV.\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°(RtOperControlManagertIsObjCanDoActionRtDef_Obj_ActState_ServerActRtoalMoveRR€RR±tGetRefreshPosCounttGetRefreshPosAttGetCurRefreshPointIndexRRžt GetMoveDisttMoveBackR+RRR­t    laNPCMoveR<RÔt GetActionTickt
SetDestPosRÑRÌR2( RR0t moveAreaDistRR9R:RRt curRefreshPostmoveDistR$R%R&((sV.\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(RR:R;RR<RR=RRRR€RR R‚RæRƒRmRôRxRyR_R`RhRLR±RRR2Rµ(RR9R:t fixAreaDistRR8tnpcPosXtnpcPosYR‰RïRŠt
curObjTypetcurTagR&R$R%((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt    FixTagPosasD             9   cCs|j}|jƒ}|jƒ}tj||ƒ}|dkrFtjS|jƒdkr_tjStj    |||jƒ|jƒƒS(Ni(
RRR€RRxRRtDef_NPCErrorMaxDistRyRž(RttagIDttagTypeRR9R:ttagObj((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetTagDistŸ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 ²éÕÒ¶ÔÏó, »ñµÃ¶ÔÏóʵÀýʧ°Ü(RRmRtgotItemR RRRyRt FindNPCAngryRt GetAngryValueRxR>R3t_NPCControl__GuaedAttackTruckRµRŸtCanAttackByPathR R¡R¢RR£(
RR‘R¦RR’R™tnpcAngryt
angryValueR¨R©((sV.\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(RtGetTypeRtntGuardRmRôR_t    gnotTruckRÅR¡t GetCanAttackRR¢RR£Rµ(RR‘R¦RR©((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GuaedAttackTruckís    +cCs.|j}tj|ƒ r*t|ƒ r*tStS(N(RRRcR&R Rµ(RR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetIsBossView    s    cCs|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(-RR t
GetAtkTypeRtGetAngryValueTagt_NPCControl__IsValidAngryObjRRt GetMapFBTypeRžRaRŸR R4RâRtfbtNullRXtGetAttentionPlayersCountRbtGetAttentionPlayerByIndexRRGRIRŽt _NPCControl__CheckAddToAngryListRžRR€tGetSightRtDef_NPCFirstSightAngryValuetDef_Screen_AreaRmRntGetAngryNPCCounttDef_NPC_SeePlayerAddAngrytAddObjToAngryListRµR?R@RŒRRctGetIsInRefreshPoint(RR¦t
isUpdAngryRt
needResorttcurAngrytmapTypeRÐt recordMapIDtmapAngryNPCCountDicttangryNPCCountLimitR˜RïR‘R t addAngryValuet refreshPoint((sV.\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( RmRRôR\tntFairyRt GetSkillAngryRnRtt GetAddAngryRp(RtobjDetelR tuseSkilltaddAngry((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytAddObjDetelToAngryList_ByAttack‚    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|
||||ƒ|jƒdkr(|jƒ r(|jt ƒnt S(Niis,NPCÌí¼Ó¶ÓÎé³ðºÞ: teamID=%s,plusAngryValue=%ss%    i=%s,playerID=%s,addAngryValue=%s(!RRRR RŸtCheckObjCanDoLogicRmRyt_NPCControl__CheckCanAddAngryRRRnR$RtDropOwnerType_MaxAngryRxR–tGetTeamManagertFindTeamtFixValueByValueExt
GetMaxHPExRRRìRætGetMemberCountt    GetMemberR÷t_NPCControl__AddAngryValueRIR¯R
Rµ(RRŠtplusAngryValuetcanPiletcheckRRLtcurObjIDt addAngryTeamR RYRït curTeamPlayert teamPlayerIDRy((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRp¢    s@      $   cCsv|j||ƒ}|dks0|jƒdkrF|j|||ƒn,|rr|jt|jƒ|tjƒƒndS(Ni(RURRVtAddAngryt SetAngryValueRLRRM(RRYRRLRRŽRZ((sV.\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(RRRxR>R R¡R¢RRR£R_RR`RµRyRôR~RnRRŸtCheckPlayerAttackMode_Player(    RRRLRt curObjDetelR©t curNPCDetelt curNPCOwnert curObjOwner((sV.\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("RRR¬R R?R@Rbt GetAngryCountRdtGetObjIDt
GetObjTypeRRxt DeleteAngryRµRRôR3RŸR RqRR€RžRkRÅt CanSeeOtherR¸tGetNPC_Is_GateR¡R¢RRR£(RR¦RRYtdefaultMaxAngryNPCIDListRsRzRïRZtangryIDt    angryTypeRŠR R©((sV.\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(RRtGetLastResortTickR¦R{tGetMaxAngryTagRRGRIR&RÅRBtResorttSetLastResortTick(    RR¦trefreshIntervalRrRRYtlastTickt removeRsortRs((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRefreshAngryList~
s      4  cCs^|j}|jƒ}xBtd|jƒƒD]+}|j|ƒ}|j|ƒsUq+n|SWdS(Ni(RRRbRRdReR(RRt angryManagerRïRt((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¨¡
s     cCsR|dks|jƒdkr"dS|jƒ}|dkr>dS|jƒrNdS|S(Ni(RRžRVt GetIsDisable(RRtt curAngryValue((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__IsValidAngryObj¶
s   cCs#|j}|jƒ}|jƒtS(N(RRRRµ(RRRt((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt ClearNPCAngryÊ
s     
cCs#|j}|jƒ}|jƒtS(N(RtGetPlayerHurtListRRµ(RRt npcHurtList((sV.\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(
RttGetPlayerLeaveServerTicktGetPlayerLeaveServerPosRRìR RtDef_PlayerOfflineProtectTimeRqRµ(RRzR7R¦t    leaveTicktleavePos((sV.\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 RqRR€RRìR–RItGetPlayerActionRtpaDieRŸRtDef_Player_Dict_DeadTimeRR4RX(Rt
hurtPlayerRzthurtIDR¦tdeadTime((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__IsClearPlayerHurtï
s ! '"c CsRg}tjƒ}tjƒjƒ}tj|ƒ}xø|D]ð}|j|ƒ}    |    r|    jƒ|krmq:n|    jƒdks”|    jƒt    j
krÑ|    j t j ƒ}
tjƒ|
tjddƒkrÑq:qÑn|j|    jƒ|    jƒ|ƒr*|j|ƒq*q:|j|||ƒr:|j|ƒq:q:W|sNtjd||fƒn|S(NiR½isOÉËѪ¶ÓÎéûÓлî×ŵĶÓÔ±ÔÚbossÇøÓòÄÚ£¬Çå³ý¸ÃÉËѪ!teamID=%s,mapTeamPlayerIDList=%s(RRR<t GetCopyMapIDt
PlayerTeamtGetMapTeamPlayerIDListtFindPlayerByIDRIR¿RRÀRŸRRÁRR4RXRqRR€RíR¾Rì( RRztteamIDR¦tteamHurtPlayerIDListt    playerMgrt    copyMapIDtmapTeamPlayerIDListR7R’RÄ((sV.\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(%Rt    GetIsBossR$RtDropOwnerType_MaxHurtR´Rvt Def_NPC_Dict_LastRefreshHurtTickt GetHurtCountt _NPCControl__GetAtkObjByHurtListRÚR?R@Ræt    GetHurtAtt GetValueTypet
GetValueIDt GetHurtValueRÿRRxRRnt_NPCControl__IsClearPlayerHurtRR–RìRŸt AddHurtValuetDef_NPCHurtTypeTeamt'_NPCControl__GetTeamHurtNPCPlayerIDListRRžtIsMapNeedBossShuntt_NPCControl__UpdBossShuntInfotSorttDef_NPC_Dict_InHurtProtect(RR¦R«RRµthurtPlayerDictRzt    hurtCounttisInHurtR6thurtObjthurtTypeRÃR RÂRÊRËt    tPlayerIDRÐ((sV.\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( RR3RR<R÷R4tg_bossShuntPlayerInfoR¡R RJRµRìtGameServer_WorldBossShuntInfo(RRÐRáR¦RRURRñtshuntPlayerDictt shuntChangeR7t    shuntInfoR
RÊt relatedTickt    newTeamID((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__UpdBossShuntInfon sP        
               $ cCsXxQt|jƒƒD]=}|j|ƒ}|j|tƒ\}}|sL|r|SqWdS(sÙµÚÒ»¸ö¿É¹¥»÷µÄ×î´óÉËѪ¶ÔÏó£¬Ò²ÊÇʵ¼ÊµÄ¹éÊôÕß»ò¶ÓÎé
        ÒòÎªÍæ¼ÒÉËѪµôÏß¡¢ËÀÍöÓÐÒ»¶¨Ê±¼äµÄ±£Áô»úÖÆ£¬¹Ê×î´óÉËѪ²»Ò»¶¨Êǿɹ¥»÷Ä¿±ê(¹éÊôÕß)
        ×¢Òâ: ¸Ã¹æÔò±ØÐëÓë×îÖÕËã¹éÊôµÄ¹æÔòÒ»Ö£¬²»È»¿ÉÄܵ¼Ö¹éÊô´íÂÒ
        N(RæRÓRÕt_NPCControl__GetTagByHurtObjRµ(RRµR6RäR tcurTeam((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetAtkObjByHurtList£ s  cCs|j}|jtjƒS(s¯NPCÊÇ·ñÉËѪ±£»¤ÖÐ
        ÒòΪÊÖÓαȽϻá³öÏÖÍøÂçÇл»µÄÇé¿ö£¬´Ëʱ»á¿ÉÄÜ»áÒýÆðµôÏßÖØÁ¬
        ËùÒÔÕë¶ÔÊÖÓÎ×öÁ˵ôÏß3·ÖÖÓÄÚÉËѪ±£»¤£¬·ÀÖ¹Íæ¼ÒÖØÁ¬ºóÉËѪ±»Çå¿Õ£¬ÌåÑé²»ºÃ£»
        (RRvRRà(RR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytIsInHurtProtect² s    cCs@|j}t|t|ƒ}x|D]\}}|jƒq"WdS(N(RRÃRµR(RtisClearAuraBuffRRÂt    buffStatet    canPileup((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt ClearAllBuff¿ s
    cCs%|jƒ|jƒ|j|ƒtS(N(R³R¶R÷Rµ(RRô((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__ClearNPCAllStateÍ s
 
 cCsQ|j}|jtƒ|jƒ|jƒ|jd|ƒ|sM|jƒntS(NRS(Rt_NPCControl__ClearNPCAllStateR t_NPCControl__InitNPCSummont_NPCControl__NormalNPCInItCDtRefreshNPCStateRQRµ(RRSR((sV.\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(    Rt SetAttackTicktSetUseSkillTickR²RbR³R´RtSetLastUseTick(RRt curNPCManagerRït curNPCSkill((sV.\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(RRbRcRdRíRó(RRtcurNPC_Summon_ListR6ReR((sV.\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(RtGetCurPatrolIndextGetPatrolPosAtRR€RÄRRËRÑRÇR2R^RDtGetPatrolPosCounttSetCurPatrolIndex(    RR¦Rt patrolIndext    patrolPost
patrolPosXt
patrolPosYt curNPC_PosXt curNPC_PosY((sV.\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(RRt_NPCControl__PatrolMoveR?R@RLt GetMoveAreaRR€tGetAreaRRBR^RDR]R²RÑRRËRRt LineNearToPosR2(RR¦RtPosMaptmoveAreaR9R:t minMovePosXt maxMovePosXt minMovePosYt maxMovePosYtposMapXtposMapYt
posMapAreatnewPoint((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoNormalNPCMoveQ sD       
 
 
 
 
 
cCstj|jƒƒS(N(Rt GetPsycoFunct)_NPCControl__Func_GetRandPosInRefreshArea(R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytGetRandPosInRefreshArea scCs‰|j}|j|jƒƒ}|jƒ}|jƒ}|jƒ}tj|||ƒ\}}|dkr|dkr||gS||fS(Ni(RR?R@RR€RRtGetNearbyPosByDis(RRtposMapRRRR9tpoxY((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__Func_GetRandPosInRefreshArea— s       
cCs™|j}|j|jƒƒ}|j|jƒ|jƒ|ƒrCtS|jƒtj    kr•|j
ƒtj kr•|j|j ƒ|j ƒ|ƒr•tSntS(N(RR?R@RqRR€RµR­RRCRÄRÇt GetDestPosXt GetDestPosYR (RRRz((sV.\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 RRAR€Rµ(RR6R7Rz((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRqÅ scCs³|j}|jƒ}|dkratjd|dƒ}|j|ƒ}|jƒ}|jƒ}n|jƒ\}}|jƒsŒ|j    ƒnt
|t j t ƒ|j||ƒdS(Nii(RRR]R²RRR€R"RóRýRÑRRÇRµR2(RRt patrolCountR
R R9R:((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRBÖ s         cCsb|j}|jtjd|jƒdƒƒ|jƒ\}}|j||tƒ|j|ƒdS(Nii(    RtSetCurRefreshPointIndexR]R²R>R"RÖR tDoNPCRebornCommLogic(RR¦RR9R:((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt DoNPCRebornõ s     # c     Csý|j}|jtƒtj|tj|ƒƒ|jƒj|ƒ|jƒ|j    t
j dƒ|j    t
j dƒt j|ƒtj||ƒ|jƒ}t
j|ƒr0tjd|ƒ}|r0tjƒjƒ}tjƒjƒ}|d||g}tjƒjddddd|tt|ƒƒƒq0n|jƒ}x t|j ƒƒD]Œ}    |j!|    ƒ}
|
s}|
j"ƒdkrPn|
j#ƒt
j$krœqOntj%d|j&ƒ|jƒ|
j'ƒfƒt(j)||
|ƒqOW|j*ƒ|j+||ƒdS(NiRñiRòs%ss/NPC¸´»î£¬Ì×ÉϹ⻷: objID=%s,npcID=%s,skillID=%s(,RRýRµRGRORHRRªt RebornNotifyRÚRtDef_NPC_Dict_HPPerLogicMarkt!Def_NPC_Dict_RebornPreNotifyIndextChNPCt OnNPCRebornRBt DoFBRebornNPCR3RcR4R5RRRžR<R÷RRRúRR²RæR³R´tGetSkillTypeIDt GetSkillTypetDef_SkillType_AuraRìRyt
GetSkillIDt
SkillShellt NPCUseSkillt NotifyAppeart NotifyNPCShow( RR¦RtcurNPCIDRGRÐRRR¶R6R€((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR, s<     
    ,
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žR4R5t GetShowTypeR6R8RtDef_FBDict_NPCShowEndTicktGetProtectTimeRúRãt tagMCNPCShowRßRçRæRèRéR÷RêRëRì(
RRUR¦RÐtnpcShowIpyDatatendTickt npcShowPackRðR6tplayer((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR;0 s*        cCsdS(N((R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR.U 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(RR3RmRntsortedtkeysRµRGRIRHRvRR/Rtt WorldNotifyRRRžt%_NPCControl__GiveNearbyPlayerPrestigetDef_Matrix_SixRÚ(RtdropTypetownerIDRR<thpPerLogicNPCIDListthpPerLogicDictt    hpPerListtnowHPPerthpPerLogicMarktlogicHPPerListthpPerR tdropItemTemplatetaddPrestigeFormat((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt DoHPPerLogicd s*       
  + cCsdS(N((RRYR„((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GiveNearbyPlayerPrestige’ s"cCs“|j}|jƒdkrdS|jƒdkrXtjd|jƒƒ|j|ƒn|jƒ||jƒ}|dkr‚dS|j|ƒdS(Nis¼ì²âµ½NPC¿ìËÙ¸´»î %si(RtGetRefreshTimeRDRRìRyt SetActionTickR-(RR¦RR-((sV.\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(R3RmRnRvRR0RúRPRñRòRÚRR<RžRtRL( RRR-RUtpreRebornNotifyNPCDicttnotifyMinuteListt
notifyMarkt notifyIndextreaminMt notifyMinuteRÐ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoNPCRebornPreNotifyÐ s   
 %cCs|j||ƒ|jƒdS(N(tRefreshNPCAttrStatetRefreshNPCActionState(Rt canSyncClientRS((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRüê scCs¸|j}tj|ƒ}|jƒ|jƒ|j|jƒƒ|jtj    ƒ|j
|j ƒƒ|j ƒt jkr‹tj||ƒdSt||ƒtj|ƒ}|j|ƒdS(N(RRGRHtClearBattleEffecttResetNPCBattleStateRÊRÆR RR tSetAtkIntervaltGetBaseAtkIntervalR_RRrRstRefurbishPetAttrRcR8tCalcBuffer_NPCBattleEffecttRefreshNPCSpeed(RRiRSRtcurNPCMaxHP_Beforet allAttrList((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRgö s    
 
 
  cCs®|j}|tjjtjdƒ}|sW|jtjƒrS|jtjdƒndSt|j    ƒt
j t dt t
j |ƒƒƒ}|j|ƒ|jtj|ƒdS(NigY@(RRtCalcAttr_BattleNolineR¡tTYPE_Calc_AttrSpeedRvRÉRÚRPRÅR>RåRRäRÊ(RRrRtspeedPertspeed((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRp s    3 cCs'|j}tj|ƒtj|ƒdS(N(RR:tClearObjActionStateR8tCalcBuffer_ActionState(RR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRh3s     cCs;|j|ƒ}|j|ƒ}|s*|r7|jƒndS(N(tRefreshBuffStateNoTimelytRefreshBuffStateTimelyRg(RR¦trefreshAtrefreshB((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytRefreshBuffStateBs 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(Rt GetTickByTypeRtTYPE_NPC_Tick_BufftTYPE_NPC_Tick_Timet SetTickByTypeR t    BuffSkillt RefreshBuffR¹RºR½t SkillCommontCheckAddAuraSkilltCheckAuraSkill(RR¦Rtrefreshtresult((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRyQs    &cCsÂ|j}||jtjƒtjtjkr3dS|jtj|ƒtj||jƒ|ƒtj||j    ƒ|ƒtj||j
ƒ|ƒ}|drª|j ƒnt j ||ƒ|dS(Nii(RR~RtTYPE_NPC_Tick_Buff_TimelyR€RR‚RƒR»R¼R¿RhR8tProcessPersistBuff(RR¦RRˆ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRzps    
 cCs£|j}|jƒ}tj|ƒ|jƒ|jƒ|jƒ|jsOdn |jjƒ}t    j
d|ƒ}|rt |jƒ|dƒn|j ƒj ƒdS(NRIRñi(RR3Rýt BossOnKilledt!_NPCControl__SetFeelNPCPlayerListt_NPCControl__GiveObjPrizet_NPCControl__EventKillNpcRt GetPlayerNameR4RARRR(RRRUR t bossIpyData((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt __KillLogicŽs          
 
 
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( RRR´RæRÓRÕRðRíRttGetAreaTeamMemberRR€( RRRµteventPlayerListR6Rät hurtObjTypeR Rñt
playerlistt
teamPlayer((sV.\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__MissionOnKillNPCRR÷Rµ(Rt eventPlayer((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__EventKillNpcås    $cCsY|s
dStjddƒ}|s&dSx$|D]\}}||kr-|Sq-W|ddS(Nit    GoldModeliiÿÿÿÿ(R4Râ(RR+t moneyItemListR"tmoneyID((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetDropMoneyModelIDós c    CsŒ|j}|jƒ}g}tjddƒ}||krž||}tjƒjtjƒ}|j    |gƒ}    g}
x4|    D]\} } |
| g| 7}
qzWn |j
ƒ}
|j ƒ} | rMxŽ|j D]€}| \}}}}t ||||ƒ}xP|D]H}|j||||gƒtjd|||||f|jƒƒqúWqÆWnx8|D]0}x'|
D]}|j||dtgƒqaWqTW|S(s›ÌØÊâµôÂä (˽ÓÐÌØÊâµôÂä + »÷ɱ´ÎÊýÌØÊâµôÂä), Ö§³ÖÃþ¹Ö
        @return: None
        @return: [[ownerPlayer, itemID, isBind, isDropInItemPack], ...]
        Ršis[»÷ɱ´ÎÊý±Øµô(¿ÉÃþ¹Ö): npcID=%s,dropItemID=%s,needKillCount=%s,isDropInItemPack=%s,isBind=%si(RR3R4RâRR6R8RR³R¡R¸R›RRœRíRìR÷R (RR¹RDRRUtspecDropItemListRåRæRáRçRèRéRêR¼t
feelPlayerR½R¾RÚR¿tkillCountDropItemListRRÂ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__NPCSpecialDropItemÿs2      
       +  !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µôÂäÎïÆ·, ¶àÍæ¼ÒÿÈËÒ»·Ý, »ìºÏµôÂäNRDii(RR3Rçt _NPCControl__GetDropMoneyModelIDR÷RíRER]tshuffleRRRR€RRøRùRúR¡t_NPCControl__CreateDropItemt_NPCControl__MapCreateItemRÿ(RtdropPlayerListRÐRDRRUtdropItemBindDictt dropItemListRiR'R(R)R*R+Rt dropPlayerIDR—R8R4R5R6R9R:R;R<R!RPtitemCntRÚR3((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__NPCDropItemByPlayers(sL          
 
 
 c# Csu|s
dS|j}|jƒ}tjƒjƒ}tj|ƒ}|tjkrSdSt    |ƒ}|sidSgiddf\}    }
} } t
|||||t ƒ} | r½| \}    }
} } n|j | ƒ}|rì| rì|    |g| 7}    nd}|j ||ƒ}|    |gt|ƒ7}    t|    ƒdkrJtj|ƒtj|    ƒntjƒ}|jƒ|jƒ}}d}xùtjD]î\}}||}||}|j||ƒs·qn|t|    ƒdkrÑPnt }|    |}|d7}||krB|sqnd}|d\}}}}tj|jƒ}}|d}n=|}||}}||krg| nd}|
j|dƒ}|j||||ƒ} | s£qn|rT| jtjtjƒtj| ƒ}!tj || t!t!ddt i|d6gƒrmt"j#ƒ}"||"_$||"_%||"_&|!|"_'t|"j'ƒ|"_(t)j*||"ƒqmq|j+| ||||ƒqWdS(NitSpecItemiiRàtNPCDropRU(,RR3RRRžRŸR RtDef_FBMapID_MunekadoTrialRHRçR R£t_NPCControl__NPCSpecialDropItemRúR]R¤RR€RøRùRÿR÷R¡R¥t SetUserAttrR>tDef_IudetSourcetItem_Source_VirtualItemDropRýtGetMapDropItemDataStrRîRRµRãttagMCVirtualItemDropt
ItemTypeIDRåRætUserDatat UserDataLenRêRëR¦(#RRiRåRÃR¹RRURÐRDR(R)R*R+R'Rt specItemSigntplayerSpecDropListR8R4R5R6R9R:R;R<R¾R!R«RÂRÚt    ownerTypeRPR3tdropItemDataStrt    vItemDrop((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt __NPCDropItembs‚         
 
 
 
                    cCs‡|j}|jƒtj|dƒ|jƒ|jƒ}|tjkrLdS|tjkrlt    j
|ƒdS|j t ƒt |ƒdS(Ni(Rt_NPCControl__KillLogicRGRORùR_RR^RrRst
SetPetDeadR
R Ró(RRtcurNPC_GameNPCObjType((sV.\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ˆÃ@(Rt GetHPRestoreR RGRHRIRÚRR/R­Rt    laNPCNullRµRótGetRestoreTimetDef_NPC_ProcessHP_TicktSetRestoreTimeRPR„t
SkillAddHP(RR¦Rt hpRestoreRatet curNPCMaxHPtlastRestoreTimet restoreValue((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytProcessHPRestores,       $ cCsdS(N((RR¦((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytProcessBattleHPRestore=sc CsË|j}|jƒ}|jƒ|_|jƒ|_|jƒ\|_}}}|jƒt    |jƒdkr2d}d}g}x—|jj ƒD]†}    |jsª|    |_n|js¿|    |_n|j sÔ|    |_ n||    j ƒkrû|    j ƒ}|    }n|j|    ƒ|j|    ƒqW|j||||ƒn<|dkrT|j|||ƒntjd|||fƒtr‡t|||ƒn|jƒ}
|
ddkr·|
ddkr·dStj|
|ƒdS(Nis*NPC¹éÊôÒì³£:npcID=%s,hurtType=%s,hurtID=%si(RR3t"_NPCControl__FindLastTimeHurtObjExRt_NPCControl__FindBossMaxHurtObjRt_NPCControl__FindNPCKillerInfoRt _NPCControl__DoLastTimeHurtLogicRúRR7RRt#_NPCControl__KilledByPlayerSetPrizeRít_NPCControl__NPCDropItemt!_NPCControl__KilledByTeamSetPrizeRR:tOnNPCDiet _NPCControl__FindLastTimeHurtObjt PlayerActiontGetAwardOnKillNPC( RRRURñRåRÃRit maxPlayerLVR¹R tlastTimeHurtObj((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GiveObjPrize^sB     
                        cCse|j}|sdS|jƒ}|tjkr2dS|j}tj||ƒtj||j    ƒƒdS(N(
RRmRRnRt    PlayerViptDoAddVIPKillLVExpRttAddZhenQiByKillNPCtGetSP(RtlastHurtPlayerRLR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoLastTimeHurtLogic•s          cCsî|j}|jƒ}|jƒ}tjƒjƒ||f}|tjkr·tjj|ƒ\}}}}|r{|j    ƒnd}    tj
d||j ƒ|    ||fƒ||||fSd}d}i}d}t |ƒ}
|
tjkrÿ|jƒ} | jƒxÇt| jƒƒD]å} | j| ƒ} |j| ƒ\}}|dkr[|dkr[qn|r³|jƒ}||kr†|||<ntj
d||
|fƒ|dtj|fS|r|}tj
d||
|j    ƒfƒ||tj|j    ƒfSqWnË|
tjkrX|jrÊ|jjƒ}||krU|j||<|dtj|fSqÊnr|
tjkrÊ|jƒ\}}|r˜||tj|j    ƒfS|rÊ|||jƒ<|dtj|jƒfSn|jr5|jjƒ}|jj    ƒ}    |    rtjƒj|    ƒ}n| r5||kr5|j||<q5n|
tj krPtj!}n?|
tj"krt#j$|ƒ}|dkrtj%}|}qn|dkrÞ|r¹tj}|j    ƒ}qÞ|rÞtj}|j ƒd}qÞn||||fS(NisKNPC±»»÷ɱ£¬¹éÊôÐÅÏ¢: key=%s,playerIDList=%s,teamID=%s,hurtType=%s,hurtID=%ss;    ¹éÊô×î´óÉËÑªÍæ¼Ò: npcID=%s,dropOwnerType=%s,playerID=%ss9    ¹éÊô×î´óÉËѪ¶ÓÎé: npcID=%s,dropOwnerType=%s,teamID=%s(&RR3RyRR<R÷R4tg_npcKillerInfotpopR–R>RKRR$RRÑR´RßRæRÓRÕRðR÷RÿRÛtDropOwnerType_MaxHurtPlayerRR…t_NPCControl__GetMaxAngryInfoRR†R‡tDropOwnerType_AlltDef_NPCHurtTypeAlltDropOwnerType_FactionRBtGetNPCItemProtectFactiontDef_NPCHurtTypeFaction(RRRUR.Rñt
killerDicttkillTeamRåRÃRÊt dropOwnerTypeRµRït
maxHurtObjR RñR7tmaxHurtPlayerIDtmaxAngryPlayert maxAngryTeamtlastHurtPlayerIDtprotectFaction((sV.\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( R¨RRžRŸRRnRRxR–R†R‡(RRtR¤t angryObjTypeRMRÊ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetMaxAngryInfo=s    
cCsD|j}|jƒ}|jƒdkr+dS|jƒ}|j|ƒS(Ni(NN(RR´RÓRtGetLastTimeHurtValueRð(RRRµRï((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindLastTimeHurtObjXs       cCs>|j}|jtjƒ}tjƒj|ƒ}|s:dS|S(N(RRvRtDef_PlayerKey_LastHurtRRRÉR(RRR7R ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindLastTimeHurtObjExes     cCsT|j}|jtj|jƒ|jƒfƒ}tjƒj|ƒ}|sPdS|S(N(
RRvRtDef_NPC_Dict_BossMaxHurtIDRyR3RRRÉR(RRt    maxHurtIDR ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__FindBossMaxHurtObjos     (c Cs‘|j}d}|dkr6tjd|jƒƒ|S|j|jƒƒ}|jƒ}|tj    kr=tj
|j ƒt j ƒ}|dkr‘|S|jƒdks¸|jƒt jkr¼|S|rê|j|jƒ|jƒ|ƒs'|Sn=tj|jƒ|jƒ|jƒ|jƒƒtjkr'|S|df}|dfS|tjkrz|j ƒ}tjƒj|ƒ}    |    dkr}|Sxöt|    jƒƒD]â}
|    j|
ƒ} | dks| jƒdkrÉqn| jƒdks| jƒt jkröqn|r&|j| jƒ| jƒ|ƒseqqen?tj|jƒ|jƒ| jƒ| jƒƒtjkreqnd|    f}|SW|S|tjkr|S|S(NsÉËѪ¶ÔÏó´íÎó,npcID=%si(NN(RRRRìR3R?R@RÖRRÿRxR×RRnRIR¿RÀRqRR€RžtDef_Team_GetExpScreenDistRÛR†R‡RæRŠR‹R÷tDef_NPCHurtTypeNPC( RRïtisCheckRefreshAreaRt hurtObjTupleRztmaxHurtValueTypeR RÊRñRïR’((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__GetTagByHurtObj€sX       '!! 
  '!    ! cCsf|j}|j|jƒt|ƒ}tj|ƒ}|j|tjƒ|j|||j    ƒtƒdS(N(
Rt_NPCControl__GetExpRR RtR    R>tDef_ViewExpType_KillNPCt_NPCControl__KillNPCFuncExR÷(RR Rtadd_Expt playerControl((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KilledByPlayerSetPrizeÏs     c CsX|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(NtisLogsS½±Àø¹éÊô¶ÓÎ飬µ«ÊDz»´æÔÚ¿É»ñµÃ¸Ã½±ÀøµÄ¶ÓÔ±!npcID=%s,teamID=%s,hurtType=%s,hurtID=%si(RRtR’RR€t_NPCControl__GetIsLogRR:R3R–RRRR÷RRRít_NPCControl__DoNormalTeamExpRRµRÔ( RRñRåRÃRR•Rýt    teamMaxLVRiR¹R t curPlayerLV((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KilledByTeamSetPrizeés4    -                          cCsH|jƒ}|jƒ}tjƒjƒ}tjƒjƒ}|jƒ}    |tjkrD|tj    kryt
j ||ƒnt j ddƒ}
tj|
|ƒ} | dkr%tj| } |j| dƒd} tj|| | ƒtj|| ƒtjd|jƒ| fƒi|jƒd6|d6| d6|jƒd6|jƒd    6}tjd
||ƒ| dkr¾tj|tjdƒt j!|tj"ƒt#j$|tj%dƒt&j'|tj(dƒq%| dkr%tj|tj)dƒt j!|tj*ƒt#j$|tj+dƒt&j'|tj,dƒq%ntj|tj-d|gƒndS( NtKillBossCntLimitiis$½ñÈÕɱ¹Ö´ÎÊý  playerID=%s, newCnt=%sR.R
ttouchCnttAccIDtPlayerIDtAddKillBossCnt(.R3RmRRRfRžR÷RRôRgRBtDoFB_DropOwnerR4RXtGetDictValueByKeyRRtDef_PDict_Boss_KillCntRŸRtR°RýtNotifyAttackBossCntRìRytGetAccIDRt SendEventPackRôRõR>tSuccType_KillWorldBosstPlayerActivitytAddDailyActionFinishCnttDailyActionID_WorldBOSStPlayerBossReborntAddBossRebornActionCnttDef_BRAct_WorldBOSStPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_WorldBosstSuccType_KillBossHomeBosstDailyActionID_BOSSHometDef_BRAct_BOSSHometDef_PPAct_BossHometSuccType_KillSpecificNPC(RR RtkillerIDt
isTeamKillRUt
defObjTypet    mapFBTypeRÐR7tkillBossCntLimitDictt
limitIndexRñtnewCnttdataDict((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__KillNPCFuncExs>       c    Cså|j}|jƒ}|tjkrCttj|ƒ}|rVdSn|tjkrVdStjddƒ}t    j
||j ƒƒ}|dk}|r»t j ||ƒ|rát j|ƒqán&t j||ƒ|rát j|ƒndS(NRii(RR_RR`R~Rnt
gnotNormalR4RXRRR3t
EventShelltEventRespons_OnKillByFeelt EventRespons_KillWorldBossByFeeltEventRespons_OnKillByIdtEventRespons_KillWorldBoss(    RR tisFeelRRuRšR/R0t isWorldBoos((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__MissionOnKillNPCFs&      cCstS(N(R (R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
__GetIsLogescCsT|j}|j|jƒt|ƒ}|s.dStj|ƒ}|j|tjƒdS(N(RRRRµRtR    R>R(RR RRR    ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__DoNormalTeamExpus    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(RRRRfRRgRBt OnGetNPCExptGetExpR÷RŸtGetTeamPlayerHurtPerRR™RšR›R4RX(
RRktisTeamRERR#R7thurtPertnpcLVtexp((sV.\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(NiiRÛRÜsµôÂäÎïÆ·,ÎÞ·¨ÕÒµ½µØÍ¼µôÂäÎïÆ·(RR3RÐRúRRtDef_NPCHurtTypeSpecialRKRýRþRRR>tSetByObjRmRy( RR3R9R:RORPRR<RÜtspecOwnerIDListt
curMapItem((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__MapCreateItemµs     9*  cCsXtj|ƒ}|sdStjƒjƒ}tj|ƒ}|j|ƒ|j|ƒ|S(N(    RîRïRRRžRŸR tSetCountt    SetIsBind(RRR!R"RÚR3tcurMapID((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt__CreateDropItemÕs  N(\t__name__t
__module__RRRRµR'R+R1R9R-RNRSRjRWRaR R{R‚RpRŒR„R¦Rt Def_NPCRefreshAngryValueIntervalR®R¨ReR³R¶R¾RÙRÜRçRÞRÔRóR÷RùRýRûRúRRR"R!R)RqRBR-R,R;R.RZtDef_Matrix_ThreeRMR^t!_NPCControl__DoNPCRebornPreNotifyRüRgRpRhR}RyRzR¿RŒRŽR£R°t!_NPCControl__NPCDropItemByPlayersRÔRÂRÍRÎRRÒRÑRæR×RÏRÐRðRÓRÕRR˜R R RR¦R¥(((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR²s¨            H >        :         o     7        @    R#                             " @    5                       6    ?                             /    %        .*         *                        /    (             )    : \    T    +    !    7    3    u             
     O        *    3         +     cCs]tjƒj|ƒ}|sdS|jƒ}|s5dS|jƒ}|jƒ}t|||ƒS(Ni(RRkRlRARt
CalcNPCExp(R RUR£R#RERk((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRãäs   cCs(ttjdtjddƒƒƒ}|S(NR?i(R™RšR›R4RX(R#RkRERF((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRWïs$cCsFtjtd|jƒdfƒ}|dkr2dS||||ƒdS(Ns AIType_%d.%stOnAttackDieByPlayer(RRRRR(RR R·R((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnPlayerAttackNPCDieús" cCs<|dkr|Stt|ƒƒ}t|td|ƒdƒS(Nii
i(RúRRRR(tvalueExRtnlen((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRˆs i    cCsY|jƒ}tjdƒ}||kr+tS||}t|ƒtkrKtS|t}|S(Nt CollectNPCCfg(R3RmRnRµRútDef_CollNPCCfg_LentDef_CollNPCCfg_CanTogether(RRUt collectNPCCfgtcollectNPCInfotcanCollTogether((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytCanNPCCollectTogethers  
 
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\}
} |jƒ} tjdƒ} | | krê|jƒ}t| | ƒ}
|jtj| ƒ}|jtj| ƒ} |
|7}
tjd    ||
| |fƒntjd
ƒ}||krC||d}
|jtj|ƒ} tjd |
| fƒn|
dkro| |
krotj|d ƒt    St    }|t}|r(|\}}|dkr(|jƒj t j!ƒ}t"j#|||ƒ\}}}}| r%| r%tjd |||fƒtj||t$|||gƒt    Sq(nt"j%|t j!ƒsQtj|dƒt    S| ryt&||ƒ rytjdƒt    S|t'}t(j)|tj*ƒ}|rÎt+dt,|t-j.|t/t-j.ƒƒƒ}ntj0||t j1d|jƒƒt2j3||jƒtj4dƒdS(NR\s"DoCollectNPCBegin ·ÇÌØ¶¨²É¼¯NPC...s#CollectNPCCfg.txtÅäÖôíÎó£¬npcID=%st RealmSitNPCIDs/²»Äܲɼ¯×Ô¼ºµÄ´ò×øÕÙ»½ÊÞ summonOwner.GetID()=%sis"DoCollectNPCBegin ²»ÔÊÐíͬʱ²É¼¯£¡tCollectNPCFuncTimeLimits4    vipLV=%s,maxTime=%s,todayTime=%s,todayBuyTime=%stCollectNPCIDTimeLimits    maxTime=%s,todayTime=%stGeRen_liubo_807125s@DoCollectNPCLogic ²É¼¯ÏûºÄÎïÆ·²»×ã,npcID=%s,costItemID=%s,cnt=%stGeRen_lhs_202580s%DoCollectNPCBegin SetCollectNPC fail!ièt    prepareIDi(ii(5R3RmRnRRìR RúR]R:RµR4RXR~RRnRyR^tGetCollectNPCPlayerIDR÷tDef_CollNPCCfg_SysMsgMarkRtt
NotifyCodetGetFunctionTypetGetVIPLvR™RŸRtDef_PDict_CollNpcBuyTimetDef_PDict_CollNpcCollTimetDef_PDict_CollNpcIDCollTimetDef_CollNPCCfg_CostItemInfoR¦R§RRêtGetItem_FromPack_ByID_ExExt Def_CollNPCCfg_NotCostItemNotifytCheckPackHasSpacet SetCollectNPCtDef_CollNPCCfg_PrepareTimeRÝtGetPrivilegeValuetVIPPrivilege_CollTimeReduceRateRRPR>RåRätSync_PrepareBegintpstMissionCollectingRŸRÚRÿ(R RRUR_R`t isSitCollectt summonOwnerRatcollectPlayerIDtsysMarkt limitMaxTimet todayCollTimet npcFuncTypetnpcFuncCollectCntLimitDicttvipLVt todayBuyTimetnpcIDCollectCntLimitDictt    isAutoBuyt costItemInfot
costItemIDt costItemCnttitemPacktenought    indexListthasBindtlackCntt prepareTimetcollTimeReduceRate((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoCollectNPCBegin.sŽ   
 
 % 
 
  
      
 
0 cCs•|jƒ}|jƒ}|jtjƒ}|rktjƒj|ƒ}|rk||krktjdƒt    Sn|j
tj|ƒ|j
tj |ƒt S(Ns?SetNPCColleced ÓÐÈËÔڲɼ¯ÇÒ²»ÊÇͬһ¸öÈË£¬Ôò²»¿ÉÖØÐÂÉèÖòɼ¯¶ÔÏó( R÷RyRvRtDef_NPC_Dict_CollectPlayerIDRRRÉRìR RÚtDef_PlayerKey_CollectNPCObjIDRµ(R Rt curPlayerIDt curNPCObjIDtcurCollectPlayerIDtcurCollectPlayer((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRu“s   cCsi|jtjƒ}|dkr"dStjƒj|ƒ}|setjd|ƒ|jtjdƒdS|S(Nis>GetCollectNPCID ÓÐcurCollectPlayerID=%s£¬µ«ÕÒ²»µ½¸ÃÍæ¼Ò£¬ÖØÖÃ!(RvRR’RRRÉRìRÚ(RR–R—((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRi¦s     cCsd|jtjƒ}|dkr"dStj|ƒ}|rM|jtjdƒn|jtjdƒdS(Ni(RvRR“Rt FindNPCByIDRÚR’(R tcollectNPCObjIDR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytClearCollectNPC¹s cCs#t||tdƒ}t|ƒ|S(Ni(tDoGetCollectionNPCAwardLogicRµRš(R RUtisOK((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytDoCollectNPCOKÌs
c
Cs©|j}|j}|j}|j}|j}tjdƒ}||kr]tjd|ƒdStj    ƒj
|ƒ}    tjd|||fƒt |    |||||ƒdS(NRes.¸ÃNPC²»ÊÇ×Ô¶¨Òå²É¼¯NPCÏä×Ó, ²»¿É¿ªÆô! npcID=%ss3OnOpenCollNPCBox...npcID=%s,openCnt=%s,isAutoBuy=%s( tMapIDRßtOpenCntt    IsAutoBuyt
IsOnlyGoldRmRnRRìRRéR›(
R6t
clientDataR¦RÐRUtopenCntR†t
isOnlyGoldR…R ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnOpenCollNPCBoxÜs                     c4 Csytjd||fƒtjdƒ}||krGtjd|ƒtS|dkrWtS||}t|ƒtkrˆtjd|ƒtSd\}}    |t    }
|
rÅt|
ƒdkrÅ|
\}}    ntj
ƒj |ƒ} | sätS| j ƒ} tjdƒ} d}d}| | krL|j ƒ}|jtj| ƒ}t| | ƒ}ntjdƒ}||krŽ||d}|jtj|ƒ}n|dkrætd||ƒ}t||ƒ}|dkrætjd    ||fƒtSn|    |}d}|dkr|dkrtj||ƒ\}}}|sFtd|||ƒn|}d}d}|dkr²| r²tjd
|||    |||fƒtj||t|||    gƒtS|dkrtj|tjƒ}||}|dkrítStj|tj|tƒstSqng}t||t ƒ}|d \}}t|ƒdkrW|dng}|sxtj!ƒj"ƒ}nd}|sŠ|r xkt#|ƒD]]} ||kr¯d nd}!t$||||!|||ƒ}"|"sÝPn|j%|"ƒ|d 7}q—W|dkrtSn|}|j&ƒ}#tj'|ƒ}$tj(|ƒ}%t|t)ƒ|}&t|t*ƒ|}'|t+|}(tj|ƒ})|)j,|&ƒi|tj-6}*tj.|tj/|'tj0|*ƒtj1||(ttd ƒtjd ||&|'|(fƒ|dkrœ|dkrœ|}+|s|\},}-|j2ƒj3tj4ƒ}.|dkr¡|+|krX|n|+}/|+|/8}+tj5||.|,|/tdƒtjd|/|j6ƒƒn|+dkr|dkr|+|krË|n|+}0|+|08}+tj5||.|-|0tdƒtjd|0|j6ƒƒqn|+dkrœt7|+|ƒ}1i|d6|+d6|tj86}2tj9|tj|1tj:|2|+ƒtjd|+||1f|j6ƒƒqœn|dkr\||}3| j ƒ} tjdƒ} | | krtj;|tj| |3ƒt<|| gƒn||krBtj;|tj||3ƒt<|d|gƒntjd||3fƒnt=||&|'|(||ƒtS(Ns5DoGetCollectionNPCAwardLogic...npcID=%s,collectCnt=%sR\s    ·ÇÌØ¶¨²É¼¯NPC...npcID=%sis#CollectNPCCfg.txtÅäÖôíÎó£¬npcID=%siRdRes=    ¸Ã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=%sR/s9        Ôö¼Óµ±Èղɼ¯´ÎÊý: todayCollTime=%s,updCollTime=%s(ii(>RRìRmRnR RµRúR]R:RqRkRlRlRmRŸRRoR™RpRRLRêtGetPackItemBindStateIndexInfoRtRkRstPlayerSuperMarkettGetStoreItemPriceRtTYPE_Price_Gold_Moneyt    HaveMoneyt__GetGiveCollectItemInfotDef_CollNPCCfg_GiveItemModeIDRRžRæt __DoGiveCollectionNPCSingleAwardtextendRtGetPlayerReExptGetPlayerReMoneytDef_CollNPCCfg_ExpFormattDef_CollNPCCfg_MoneyFormattDef_CollNPCCfg_ZhenQiR    tDef_Give_Reason_SonKeyR
R tDef_GiveMoney_CollectNPCtPlayerAddZhenQiR¦R§Rt
ReduceItemR÷RPtDef_Cost_Reason_SonKeytPayMoneytDef_Cost_BuyStoreItemR°tSyncCollNPCTimetSyncCollectionItemInfo(4R RUR†t
collectCntRÐR¤R_R`RˆR‰R‡RRR‚RR€RƒR…t canCollectCnttcostItemCntTotaltbindCnttcostItemIndexListt    unBindCntRŽtlackCosttitemGoldtgiveItemInfoListt    prizeInfot pieRandomListtrandomAllInfoListtbesureInfoListt
successCntRïRÚt getItemInfotreLVtreExptreMoneyR$taddMoneyt    addZhenQiR    t addDataDictR©t bindIndexListtunBindIndexListRŠt bindCostCntt unBindCostCntt
reduceGoldtinfoDictt updCollTime((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR›ìsö  
 
 
#     
 
"            
 
        
   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õ|}|dkrtj|ƒ}n½|dkrFtj||ƒ}tj|ƒ}n|dkrÓtj|dƒ}|dkr‘t}tj|||dƒ}n!tj|||d    |ƒ\}}|dkrÄqÁn|jƒ}n|jƒ}|j |ƒ|j!|ƒtj"|||ƒt#|||j$ƒ|j%ƒ|ƒtj&||t't'd
d ti|d 6gƒs`Pn|j|||||gƒqÁW|S( Niis7    ´Ë´Î±Ø³öÎïÆ·, npcID=%s,besureCnt=%s,collTotalCnt=%ss    ¸üвɼ¯×Ü´ÎÊý: %ss%    ×îÖտɵõ½ÎïÆ·giveItemInfoList=%sitCollectEquipRandQualitytCollectNormalEquiptCollectGreateEquipRàR§RU((RRZRíR>RåRWRLRúR²R]tsampleRŸRtDef_PDict_CollNpcCollTotalCntRìRtR°RêRtRRRîRïtGetAppointItemDictDatat GetItemByDatatGetRandEquipQualityByTableR tRandNormalEquiptRandGreateEquipRR=t GetUserDataRMRNtNotifyItemDropByKilltSendGameServerGoodItemRecordRR÷RRµ(R RÐRUtsetBindRËRÌRÍRÉtpieRandomItemInfot maxRandomCnttrandomInfoListtrandomInfoListExtitemInfotgiveRatetappendItemInfot getRandomCntt collTotalCntt    besureCnttbesureItemInfotsyncItemInfoListRBR!R«RÚt
getItemObjt itemDictDatatqualityt isBroadcasttuserData((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR±Šsx  
 
 
       
     !    " 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(NiRIiii(iiiis(RãttagMCCollectionItemInfoRRßtExpt SilverMoneytZhenQit CollItemListRúttagMCCollectionItemtItemTypetItemIDtItemCnttIsBindt ItemInfoLentItemInfoRít CollItemIDCntRêRë(R R$RÓRÔRöt collectNPCIDt collItemInfot syncItemInfoRBR!R«RÚRïtcollItem((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÀås@+ 
                       
                    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(NRIiisCollectItemInfo_%ss+CollectItemInfo_%s.txt can not find key=%s!s@    __GetGiveCollectItemInfo job=%s,modeID=%s,key=%s,itemList=%s((    RRJRmRnRNRKRR:Rì(
R t lvModeIDDicttmodeIDRktlvKeytmIDStrtcollectItemInfoDicttinfoKeyRRñ((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¯s2
 $
 
 
    cCsï|s$tjdƒ}|jƒ}n|sHtjdƒ}|jƒ}n|rëtjƒ}|jƒg|_xV|D]N}tjƒ}|jƒ||_|j    t
j |ƒ|_ |jj |ƒqtWt|jƒ|_tj||ƒndS(NRdRe(RmRnRKRãttagMCNPCIDCollectionCntInfoRtNPCCollCntListttagMCNPCIDCollectionCntRßRŸRRpt CollectionCntRíRút
CollNPCCntRêRë(R t funcTypeListR/R‚tcollectNPCIDTimeLimitt npcIDCollInfoRUt collCntInfo((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyR¿5s&  
      
    cCsÖtjdƒ}|s!|jƒn|}xB|D]:}tj|tj|dƒtj|tj|dƒq.Wtjdƒ}xJ|jƒD]<\}}|d}|sªqˆntj|tj    |dƒqˆWt
|ƒdS(NRdiRei( RmRnRKRtR°RRoRnRJRpR¿(R RR‚tfuncTypeRRURt isResetOnDay((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytCollNPCTimeOnDayZs 
 
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(RRÒRìRRbt GetNPCCountt GetNPCByIndexRyR3RíRGRIRR€RHR­RR®tIsAliveR\RRD(tqueryNPCIDListR¦t npcInfoDicttgameNPCManagert findNPCIDListR6RtcurIDR<tisAlivetcurHPR9R:tmaxHPtrefreshRemaindSecondt refreshTimetpassTick((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt
GetNPCInfops<        "  #cCsýtjƒ}|jƒ||_||_g|_x£|jƒD]•\}}|\}}}    }
} } } tjƒ}|jƒ||_||_    ||_
|    |_ |
|_ | |_ | |_| |_|jj|ƒq>Wt|jƒ|_tj||ƒdS(N(RãttagMCNPCInfoListRRžt    PlayerCntt NPCInfoListRJt tagMCNPCInfotObjIDRßtNPCHPR2RåRætIsActivet RefreshSecondRíRút
NPCInfoCntRêRë(R RÐt    playerCntR#t npcInfoPackR&tnpcInfoR<R(R)R9R:R'R*((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt SyncNPCInfoŸs* 
             
                                cCsøi}|s|Stjƒ}tjdt|ƒƒx§t|jƒƒD]“}|j|ƒ}|jƒ}|dkryqFn|jƒ}||kr—qFn|j    ƒt
j ksF|j ƒ r¿qFn|j |dƒd||<qFWtjdt|ƒƒ|S(Ns!GetNPCCntInfo...queryNPCIDList=%siis    npcCntDict=%s(RRÒRìRRæRR RyR3R­RR®R!R¡(R"R¦t
npcCntDictR$R6RR&R<((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt GetNPCCntInfo¾s$     "cCs£tjƒ}|jƒ||_g|_xR|jƒD]D\}}tjƒ}|jƒ||_||_|jj    |ƒq5Wt
|jƒ|_ t j ||ƒdS(N(RãttagMCNPCCntListRRžR0RJttagMCNPCCntInfoRßtCntRíRúR6RêRë(R RÐR;R8RtnpcCntR9((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytSyncNPCCntInfoÝs 
         
        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 ||ƒ|||||| g}t j d
d |ƒdS(NtDropRecordBossIDitDropRecordEquipmenttDropRecordValuetDropRecordNormalRIi'ièiditBossDropGoodItems$·¢ËÍGameServer¼Ç¼ʰȡµôÂäºÃÎïÆ·: %st
DropRecord(R4RâR RµR6RRRRRRúRìRtRL(RÐRUt
playerNameR7R!R{t recBossIDListtrecDropEquipInfoDicttrecSpecialItemIDListt recItemIDListt
needRecordt itemUserDatat weightValuet
equipPlacet itemClassLVt    itemColort itemQualitytrecordConditiont needClassLVt needItemColortneedItemQualityt dropEquipMsgR((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRéîs:   $ !(cCsdS(N((R6R¢R¦((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnBuyCollectionCnt!s!cCsdS(N((R6R¢R¦((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pytOnBuyKillBossCntLscCss|j}|j}tjƒjtj|ƒ}|s8dStjƒjtj|dƒtjd|||fƒdS(Nis,ClientNPCShowEnd npcID=%s,endType=%s,tick=%s(    RßtEndTypeRR6R8RR?RúRì(R6R¢R¦RUtendTypeRC((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt OnNPCShowEndss        cCsZtjddƒ}tjƒjtjƒd}||krVtjddƒ}||kStS(Nt    BossShuntii(    R4RXRR<R=R>tDef_Notify_WorldKey_ServerDayRâR (RÐtbossShuntMaxServerDayt openServerDaytbossShuntMapIDList((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRÝ}s  
cCs^||f}tjj|iƒ}||jƒ|g||jƒ<|tj|<t||ƒdS(N(R4RèR¡R–R÷Ré(R RÐRRUR¦RñRê((sV.\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(    R4RèR¡RRRRRúRì(RÐRRñRêtmsgStr((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyRés  ((RRRtRRR5R8R‚R¡t PlayerTruckR„RŸRîRêRBRmRsRR:R>RýRØRãRRêRŸRRôRýR«R«RštPlayerMagicWeaponR R#R4R4RÇRÝRGR1R]RñRRRÖRbRoRpRqtNPCAttr_DynNPCLVMaptNPCAttr_DynPCCoefficientMapRRRRRR R"R$R&R(R*R,R.R RcRDR?RaRHR˜RµRçR¶RdRURbR·R\R¡R£RhRœR^RaRgRkRqRlR~R‹R”RœRªR¬R°R¸RÃRÑRâRÜRóRRRãRWRYRˆR]R^RjRqRvRµR¶R·R°RsRbR‘RuRiRšRR¥R›R±RÀR¯R¿RR-R:R<RARéRYRZR]RÝRcRé(((sV.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCCommon.pyt<module>s                                                                                                     Vm    ­        ›ÿ+    $    -             3        4        *             
                !    !    +    >    ]             -        0 ÿÿÿÿÿÿÿÿÿÿÿ=                           '        e                    ž    [ +    %%     /             3    +    '