This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
AdvPotsWind-1-6.l2s
3067 lines (2730 loc) · 83 KB
/
AdvPotsWind-1-6.l2s
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 class\user_info.l2c
include class\char_info.l2c
include class\clan_info.l2c
include class\target_me_class.l2c
DEFINE_GLOBAL int hp_pots 1 // 0 off
DEFINE_GLOBAL int mp_pots 1 // 0 off
//==== edited by moch
DEFINE_GLOBAL int cp_pots 0 // 0 off
DEFINE_GLOBAL int gcp_pots 1 // 0 off
DEFINE_GLOBAL int cp_elixir 1 // 0 off
DEFINE_GLOBAL int auto_pots 1 // 0 off
DEFINE_GLOBAL int anti_mira 1 // 0 off
DEFINE_GLOBAL int anti_disa 1 // 0 off
//////////////////// potions ///////////////////////////
// ID potion
DEFINE_GLOBAL int mp_pot_id 728 /// 728 -MANA POTION iD
DEFINE_GLOBAL int hp_pot_id 1539 /// 1539 -ghp ID
DEFINE_GLOBAL int cp_pot_id 5591 /// 5591 - CP POT ID
DEFINE_GLOBAL int cp_elixir_id 8639 /// Elixir of CP (S-Grade)
DEFINE_GLOBAL int gcp_pot_id 5592 /// 5592 - Greater CP POT ID
DEFINE_GLOBAL int sleep_cp 700 ///delay cp
DEFINE_GLOBAL int sleep_gcp 600 ///delay cp
DEFINE_GLOBAL int sleep_cp_elixir 30000 ///delay cp
DEFINE_GLOBAL int sleep_mp 1500 ///delay mp
////////////////////////////////////////////////////////////
// ADV settings
// self
DEFINE_GLOBAL int fake_gm 1 // 0 - off (fix hellbound map)
DEFINE_GLOBAL int fake_hero 0 // 1-on fake hero
DEFINE_GLOBAL int fake_agh 0 // 1 - on fake aghation
DEFINE_GLOBAL int id_agha 0 // id aghation
DEFINE_GLOBAL int osd 1 // 1- dmg on scren
//others
DEFINE_GLOBAL int tar_tag 1 // show circle on ppl who target u
DEFINE_GLOBAL int siege_alag 0 // 1 on
DEFINE_GLOBAL int race_dif 0 // 1 on
DEFINE_GLOBAL int heal_tit 1 // 1 on
/////////////////////////////////////////////////////////////////////////
DEFINE_GLOBAL int sort_type 2 // 1- by dist 2 - by class
DEFINE_GLOBAL int osd_type 1 // 1 - normal 2- with special system
//////////////////////////////////////////////////////////////////////////
define_global user_nfo pak 0
define_global sortedlist char_list 0
define_global arraylist class 0
define_global arraylist ppl_arr 0
///////// vary dla listy
define_global sortedlist clan_data 0
define_global sortedlist war_enem 0
define_global sortedlist Shop_list 0
define_global sortedlist Shop_list2 0
define_global int jum 0
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
// lista playerow
DEFINE_GLOBAL Sortedlist Target_me_list 0
// bypasy
DEFINE_GLOBAL string byp1 "bypass -h l2net_auto_pots_on"
DEFINE_GLOBAL string byp2 "bypass -h l2net_auto_pots_off"
DEFINE_GLOBAL string byp3 "bypass -h l2net_anti_mir_on"
DEFINE_GLOBAL string byp4 "bypass -h l2net_anti_mir_off"
DEFINE_GLOBAL string byp5 "bypass -h l2net_anti_dis_on"
DEFINE_GLOBAL string byp6 "bypass -h l2net_anti_dis_off"
DEFINE_GLOBAL string byp7 "bypass -h l2net_target "
DEFINE_GLOBAL string byp8 "bypass -h l2net_fake_gm_on"
DEFINE_GLOBAL string byp9 "bypass -h l2net_fake_gm_off"
DEFINE_GLOBAL string byp10 "bypass -h l2net_fake_hero_on"
DEFINE_GLOBAL string byp11 "bypass -h l2net_fake_hero_off"
DEFINE_GLOBAL string byp12 "bypass -h l2net_fake_agh_on"
DEFINE_GLOBAL string byp13 "bypass -h l2net_fake_agh_off"
DEFINE_GLOBAL string byp14 "bypass -h l2net_tar_tag_on"
DEFINE_GLOBAL string byp15 "bypass -h l2net_tar_tag_off"
DEFINE_GLOBAL string byp16 "bypass -h l2net_AntiL_on"
DEFINE_GLOBAL string byp17 "bypass -h l2net_AntiL_off"
DEFINE_GLOBAL string byp18 "bypass -h l2net_Rac_on"
DEFINE_GLOBAL string byp19 "bypass -h l2net_Rac_off"
DEFINE_GLOBAL string byp20 "bypass -h l2net_Hea_tit_on"
DEFINE_GLOBAL string byp21 "bypass -h l2net_Hea_tit_off"
DEFINE_GLOBAL string byp22 "bypass -h l2net_osd_on"
DEFINE_GLOBAL string byp23 "bypass -h l2net_osd_off"
DEFINE_GLOBAL string byp24 "bypass -h l2net_agh_id "
DEFINE_GLOBAL string byp25 "bypass -h l2net_page "
DEFINE_GLOBAL string byp26 "bypass -h l2net_next "
DEFINE_GLOBAL string byp27 "bypass -h l2net_back "
// anti mir
DEFINE_GLOBAL int my_target_id 0
DEFINE_GLOBAL int my_tar_un 0
///
DEFINE_GLOBAL int temp_mp 0
DEFINE_GLOBAL int temp_hp 0
DEFINE_GLOBAL int temp_cp 0
DEFINE_GLOBAL int temp_gcp 0
DEFINE_GLOBAL int temp_e 0
call add_class
THREAD pots_count
if cp_pots == 1
THREAD SPAM_CP
endif
if gcp_pots == 1
THREAD SPAM_GCP
endif
if cp_elixir == 1
THREAD SPAM_CP_ELIXIR
endif
if hp_pots == 1
THREAD SPAM_GHP
endif
if mp_pots == 1
THREAD SPAM_MP
endif
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" del_obj 8
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" tar_sel 35
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" tar_uns 36
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" my_tar 185
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" read_user_info 50
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" read_char_info 49
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" tp_to 34
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" clans 137
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" rela 206
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" auto_stop_combat 38
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" sys_msg_pck 98
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" shop_tit 162
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" shop_tit2 191
block 191
block 162
block 50
block 49
// cli
SET_EVENT "<&SCRIPTEVENT_CLIENTPACKET&>" "<&SYSTEM_CURRENTFILE&>" bypas 35
SET_EVENT "<&SCRIPTEVENT_CLIENTPACKET&>" "<&SYSTEM_CURRENTFILE&>" req_can_ta 72
BLOCK_CLIENT 35
//
SET_EVENT "<&SCRIPTEVENT_SYSTEMMESSAGE&>" "<&SYSTEM_CURRENTFILE&>" sysmsg
SET_EVENT "<&SCRIPTEVENT_CHATTOBOT&>" "<&SYSTEM_CURRENTFILE&>" polec
define arraylist inv 0
GET_INVENTORY inv
DEFINE_GLOBAL int id_wep 0
for a 0 "<&inv.count&>" 1
if inv.a.EQUIPPED == 1
if inv.a.slot == 128
id_wep = inv.a.id
endif
if inv.a.slot == 16384
id_wep = inv.a.id
endif
endif
next
if id_wep == 0
anti_disa = 0
endif
call okno_ig
DO
SLEEP 2000
LOOP 1 == 1
END_SCRIPT
FUNCTION SPAM_GCP
DEFINE INT MIN_CP 0
DO
IF auto_pots == 1
IF CHAR_CUR_HP != #i0
MIN_CP = CHAR_MAX_CP - #i200
IF CHAR_CUR_CP < MIN_CP
USE_ITEM "<&gcp_pot_id&>"
SLEEP "<&sleep_gcp&>"
ENDIF
ENDIF
ELSE
SLEEP 2000
ENDIF
LOOP ZERO == ZERO
RETURN VOID
FUNCTION SPAM_CP
DEFINE INT MIN_CP 0
DO
IF auto_pots == 1
IF CHAR_CUR_HP != #i0
MIN_CP = CHAR_MAX_CP - #i50
IF CHAR_CUR_CP < MIN_CP
USE_ITEM "<&cp_pot_id&>"
SLEEP "<&sleep_cp&>"
ENDIF
ENDIF
ELSE
SLEEP 2000
ENDIF
LOOP ZERO == ZERO
RETURN VOID
FUNCTION SPAM_CP_ELIXIR
DO
IF auto_pots == 1
IF CHAR_CUR_HP != #i0
IF CHAR_CUR_CP < #i200
USE_ITEM "<&cp_elixir_id&>"
SLEEP "<&sleep_cp_elixir&>"
ENDIF
ENDIF
ELSE
SLEEP 10000
ENDIF
LOOP ZERO == ZERO
RETURN VOID
FUNCTION SPAM_GHP
DEFINE INT MIN_HP 0
DO
IF auto_pots == 1
MIN_HP = CHAR_MAX_HP - #i200
IF CHAR_CUR_HP != 0
IF CHAR_CUR_HP < MIN_HP
USE_ITEM "<&hp_pot_id&>"
SLEEP 3500
ENDIF
endif
endif
sleep 1000
LOOP ZERO == ZERO
RETURN VOID
FUNCTION SPAM_MP
DEFINE INT MIN_MP 0
DO
IF auto_pots == 1
IF CHAR_CUR_HP != 0
MIN_MP = CHAR_MAX_MP - 500
IF CHAR_CUR_MP < MIN_MP
USE_ITEM "<&mp_pot_id&>"
ENDIF
ENDIF
ENDIF
sleep "<&sleep_mp&>"
LOOP ZERO == ZERO
RETURN VOID
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
function okno_ig
Define bytebuffer okno 6000
define int p1 25
define int p2 5
define int p3 5588
define int max_tab 0
define int max_tab__l 0
define string html_string ""
Define string htm_1 "<html>"
Define string htm_2 "</CENTER></body></html>"
Define string htm_3 "</CENTER>"
Define string htm_4 "<title>"
Define string htm_5 "</title>"
Define string htm_6 "<body><CENTER>"
Define string on_t "ON"
Define string off_t "OFF"
Define string mp_p "MP: "
Define string hp_p "HP: "
Define string cp_p "CP: "
Define string gcp_p "GCP: "
Define string cp_elixir_p "CPE: "
Define string kol1 "<font color=\"LEVEL\">" // zolty
Define string kol2 "<font color=\"00FFFF\">" // morski
Define string kol3 "<font color=\"FF0000\">" // red
Define string kol4 "<font color=\"ae9977\">"
Define string kol_end "</font>"
Define string ent "<br>"
Define string ent1 "<br1>"
Define string spc " "
Define string lin "--------------------------------------------------"
// guziki - linki
Define string gu1 "<button value=\"" // tu napis
Define string gu2 "\" action=\"" //zatym bypas
Define string gu3 "\" width=30 height=21 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\">"
Define string gu4 "<a action=\"" //bypass
Define string gu5 "\">" //napis
Define string gu6 "</a>"
//
// tabela
Define string tab1 "<table width=280 border=0 bgcolor=\"444444\">"
Define string tab2 "</table>"
Define string tab3 "<td>"
Define string tab4 "</td>"
Define string tab5 "<table width=260 border=1>"
Define string tab6 "<tr>"
Define string tab7 "</tr>"
//
define string text "PVP HELPER 1.6 EP by AdiFenix "
define string text2 " Targets : "
define string text3 "APots:"
define string text4 "AMir:"
define string text5 "ADis:"
okno.write_byte p1
okno.write_int32 p2
html_string = htm_1
html_string = html_string + htm_4
html_string = html_string + "#$PVP Helper"
html_string = html_string + htm_5
html_string = html_string + htm_6
html_string = html_string + kol1
html_string = html_string + text
html_string = html_string + kol_end
html_string = html_string + ent
html_string = html_string + tab1
html_string = html_string + tab6
html_string = html_string + tab3
html_string = html_string + text3
html_string = html_string + tab4
if auto_pots == 1
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + on_t
html_string = html_string + gu2
html_string = html_string + byp1
html_string = html_string + gu3
html_string = html_string + tab4
else
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + off_t
html_string = html_string + gu2
html_string = html_string + byp2
html_string = html_string + gu3
html_string = html_string + tab4
endif
html_string = html_string + tab3
html_string = html_string + text4
html_string = html_string + tab4
if anti_mira == 1
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + on_t
html_string = html_string + gu2
html_string = html_string + byp3
html_string = html_string + gu3
html_string = html_string + tab4
else
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + off_t
html_string = html_string + gu2
html_string = html_string + byp4
html_string = html_string + gu3
html_string = html_string + tab4
endif
html_string = html_string + tab3
html_string = html_string + text5
html_string = html_string + tab4
if anti_disa == 1
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + on_t
html_string = html_string + gu2
html_string = html_string + byp5
html_string = html_string + gu3
html_string = html_string + tab4
else
html_string = html_string + tab3
html_string = html_string + gu1
html_string = html_string + off_t
html_string = html_string + gu2
html_string = html_string + byp6
html_string = html_string + gu3
html_string = html_string + tab4
endif
html_string = html_string + tab7
html_string = html_string + tab2
html_string = html_string + ent
html_string = html_string + kol4
html_string = html_string + "#$-------------------- POTS ----------------------"
html_string = html_string + kol_end
// potki
html_string = html_string + ent1
html_string = html_string + "#$("
html_string = html_string + mp_p
html_string = html_string + kol1
html_string = html_string + "#$<&temp_mp&>"
html_string = html_string + kol_end
html_string = html_string + "#$)"
html_string = html_string + spc
html_string = html_string + "#$("
html_string = html_string + hp_p
html_string = html_string + kol1
html_string = html_string + "#$<&temp_hp&>"
html_string = html_string + kol_end
html_string = html_string + "#$)"
html_string = html_string + ent1
html_string = html_string + spc
html_string = html_string + "#$("
html_string = html_string + gcp_p
html_string = html_string + kol1
html_string = html_string + "#$<&temp_gcp&>"
html_string = html_string + kol_end
html_string = html_string + "#$)"
html_string = html_string + spc
html_string = html_string + "#$("
html_string = html_string + cp_p
html_string = html_string + kol1
html_string = html_string + "#$<&temp_cp&>"
html_string = html_string + kol_end
html_string = html_string + "#$)"
html_string = html_string + spc
html_string = html_string + "#$("
html_string = html_string + cp_elixir_p
html_string = html_string + kol1
html_string = html_string + "#$<&temp_e&>"
html_string = html_string + kol_end
html_string = html_string + "#$)"
html_string = html_string + ent1
html_string = html_string + kol4
html_string = html_string + "#$-------------------- Target --------------------"
html_string = html_string + kol_end
html_string = html_string + ent
html_string = html_string + tab1
html_string = html_string + "#$<CENTER>"
// tabela - targetu
max_tab = Target_me_list.count - 1
if Target_me_list.count != 0
do
html_string = html_string + tab6
html_string = html_string + tab3
html_string = html_string + gu4
html_string = html_string + byp7
html_string = html_string + Target_me_list.max_tab.id
html_string = html_string + gu5
html_string = html_string + Target_me_list.max_tab.name
html_string = html_string + gu6
html_string = html_string + tab4
html_string = html_string + tab3
html_string = html_string + Target_me_list.max_tab.class
html_string = html_string + tab4
html_string = html_string + tab7
max_tab = max_tab - 1
max_tab__l = max_tab__l + 1
if max_tab__l == 6
jump_to_label tu
endif
loop max_tab >= 0
endif
label tu
html_string = html_string + tab2
html_string = html_string + htm_2
okno.write_string html_string
okno.write_int32 p3
okno.TRIM_TO_INDEX
INJECTBB_CLIENT okno
return void
FUNCTION pots_count
do
ITEM_COUNT temp_cp "<&cp_pot_id&>"
ITEM_COUNT temp_gcp "<&gcp_pot_id&>"
ITEM_COUNT temp_e "<&cp_elixir_id&>"
ITEM_COUNT temp_mp "<&mp_pot_id&>"
ITEM_COUNT temp_hp "<&hp_pot_id&>"
sleep 10000 // 10 sec
loop 1 == 1
return void
FUNCTION tar_sel
define int obj_tar_id 0
define int tar_id 0
define tar_me tar_dat 0
define string nam_cla " "
packet.read_byte null
packet.read_int32 obj_tar_id
if obj_tar_id != CHAR_ID
packet.read_int32 tar_id
if tar_id == CHAR_ID
lock opera
if "<&char_list.CONTAINS_KEY <&obj_tar_id&>&>" == true
tar_dat.id = "char_list.#$<&obj_tar_id&>.uid"
tar_dat.name = "char_list.#$<&obj_tar_id&>.name"
call class_name nam_cla 1 "char_list.#$<&obj_tar_id&>.class"
tar_dat.class = nam_cla
tar_dat.clanid = "char_list.#$<&obj_tar_id&>.clanid"
Target_me_list.add tar_dat "<&tar_dat.id&>"
if tar_tag == 1
"char_list.#$<&obj_tar_id&>.team" = #i2
endif
call okno_ig
endif
unlock opera
if tar_tag == 1
call write_char_info void 1 obj_tar_id
endif
jump_to_label add_po
endif
lock opera
if "<&Target_me_list.CONTAINS_KEY <&obj_tar_id&>&>" == true
Target_me_list.remove "<&obj_tar_id&>"
if tar_tag == 1
if "<&char_list.CONTAINS_KEY <&obj_tar_id&>&>" == true
"char_list.#$<&obj_tar_id&>.team" = #i0
endif
endif
call okno_ig
endif
unlock opera
if tar_tag == 1
call write_char_info void 1 obj_tar_id
endif
endif
label add_po
return void
////////////////////////////////////
FUNCTION tar_uns
define int obj_id_uns 0
define arraylist ppl_near 0
define int prot 0
packet.read_byte null
packet.read_int32 obj_id_uns
if obj_id_uns == CHAR_ID
if my_tar_un != 1
if TARGET_ID != obj_id_uns
if anti_mira == 1
if CHAR_CUR_HP != 0
target "<&my_target_id&>"
endif
endif
endif
else
my_tar_un = 0
endif
jump_to_label un_lab
endif
lock opera
if "<&Target_me_list.CONTAINS_KEY <&obj_id_uns&>&>" == true
Target_me_list.remove "<&obj_id_uns&>"
if tar_tag == 1
if "<&char_list.CONTAINS_KEY <&obj_id_uns&>&>" == true
"char_list.#$<&obj_id_uns&>.team" = #i0
prot = 1
endif
endif
call okno_ig
endif
unlock opera
if prot == 1
if tar_tag == 1
call write_char_info void 1 obj_id_uns
endif
endif
label un_lab
return void
FUNCTION tp_to
define int id_tp 0
packet.read_byte null
packet.read_int32 id_tp
if id_tp == CHAR_ID
lock opera
Target_me_list.clear
char_list.clear
Shop_list.clear
Shop_list2.clear
unlock opera
call okno_ig
endif
return void
Function del_obj
define int del_obj_id 0
packet.read_byte null
packet.read_int32 del_obj_id
lock opera
if "<&Target_me_list.CONTAINS_KEY <&del_obj_id&>&>" == true
Target_me_list.remove "<&del_obj_id&>"
call okno_ig
endif
if "<&char_list.CONTAINS_KEY <&del_obj_id&>&>" == true
char_list.remove "<&del_obj_id&>"
endif
unlock opera
return void
FUNCTION bypas
define string temp_byp ""
define string l2net "l2net"
define int kic 0
define int max_cou 0
define int min_cou 13
define int kic2 0
define int max_cou2 0
define int min_cou2 13
define int pag_in 11
define int pag_c 0
packet.read_byte null
packet.read_string temp_byp
if "temp_byp.CONTAINS l2net" == true
if "byp1.CONTAINS temp_byp" == true
auto_pots = 0
call okno_ig
jump_to_label byp_end
endif
if "byp2.CONTAINS temp_byp" == true
auto_pots = 1
call okno_ig
jump_to_label byp_end
endif
if "byp3.CONTAINS temp_byp" == true
anti_mira = 0
call okno_ig
jump_to_label byp_end
endif
if "byp4.CONTAINS temp_byp" == true
anti_mira = 1
call okno_ig
jump_to_label byp_end
endif
if "byp5.CONTAINS temp_byp" == true
anti_disa = 0
call okno_ig
jump_to_label byp_end
endif
if "byp6.CONTAINS temp_byp" == true
if id_wep == 0
anti_disa = 0
else
anti_disa = 1
endif
call okno_ig
jump_to_label byp_end
endif
if "temp_byp.CONTAINS #$l2net_target" == true
max_cou = temp_byp.count - min_cou
kic = temp_byp.SUBSTRING min_cou max_cou
target "<&kic&>"
endif
////////////////////////////////////////////////////////////////self
if "byp8.CONTAINS temp_byp" == true
fake_gm = 0
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp9.CONTAINS temp_byp" == true
fake_gm = 1
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp10.CONTAINS temp_byp" == true
fake_hero = 0
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp11.CONTAINS temp_byp" == true
fake_hero = 1
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp12.CONTAINS temp_byp" == true
fake_agh = 0
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp13.CONTAINS temp_byp" == true
fake_agh = 1
call write_user_info
call okno_adv_ig
jump_to_label byp_end
endif
if "byp22.CONTAINS temp_byp" == true
osd = 0
call okno_adv_ig
jump_to_label byp_end
endif
if "byp23.CONTAINS temp_byp" == true
osd = 1
call okno_adv_ig
jump_to_label byp_end
endif
//////////////////////////////////////////////////////// other
if "byp14.CONTAINS temp_byp" == true
tar_tag = 0
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp15.CONTAINS temp_byp" == true
tar_tag = 1
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp16.CONTAINS temp_byp" == true
siege_alag = 0
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp17.CONTAINS temp_byp" == true
siege_alag = 1
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp18.CONTAINS temp_byp" == true
race_dif = 0
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp19.CONTAINS temp_byp" == true
race_dif = 1
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "byp20.CONTAINS temp_byp" == true
call refr_chars
heal_tit = 0
call okno_adv_ig
jump_to_label byp_end
endif
if "byp21.CONTAINS temp_byp" == true
heal_tit = 1
call refr_chars
call okno_adv_ig
jump_to_label byp_end
endif
if "temp_byp.CONTAINS #$l2net_agh_id" == true
max_cou2 = temp_byp.count - min_cou2
if temp_byp.count > 13
kic2 = temp_byp.SUBSTRING min_cou2 max_cou2
id_agha = kic2
call write_user_info
call okno_adv_ig
endif
endif
if "temp_byp.CONTAINS #$l2net_page" == true
pag_c = temp_byp.count - pag_in
kic2 = temp_byp.SUBSTRING pag_in pag_c
call okno_lista void 1 kic2
endif
if "temp_byp.CONTAINS #$l2net_next" == true
pag_c = temp_byp.count - pag_in
kic2 = temp_byp.SUBSTRING pag_in pag_c
pag_c = ppl_arr.count
pag_in = pag_c / 15
pag_in = pag_in + 1
if kic2 < pag_in
kic2 = kic2 + 1
call okno_lista void 1 kic2
else
call okno_lista void 1 pag_in
endif
endif
if "temp_byp.CONTAINS #$l2net_back" == true
pag_c = temp_byp.count - pag_in
kic2 = temp_byp.SUBSTRING pag_in pag_c
if kic2 > 1
kic2 = kic2 - 1
call okno_lista void 1 kic2
else
call okno_lista void 1 1
endif
endif
else
injectbb packet
endif
label byp_end
return void
Function my_tar
packet.read_byte null
packet.read_int32 my_target_id
return void
Function req_can_ta
my_tar_un = 1
return void
Function sysmsg
define string disa "Disarm has been removed."
define string disa2 "Weapon Blockade has been removed."
if anti_disa == 1
if "MESSAGE.CONTAINS disa" == true
print_text " zakladam <&id_wep&>"
inject "19 <&id_wep.get_hex32&> 00 00 00 00"
endif
if "MESSAGE.CONTAINS disa2" == true
inject "19 <&id_wep.get_hex32&> 00 00 00 00"
endif
endif
return void
Function polec
define string pol1 "a"
define string pol2 "stop"
define string pol3 "start"
define string pol4 "o"
define string pol5 "l"
define string pol6 "c"
if MESSAGE == pol1
call okno_ig
endif
if MESSAGE == pol2
anti_disa = 0
anti_mira = 0
auto_pots = 0
call okno_ig
endif
if MESSAGE == pol3
if id_wep == 0
anti_disa = 0
else
anti_disa = 1
endif
anti_mira = 1
auto_pots = 1
call okno_ig
endif
if MESSAGE == pol4
call okno_adv_ig
endif
if MESSAGE == pol5
call prep_okno_lista
endif
return void
/////////////////////////////
function add_class
class.ADD "#$H -Fi (0)"
class.ADD "#$H -Wa (1)"
class.ADD "#$H -Glad(2)"
class.ADD "#$H -Wl (2)"
class.ADD "#$H -Kn (1)"
class.ADD "#$H -Pal (2)"
class.ADD "#$H -DA (2)"
class.ADD "#$H -Ro (1)"
class.ADD "#$H -TH (2)"
class.ADD "#$H -HE (2)"
class.ADD "#$H -Hm (0)"
class.ADD "#$H -Hw (1)"
class.ADD "#$H -Sorc(2)"
class.ADD "#$H -Necr(2)"
class.ADD "#$H -Warl(2)"
class.ADD "#$H -Cl (1)"
class.ADD "#$H -Bish(2)"
class.ADD "#$H -PP (2)"
class.ADD "#$E -Ef (0)"
class.ADD "#$E -Ek (1)"
class.ADD "#$E -TK (2)"
class.ADD "#$E -SwS (2)"
class.ADD "#$E -Es (1)"
class.ADD "#$E -PW (2)"
class.ADD "#$E -SR (2)"
class.ADD "#$E -Em (0)"
class.ADD "#$E -Ew (1)"
class.ADD "#$E -SpS (2)"
class.ADD "#$E -ES (2)"
class.ADD "#$E -Eo (1)"
class.ADD "#$E -EE (2)"
class.ADD "#$DE-Ef (0)"
class.ADD "#$DE-Pk (1)"
class.ADD "#$DE-SK (2)"
class.ADD "#$DE-BD (2)"
class.ADD "#$DE-Da (1)"
class.ADD "#$DE-AW (2)"
class.ADD "#$DE-PR (2)"
class.ADD "#$DE-Dm (0)"
class.ADD "#$DE-Dw (1)"
class.ADD "#$DE-SH (2)"
class.ADD "#$DE-PS (2)"
class.ADD "#$DE-So (1)"
class.ADD "#$DE-SE (2)"
class.ADD "#$O -Of (0)"
class.ADD "#$O -Or (1)"
class.ADD "#$O -Des (2)"
class.ADD "#$O -Om (1)"
class.ADD "#$O -Tyr (2)"
class.ADD "#$O -Om (0)"
class.ADD "#$O -Os (1)"
class.ADD "#$O -OL (2)"
class.ADD "#$O -WC (2)"