-
Notifications
You must be signed in to change notification settings - Fork 24
/
Const.lua
2694 lines (2673 loc) · 82 KB
/
Const.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
---@class CONST
CONST = CONST or {}
CONST.BATTLE_SurpriseFlag = {
---不偷袭
Normal = 0,
---偷袭
Surprise = 1,
---被偷袭
BeSurprise = 2,
}
CONST.DamageFlags = {
Normal = 0,
Critical = 1,
Miss = 2,
Dodge = 3,
---防御?
Guard = 4,
---魔法
Magic = 5,
---中毒
Poison = 6,
---醉酒
Drunk = 7,
---合击
Combo = 8,
---合击暴击
ComboCritical = 9,
---合并最终伤害
ComboFinal = 10,
---战栗
FpDamage = 11,
---ComboFinal = 10,
Boom = 12,
EarthQuake = 13,
---魔法暴击
MagicCritical = 14,
---魔反结算伤害
MagicReflection = 15,
}
CONST.DamageFlagsEx = {
---无
NONE = 0,
---吸收
ABSORB = 1,
---反射
REFLECTION = 2,
---无效
INEFFECTIVE = 3,
}
CONST.HealDamageFlags = {
---治疗
Heal = 0,
---恢复
Recovery = 1,
---物品
Item = 2,
---气绝
Revive = 3,
---明镜
Consentration = 4,
}
CONST.TECH_CONST = {
---普通
BM_FLAG_NORMAL = 0x1,
---必杀
BM_FLAG_CRITICAL = 0x2,
---物理防御
BM_FLAG_GUARD = 0x4,
---躲闪
BM_FLAG_AVOIDANCE = 0x8,
---反击
BM_FLAG_COUNTER = 0x10,
---死亡
BM_FLAG_DEATH = 0x20,
---击飞1
BM_FLAG_AKO1 = 0x40,
---击飞2
BM_FLAG_AKO2 = 0x80,
---阳炎
BM_FLAG_MIKAWASHI = 0x100,
---护卫
BM_FLAG_BODYGUARD = 0x200,
---圣盾
BM_FLAG_SPECIAL_GUARD = 0x400,
---魔法防御
BM_FLAG_MAGIC_GUARD = 0x800,
---技能反击
BM_FLAG_CROSS_COUNTER = 0x1000,
---攻反
BM_FLAG_REFLECTION_PHYSICS = 0x2000,
---攻吸
BM_FLAG_ABSORB_PHYSICS = 0x4000,
---攻无
BM_FLAG_INEFFECTIVE_PHYSICS = 0x8000,
---魔反
BM_FLAG_REFLECTION_MAGIC = 0x10000,
---魔吸
BM_FLAG_ABSORB_MAGIC = 0x20000,
---魔无
BM_FLAG_INEFFECTIVE_MAGIC = 0x40000,
---技能成功
BM_FLAG_SUCCESS = 0x80000,
---唤醒
BM_FLAG_WAKE_UP = 0x100000,
---受伤
BM_FLAG_INJURY = 0x200000,
---武器破损
BM_FLAG_WEAPON_DAMAGE = 0x400000,
---武器毁坏
BM_FLAG_WEAPON_BROKEN = 0x800000,
---防具破损
BM_FLAG_EQUIP_DAMAGE = 0x1000000,
---防具毁坏
BM_FLAG_EQUIP_BROKEN = 0x2000000,
---防具损毁
BM_FLAG_EQUIP_HURT = 0x4000000,
---回避
BM_FLAG_PARRY = 0x8000000,
---变身
BM_FLAG_REBIRTH_GUARD = 0x10000000,
---屏障
BM_FLAG_BARRIER = 0x20000000,
---克制
BM_FLAG_DAMAGE_UP = 0x40000000,
---被克制
BM_FLAG_DAMAGE_DOWN = 0x80000000,
}
CONST.TECH_ID = 0;
CONST.TECH_COMMENT = 1;
CONST.TECH_SKILLID = 2;
CONST.TECH_NECESSARYLV = 3;
CONST.TECH_FIELD = 4;
CONST.TECH_TARGET = 5;
CONST.TECH_COST = 6;
CONST.TECH_DRESSAGE = 7;
CONST.TECH_FORCEPOINT = 8;
CONST.TECH_REMAIN = 9;
CONST.TECH_REMEMBER_RECIPE1 = 0xA;
CONST.TECH_REMEMBER_RECIPE2 = 0xB;
CONST.TECH_NAME = CONST.TECH_NAME or 2000;
CONST.TECH_FUNCNAME = CONST.TECH_FUNCNAME or 2001;
CONST.TECH_OPTION = CONST.TECH_OPTION or 2002;
CONST.EXTITEMMAX = CONST.EXTITEMMAX or 28;
CONST.EXTBAGPAGE = CONST.EXTBAGPAGE or 0;
CONST.BATTLE_COM = {
BATTLE_COM_NONE = 0x0,
BATTLE_COM_GUARD = 0x1,
BATTLE_COM_POSITION = 0x2,
BATTLE_COM_EQUIP = 0x3,
BATTLE_COM_ATTACK = 0x4,
BATTLE_COM_CAPTURE = 0x5,
BATTLE_COM_ESCAPE = 0x6,
BATTLE_COM_PETIN = 0x7,
BATTLE_COM_PETOUT = 0x8,
BATTLE_COM_ITEM = 0x9,
BATTLE_COM_BOOMERANG = 0xA,
BATTLE_COM_COMBO = 0xB,
BATTLE_COM_COMBOEND = 0xC,
BATTLE_COM_WAIT = 0xD,
BATTLE_COM_ALLESCAPE = 0xE,
BATTLE_COM_CALL = 0xF,
BATTLE_COM_P_RENZOKU = 0x10,
BATTLE_COM_P_PARAMETER = 0x11,
BATTLE_COM_P_SPIRACLESHOT = 0x12,
BATTLE_COM_P_EDGE = 0x13,
BATTLE_COM_P_CHARGEATTACK = 0x14,
BATTLE_COM_P_BUSTATTACK = 0x15,
BATTLE_COM_P_GUARDBREAK = 0x16,
BATTLE_COM_P_FORCECUT = 0x17,
BATTLE_COM_P_RANDOMSHOT = 0x18,
BATTLE_COM_P_PANIC = 0x19,
BATTLE_COM_P_ASSASSIN = 0x1A,
BATTLE_COM_RANBU = 0x1B,
BATTLE_COM_ATTACKALL = 0x1C,
BATTLE_COM_DETECTENEMY = 0x1D,
BATTLE_COM_URGENTALLOWANCE = 0x1E,
BATTLE_COM_URGENTMEDIC = 0x1F,
BATTLE_COM_INDIRECTSTATUSATTACK = 0x20,
BATTLE_COM_AXEBOMBER = 0x21,
BATTLE_COM_ULTIMATEATTACK = 0x22,
BATTLE_COM_PICKPOCKET = 0x23,
BATTLE_COM_RCVUP = 0x24,
BATTLE_COM_PARRYING = 0x25,
BATTLE_COM_THROWITEM = 0x26,
BATTLE_COM_PROVOCATION = 0x27,
BATTLE_COM_P_BODYGUARD = 0x28,
BATTLE_COM_P_DODGE = 0x29,
BATTLE_COM_P_CROSSCOUNTER = 0x2A,
BATTLE_COM_P_SPECIALGARD = 0x2B,
BATTLE_COM_P_MAGICGARD = 0x2C,
BATTLE_COM_P_HEAL = 0x2D,
BATTLE_COM_P_MAGIC = 0x2E,
BATTLE_COM_P_DORAIN = 0x2F,
BATTLE_COM_P_STATUSCHANGE = 0x30,
BATTLE_COM_P_STATUSRECOVER = 0x31,
BATTLE_COM_P_REVIVE = 0x32,
BATTLE_COM_P_REFLECTION_PHYSICS = 0x33,
BATTLE_COM_P_ABSORB_PHYSICS = 0x34,
BATTLE_COM_P_INEFFECTIVE_PHYSICS = 0x35,
BATTLE_COM_P_ABSORB_MAGIC = 0x36,
BATTLE_COM_P_REFLECTION_MAGIC = 0x37,
BATTLE_COM_P_INEFFECTIVE_MAGIC = 0x38,
BATTLE_COM_P_LP_RECOVERY = 0x39,
BATTLE_COM_P_TREAT_TYPE = 0x3A,
BATTLE_COM_P_REVERSE_TYPE = 0x3B,
BATTLE_COM_P_CONSENTRATION = 0x3C,
BATTLE_COM_P_DRESSAGE = 0x3D,
BATTLE_COM_P_RAISE = 0x3E,
BATTLE_COM_P_EXTORTION = 0x3F,
BATTLE_COM_P_STEAL = 0x40,
BATTLE_COM_P_POSITIONATTACK = 0x41,
BATTLE_COM_P_DANCE = 0x42,
BATTLE_COM_P_DEFUP = 0x43,
BATTLE_COM_P_DEFDOWN = 0x44,
BATTLE_COM_P_ATKUP = 0x45,
BATTLE_COM_P_ATKDOWN = 0x46,
BATTLE_COM_P_AGLUP = 0x47,
BATTLE_COM_P_AGLDOWN = 0x48,
BATTLE_COM_M_DEATH = 0x49,
BATTLE_COM_M_STATUSATTACK = 0x4A,
BATTLE_COM_M_BREAKATTACK = 0x4B,
BATTLE_COM_M_GOLDATTACK = 0x4C,
BATTLE_COM_M_ENERGYDRAIN = 0x4D,
BATTLE_COM_M_BOMB = 0x4E,
BATTLE_COM_M_SACRIFICE = 0x4F,
BATTLE_COM_M_BLOODATTACK = 0x50,
BATTLE_COM_M_SUMMON = 0x51,
BATTLE_COM_M_EARTHQUAKE = 0x52,
BATTLE_COM_SEKIBAN = 0x3E8,
BATTLE_COM_S_RENZOKU = 0x3E9,
BATTLE_COM_S_GBREAK = 0x3EA,
BATTLE_COM_S_GUARDIAN_ATTACK = 0x3EB,
BATTLE_COM_S_GUARDIAN_GUARD = 0x3EC,
BATTLE_COM_S_CHARGE = 0x3ED,
BATTLE_COM_S_MIGHTY = 0x3EE,
BATTLE_COM_S_POWERBALANCE = 0x3EF,
BATTLE_COM_S_STATUSCHANGE = 0x3F0,
BATTLE_COM_S_EARTHROUND0 = 0x3F1,
BATTLE_COM_S_EARTHROUND1 = 0x3F2,
BATTLE_COM_S_LOSTESCAPE = 0x3F3,
BATTLE_COM_S_ABDUCT = 0x3F4,
BATTLE_COM_S_STEAL = 0x3F5,
BATTLE_COM_S_NOGUARD = 0x3F6,
BATTLE_COM_S_CHARGE_OK = 0x3F7,
BATTLE_COM_JYUJYUTU = 0x7D0,
BATTLE_COM_DELAYATTACK = 0x9C4,
BATTLE_COM_BILLIARD = 0x9C5,
BATTLE_COM_KNIGHTGUARD = 0x9C6,
BATTLE_COM_FIRSTATTACK = 0x9C7,
BATTLE_COM_REST = 0x9C8,
BATTLE_COM_COPY = 0x9C9,
BATTLE_COM_RETRIBUTION = 0x9CA,
BATTLE_COM_RIDER = 0x9CB,
BATTLE_COM_RIDER_BREAK = 0x9CC,
BATTLE_COM_M_ACIDRAIN = 0xA28,
BATTLE_COM_M_TORNADE = 0xA29,
BATTLE_COM_M_BARRIER = 0xA2A,
BATTLE_COM_REBIRTH = 0xBB8,
BATTLE_COM_MAGIC_MISSILE = 2509,
BATTLE_COM_GUILDMONSTER = 3500,
BATTLE_COM_BLASTWAVE = 4000,
BATTLE_COM_TAUNT = 4001,
BATTLE_COM_LUA = 8000,
};
CONST.BATTLE_COM_TARGETS = {
NONE = -1,
SINGLE = {
SIDE_0 = {
POS_0 = 0,
POS_1 = 1,
POS_2 = 2,
POS_3 = 3,
POS_4 = 4,
POS_5 = 5,
POS_6 = 6,
POS_7 = 7,
POS_8 = 8,
POS_9 = 9,
},
SIDE_1 = {
POS_0 = 10,
POS_1 = 11,
POS_2 = 12,
POS_3 = 13,
POS_4 = 14,
POS_5 = 15,
POS_6 = 16,
POS_7 = 17,
POS_8 = 18,
POS_9 = 19,
},
},
RANGE = {
SIDE_0 = {
POS_0 = 20,
POS_1 = 21,
POS_2 = 22,
POS_3 = 23,
POS_4 = 24,
POS_5 = 25,
POS_6 = 26,
POS_7 = 27,
POS_8 = 28,
POS_9 = 29,
},
SIDE_1 = {
POS_0 = 30,
POS_1 = 31,
POS_2 = 32,
POS_3 = 33,
POS_4 = 34,
POS_5 = 35,
POS_6 = 36,
POS_7 = 37,
POS_8 = 38,
POS_9 = 39,
},
},
ALL = {
SIDE_0 = 40,
SIDE_1 = 41,
SIDE_ALL = 42,
}
};
for i, v in pairs({ unpack(CONST.BATTLE_COM) }) do
CONST.BATTLE_COM[v] = i;
end
CONST.CharExtFields = {
UUID = -1,
};
CONST.BATTLE_FIELD_ATTR_EARTH = 1;
CONST.BATTLE_FIELD_ATTR_WATER = 2;
CONST.BATTLE_FIELD_ATTR_FIRE = 4;
CONST.BATTLE_FIELD_ATTR_WIND = 8;
CONST.BATTLE_FIELD_ATTR_SEALED_MAGIC = 0x10;
-- 特殊相关
CONST.道具_Func_InitFunc = CONST.道具_INITFUNC or 2005;
CONST.道具_Func_WatchFunc = CONST.道具_FIRSTFUNCTION or 2006;
CONST.道具_Func_UseFunc = CONST.道具_WATCHFUNC or 2007;
CONST.道具_Func_AttachFunc = CONST.道具_USEFUNC or 2008;
CONST.道具_Func_DetachFunc = CONST.道具_ATTACHFUNC or 2009;
CONST.道具_Func_DropFunc = CONST.道具_DETACHFUNC or 2010;
CONST.道具_Func_PrePickUpFunc = CONST.道具_DROPFUNC or 2011;
CONST.道具_Func_PickUpFunc = CONST.道具_PREPICKUPFUNC or 2012;
CONST.道具_所有者 = CONST.道具_所有者 or (0x000002E4 / 4);
-- CONST.CHAR_ENEMY_AI = 499;
CONST.PET_DepartureBattleStatus = CONST.对象_PET_DepartureBattleStatus or (0xCC / 4 + 0x58 / 4);
--
CONST.CHAR_PlayerFD = CONST.对象_FD or (0x7BC / 4);
CONST.CHAR_BattleMode = CONST.对象_战斗状态 or (0x00000000 / 4 + 0x5e8 / 4);
CONST.CHAR_BattleIndex = CONST.对象_战斗Index or (0x00000004 / 4 + 0x5e8 / 4);
CONST.CHAR_BattleSide = CONST.对象_战斗Side or (0x00000008 / 4 + 0x5e8 / 4);
CONST.CHAR_BattleCom1 = CONST.CHAR_BattleSide + 1;
CONST.CHAR_BattleCom2 = CONST.CHAR_BattleSide + 2;
CONST.CHAR_BattleCom3 = CONST.CHAR_BattleSide + 3;
CONST.CHAR_Battle2Com1 = CONST.CHAR_BattleSide + 4;
CONST.CHAR_Battle2Com2 = CONST.CHAR_BattleSide + 5;
CONST.CHAR_Battle2Com3 = CONST.CHAR_BattleSide + 6;
CONST.CHAR_BattleDamageAbsrob = CONST.对象_DamageAbsrob or ((0x0000009C + 0x5e8) / 4);
CONST.CHAR_BattleDamageReflec = CONST.对象_DamageReflec or ((0x000000A0 + 0x5e8) / 4);
CONST.CHAR_BattleDamageVanish = CONST.对象_DamageVanish or ((0x000000A4 + 0x5e8) / 4);
CONST.CHAR_BattleDamageMagicAbsrob = CONST.对象_DamageMagicAbsrob or ((0x000000A8 + 0x5e8) / 4);
CONST.CHAR_BattleDamageMagicReflec = CONST.对象_DamageMagicReflec or ((0x000000AC + 0x5e8) / 4);
CONST.CHAR_BattleDamageMagicVanish = CONST.对象_DamageMagicVanish or ((0x000000B0 + 0x5e8) / 4);
CONST.CHAR_BattleLpRecovery = CONST.对象_LpRecovery or ((0x000000B4 + 0x5e8) / 4);
CONST.CHAR_BattleReverse = CONST.对象_Reverse or ((0x000000BC + 0x5e8) / 4);
CONST.CHAR_BattlePoison = CONST.对象_Poison or ((0x000000C0 + 0x5e8) / 4);
CONST.CHAR_BattleSleep = CONST.对象_Sleep or ((0x000000C4 + 0x5e8) / 4);
CONST.CHAR_BattleStone = CONST.对象_Stone or ((0x000000C8 + 0x5e8) / 4);
CONST.CHAR_BattleDrunk = CONST.对象_Drunk or ((0x000000CC + 0x5e8) / 4);
CONST.CHAR_BattleConfusion = CONST.对象_Confusion or ((0x000000D0 + 0x5e8) / 4);
CONST.CHAR_BattleAmnesia = CONST.对象_Amnesia or ((0x000000D4 + 0x5e8) / 4);
CONST.CHAR_BattleModPoison = CONST.对象_ModPoison or ((0x000000D8 + 0x5e8) / 4);
CONST.CHAR_BattleModSleep = CONST.对象_ModSleep or ((0x000000DC + 0x5e8) / 4);
CONST.CHAR_BattleModStone = CONST.对象_ModStone or ((0x000000E0 + 0x5e8) / 4);
CONST.CHAR_BattleModDrunk = CONST.对象_ModDrunk or ((0x000000E4 + 0x5e8) / 4);
CONST.CHAR_BattleModConfusion = CONST.对象_ModConfusion or ((0x000000E8 + 0x5e8) / 4);
CONST.CHAR_BattleModAmnesia = CONST.对象_ModAmnesia or ((0x000000EC + 0x5e8) / 4);
CONST.CHAR_EnemyPetFlg = CONST.对象_ENEMY_PetFlg or (0x7BC / 4);
CONST.CHAR_EnemyActionFlag = CONST.对象_ENEMY_ActionFlag or (0x00000004 / 4 + 0x7BC / 4);
CONST.CHAR_EnemyBossFlg = CONST.对象_ENEMY_BossFlg or (0x00000008 / 4 + 0x7BC / 4);
CONST.CHAR_EnemyModCaptureDefault = CONST.对象_ENEMY_ModCaptureDefault or (0x0000000c / 4 + 0x7BC / 4);
CONST.CHAR_EnemyTactics = CONST.对象_ENEMY_Tactics or (0x00000010 / 4 + 0x7BC / 4);
CONST.CHAR_EnemySummon1 = CONST.对象_ENEMY_Summon1 or (0x00000014 / 4 + 0x7BC / 4);
CONST.CHAR_EnemySummon2 = CONST.对象_ENEMY_Summon2 or (0x00000018 / 4 + 0x7BC / 4);
CONST.CHAR_EnemyEscape = CONST.对象_ENEMY_Escape or (0x0000001c / 4 + 0x7BC / 4);
CONST.CHAR_EnemyMsg = CONST.对象_ENEMY_Msg or (0x00000020 / 4 + 0x7BC / 4);
CONST.CHAR_EnemyBattleAction = CONST.对象_ENEMY_BattleAction or (0x00000024 / 4 + 0x7BC / 4);
CONST.CHAR_WindowBuffer1 = CONST.对象_WindowBuffer1 or (0x0000008C / 4 + 0x7BC / 4 - 1);
CONST.CHAR_WindowBuffer2 = CONST.对象_WindowBuffer2 or (0x0000008C / 4 + 0x7BC / 4);
CONST.CHAR_WindowBuffer3 = CONST.对象_WindowBuffer3 or (0x0000008C / 4 + 0x7BC / 4 + 1);
CONST.CHAR_ENEMY_ID = CONST.对象_ENEMY_ID or (0x0000006C / 4 + 0x7BC / 4);
-- CONST.CHAR_ItemIndexes = 0x4CC / 4;
CONST.CHAR_MoveSpeed = CONST.对象_移速 or 482;
CONST.CHAR_EnemyBaseId = CONST.对象_EnemyBaseId or 61;
if CONST.ITEM_RECIPE_ID == nil then
--RECIPE START
CONST.ITEM_RECIPE_ID = 0x0;
CONST.ITEM_RECIPE_ITEMID = 0x1;
CONST.ITEM_RECIPE_SKILLID = 0x2;
CONST.ITEM_RECIPE_EXP = 0x3;
CONST.ITEM_RECIPE_A = 0x4;
CONST.ITEM_RECIPE_B = 0x5;
CONST.ITEM_RECIPE_C = 0x6;
CONST.ITEM_RECIPE_D = 0x7;
CONST.ITEM_RECIPE_E = 0x8;
CONST.ITEM_RECIPE_REQUIRE_A = 0x9;
CONST.ITEM_RECIPE_REQUIRE_B = 0xA;
CONST.ITEM_RECIPE_REQUIRE_C = 0xB;
CONST.ITEM_RECIPE_REQUIRE_D = 0xC;
CONST.ITEM_RECIPE_REQUIRE_E = 0xD;
CONST.ITEM_RECIPE_NAME = CONST.ITEM_RECIPE_NAME or 0xE;
--RECIPE END
end
if CONST.DATA_ENEMY_ID == nil then
CONST.DATA_ENEMY_ID = 0;
CONST.DATA_ENEMY_TEMPNO = 1;
CONST.DATA_ENEMY_LV_MIN = 2;
CONST.DATA_ENEMY_LV_MAX = 3;
CONST.DATA_ENEMY_CREATEMINNUM = 4;
CONST.DATA_ENEMY_CREATEMAXNUM = 5;
CONST.DATA_ENEMY_TACTICS = 6;
CONST.DATA_ENEMY_EXP = 7;
CONST.DATA_ENEMY_DUELPOINT = 8;
CONST.DATA_ENEMY_STYLE = 9;
CONST.DATA_ENEMY_PETFLG = 0x0A;
CONST.DATA_ENEMY_ITEM1 = 0x0B;
CONST.DATA_ENEMY_ITEM2 = 0x0C;
CONST.DATA_ENEMY_ITEM3 = 0x0D;
CONST.DATA_ENEMY_ITEM4 = 0x0E;
CONST.DATA_ENEMY_ITEM5 = 0x0F;
CONST.DATA_ENEMY_ITEM6 = 0x10;
CONST.DATA_ENEMY_ITEM7 = 0x11;
CONST.DATA_ENEMY_ITEM8 = 0x12;
CONST.DATA_ENEMY_ITEM9 = 0x13;
CONST.DATA_ENEMY_ITEM10 = 0x14;
CONST.DATA_ENEMY_ITEMPROB1 = 0x15;
CONST.DATA_ENEMY_ITEMPROB2 = 0x16;
CONST.DATA_ENEMY_ITEMPROB3 = 0x17;
CONST.DATA_ENEMY_ITEMPROB4 = 0x18;
CONST.DATA_ENEMY_ITEMPROB5 = 0x19;
CONST.DATA_ENEMY_ITEMPROB6 = 0x1A;
CONST.DATA_ENEMY_ITEMPROB7 = 0x1B;
CONST.DATA_ENEMY_ITEMPROB8 = 0x1C;
CONST.DATA_ENEMY_ITEMPROB9 = 0x1D;
CONST.DATA_ENEMY_ITEMPROB10 = 0x1E;
CONST.DATA_ENEMY_STEALITEM1 = 0x1F;
CONST.DATA_ENEMY_STEALITEM2 = 0x20;
CONST.DATA_ENEMY_STEALITEM3 = 0x21;
CONST.DATA_ENEMY_STEALITEM4 = 0x22;
CONST.DATA_ENEMY_STEALITEM5 = 0x23;
CONST.DATA_ENEMY_STEALITEMPROB1 = 0x24;
CONST.DATA_ENEMY_STEALITEMPROB2 = 0x25;
CONST.DATA_ENEMY_STEALITEMPROB3 = 0x26;
CONST.DATA_ENEMY_STEALITEMPROB4 = 0x27;
CONST.DATA_ENEMY_STEALITEMPROB5 = 0x28;
CONST.DATA_ENEMY_BOSS_FLG = 0x29;
CONST.DATA_ENEMY_ACTION_FLG = 0x2A;
CONST.DATA_ENEMY_SUMMON1 = 0x2B;
CONST.DATA_ENEMY_SUMMON2 = 0x2C;
CONST.DATA_ENEMY_MSG = 0x2D;
CONST.DATA_ENEMY_NAME = CONST.Enemy_名字 or 2000;
CONST.DATA_ENEMY_TACTICSOPTION = CONST.Enemy_战术 or 2001;
CONST.DATA_ENEMYBASE_TEMPNO = 0;
CONST.DATA_ENEMYBASE_INITNUM = 1;
CONST.DATA_ENEMYBASE_LVUPPOINT = 2;
CONST.DATA_ENEMYBASE_TRIBE = 3;
CONST.DATA_ENEMYBASE_BASEVITAL = 4;
CONST.DATA_ENEMYBASE_BASESTR = 5;
CONST.DATA_ENEMYBASE_BASETGH = 6;
CONST.DATA_ENEMYBASE_BASEQUICK = 7;
CONST.DATA_ENEMYBASE_BASEMAGIC = 8;
CONST.DATA_ENEMYBASE_MODLOYALTY = 9;
CONST.DATA_ENEMYBASE_GET = 0x0A;
CONST.DATA_ENEMYBASE_RUN = 0x0B;
CONST.DATA_ENEMYBASE_HITRATE = 0x0C;
CONST.DATA_ENEMYBASE_AVOIDRATE = 0x0D;
CONST.DATA_ENEMYBASE_EARTHAT = 0x0E;
CONST.DATA_ENEMYBASE_WATERAT = 0x0F;
CONST.DATA_ENEMYBASE_FIREAT = 0x10;
CONST.DATA_ENEMYBASE_WINDAT = 0x11;
CONST.DATA_ENEMYBASE_POISON = 0x12;
CONST.DATA_ENEMYBASE_SLEEP = 0x13;
CONST.DATA_ENEMYBASE_STONE = 0x14;
CONST.DATA_ENEMYBASE_DRUNK = 0x15;
CONST.DATA_ENEMYBASE_CONFUSION = 0x16;
CONST.DATA_ENEMYBASE_AMNESIA = 0x17;
CONST.DATA_ENEMYBASE_RARE = 0x18;
CONST.DATA_ENEMYBASE_LEVELUPRANDOMPATTERN = 0x19;
CONST.DATA_ENEMYBASE_CRITICAL = 0x1A;
CONST.DATA_ENEMYBASE_COUNTER = 0x1B;
CONST.DATA_ENEMYBASE_SLOT = 0x1C;
CONST.DATA_ENEMYBASE_IMGNUMBER = 0x1D;
CONST.DATA_ENEMYBASE_MODEXP = 0x1E;
CONST.DATA_ENEMYBASE_SIZE = 0x1F;
CONST.DATA_ENEMYBASE_ALBUMNO = 0x20;
CONST.DATA_ENEMYBASE_ALBUMEXPLAINATION = 0x21;
CONST.DATA_ENEMYBASE_ALBUMCANPETFLG = 0x22;
CONST.DATA_ENEMYBASE_PETSKILL1 = 0x23;
CONST.DATA_ENEMYBASE_PETSKILL2 = 0x24;
CONST.DATA_ENEMYBASE_PETSKILL3 = 0x25;
CONST.DATA_ENEMYBASE_PETSKILL4 = 0x26;
CONST.DATA_ENEMYBASE_PETSKILL5 = 0x27;
CONST.DATA_ENEMYBASE_PETSKILL6 = 0x28;
CONST.DATA_ENEMYBASE_PETSKILL7 = 0x29;
CONST.DATA_ENEMYBASE_PETSKILL8 = 0x2A;
CONST.DATA_ENEMYBASE_PETSKILL9 = 0x2B;
CONST.DATA_ENEMYBASE_PETSKILL10 = 0x2C;
CONST.DATA_ENEMYBASE_NAME = CONST.EnemyBase_名字 or 2000;
end
if CONST.ITEMSET_ID == nil or CONST.ITEMSET_ID > 0 then
CONST.ITEMSET_ID = 0x0;
CONST.ITEMSET_BASEIMAGENUMBER = 0x1;
CONST.ITEMSET_COST = 0x2;
CONST.ITEMSET_TYPE = 0x3;
CONST.ITEMSET_OTHERFLG = 0x4;
CONST.ITEMSET_EQUIPBOTHHAND = 0x5;
CONST.ITEMSET_ABLEUSEFIELD = 0x6;
CONST.ITEMSET_ABLEUSEBATTLE = 0x7;
CONST.ITEMSET_TARGET = 0x8;
CONST.ITEMSET_REMAIN = 0x9;
CONST.ITEMSET_MAXREMAIN = 0x0A;
CONST.ITEMSET_LEVEL = 0x0B;
CONST.ITEMSET_BASEFAILEDPROB = 0x0C;
CONST.ITEMSET_MAXDURABILITY = 0x0D;
CONST.ITEMSET_ATTACKNUM_MIN = 0x0E;
CONST.ITEMSET_ATTACKNUM_MAX = 0x0F;
CONST.ITEMSET_ABLEEFFECTBETWEENHAVE = 0x10;
CONST.ITEMSET_MODIFYMODFLG = 0x11;
CONST.ITEMSET_MODIFYATTACK = 0x12;
CONST.ITEMSET_MODIFYDEFENCE = 0x13;
CONST.ITEMSET_MODIFYAGILITY = 0x14;
CONST.ITEMSET_MODIFYMAGIC = 0x15;
CONST.ITEMSET_MODIFYRECOVERY = 0x16;
CONST.ITEMSET_MODIFYCRITICAL = 0x17;
CONST.ITEMSET_MODIFYCOUNTER = 0x18;
CONST.ITEMSET_MODIFYHITRATE = 0x19;
CONST.ITEMSET_MODIFYAVOID = 0x1A;
CONST.ITEMSET_MODIFYHP = 0x1B;
CONST.ITEMSET_MODIFYFORCEPOINT = 0x1C;
CONST.ITEMSET_MODIFYLUCK = 0x1D;
CONST.ITEMSET_MODIFYCHARISMA = 0x1E;
CONST.ITEMSET_MODIFYCHARM = 0x1F;
CONST.ITEMSET_MODIFYATTRIB = 0x20;
CONST.ITEMSET_MODIFYATTRIB2 = 0x21;
CONST.ITEMSET_MODIFYATTRIBVALUE = 0x22;
CONST.ITEMSET_MODIFYATTRIBVALUE2 = 0x23;
CONST.ITEMSET_MODIFYSTAMINA = 0x24;
CONST.ITEMSET_MODIFYDEX = 0x25;
CONST.ITEMSET_MODIFYINTELLIGENCE = 0x26;
CONST.ITEMSET_POISON = 0x27;
CONST.ITEMSET_SLEEP = 0x28;
CONST.ITEMSET_STONE = 0x29;
CONST.ITEMSET_DRUNK = 0x2A;
CONST.ITEMSET_CONFUSION = 0x2B;
CONST.ITEMSET_AMNESIA = 0x2C;
CONST.ITEMSET_SPECIALEFFECT = 0x2D;
CONST.ITEMSET_SPECIALEFFECTVALUE = 0x2E;
CONST.ITEMSET_SPECIALEFFECTVALUE2 = 0x2F;
CONST.ITEMSET_MATERIAL_WEAPON = 0x30;
CONST.ITEMSET_MATERIAL_ARMOUR = 0x31;
CONST.ITEMSET_MATERIAL_ACCESSORY = 0x32;
CONST.ITEMSET_USEACTION = 0x33;
CONST.ITEMSET_DROPATLOGOUT = 0x34;
CONST.ITEMSET_VANISHATDROP = 0x35;
CONST.ITEMSET_CANPETMAIL = 0x36;
CONST.ITEMSET_RSS = 0x37;
CONST.ITEMSET_CANSELL = 0x38;
CONST.ITEMSET_EXPLANATION1 = 0x39;
CONST.ITEMSET_EXPLANATION2 = 0x3A;
CONST.ITEMSET_LEAKEDPROB = 0x3B;
CONST.ITEMSET_RARE_FLG = 0x3C;
CONST.ITEMSET_INBOX_FLG = 0x3D;
CONST.ITEMSET_PUTTIME = 0x3E;
CONST.ITEMSET_LEAKLEVEL = 0x3F;
CONST.ITEMSET_MERGEFLG = 0x40;
CONST.ITEMSET_DURABILITY = 0x41;
CONST.ITEMSET_SELLUNIT = 0x42;
CONST.ITEMSET_CREATETIME = 0x43;
CONST.ITEMSET_VAR1 = 0x44;
CONST.ITEMSET_VAR2 = 0x45;
CONST.ITEMSET_VAR3 = 0x46;
CONST.ITEMSET_VAR4 = 0x47;
CONST.ITEMSET_ADM = 0x48;
CONST.ITEMSET_HOUSE_X = 0x49;
CONST.ITEMSET_HOUSE_Y = 0x4A;
CONST.ITEMSET_MONSTERATTRIB = 0x4B;
CONST.ITEMSET_UNK1 = 0x4C;
CONST.ITEMSET_UNK2 = 0x4D;
CONST.ITEMSET_FIRSTNAME = CONST.ITEMSET_FIRSTNAME or (2000 + 0x0);
CONST.ITEMSET_TRUENAME = CONST.ITEMSET_TRUENAME or (2000 + 0x1);
CONST.ITEMSET_MEMO = CONST.ITEMSET_MEMO or (2000 + 0x2);
CONST.ITEMSET_ARGUMENT = CONST.ITEMSET_ARGUMENT or (2000 + 0x3);
CONST.ITEMSET_RENAMECDKEY = CONST.ITEMSET_RENAMECDKEY or (2000 + 0x4);
CONST.ITEMSET_INITFUNC = CONST.ITEMSET_INITFUNC or (2000 + 0x5);
CONST.ITEMSET_FIRSTFUNCTION = CONST.ITEMSET_FIRSTFUNCTION or (2000 + 0x5);
CONST.ITEMSET_WATCHFUNC = CONST.ITEMSET_WATCHFUNC or (2000 + 0x6);
CONST.ITEMSET_USEFUNC = CONST.ITEMSET_USEFUNC or (2000 + 0x7);
CONST.ITEMSET_ATTACHFUNC = CONST.ITEMSET_ATTACHFUNC or (2000 + 0x8);
CONST.ITEMSET_DETACHFUNC = CONST.ITEMSET_DETACHFUNC or (2000 + 0x9);
CONST.ITEMSET_DROPFUNC = CONST.ITEMSET_DROPFUNC or (2000 + 0x0A);
CONST.ITEMSET_PREPICKUPFUNC = CONST.ITEMSET_PREPICKUPFUNC or (2000 + 0x0B);
CONST.ITEMSET_PICKUPFUNC = CONST.ITEMSET_PICKUPFUNC or (2000 + 0x0C);
CONST.ITEMSET_LASTFUNCTION = CONST.ITEMSET_LASTFUNCTION or (2000 + 0x0D);
end
CONST.SHOP_TYPE_SELL = 1;
CONST.SHOP_TYPE_BUY = 2;
CONST.SHOP_TYPE_BOTH = 3;
CONST.PET_STATE_无 = 0;
CONST.PET_STATE_待命 = 0;
CONST.PET_STATE_战斗 = 0;
CONST.PET_STATE_休息 = 0;
CONST.对象类型_无 = 0;
CONST.对象类型_全部 = 0;
CONST.对象类型_人 = 0;
CONST.对象类型_怪 = 0;
CONST.对象类型_宠 = 0;
CONST.对象类型_NPC = 0;
CONST.EQUIP_头 = 0;
CONST.EQUIP_身 = 0;
CONST.EQUIP_左手 = 0;
CONST.EQUIP_右手 = 0;
CONST.EQUIP_腿 = 0;
CONST.PET_PetID = 72;
CONST.EQUIP_首饰1 = 0;
CONST.EQUIP_首饰2 = 0;
CONST.EQUIP_水晶 = 0;
CONST.组队模式_无 = 0;
CONST.组队模式_队长 = 0;
CONST.组队模式_队员 = 0;
CONST.组队模式_宠物 = 0;
CONST.CHAR_战死 = 0;
CONST.CHAR_战斗信息开关 = 0;
CONST.CHAR_登陆富豪榜 = 0;
CONST.CHAR_组队开关 = 0;
CONST.CHAR_PK开关 = 0;
CONST.CHAR_对战开关 = 0;
CONST.CHAR_队聊开关 = 0;
CONST.CHAR_名片开关 = 0;
CONST.CHAR_交易开关 = 0;
CONST.CHAR_打卡 = 0;
CONST.CHAR_网络超时 = 0;
CONST.CHAR_家族开关 = 0;
CONST.CHAR_DEBUG开关 = 0;
CONST.CHAR_使用MIC = 0;
CONST.CHAR_已保存 = 0;
CONST.CHAR_不遇敌开关 = 0;
CONST.对象_BattleIndex = CONST.对象_BattleIndex or 379;
CONST.地图类型_普通 = CONST.地图类型_普通 or 0;
CONST.地图类型_迷宫 = CONST.地图类型_迷宫 or 1;
CONST.地图类型_家族 = CONST.地图类型_家族 or 2;
CONST.地图类型_房屋 = CONST.地图类型_房屋 or 3;
CONST.地图类型_LUAMAP = CONST.地图类型_LUAMAP or 5;
CONST.种族_人型 = 0;
CONST.种族_龙 = 0;
CONST.种族_不死 = 0;
CONST.种族_飞行 = 0;
CONST.种族_昆虫 = 0;
CONST.种族_植物 = 0;
CONST.种族_野兽 = 0;
CONST.种族_特殊 = 0;
CONST.种族_金属 = 0;
CONST.种族_邪魔 = 0;
CONST.属性_地 = 0;
CONST.属性_水 = 0;
CONST.属性_火 = 0;
CONST.属性_风 = 0;
CONST.CHAR_类型 = 0;
CONST.CHAR_序 = 0;
CONST.CHAR_形象 = 0;
CONST.CHAR_可视 = 0;
CONST.CHAR_原形 = 0;
CONST.CHAR_地图类型 = 0;
CONST.CHAR_MAP = 0;
CONST.CHAR_地图 = 0;
CONST.CHAR_X = 0;
CONST.CHAR_Y = 0;
CONST.CHAR_方向 = 0;
CONST.CHAR_等级 = 0;
CONST.CHAR_血 = 0;
CONST.CHAR_魔 = 0;
CONST.CHAR_体力 = 0;
CONST.CHAR_力量 = 0;
CONST.CHAR_强度 = 0;
CONST.CHAR_速度 = 0;
CONST.CHAR_魔法 = 0;
CONST.CHAR_运 = 0;
CONST.CHAR_运气 = 0;
CONST.CHAR_种族 = 0;
CONST.CHAR_地属性 = 0;
CONST.CHAR_水属性 = 0;
CONST.CHAR_火属性 = 0;
CONST.CHAR_风属性 = 0;
CONST.CHAR_抗毒 = 0;
CONST.CHAR_抗睡 = 0;
CONST.CHAR_抗石 = 0;
CONST.CHAR_抗醉 = 0;
CONST.CHAR_抗乱 = 0;
CONST.CHAR_抗忘 = 0;
CONST.CHAR_必杀 = 0;
CONST.CHAR_反击 = 0;
CONST.CHAR_命中 = 0;
CONST.CHAR_闪躲 = 0;
CONST.CHAR_实际抗毒 = 0;
CONST.CHAR_实际抗睡 = 0;
CONST.CHAR_实际抗石 = 0;
CONST.CHAR_实际抗醉 = 0;
CONST.CHAR_实际抗乱 = 0;
CONST.CHAR_实际抗忘 = 0;
CONST.CHAR_实际必杀 = 0;
CONST.CHAR_实际反击 = 0;
CONST.CHAR_实际命中 = 0;
CONST.CHAR_实际闪躲 = 0;
CONST.CHAR_道具栏 = 0;
CONST.CHAR_技能栏 = 0;
CONST.CHAR_死亡数 = 0;
CONST.CHAR_伤害数 = 0;
CONST.CHAR_杀宠数 = 0;
CONST.CHAR_占卜时间 = 0;
CONST.CHAR_受伤 = 0;
CONST.CHAR_移间 = 0;
CONST.CHAR_循时 = 0;
CONST.CHAR_经验 = 0;
CONST.CHAR_升级点 = 0;
CONST.CHAR_图类 = 0;
CONST.CHAR_名色 = 0;
--CONST.CHAR_ALLOCPOINT = 0;
CONST.CHAR_吃时 = 0;
CONST.CHAR_ThankFlower = 0;
CONST.CHAR_DataPN = 0;
CONST.PET_主人RegistNumber = 0;
CONST.CHAR_RegistNumber = 0;
CONST.CHAR_职业 = 0;
CONST.CHAR_职阶 = 0;
CONST.CHAR_职类ID = 0;
CONST.PET_技能栏 = 0;
CONST.CHAR_脸 = 0;
CONST.PET_获取时等级 = 0;
CONST.CHAR_金币 = 0;
CONST.CHAR_银行金币 = 0;
CONST.CHAR_耐力 = 0;
CONST.CHAR_灵巧 = 0;
CONST.CHAR_智力 = 0;
CONST.CHAR_魅力 = 0;
CONST.CHAR_声望 = 0;
CONST.CHAR_称号 = 0;
CONST.CHAR_记录点 = 0;
CONST.CHAR_战宠 = 0;
CONST.CHAR_聊天距离 = 0;
CONST.CHAR_HelpPoint = 0;
CONST.CHAR_登陆次数 = 0;
CONST.CHAR_说话次数 = 0;
CONST.CHAR_说次 = 0;
CONST.CHAR_获得宠数 = 0;
CONST.CHAR_宠得数 = 0;
CONST.CHAR_邮数 = 0;
CONST.CHAR_生产数 = 0;
CONST.CHAR_走动次数 = 0;
CONST.CHAR_走次 = 0;
CONST.CHAR_宠死亡数 = 0;
CONST.CHAR_宠死数 = 0;
CONST.CHAR_宠复活数 = 0;
CONST.CHAR_宠复数 = 0;
CONST.CHAR_宠治疗数 = 0;
CONST.CHAR_宠治数 = 0;
CONST.CHAR_封印数 = 0;
CONST.CHAR_OtherFlg = 0;
CONST.CHAR_日声望上限 = 0;
CONST.CHAR_声望获取时间 = 0;
CONST.CHAR_声望下降时间 = 0;
CONST.CHAR_掉魂 = 0;
--CONST.LASTTALKELDER = 0;
CONST.ENDEVENT1 = 0;
CONST.ENDEVENT2 = 0;
CONST.ENDEVENT3 = 0;
CONST.ENDEVENT4 = 0;
CONST.ENDEVENT5 = 0;
CONST.ENDEVENT6 = 0;
CONST.ENDEVENT7 = 0;
CONST.ENDEVENT8 = 0;
CONST.NOWEVENT1 = 0;
CONST.NOWEVENT2 = 0;
CONST.NOWEVENT3 = 0;
CONST.NOWEVENT4 = 0;
CONST.NOWEVENT5 = 0;
CONST.NOWEVENT6 = 0;
CONST.NOWEVENT7 = 0;
CONST.NOWEVENT8 = 0;
CONST.RECIPE1 = 0;
CONST.RECIPE2 = 0;
CONST.RECIPE3 = 0;
CONST.RECIPE4 = 0;
CONST.RECIPE5 = 0;
CONST.RECIPE6 = 0;
CONST.RECIPE7 = 0;
CONST.RECIPE8 = 0;
CONST.RECIPE9 = 0;
CONST.RECIPE10 = 0;
CONST.RECIPE11 = 0;
CONST.RECIPE12 = 0;
CONST.RECIPE13 = 0;
CONST.RECIPE14 = 0;
CONST.RECIPE15 = 0;
CONST.RECIPE16 = 0;
CONST.RECIPE17 = 0;
CONST.RECIPE18 = 0;
CONST.RECIPE19 = 0;
CONST.RECIPE20 = 0;
CONST.RECIPE21 = 0;
CONST.RECIPE22 = 0;
CONST.RECIPE23 = 0;
CONST.RECIPE24 = 0;
CONST.RECIPE25 = 0;
CONST.RECIPE26 = 0;
CONST.RECIPE27 = 0;
CONST.RECIPE28 = 0;
CONST.RECIPE29 = 0;
CONST.RECIPE30 = 0;
CONST.RECIPE31 = 0;
CONST.RECIPE32 = 0;
CONST.ALBUM1 = 0;
CONST.ALBUM2 = 0;
CONST.ALBUM3 = 0;
CONST.ALBUM4 = 0;
CONST.ALBUM5 = 0;
CONST.ALBUM6 = 0;
CONST.ALBUM7 = 0;
CONST.ALBUM8 = 0;
CONST.ALBUM9 = 0;
CONST.ALBUM10 = 0;
CONST.ALBUM11 = 0;
CONST.ALBUM12 = 0;
CONST.ALBUM13 = 0;
CONST.ALBUM14 = 0;
CONST.ALBUM15 = 0;
CONST.ALBUM16 = 0;
CONST.ALBUM17 = 0;
CONST.ALBUM18 = 0;
CONST.ALBUM19 = 0;
CONST.ALBUM20 = 0;
CONST.ALBUM21 = 0;
CONST.ALBUM22 = 0;
CONST.ALBUM23 = 0;
CONST.ALBUM24 = 0;
CONST.ALBUM25 = 0;
CONST.ALBUM26 = 0;
CONST.ALBUM27 = 0;
CONST.ALBUM28 = 0;
CONST.ALBUM29 = 0;
CONST.ALBUM30 = 0;
CONST.CHAR_银行最大宠数 = 0;
CONST.CHAR_银行最大物数 = 0;
CONST.CHAR_DP = 0;
CONST.CHAR_话色 = 0;
CONST.CHAR_位置 = 0;
CONST.CHAR_GM = 0;
CONST.DUNGEON_CLR_1 = 0;
CONST.DUNGEON_CLR_2 = 0;
CONST.DUNGEON_CLR_3 = 0;
CONST.LASTSAVETIME = 0;
CONST.RANKDOWNFLG = 0;
CONST.PENALTY = 0;
CONST.CHAR_登陆点 = 0;
CONST.FEVER_RESETTIME = 0;
CONST.CHAR_卡时 = 0;
CONST.CHAR_房子ID = 0;
CONST.CHAR_房子期限 = 0;
CONST.TIMEOUTDUNGEONID = 0;
CONST.TIMEOUTSERVERNUMBER = 0;
CONST.CHAR_原始图档 = 0;
CONST.CHAR_名字 = 0;
CONST.CHAR_原名 = 0;
CONST.CHAR_玩家称号 = 0;
CONST.CHAR_宠名 = 0;
CONST.CHAR_CDK = 0;
CONST.CHAR_账号 = 0;
CONST.CHAR_主人CDK = 0;
CONST.CHAR_主人名字 = 0;
CONST.CHAR_主人原名 = 0;
CONST.CHAR_战斗中 = 0;
CONST.CHAR_战斗状态 = 0;
CONST.CHAR_战斗Index = 0;
CONST.CHAR_战斗Side = 0;
CONST.CHAR_最大血 = 0;
CONST.CHAR_最大魔 = 0;
CONST.CHAR_攻击力 = 0;
CONST.CHAR_防御力 = 0;
CONST.CHAR_敏捷 = 0;
CONST.CHAR_精神 = 0;
CONST.CHAR_回复 = 0;
CONST.CHAR_OBJ = 0;
CONST.CHAR_获得经验 = 0;
--CONST.CHAR_战得DP = 0;
CONST.CHAR_组队模式 = 0;
CONST.CHAR_最低遇敌率 = 0;
CONST.CHAR_最高遇敌率 = 0;
CONST.CHAR_魔攻 = 0;
CONST.CHAR_魔法攻击力 = 0;
CONST.CHAR_魔强 = 0;
CONST.CHAR_魔抗 = 0;
--CONST.CHAR_魔法防御力 = 0;
--CONST.CHAR_魔法抗性 = 0;
CONST.CHAR_香下限 = 0;
CONST.CHAR_香上限 = 0;
CONST.CHAR_香步数 = 0;
CONST.BUTTON_无 = 0;
CONST.BUTTON_确定 = 0;
CONST.BUTTON_确认 = 0;
CONST.BUTTON_关闭 = 0;
CONST.BUTTON_确定关闭 = 0;
CONST.BUTTON_是 = 0;
CONST.BUTTON_否 = 0;
CONST.BUTTON_是否 = 0;
CONST.BUTTON_下取消 = 0;
CONST.BUTTON_上取消 = 0;
CONST.BUTTON_上下取消 = 0;
CONST.BUTTON_上一页 = 0;
CONST.BUTTON_下一页 = 0;
CONST.ITEM_TYPE_剑 = 0;
CONST.ITEM_TYPE_斧 = 0;
CONST.ITEM_TYPE_枪 = 0;
CONST.ITEM_TYPE_杖 = 0;
CONST.ITEM_TYPE_弓 = 0;
CONST.ITEM_TYPE_小刀 = 0;
CONST.ITEM_TYPE_回力镖 = 0;
CONST.ITEM_TYPE_盾 = 0;
CONST.ITEM_TYPE_盔 = 0;
CONST.ITEM_TYPE_帽 = 0;
CONST.ITEM_TYPE_铠 = 0;
CONST.ITEM_TYPE_衣 = 0;
CONST.ITEM_TYPE_袍 = 0;
CONST.ITEM_TYPE_靴 = 0;
CONST.ITEM_TYPE_鞋 = 0;
CONST.ITEM_TYPE_手环 = 0;
CONST.ITEM_TYPE_乐器 = 0;
CONST.ITEM_TYPE_项链 = 0;
CONST.ITEM_TYPE_戒指 = 0;
CONST.ITEM_TYPE_头带 = 0;
CONST.ITEM_TYPE_耳环 = 0;
CONST.ITEM_TYPE_护身符 = 0;
CONST.ITEM_TYPE_水晶 = 0;
CONST.ITEM_TYPE_料理 = 0;
CONST.ITEM_TYPE_家具 = 0;
CONST.ITEM_TYPE_果皮 = 0;
CONST.ITEM_TYPE_不明 = 0;
CONST.ITEM_TYPE_宝箱 = 0;
CONST.ITEM_TYPE_钥匙 = 0;
CONST.ITEM_TYPE_矿石 = 0;
CONST.ITEM_TYPE_木材 = 0;
CONST.ITEM_TYPE_布卷 = 0;
CONST.ITEM_TYPE_肉类 = 0;
CONST.ITEM_TYPE_海鲜 = 0;
CONST.ITEM_TYPE_蔬菜 = 0;
CONST.ITEM_TYPE_其他食材 = 0;
CONST.ITEM_TYPE_香草 = 0;
CONST.ITEM_TYPE_药草 = 0;
CONST.ITEM_TYPE_宝石 = 0;
CONST.ITEM_TYPE_B类材料 = 0;
CONST.ITEM_TYPE_封印卡 = 40; --封印卡;
CONST.ITEM_TYPE_图鉴卡 = 41; --图鉴卡;
CONST.ITEM_TYPE_料理_其他 = 42; --料理;
CONST.ITEM_TYPE_药水 = 43; --药水;
CONST.ITEM_TYPE_书 = 44; --书(貌似古文书和4.0以后的那几本没用的书);
CONST.ITEM_TYPE_未知_地图 = 45; --未知(地图);
CONST.ITEM_TYPE_其它_红色三棱镜 = 46; --其它(红色三棱镜);
CONST.ITEM_TYPE_彩票 = 47; --彩票;
CONST.ITEM_TYPE_很多物品 = 48; --很多物品,有通行证,骑宠学习手册,树海的钥匙;
CONST.ITEM_TYPE_BOMB = 51; --炸弹;
CONST.ITEM_TYPE_HEADGEAR = 55; --头饰;
CONST.ITEM_TYPE_PET_CRYSTAL = 56; --宠物装备-水晶
CONST.ITEM_TYPE_PET_AMULET = 57; --宠物装备-护符
CONST.ITEM_TYPE_PET_ARMOR = 58; --宠物装备-铠甲
CONST.ITEM_TYPE_PET_CLOTHES = 59; --宠物装备-衣服
CONST.ITEM_TYPE_PET_COLLAR = 60; --宠物装备-颈圈
CONST.ITEM_TYPE_PET_AMULET2 = 61; --宠物装备-护符2
CONST.道具_鉴前名 = 0;
CONST.道具_名字 = 0;
CONST.道具_刻印 = 0;
CONST.道具_自用参数 = 0;
CONST.道具_刻印玩家 = 0;
CONST.道具_序 = 0;
CONST.道具_ID = 0;
CONST.道具_图 = 0;
CONST.道具_价格 = 0;
CONST.道具_类型 = 0;