-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgm_item_tifuzhiyin.lua
2053 lines (1825 loc) · 59.4 KB
/
gm_item_tifuzhiyin.lua
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
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- Ìå·þÖ¸Òý
Include("\\script\\lib\\globalfunctions.lua");
Include("\\script\\task\\world\\task_head.lua");
Include("\\script\\system_switch_config.lua");
Include("\\settings\\static_script\\cheat\\list_gm.lua");
g_szTitle = "<color=green>GM: <color>"
nD1 = 0;
nD2 = 0;
nD3 = 0;
nIDOutfit = 0;
nIDOutfitType = 0;
IsTBPHP = 0;
nTBCT_ATT_A = 0;
nTBCT_ATT_TP = 0;
nTBCT_ATT_NB = 0;
nTBCT_ATT_VK = 0;
outfitSzSay = {
g_szTitle .. "H·y lùa chän thuéc tÝnh:",
"MÆc ®Þnh/#Mod_NTGetOutfits(0)",
"Bá qua tû lÖ gi·n c¸ch chiªu, néi lùc, phßng thñ ®èi ph¬ng 100%/#Mod_NTGetOutfits(14636)",
"Tr¸nh mäi tr¹ng th¸i phô, néi ngo¹i phßng t¨ng 5000/#Mod_NTGetOutfits(14637)",
"MiÔn dÞch hçn lo¹n, ngñ, ®¸nh ng· 100%/#Mod_NTGetOutfits(14638)",
"MiÔn dÞch ®øng yªn, cho¸ng, ®¸nh lui 100%/#Mod_NTGetOutfits(14639)",
"Kh¸ng tÊt c¶ 3000, tèc ®é xuÊt chiªu t¨ng 500%, Gi¶m nöa mäi s¸t th¬ng/#Mod_NTGetOutfits(14640)",
"Ngo¹i, néi phßng t¨ng 100%, sinh lùc v« ®Þch/#Mod_NTGetOutfits(14641)",
"Tèc ®é di chuyÓn t¨ng 100%, x¸c suÊt xuÊt chiªu t¨ng 100%, ®é bÒn vò khÝ 600s håi 100/#Mod_NTGetOutfits(14642)",
"Néi, ngo¹i c«ng t¨ng 9000%, hç trî mËt tÞch t¨ng 300%/#Mod_NTGetOutfits(14643)",
"Håi phôc sinh lùc mçi nöa gi©y 10%, Gi¶m thä th¬ng 100%, Hç trî mËt tÞch 300%/#Mod_NTGetOutfits(14644)",
"Tèc ®é xuÊt chiªu t¨ng 1000%, thêi gian hç trî tÊn c«ng phßng thñ t¨ng 1000%/#Mod_NTGetOutfits(14645)",
"T¨ng tèc ®é xuÊt chiªu 85%, Kh¸ng tÊt c¶ 4xx/#Mod_NTGetOutfits(14487)",
"T¨ng tèc ®é thi triÓn vâ c«ng 92%, kh¸ng tÊt c¶ 280, t¨ng tû lÖ chÞu ®ßn 55%/#Mod_NTGetOutfits(14524)",
"Tèc ®é di chuyÓn t¨ng 140%/#Mod_NTGetOutfits(403)",
"Gi¶m thä th¬ng 165%, sinh lùc t¨ng 44000/#Mod_NTGetOutfits(14523)",
"Gi·n c¸ch liªn hoa t©m kinh vÒ 0, Thêi gian hç trî tÊn c«ng phßng thñ t¨ng 140%/#Mod_NTGetOutfits(852)",
"Néi lùc tiªu hao gi¶m 98%/#Mod_NTGetOutfits(14611)",
"Phßng ngù néi ngo¹i c«ng t¨ng 8%/#Mod_NTGetOutfits(495)",
"Nãn, Y phôc, H¹ Y mçi 600s phôc håi ®é bÒn 7/#Mod_NTGetOutfits(405)",
"§é bÒn vò khÝ mçi 600s phôc håi 7/#Mod_NTGetOutfits(43)",
"Tr¸nh mäi tr¹ng th¸i phô 70%/#Mod_NTGetOutfits(406)",
"MiÔn dÞch Lo¹n, Ngñ, §¸nh ng· 50%/#Mod_NTGetOutfits(13066)",
"MiÔn dÞch §øng yªn, Cho¸ng, §¸nh lui 50%/#Mod_NTGetOutfits(13067)",
"Mçi n÷a gi©y phôc håi sinh lùc ®ång ®éi 7%/#Mod_NTGetOutfits(416)",
"Néi c«ng t¨ng 140%/#Mod_NTGetOutfits(14526)",
"Ngo¹i c«ng t¨ng 140%/#Mod_NTGetOutfits(14525)",
"Bá qua phßng ngù 35%/#Mod_NTGetOutfits(252)",
"Kh¸ng tÊt c¶ 240, Néi ngo¹i phßng t¨ng 900 ®iÓm/#Mod_NTGetOutfits(13355)",
"Phßng thñ néi c«ng ®èi ph¬ng gi¶m 43%/#Mod_NTGetOutfits(846)",
"Phßng thñ ngo¹i c«ng ®èi ph¬ng gi¶m 43%/#Mod_NTGetOutfits(845)",
"Sinh lùc t¨ng 45%/#Mod_NTGetOutfits(843)",
"T¨ng tèc ®é xuÊt chiªu 24%, Hç trî mËt tÞch 20%, Kh¸ng tÊt c¶ 55/#Mod_NTGetOutfits(14118)",
"Thêi gian hç trî t¨ng 140%, kh¸ng tÊt c¶ 30/#Mod_NTGetOutfits(838)",
"Phßng ngù ngo¹i c«ng t¨ng 8%/#Mod_NTGetOutfits(493)",
"Phßng ngù néi c«ng t¨ng 8%/#Mod_NTGetOutfits(494)",
"X¸c suÊt xuÊt chiªu t¨ng 8%/#Mod_NTGetOutfits(491)",
"Phßng ngù ngo¹i c«ng ®èi ph¬ng gi¶m 15%/#Mod_NTGetOutfits(63)",
"Phßng ngù néi c«ng ®èi ph¬ng gi¶m 15%/#Mod_NTGetOutfits(64)",
"Gi¶m phßng ngù néi ngo¹i c«ng ®èi ph¬ng 14%/#Mod_NTGetOutfits(90)",
"Ra khái/nothing"
};
function OnUse(nItem)
-- print(GetPlayerRebornParam(0))
-- print(GetTranslifeCount())
-------Chøc N¨ng Set Qu¶n TrÞ Viªn
local nName = GetAccount();
if CheckName(nName) == 0 then
Talk(1, "", "B¹n kh«ng ph¶i Qu¶n TrÞ Viªn");
else
Open();
end
end
function Open()
if 1 ~= IsExpSvrSystemOpen() then
return
end
local tSay = {}
local nRoute = GetPlayerRoute();
if nRoute <= 0 then
tSay = {"Gia nhËp m«n ph¸i/JoinRoute_UpdateLevel"}
else
tSay = {
-- "\nT¹o Boss/AddNPC",
"Gäi Boss /BossTongHop", "NhËn ngo¹i trang /Mod_GetNgoaiTrang",
"NhËn trang bÞ /GetTB", "NhËn thó cìi /Mod_GetThuCuoi",
"NhËn vËt phÈm kh¸c/Get_TieuDung",
"Chøc n¨ng më réng/Get_Orther",
"Qu¶n lý trß ch¬i/Mod_GMActions",
format("%s/getTiLi", "\nHåi phôc thÓ lùc")
}
end
tinsert(tSay, "Xãa kho ®å/ClearBagAllItem");
tinsert(tSay, "Tho¸t/nothing");
Say(g_szTitle .. "Lùa chän chøc n¨ng", getn(tSay), tSay);
end
function Mod_GetThuCuoi()
local szSay = {
g_szTitle .. "Chän thó cìi:", "B¹ch M·/#Mod_GetThuCoi(34)",
"Phiªu Vò/#Mod_GetThuCoi(15)", "B«n Tiªu/#Mod_GetThuCoi(16)",
"Siªu Quang/#Mod_GetThuCoi(19)", "§»ng Vô/#Mod_GetThuCoi(20)",
"ThiÕu D¬ng ThÊt Tinh KiÕm/#Mod_GetThuCoi(10107)",
"V¨n Sö ThÊt Qu©n KiÕm/#Mod_GetThuCoi(10108)",
"Ngäc Kú L©n/#Mod_GetThuCoi(30003)",
"Háa Kú L©n/#Mod_GetThuCoi(30004)",
"B¹ch Hæ/#Mod_GetThuCoi(30009)", "Hoµng Hæ/#Mod_GetThuCoi(30010)",
"B¸o Tr¾ng/#Mod_GetThuCoi(30012)", "B¸o §en/#Mod_GetThuCoi(30013)",
"Thá ®en/#Mod_GetThuCoi(30039)", "Thá b«ng/#Mod_GetThuCoi(30040)",
"Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_GetThuCoi(horseId)
AddItem(0, 105, horseId, 1, 1, -1, -1, -1, -1, -1, -1, -1, 0)
end
function Mod_GMActions()
local szSay = {
g_szTitle .. "Chän chøc n¨ng:",
"Di chuyÓn tíi vÞ ttrÝ ngêi ch¬i/teleportToPlayer",
"TriÖu håi ngêi ch¬i tíi vÞ trÝ cña m×nh/summonPlayer",
"NhËn ph¸o chiÕn th¾ng (60 c¸i)/Mod_GetPhaoChienThang",
"NhËn kim phiÕu/Mod_GetKimPhieu", "Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_GetKimPhieu()
ModifyJinJuan(9999999, 0)
end
function Mod_GetPhaoChienThang()
AddItem(2, 1, 30297, 60)
end
function teleportToPlayer()
local tSay = {}
local oldPlayerIndex = PlayerIndex;
local totalOnlinePlayers = 0;
local player = FirstPlayer()
while (player > 0) do
if player ~= oldPlayerIndex then
totalOnlinePlayers = totalOnlinePlayers + 1;
PlayerIndex = player;
tinsert(tSay, "" .. GetName() .. "/#reallyTeleportToPlayer(" ..
player .. ")");
end
player = NextPlayer(player)
end
PlayerIndex = oldPlayerIndex;
tinsert(tSay, "T¹i h¹ chØ xem qua th«i/nothing");
Say(g_szTitle .. "Found " .. totalOnlinePlayers ..
" players online. Who do you want to get to?", getn(tSay), tSay);
end
function reallyTeleportToPlayer(playerIndex)
local mapId, nX, nY = gf_GetWorldPos(playerIndex);
NewWorld(mapId, nX, nY);
end
function summonPlayer()
local tSay = {}
local oldPlayerIndex = PlayerIndex;
local totalOnlinePlayers = 0;
local player = FirstPlayer()
while (player > 0) do
if player ~= oldPlayerIndex then
totalOnlinePlayers = totalOnlinePlayers + 1;
PlayerIndex = player;
tinsert(tSay,
"" .. GetName() .. "/#reallySummonPlayer(" .. player .. ")");
-- tinsert(tSay, format("%s/reallySummonPlayer", GetName()))
end
player = NextPlayer(player)
end
PlayerIndex = oldPlayerIndex;
tinsert(tSay, "T¹i h¹ chØ xem qua th«i/nothing");
Say(g_szTitle .. "Found " .. totalOnlinePlayers ..
" players online. Who do you want to summon?", getn(tSay), tSay);
end
function reallySummonPlayer(playerIndex)
-- Msg2Player(playerIndex);
local mapId, nX, nY = GetWorldPos();
local oldPlayerIndex = PlayerIndex;
PlayerIndex = playerIndex or PlayerIndex;
NewWorld(mapId, nX, nY);
PlayerIndex = oldPlayerIndex;
end
function Mod_GetNgoaiTrang()
local szSay = {
g_szTitle .. "Chän ngo¹i trang", "ChuyÓn sinh y/#Mod_NTSetID(514)",
"Tø Linh ViÖt Phôc Y (Vµng)/#Mod_NTSetID(30001)",
"Tø Linh ViÖt Phôc Y (TÝm)/#Mod_NTSetID(30005)",
"Tø Linh ViÖt Phôc Y (Xanh)/#Mod_NTSetID(30009)",
"Tuong Duong ngo¹i trang/#Mod_NTSetID(213)",
"TuyÒn Ch©u ngo¹i trang/#Mod_NTSetID(217)",
"Thµnh §« ngo¹i trang/#Mod_NTSetID(221)",
"Ng¹o nghÔ ngo¹i trang/#Mod_NTSetID(1041)",
"Song §¸n ngo¹i trang/#Mod_NTSetID(901)",
"Khæng Tíc Minhn V¬ng ngo¹i trang/#Mod_NTSetID(929)",
"Tö D¹ ngo¹i trang/#Mod_NTSetID(825)",
"C«ng Th¬ng ngo¹i trang/#Mod_NTSetID(937)",
"Thiªn Vò Cµ Sa ngo¹i trang/#Mod_NTSetID(713)",
"DiÖp Thîng Thu Phong ngo¹i trang/#Mod_NTSetID(953)",
"TiÒn Long ngo¹i trang/#Mod_NTSetID(837)",
"ChØ Thñy ngo¹i trang/#Mod_NTSetID(833)",
"XÝch Viªn Léng H¹c ngo¹i trang/#Mod_NTSetID(985)",
"Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_GetTBDC()
local szSay = {
g_szTitle .. "Chän trang bÞ",
"Thiªn Chi Viªm §Õ/#Mod_TestGetAll1(8051)",
"B¹ch Kim Viªm §Õ/#Mod_TBSetID(30013)",
"Tèng Ngù Long Tíng Qu©n/#Mod_TBSetID(30017)",
"Liªu Ngù Long Tíng Qu©n/#Mod_TBSetID(30021)",
"Long §»ng Tø H¶i Trang/#Mod_TBSetID(3056)",
"Phông Vò Cöu Thiªn Trang/#Mod_TBSetID(3060)",
"Ngù Long Nguyªn So¸i ChiÕn Phôc/#Mod_TBSetID(3000)",
"ThiÖu Th¸nh Nguyªn So¸i ChiÕn Phôc/#Mod_TBSetID(3004)",
"Tèng §« Thèng ChiÕn/#Mod_TBSetID(2231)",
"Liªu §« Thèng ChiÕn/#Mod_TBSetID(2235)",
"Tµng kiÕm 8x/#Mod_TBSetID(95)", "Tæng Qu¶n 7x/#Mod_TBSetID(91)",
"Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_NTSetID(nidOutfits)
nIDOutfit = nidOutfits;
local szSay = {
g_szTitle .. "Chän lo¹i:", "Nãn/#Mod_NTGetOutfitType(108)",
"Trang phôc/#Mod_NTGetOutfitType(109)",
"H¹ y/#Mod_NTGetOutfitType(110)", "Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_TBSetID(nidOutfits)
nIDOutfit = nidOutfits;
local szSay = {
g_szTitle .. "Chän lo¹i:", "Nãn/#Mod_NTGetOutfitType(103)",
"Trang phôc/#Mod_NTGetOutfitType(100)",
"H¹ y/#Mod_NTGetOutfitType(101)",
"Trang søc/#Mod_NTGetOutfitType(102)",
"Vò khÝ/Mod_TBGetWaeponTypeList", "Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_TBGetWaeponTypeList()
local szSay = {
g_szTitle .. "Chän lo¹i:", "G¨ng tay/#Mod_NTGetOutfitType(0)",
"¸m khÝ/#Mod_NTGetOutfitType(1)", "KiÕm/#Mod_NTGetOutfitType(2)",
"§ao/#Mod_NTGetOutfitType(3)", "Cung/#Mod_NTGetOutfitType(4)",
"C«n/#Mod_NTGetOutfitType(5)", "Th¬ng/#Mod_NTGetOutfitType(6)",
"Song ®ao/#Mod_NTGetOutfitType(7)",
"TÝch trîng/#Mod_NTGetOutfitType(8)",
"Bót/#Mod_NTGetOutfitType(9)", "CÇm/#Mod_NTGetOutfitType(10)",
"Tr¶o/#Mod_NTGetOutfitType(11)", "Ra khái/nothing"
};
SelectSay(szSay);
end
function Mod_TestGetAll1(nidOutfits)
-- Vu khi
nIDOutfit = nidOutfits;
Mod_TBGetWaeponTypeList();
-- Non
nIDOutfit = nidOutfits;
nIDOutfitType = 103;
Mod_NTGetOutfits(0);
-- Ao
nIDOutfit = nidOutfits;
nIDOutfitType = 100;
Mod_NTGetOutfits(0);
-- Quan
nIDOutfit = nidOutfits;
nIDOutfitType = 101;
Mod_NTGetOutfits(0);
-- Trang Suc
nIDOutfit = nidOutfits;
nIDOutfitType = 102;
Mod_NTGetOutfits(0);
end
function Mod_NTGetOutfitType(nIdType)
nIDOutfitType = nIdType
IsTBPHP = 0
nD1 = 0;
nD2 = 0;
nD3 = 0;
SelectSay(outfitSzSay);
end
function Mod_NTGetOutfits(nD)
local att_type = 7
if nD == 0 then
nD1 = -1
nD2 = -1
nD = -1
att_type = -1
end
if nD1 == 0 then
nD1 = nD;
SelectSay(outfitSzSay);
else
if nD2 == 0 then
nD2 = nD;
SelectSay(outfitSzSay);
else
local nID = nIDOutfit + GetBody() - 1;
if IsTBPHP == 1 then
nID = tonumber(nIDOutfit);
end
if nIDOutfitType == 102 or nIDOutfitType == 108 or nIDOutfitType ==
109 or nIDOutfitType == 110 then
AddItem(0, nIDOutfitType, nID, 1, 1, att_type, nD1, att_type,
nD2, att_type, nD, -1, 0);
else
AddItem(0, nIDOutfitType, nID, 1, 1, att_type, nD1, att_type,
nD2, att_type, nD, -1, 15);
end
end
end
end
function BossTongHop()
local tSay = {}
tinsert(tSay, format("%s/Boss_LucLam", "B¾c Lôc L©m Minh Chñ"))
tinsert(tSay, format("%s/Boss_ThuongThan", "Th¬ng ThÇn Doanh Thiªn"))
tinsert(tSay, format("%s/Boss_HuongLang", "L·nh H¬ng L¨ng"))
tinsert(tSay, format("%s/Boss_LanHoa", "Lan Hoa"))
tinsert(tSay, format("%s/Boss_AnhTu", "Anh Tö"))
tinsert(tSay, format("%s/Boss_PhuThuy", "Phï thñy b¨ng gi¸"))
tinsert(tSay, format("%s/Boss_LuongSon", "H¶o h¸n L¬ng S¬n"))
tinsert(tSay, format("%s/Boss_W1", "§µo Hoa §¶o Chñ Hoµng Long")) -- boss vip
tinsert(tSay, format("%s/Boss_W2", "T©y Vùc Th¬ng Lang B¸ V¬ng"))
tinsert(tSay, format("%s/Boss_W3", "Ngäc S¬n Chi Linh Thiªn Cöu"))
tinsert(tSay, format("%s/Boss_W4", "U Tr¹ch Chi ¶nh Minh Vâ"))
tinsert(tSay, format("%s/Boss_TuLinh", "Tø Linh"))
tinsert(tSay, format("%s/Boss_NienThu", "§¹i Niªn Thó"))
tinsert(tSay, format("%s/Boss_ThitNuong", "YÕn tiÖc ThÞt Níng"))
tinsert(tSay, "T¹i h¹ chØ xem qua th«i/nothing");
Say(g_szTitle .. "Ng¬i cÇn gäi boss g×?", getn(tSay), tSay);
end
function Boss_LucLam()
local nMap, nX, nY = GetWorldPos();
local npcIndex = 0
npcIndex = CreateNpc("S¬n TÆc §Çu Môc", "B¾c Lôc L©m Minh Chñ",
nMap, nX + 2, nY + 2, -1, 1, 1, 30)
-- Msg2Global("Nghe nãi minh chñ lôc l©m ®ang ë t©y TuyÒn Ch©u 191/192, ch¾c ®ang cã ©m mu!")
SetNpcLifeTime(npcIndex, 7200)
SetNpcScript(npcIndex, "\\script\\task\\boss\\boss_ondeath.lua")
end
function Boss_ThuongThan()
local nMap, nX, nY = GetWorldPos();
local npcIndex = 0
npcIndex = CreateNpc("HuyÒn Vâ Thong", "Th¬ng ThÇn Doanh Thiªn",
nMap, nX + 2, nY + 2, -1, 1, 1, 30)
-- Msg2Global("Nghe nãi thÞ vÖ th©n tÝn cña TÇn Thñy Hoµng ®ang ë t©y TuyÒn Ch©u 189/192, vâ l©m s¾p cã mét trËn hµo kiÕp!")
SetNpcLifeTime(npcIndex, 7200)
SetNpcScript(npcIndex, "\\script\\task\\boss\\boss_ondeath.lua")
end
function Boss_HuongLang()
local nMap, nX, nY = GetWorldPos();
local npcIndex = 0
npcIndex = CreateNpc("NghiÖt Hån", "L·nh H¬ng L¨ng", nMap, nX + 2,
nY + 2, -1, 1, 1, 30)
-- Msg2Global("Nghe nãi L·nh H¬ng L¨ng ®ang ë t©y TuyÒn Ch©u 186/194, mau ®Õn ®ã xem thö dung nhan kiÒu diÔm cña nµng!")
SetNpcLifeTime(npcIndex, 7200)
SetNpcScript(npcIndex, "\\script\\task\\boss\\boss_ondeath.lua")
end
function Boss_LanHoa()
local nMap, nX, nY = GetWorldPos();
local npcIndex = 0
npcIndex = CreateNpc("lanhua_viet", "Lan Hoa", nMap, nX + 2, nY + 2, -1, 1,
1, 30)
-- Msg2Global("Cã ngêi nh×n thÊy Lan Hoa ®ang ë t©y TuyÒn Ch©u 181/190, mau ®Õn ®ã xem!")
SetNpcLifeTime(npcIndex, 7200)
SetNpcScript(npcIndex,
"\\script\\online\\viet_event\\lanhua_boss\\lanhua_boss.lua")
end
function Boss_AnhTu()
local nMap, nX, nY = GetWorldPos();
local npcIndex = 0
npcIndex = CreateNpc("yingzi_viet", "Anh Tö", nMap, nX + 2, nY + 2, -1, 1,
1, 30)
-- Msg2Global("Cã ngêi nh×n thÊy Anh Tö ®ang ë t©y TuyÒn Ch©u 179/192, mau ®Õn ®ã xem!")
SetNpcLifeTime(npcIndex, 7200)
SetNpcScript(npcIndex,
"\\script\\online\\viet_event\\lanhua_boss\\lanhua_boss.lua")
end
function Boss_ThitNuong()
-- Msg2Global("Cã ngêi nh×n thÊy YÕn tiÖc ThÞt Níng ®ang ë t©y TuyÒn Ch©u 181/188, mau ®Õn tham dù!")
local nAddX = 0
local nAddY = 0
local nTargetNpc = 0
local nMap, nX, nY = GetWorldPos();
for i = 1, 20 do
nAddX = random(-70, 70)
nAddY = random(-70, 70)
nTargetNpc = CreateNpc("M©m cç", "ThÞt Níng", nMap, nX + nAddX,
nY + nAddY)
SetNpcLifeTime(nTargetNpc, 130)
SetNpcScript(nTargetNpc,
"\\script\\online\\viet_event\\200909\\2\\pangtuzi_baoguo.lua")
end
end
function Boss_PhuThuy()
local nMap, nX, nY = GetWorldPos();
local nNpcIndex = 0
local nNpcIndex = CreateNpc("Phï thñy b¨ng gi¸",
"Phï thñy b¨ng gi¸", nMap, nX + 2, nY + 2);
SetNpcLifeTime(nNpcIndex, 7200);
SetNpcDeathScript(nNpcIndex,
"\\script\\online\\viet_event\\200912\\3\\death_binglengwushi.lua");
-- Msg2Global("Cã ngêi nh×n thÊy Phï thñy b¨ng gi¸ ®ang ë t©y TuyÒn Ch©u 192/188, mau ®Õn ®ã xem!")
end
function Boss_LuongSon()
local nNpcIndex = 0
local nMap, nX, nY = GetWorldPos();
local n = gf_GetRandItemByTable(LSB_NPC_GOLD_BOSS, 1000, 1) or 1;
local nNpcIndex = CreateNpc(LSB_NPC_GOLD_BOSS[n][1],
LSB_NPC_GOLD_BOSS[n][3], nMap, nX + 2, nY + 2);
SetNpcLifeTime(nNpcIndex, 7200);
SetNpcDeathScript(nNpcIndex,
"\\script\\online\\liangshanboss\\npc\\gld_boos_death.lua");
SetNpcRemoveScript(nNpcIndex,
"\\script\\online\\liangshanboss\\npc\\gld_boss_remove.lua");
-- Msg2Global("Cã ngêi ph¸t hiÖn H¶o h¸n L¬ng S¬n ®ang ë t©y TuyÒn Ch©u 191/187, mau ®Õn ®ã xem!")
end
LSB_NPC_GOLD_BOSS = {
-- {"yangxiong", 165, "BÖnh Quan S¸c D¬ng Hïng", 30 * 60},
-- {"linchong", 167, "B¸o Tö §Çu L©m Xung", 30 * 60},
-- {"luzhishen", 167, "Hoa Hßa Thîng Lç TrÝ Th©m", 30 * 60},
-- {"likui", 167, "H¾c Toµn Phong Lý Quú", 30 * 60},
-- {"husanliang", 167, "NhÊt Trîng Thanh Hæ Tam N¬ng", 30 * 60},
-- {"shixiu", 167, "Phanh MÖnh Tam Lang Th¹ch Tó", 30 * 60},
{"CËp Thêi Vò Tèng Giang", 167, "CËp Thêi Vò Tèng Giang", 30 * 60},
{"Tri §a Tinh Ng« Dông", 167, "Tri §a Tinh Ng« Dông", 30 * 60},
{"Cöu V¨n Long Sö TiÕn", 167, "Cöu V¨n Long Sö TiÕn", 30 * 60}, {
"TiÓu TuyÒn Phong Sµi TiÕn", 167, "TiÓu TuyÒn Phong Sµi TiÕn",
30 * 60
}, {"§¹i §ao Quan Th¾ng", 167, "§¹i §ao Quan Th¾ng", 30 * 60}, {
"NhËp V©n Long C«ng T«n Th¾ng", 167,
"NhËp V©n Long C«ng T«n Th¾ng", 30 * 60
}, {"B¸o Tö §Çu L©m Xung", 167, "B¸o Tö §Çu L©m Xung", 30 * 60},
{
"Hoa Hßa Thîng Lç TrÝ Th©m", 167,
"Hoa Hßa Thîng Lç TrÝ Th©m", 30 * 60
}, {"Hµnh Gi¶ Vâ Tßng", 167, "Hµnh Gi¶ Vâ Tßng", 30 * 60}, {
"Tóy B¸n Tiªn Phong NhÊt Phµm", 167,
"Tóy B¸n Tiªn Phong NhÊt Phµm", 30 * 60
}, {
"BÖnh Quan S¸c D¬ng Hïng", 167, "BÖnh Quan S¸c D¬ng Hïng",
30 * 60
}, {
"Phanh MÖnh Tam Lang Th¹ch Tó", 167,
"Phanh MÖnh Tam Lang Th¹ch Tó", 30 * 60
}, {
"NhÊt Trîng Thanh Hæ Tam N¬ng", 167,
"NhÊt Trîng Thanh Hæ Tam N¬ng", 30 * 60
}, {
"Song Th¬ng Tíng §æng B×nh", 167,
"Song Th¬ng Tíng §æng B×nh", 30 * 60
}, {
"Thanh DiÖn Thó D¬ng TrÝ", 167, "Thanh DiÖn Thó D¬ng TrÝ",
30 * 60
},
{"TÝch LÞch Háa TÇn Minh", 167, "TÝch LÞch Háa TÇn Minh", 30 * 60},
{
"Song Tiªn H« Diªn Chíc", 167, "Song Tiªn H« Diªn Chíc",
30 * 60
}, {"H¾c Toµn Phong Lý Quú", 167, "H¾c Toµn Phong Lý Quú", 30 * 60}
};
function Boss_W1()
local nMap, nX, nY = GetWorldPos();
local nNpcIdx = 0
local npcIndex = CreateNpc("WorldBoss_HL",
"§µo Hoa §¶o Chñ Hoµng Long", nMap, nX + 2, nY + 2);
SetNpcLifeTime(npcIndex, 20 * 60);
SetNpcDeathScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_death.lua");
SetNpcRemoveScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_remove.lua");
end
function Boss_W2()
local nMap, nX, nY = GetWorldPos();
local nNpcIdx = 0
local npcIndex = CreateNpc("WorldBoss_CLBZ",
"T©y Vùc Th¬ng Lang B¸ V¬ng", nMap, nX + 2, nY + 2);
SetNpcLifeTime(npcIndex, 20 * 60);
SetNpcDeathScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_death.lua");
SetNpcRemoveScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_remove.lua");
end
function Boss_W3()
local nMap, nX, nY = GetWorldPos();
local nNpcIdx = 0
local npcIndex = CreateNpc("WorldBoss_TJ",
"Ngäc S¬n Chi Linh Thiªn Cöu", nMap, nX + 2, nY + 2);
SetNpcLifeTime(npcIndex, 20 * 60);
SetNpcDeathScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_death.lua");
SetNpcRemoveScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_remove.lua");
end
function Boss_W4()
local nMap, nX, nY = GetWorldPos();
local nNpcIdx = 0
local npcIndex = CreateNpc("WorldBoss_MW", "U Tr¹ch Chi ¶nh Minh Vâ",
nMap, nX + 2, nY + 2);
SetNpcLifeTime(npcIndex, 20 * 60);
SetNpcDeathScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_death.lua");
SetNpcRemoveScript(npcIndex,
"\\script\\function\\world_boss\\wb_boss_remove.lua");
end
function Thuong_LuongSon()
local nMap, nX, nY = GetWorldPos();
local nNpcIdx = 0
local nNpcIdx = CreateNpc(IBbaoxiang, "R¬ng H¶o H¸n", nMap, nX + 2,
nY + 2);
SetNpcLifeTime(nNpcIdx, 3 * 60);
SetNpcScript(nNpcIdx, "\\script\\online\\liangshanboss\\npc\\box\\box_e.lua");
end
function Boss_TuLinh()
local nNpcIndex = 0
local nMap, nX, nY = GetWorldPos();
local n = gf_GetRandItemByTable(TuLinh_BOSS_LIST, 1000, 1) or 1;
local nNpcIndex = CreateNpc(TuLinh_BOSS_LIST[n][1], TuLinh_BOSS_LIST[n][3],
nMap, nX + 2, nY + 2);
SetNpcLifeTime(nNpcIndex, 7200);
SetNpcDeathScript(nNpcIndex,
"\\script\\online_activites\\tiaozhansilingboss\\boss\\boss_death.lua");
end
TuLinh_BOSS_LIST = {
{"Long Tö", 165, "Long ThÇn Hãa Th©n", 30 * 60},
{"Phông Tö", 167, "Phông ThÇn Hãa Th©n", 30 * 60},
{"Hæ Tö", 165, "Hæ ThÇn Hãa Th©n", 30 * 60},
{"¦ng Tö", 167, "¦ng ThÇn Hãa Th©n", 30 * 60}
}
function Boss_NienThu()
local nNpcIndex = 0
local nMap, nX, nY = GetWorldPos();
local nNpcIndex = CreateNpc("§¹i Niªn Thó", "ThÇn thó ngh×n n¨m",
nMap, nX + 2, nY + 2);
SetNpcLifeTime(nNpcIndex, 7200);
SetNpcScript(nNpcIndex,
"\\script\\online_activites\\2011_03\\boss\\npc\\bigboss.lua");
end
function AddNPC(nVar1)
local map_ID, att_X, att_Y = GetWorldPos();
local nNpcIndex = CreateNpc("WorldBoss_rwx", "BOSS ThÕ Giíi", map_ID,
att_X, att_Y);
SetNpcLifeTime(nNpcIndex, 1000);
-- SetNpcDeathScript(nNpcIndex, );
end
-- TRANG BI THONG THUONG
function GetTB()
local szSay = {
g_szTitle .. "Lùa chän", "Trang bÞ dïng chung/Mod_GetTBDC",
"Trang bÞ Kim Xµ 6/Get_KimXa",
"Trang bÞ V« Song ChiÕn ThÇn/Get_VSCT",
"Trang bÞ H¾c B¹ch V« Song/Get_HBVS",
"Trang bÞ V« H¹ Hµo HiÖp/Get_HHVH", "Trang bÞ ¢m HuyÕt/Get_AH",
"Trang bÞ S¸t Tinh/Get_ST", "Trang bÞ ChiÕn Trêng/GetCT",
"Trang bÞ Minh Tinh V« Cùc/Get_NgocBoi", "\nRa khái/nothing"
};
SelectSay(szSay);
end
function Get_KimXa()
local szSay = {
g_szTitle .. "Lùa chän trang b?",
"Trang bÞ Kim Xµ Phi Phong Hoan L¨ng/Get_KXDH",
"Trang bÞ Kim Xµ Phi Phong §»ng Giao/Get_KXTH",
"Trang bÞ Kim Xµ Phi Phong Khëi Phîng/Get_KXVD",
"Ra khái/nothing"
};
SelectSay(szSay);
end
function Get_KXDH()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
-- kx6 hoan l¨ng
local pifeng, pIndex = AddItem(0, 154, 32, 1, 4, -1, -1, -1, -1, -1, -1, 0,
15)
FeedItem(pIndex, 1000000)
SetItemFeedUpAttrs(pIndex, random(2514, 2515), random(2527, 2531),
random(2543, 2547), random(2561, 2566), random(2572, 2573),
random(2608, 2612))
local huizhang, hIndex = AddItem(0, 153, 32, 1, 4, -1, -1, -1, -1, -1, -1,
0, 15)
FeedItem(hIndex, 1000000)
SetItemFeedUpAttrs(hIndex, random(2514, 2515), random(2527, 2531),
random(2543, 2547), random(2561, 2566), random(2572, 2573),
random(2583, 2585))
local xie, xIndex = AddItem(0, 152, 32, 1, 4, -1, -1, -1, -1, -1, -1, 0, 15)
FeedItem(xIndex, 1000000)
SetItemFeedUpAttrs(xIndex, random(2514, 2515), random(2527, 2531),
random(2543, 2547), random(2561, 2566), random(2572, 2573),
random(2583, 2586))
-- end kx6 hoan l¨ng
end
function Get_KXTH()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
-- kx6 ®»ng giao
local pifeng, pIndex = AddItem(0, 154, 33, 1, 4, -1, -1, -1, -1, -1, -1, 0,
15)
FeedItem(pIndex, 1000000)
SetItemFeedUpAttrs(pIndex, random(2618, 2619), random(2631, 2635),
random(2647, 2651), random(2665, 2670), random(2678, 2680),
random(2703, 2706))
local huizhang, hIndex = AddItem(0, 153, 33, 1, 4, -1, -1, -1, -1, -1, -1,
0, 15)
FeedItem(hIndex, 1000000)
SetItemFeedUpAttrs(hIndex, random(2618, 2619), random(2631, 2635),
random(2647, 2651), random(2665, 2670), random(2678, 2680),
random(2690, 2693))
local xie, xIndex = AddItem(0, 152, 33, 1, 4, -1, -1, -1, -1, -1, -1, 0, 15)
FeedItem(xIndex, 1000000)
SetItemFeedUpAttrs(xIndex, random(2618, 2619), random(2631, 2635),
random(2647, 2651), random(2665, 2670), random(2678, 2680),
random(2690, 2693))
-- end kx6 ®»ng giao
end
function Get_KXVD()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
-- kx6 khëi phîng
local pifeng, pIndex = AddItem(0, 154, 34, 1, 4, -1, -1, -1, -1, -1, -1, 0,
15)
FeedItem(pIndex, 1000000)
SetItemFeedUpAttrs(pIndex, random(2712, 2713), random(2725, 2729),
random(2741, 2745), random(2759, 2764), random(2772, 2774),
random(2799, 2803))
local huizhang, hIndex = AddItem(0, 153, 34, 1, 4, -1, -1, -1, -1, -1, -1,
0, 15)
FeedItem(hIndex, 1000000)
SetItemFeedUpAttrs(hIndex, random(2712, 2713), random(2725, 2729),
random(2741, 2745), random(2759, 2764), random(2772, 2774),
random(2784, 2787))
local xie, xIndex = AddItem(0, 152, 34, 1, 4, -1, -1, -1, -1, -1, -1, 0, 15)
FeedItem(xIndex, 1000000)
SetItemFeedUpAttrs(xIndex, random(2712, 2713), random(2725, 2729),
random(2741, 2745), random(2759, 2764), random(2772, 2774),
random(2784, 2787))
-- end kx6 khëi phîng )
end
function Get_VSCT()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
local nRoute = GetPlayerRoute();
local nBody = 30651 + GetBody() - 1;
AddItem(0, 103, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 101, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 100, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
end
function Get_HBVS()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
local nRoute = GetPlayerRoute();
local nBody = 20020 + GetBody() - 1;
AddItem(0, 103, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 101, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 100, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
end
function Get_HHVH()
AddItem(2, 1, 30947, 1);
AddItem(2, 1, 30948, 1);
AddItem(2, 1, 30949, 1);
AddItem(2, 1, 30977, 2);
AddItem(2, 1, 30976, 1);
end
function Get_ST()
AddItem(2, 1, 50000, 1);
AddItem(2, 1, 50001, 1);
AddItem(2, 1, 50002, 1);
AddItem(2, 1, 50004, 2);
AddItem(2, 1, 50003, 1);
end
function Get_AH()
if 1 ~= gf_Judge_Room_Weight(3, 1, g_szTitle) then
return 0;
end
local nRoute = GetPlayerRoute();
local nBody = 20012 + GetBody() - 1;
AddItem(0, 103, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 101, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 100, nBody, 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
AddItem(0, 102, 31414, 1, 1, -1, -1, -1, -1, -1, -1, 1, 0);
AddItem(0, 102, 31415, 1, 1, -1, -1, -1, -1, -1, -1, 1, 0);
local nVK = 30884;
local ID = {
[2] = {3, nVK},
[3] = {8, nVK + 2},
[4] = {0, nVK + 1},
[6] = {1, nVK + 3},
[8] = {2, nVK + 4},
[9] = {10, nVK + 5},
[11] = {0, nVK + 6},
[12] = {5, nVK + 7},
[14] = {2, nVK + 8},
[15] = {9, nVK + 9},
[17] = {6, nVK + 10},
[18] = {4, nVK + 11},
[20] = {7, nVK + 12},
[21] = {11, nVK + 13},
[23] = {2, nVK + 14},
[25] = {3, nVK + 15},
[26] = {9, nVK + 16},
[27] = {11, nVK + 17},
[29] = {13, nVK + 18},
[30] = {12, nVK + 19}
};
for k, v in pairs(ID) do
if nRoute == k then
AddItem(0, v[1], v[2], 1, 1, -1, -1, -1, -1, -1, -1, 1, 15);
end
end
end
function Get_NgocBoi()
if 1 ~= gf_Judge_Room_Weight(2, 1, g_szTitle) then
return 0;
end
AddItem(0, 102, 31130, 1, 1, -1, -1, -1, -1, -1, -1, 1, 0)
AddItem(0, 102, 31131, 1, 1, -1, -1, -1, -1, -1, -1, 1, 0)
end
-- TRANG BI CHIEN TRUONG
function GetCT()
local szSay = {
g_szTitle .. "Lùa chän", "NhËn trang bÞ Háa Phông/Get_CT_HP",
"NhËn trang bÞ Thanh Long/Get_CT_TL",
"NhËn trang bÞ Uy Hæ/Get_CT_UH", "\nRa khái/nothing"
};
SelectSay(szSay);
end
-- Trang bi UY HO
function Get_CT_UH()
local szSay = {
g_szTitle .. "Lùa chän trang bÞ",
"Trang phôc Uy Hæ Tíng Phe Tèng/#Get_TP_CT_UH(1,1)",
"Trang phôc Uy Hæ So¸i Phe Tèng/#Get_TP_CT_UH(1,2)",
"Trang phôc Uy Hæ Tíng Phe Liªu/#Get_TP_CT_UH(2,1)",
"Trang phôc Uy Hæ So¸i Phe Liªu/#Get_TP_CT_UH(2,2)",
"\nRa khái/nothing"
};
SelectSay(szSay);
end
-- Trang bi THANH LONG
function Get_CT_TL()
local szSay = {
g_szTitle .. "Lùa chän trang bÞ",
"Trang phôc Thanh Long Tíng Phe Tèng/#Get_TP_CT_TL(1,1)",
"Trang phôc Thanh Long So¸i Phe Tèng/#Get_TP_CT_TL(1,2)",
"Trang phôc Thanh Long Tíng Phe Liªu/#Get_TP_CT_TL(2,1)",
"Trang phôc Thanh Long So¸i Phe Liªu/#Get_TP_CT_TL(2,2)",
"\nRa khái/nothing"
};
SelectSay(szSay);
end
-- Trang bi Hoa Phung
function Get_CT_HP()
local szSay = {
g_szTitle .. "Lùa chän trang bÞ",
"Trang phôc Háa Phông Tíng Phe Tèng/#Get_TP_CT_HP(1,1)",
"Trang phôc Háa Phông So¸i Phe Tèng/#Get_TP_CT_HP(1,2)",
"Trang phôc Háa Phông Tíng Phe Liªu/#Get_TP_CT_HP(2,1)",
"Trang phôc Háa Phông So¸i Phe Liªu/#Get_TP_CT_HP(2,2)",
"\nRa khái/nothing"
};
SelectSay(szSay);
end
-- GET
function Get_TP_CT_UH(nPhe, nQH)
if nPhe == 1 and nQH == 1 then
local ID1 = 20556 -- TP
local ID2 = 10196 -- NB
local ID3 = 20556 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 1 and nQH == 2 then
local ID1 = 20620 -- TP
local ID2 = 10388 -- NB
local ID3 = 20620 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 1 then
local ID1 = 20684 -- TP
local ID2 = 10644 -- NB
local ID3 = 20684 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 2 then
local ID1 = 20748 -- TP
local ID2 = 10836 -- NB
local ID3 = 20748 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
end
end
function Get_TP_CT_TL(nPhe, nQH)
if nPhe == 1 and nQH == 1 then
local ID1 = 20300 -- TP
local ID2 = 9300 -- NB
local ID3 = 20300 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 1 and nQH == 2 then
local ID1 = 20364 -- TP
local ID2 = 9492 -- NB
local ID3 = 20364 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 1 then
local ID1 = 20428 -- TP
local ID2 = 9748 -- NB
local ID3 = 20428 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 2 then
local ID1 = 20492 -- TP
local ID2 = 9940 -- NB
local ID3 = 20492 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
end
end
function Get_TP_CT_HP(nPhe, nQH)
if nPhe == 1 and nQH == 1 then
local ID1 = 30311 -- TP
local ID2 = 30228 -- NB
local ID3 = 30328 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 1 and nQH == 2 then
local ID1 = 30375 -- TP
local ID2 = 30420 -- NB
local ID3 = 30432 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 1 then
local ID1 = 30439 -- TP
local ID2 = 30676 -- NB
local ID3 = 30536 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
elseif nPhe == 2 and nQH == 2 then
local ID1 = 30503 -- TP
local ID2 = 30868 -- NB
local ID3 = 30640 -- VK
GetCTEnd(ID1, ID2, ID3, nQH);
end
end
function GetCTEnd(ID1, ID2, ID3, nQH)
local ID = {
[2] = {3, ID1, ID2, ID3},
[3] = {8, ID1 + 2, ID2 + 2, ID3 + 2},
[4] = {0, ID1 + 4, ID2 + 4, ID3 + 4},
[6] = {1, ID1 + 6, ID2 + 6, ID3 + 6},
[8] = {2, ID1 + 10, ID2 + 10, ID3 + 10},
[9] = {10, ID1 + 12, ID2 + 12, ID3 + 12},
[11] = {0, ID1 + 14, ID2 + 14, ID3 + 14},
[12] = {5, ID1 + 18, ID2 + 18, ID3 + 18},
[14] = {2, ID1 + 22, ID2 + 22, ID3 + 22},
[15] = {9, ID1 + 26, ID2 + 26, ID3 + 26},
[17] = {6, ID1 + 30, ID2 + 30, ID3 + 30},
[18] = {4, ID1 + 34, ID2 + 34, ID3 + 34},
[20] = {7, ID1 + 38, ID2 + 38, ID3 + 38},
[21] = {11, ID1 + 42, ID2 + 42, ID3 + 42},
[23] = {2, ID1 + 46, ID2 + 46, ID3 + 46},
[25] = {3, ID1 + 48, ID2 + 48, ID3 + 48},
[26] = {9, ID1 + 52, ID2 + 52, ID3 + 52},
[27] = {11, ID1 + 56, ID2 + 56, ID3 + 56},
[29] = {13, ID1 + 60, ID2 + 60, ID3 + 60},
[30] = {12, ID1 + 62, ID2 + 62, ID3 + 62}
};
local nRoute = GetPlayerRoute();
if nRoute == 8 or nRoute == 9 or nRoute == 29 or nRoute == 30 then
nBody = GetBody() - 3;
else
nBody = GetBody() - 1;
end
-- local nA = 0;
-- local nTP = 0;
-- local nNB = 0;
-- local nVK = 0;
nTBCT_ATT_A = 0;
nTBCT_ATT_TP = 0;
nTBCT_ATT_NB = 0;
nTBCT_ATT_VK = 0;
for k, v in pairs(ID) do
if nRoute == k then
-- nA = v[1];
-- nTP = v[2] + nBody;
-- nNB = v[3] + nBody;
-- nVK = v[4] + nBody;
nTBCT_ATT_A = v[1];
nTBCT_ATT_TP = v[2] + nBody;
nTBCT_ATT_NB = v[3] + nBody;
nTBCT_ATT_VK = v[4] + nBody;
-- AddItem(0, 103, nTP, 1,1,-1,-1,-1,-1,-1,-1,1,15); --TP
-- AddItem(0, 101, nTP, 1,1,-1,-1,-1,-1,-1,-1,1,15);
-- AddItem(0, 100, nTP, 1,1,-1,-1,-1,-1,-1,-1,1,15);
-- AddItem(0, 102, nNB, 1,1,-1,-1,-1,-1,-1,-1,1,0); -- NB
-- AddItem(0, 102, nNB + 64, 1,1,-1,-1,-1,-1,-1,-1,1,0);
-- AddItem(0, 102, nNB + 64 * 2, 1,1,-1,-1,-1,-1,-1,-1,1,0);
-- if nQH == 2 then
-- AddItem(0, 102, nNB + 64 * 3, 1,1,-1,-1,-1,-1,-1,-1,1,0); --NBS
-- end
-- AddItem(0, nA, nVK, 1,1,-1,-1,-1,-1,-1,-1,1,15); --VK
end
end