-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patholdbk.sql
More file actions
8008 lines (7553 loc) · 331 KB
/
oldbk.sql
File metadata and controls
8008 lines (7553 loc) · 331 KB
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
-- Äàìïèë ÒÀÐÀÍÒÈÍÎ
-- Datetime: 2018-12
-- Host: oldbk-db
-- Database: oldbk
/*!40030 SET NAMES cp1251 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
DROP TABLE IF EXISTS `abil_buy_clans`;
CREATE TABLE `abil_buy_clans` (
`klan_id` int(11) NOT NULL DEFAULT '0' COMMENT 'èä êëàíà',
`magic_id` int(11) DEFAULT NULL COMMENT 'èä ìàãèè êîòîðóþ êóïèëè',
`all_count` int(11) NOT NULL DEFAULT '0' COMMENT 'âñåãî îñòàëîñü , äëÿ ïåðåðàñ÷åòà åñëè íàäî',
`findata` int(11) NOT NULL DEFAULT '0' COMMENT 'øòàìï êîãäà êóïëèëè àáèëêó èëè ïðîäèëëè',
`klan_name` varchar(255) NOT NULL DEFAULT '' COMMENT 'íàçâàíèÿ êëàíà íàäî äëÿ äæîèíà àäèëîê',
UNIQUE KEY `klan_id` (`klan_id`,`magic_id`),
KEY `klan_id_2` (`klan_id`),
KEY `findata` (`findata`),
KEY `klan_name` (`klan_name`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='êóïëåííûå àáèëêè êëàíàìè';
DROP TABLE IF EXISTS `abil_shop`;
CREATE TABLE `abil_shop` (
`magic` int(11) NOT NULL DEFAULT '0' COMMENT 'èä èç ìàãèè',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT 'íàçâàíèå',
`img` varchar(255) NOT NULL DEFAULT '.gif' COMMENT 'êàðòèíêà',
`ecost` float(13,2) NOT NULL DEFAULT '0.00' COMMENT 'ñòîèìîñòü íà ñóòêè à åêðàõ',
`open` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0/1 - âêëþ÷åíî èëè âûêëþ÷åíî äëÿ ïîêóïêè',
`limit` int(11) NOT NULL DEFAULT '0' COMMENT '0- áåç îãðàíè÷åíèé, èëè îãðàíè÷åíèå â ñóòêè - íåèñïîëüçóåòñÿ',
`allbuy` int(11) NOT NULL DEFAULT '0' COMMENT 'ñêîëüêî âñåãî êóïëåííî äëÿ àäìèíîâ',
UNIQUE KEY `magic` (`magic`),
KEY `open` (`open`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='ìàãàçèí àáèëîê';
DROP TABLE IF EXISTS `active_battle`;
CREATE TABLE `active_battle` (
`owner` int(11) NOT NULL DEFAULT '0',
`bdate` date NOT NULL DEFAULT '0000-00-00',
`val` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`owner`,`bdate`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='àêòèâíûå áîè';
DROP TABLE IF EXISTS `admin_log`;
CREATE TABLE `admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dtype` varchar(255) NOT NULL DEFAULT '' COMMENT 'îïåðàöèÿ',
`kto` varchar(255) DEFAULT NULL,
`komu` varchar(255) DEFAULT NULL,
`val` varchar(255) DEFAULT NULL,
`sdate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'êîãäà',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=359 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `aligns`;
CREATE TABLE `aligns` (
`align` varchar(6) NOT NULL DEFAULT '',
`accses` text NOT NULL,
`img` varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
UNIQUE KEY `align` (`align`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `ancients_templ_log`;
CREATE TABLE `ancients_templ_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(15) NOT NULL DEFAULT '0',
`type` int(15) NOT NULL DEFAULT '0' COMMENT 'òèï ñâå÷è',
`count` int(10) NOT NULL DEFAULT '0',
`used` tinyint(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `Ñâå÷à_òèï` (`owner`,`type`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=471660 DEFAULT CHARSET=cp1251 COMMENT='ëîã ïîñòàâëåííûõ ñâå÷åé';
DROP TABLE IF EXISTS `api_client`;
CREATE TABLE `api_client` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`api_key` text NOT NULL,
`_token` text,
`_token_expire` int(11) DEFAULT '0',
`updated_at` int(11) DEFAULT '0',
`created_at` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `art_bonus`;
CREATE TABLE `art_bonus` (
`itemid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'èä ïðåäìåòà â èíâåíòàðå',
`blevel` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'óðîâåðü óëó÷øåíèÿ',
`info` text NOT NULL COMMENT '÷å äàåò',
`art_proto` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'èä ïðîòîòèïà',
`art_proto_name` varchar(255) NOT NULL DEFAULT '' COMMENT 'íàçâàíèå ïðîòîòèïà',
`art_proto_img` varchar(255) NOT NULL DEFAULT '' COMMENT 'íàçâàíèå êàðòèíêè ïðîòîòèïà',
PRIMARY KEY (`itemid`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='áîíóñû àðòîâ';
DROP TABLE IF EXISTS `art_prototype`;
CREATE TABLE `art_prototype` (
`id` int(255) NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`duration` int(5) NOT NULL DEFAULT '0',
`maxdur` int(5) NOT NULL DEFAULT '0',
`cost` float NOT NULL DEFAULT '0',
`owner` int(11) NOT NULL DEFAULT '0',
`nlevel` int(2) NOT NULL DEFAULT '0',
`nsila` int(5) NOT NULL DEFAULT '0',
`nlovk` int(5) NOT NULL DEFAULT '0',
`ninta` int(5) NOT NULL DEFAULT '0',
`nvinos` int(5) NOT NULL DEFAULT '0',
`nintel` int(5) NOT NULL DEFAULT '0',
`nmudra` int(5) NOT NULL DEFAULT '0',
`nnoj` int(2) NOT NULL DEFAULT '0',
`ntopor` int(2) NOT NULL DEFAULT '0',
`ndubina` int(2) NOT NULL DEFAULT '0',
`nmech` int(2) NOT NULL DEFAULT '0',
`nalign` int(5) NOT NULL DEFAULT '0',
`minu` int(5) NOT NULL DEFAULT '0',
`maxu` int(5) NOT NULL DEFAULT '0',
`gsila` int(5) NOT NULL DEFAULT '0',
`glovk` int(5) NOT NULL DEFAULT '0',
`ginta` int(5) NOT NULL DEFAULT '0',
`gintel` int(5) NOT NULL DEFAULT '0',
`ghp` int(5) NOT NULL DEFAULT '0',
`mfkrit` int(5) NOT NULL DEFAULT '0',
`mfakrit` int(5) NOT NULL DEFAULT '0',
`mfuvorot` int(5) NOT NULL DEFAULT '0',
`mfauvorot` int(5) NOT NULL DEFAULT '0',
`gnoj` int(5) NOT NULL DEFAULT '0',
`gtopor` int(5) NOT NULL DEFAULT '0',
`gdubina` int(5) NOT NULL DEFAULT '0',
`gmech` int(5) NOT NULL DEFAULT '0',
`img` varchar(100) NOT NULL DEFAULT '',
`text` varchar(100) NOT NULL DEFAULT '',
`dressed` tinyint(1) NOT NULL DEFAULT '0',
`bron1` int(5) NOT NULL DEFAULT '0',
`bron2` int(5) NOT NULL DEFAULT '0',
`bron3` int(5) NOT NULL DEFAULT '0',
`bron4` int(5) NOT NULL DEFAULT '0',
`dategoden` int(15) NOT NULL DEFAULT '0',
`magic` int(5) NOT NULL DEFAULT '0',
`type` int(2) NOT NULL DEFAULT '0',
`present` varchar(50) NOT NULL DEFAULT '',
`sharped` tinyint(1) NOT NULL DEFAULT '0',
`massa` float(4,1) NOT NULL DEFAULT '0.0' COMMENT 'ìàññà ïðåäìåòà',
`goden` int(4) NOT NULL DEFAULT '0',
`needident` tinyint(1) NOT NULL DEFAULT '0',
`nfire` int(3) NOT NULL DEFAULT '0',
`nwater` int(3) NOT NULL DEFAULT '0',
`nair` int(3) NOT NULL DEFAULT '0',
`nearth` int(3) NOT NULL DEFAULT '0',
`nlight` int(3) NOT NULL DEFAULT '0',
`ngray` int(3) NOT NULL DEFAULT '0',
`ndark` int(3) NOT NULL DEFAULT '0',
`gfire` int(3) NOT NULL DEFAULT '0',
`gwater` int(3) NOT NULL DEFAULT '0',
`gair` int(3) NOT NULL DEFAULT '0',
`gearth` int(3) NOT NULL DEFAULT '0',
`glight` int(3) NOT NULL DEFAULT '0',
`ggray` int(3) NOT NULL DEFAULT '0',
`gdark` int(3) NOT NULL DEFAULT '0',
`letter` text NOT NULL,
`isrep` tinyint(1) NOT NULL DEFAULT '1',
`update` timestamp NULL DEFAULT '0000-00-00 00:00:00',
`setsale` float(10,2) NOT NULL DEFAULT '0.00',
`prototype` int(255) NOT NULL DEFAULT '0',
`otdel` varchar(5) NOT NULL DEFAULT '',
`bs` tinyint(1) NOT NULL DEFAULT '0',
`gmp` int(10) NOT NULL,
`includemagic` int(11) NOT NULL,
`includemagicdex` int(11) NOT NULL,
`includemagicmax` int(11) NOT NULL,
`includemagicname` varchar(100) NOT NULL,
`includemagicuses` int(5) NOT NULL,
`includemagiccost` float(10,2) NOT NULL DEFAULT '0.00',
`includemagicekrcost` float NOT NULL DEFAULT '0' COMMENT 'ñòîèìîñòü ïåðåçàðÿäêè â åêðàõ',
`gmeshok` int(55) NOT NULL,
`tradesale` float NOT NULL,
`karman` tinyint(1) DEFAULT '0',
`stbonus` int(11) NOT NULL DEFAULT '0',
`upfree` int(11) NOT NULL DEFAULT '0',
`ups` int(11) NOT NULL DEFAULT '0',
`mfbonus` int(11) NOT NULL DEFAULT '0',
`mffree` int(11) NOT NULL DEFAULT '0',
`type3_updated` tinyint(1) NOT NULL DEFAULT '0',
`bs_owner` int(11) DEFAULT '0',
`nsex` smallint(6) NOT NULL DEFAULT '0',
`present_text` text,
`add_time` int(11) unsigned NOT NULL DEFAULT '0',
`labonly` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'íå âûíîñèòñÿ èç ëàáû',
`labflag` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'çàìîðîçêà ëàáèðèíòà',
`prokat_idp` int(11) NOT NULL DEFAULT '0' COMMENT 'idp ïðîêàòà',
`prokat_do` int(11) DEFAULT NULL,
`arsenal_klan` varchar(60) NOT NULL DEFAULT '',
`arsenal_owner` int(11) NOT NULL DEFAULT '0' COMMENT 'õîçÿèí ñäàòîÿ øìîòêè',
`repcost` int(11) NOT NULL DEFAULT '0' COMMENT 'ñòîèìîñòü â ðåïóòàöèè',
`up_level` int(7) NOT NULL DEFAULT '0' COMMENT 'àï øìîòà íà óðîâåíü',
`ecost` float(10,2) NOT NULL DEFAULT '0.00',
`group` int(5) NOT NULL DEFAULT '0',
`ekr_up` varchar(20) DEFAULT NULL COMMENT 'ðèõòîâêà',
`unik` int(1) NOT NULL DEFAULT '0' COMMENT 'ñòàâèòñÿ åñëè óíèê',
`add_pick` varchar(30) DEFAULT NULL COMMENT 'êàðòèíêè',
`pick_time` int(15) DEFAULT NULL COMMENT 'âðåìÿ æèçíè êàðòèíêè',
`sowner` int(11) NOT NULL DEFAULT '0' COMMENT 'ïðèâÿçàíà ê îâíåðó',
`idcity` int(2) NOT NULL DEFAULT '0' COMMENT '0-êåïèòàë',
`battle` int(11) NOT NULL DEFAULT '0' COMMENT 'äëÿ ïîèñêà áîÿ/+ïîëå þçàåòñÿ äëÿ íîìåðà ëîòåðåèè :)',
`t_id` int(11) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçóåòñÿ äëÿ êîìêà ïî ãîðîäàì',
`ab_mf` int(11) NOT NULL DEFAULT '0' COMMENT 'áîíóñ ÌÔ',
`ab_bron` int(11) NOT NULL DEFAULT '0' COMMENT 'Áîíóñ íà áðîíü',
`ab_uron` int(11) NOT NULL DEFAULT '0' COMMENT 'áîíóñ íà óðîí',
`nclass` smallint(5) unsigned NOT NULL DEFAULT '0',
`art_status` int(11) NOT NULL DEFAULT '0' COMMENT 'â êàêîì ñòàòóñå çàêàç àðòà 0-íåîïëå÷åíî, 1-îïëà÷åí, 2-îïëà÷åí è óñòàíîâëåí',
`art_zakdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'äàòà ñîçäàíèÿ çàêàçà',
`art_param` varchar(60) NOT NULL DEFAULT '',
`art_mess` int(11) NOT NULL DEFAULT '0' COMMENT 'îòïðàâëåííî ëè óòâåðæäåíèå íà àðò',
`dil` int(11) DEFAULT NULL COMMENT 'åñëè ïëàòèëè åêðàìè òî èä äèëåðà êîòîðûé îïëàòèë',
`veks_flag` int(11) NOT NULL DEFAULT '0' COMMENT '1-ôëàã åñëè îïëàòèëè âåêñåëåì 2-àâòî îáìåí ñ ìîäåðàöèåé',
`del_comm` varchar(255) NOT NULL DEFAULT '' COMMENT 'êîìåíòàðèé ïðè îòêàçå ñòàòóñ 100',
`art_moder` varchar(255) NOT NULL DEFAULT '' COMMENT 'êòî óòâåðäèë',
`art_mod_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`olditem` smallint(6) NOT NULL DEFAULT '1' COMMENT 'ôëàã ãîâîðèò î òîì ÷òî àð ñäåëàí èç ñòàðîãî øìîòà',
`bankid` int(11) unsigned NOT NULL DEFAULT '0',
`express_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'äàòà åêñïðåññà',
PRIMARY KEY (`id`),
KEY `owner` (`owner`),
KEY `dressed` (`dressed`),
KEY `otdel` (`otdel`),
KEY `bs` (`bs`),
KEY `ghp` (`ghp`),
KEY `maxdur` (`maxdur`),
KEY `duration` (`duration`),
KEY `dategoden` (`dategoden`),
KEY `type` (`type`),
KEY `setsale` (`setsale`),
KEY `update` (`update`),
KEY `gmp` (`gmp`),
KEY `tradesale` (`tradesale`),
KEY `bs_owner` (`bs_owner`),
KEY `battle` (`battle`),
KEY `prototype` (`prototype`),
KEY `t_id` (`t_id`),
KEY `prokat_do` (`prokat_do`),
KEY `arsenal_klan` (`arsenal_klan`),
KEY `arsenal_owner` (`arsenal_owner`),
KEY `art_status` (`art_status`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `ascrolls`;
CREATE TABLE `ascrolls` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`current_index` int(11) DEFAULT '1',
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `auction`;
CREATE TABLE `auction` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`itemid` int(255) NOT NULL,
`owner` int(255) NOT NULL,
`endtime` int(255) unsigned NOT NULL,
`newowner` int(255) unsigned NOT NULL DEFAULT '0',
`rate` decimal(10,2) DEFAULT NULL,
`clan_id` int(11) NOT NULL DEFAULT '0' COMMENT 'ïîêóïàåòñÿ â êëàí àðñåíàë èç êàçíû',
`repcost` int(11) NOT NULL DEFAULT '0' COMMENT '0 öåíà â åêðàõ / 1 öåíà â ðåïå /2 öåíà â âàó÷åðàõ',
`starttime` int(11) NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ñòàðòà ëîòà',
`shag` int(11) NOT NULL DEFAULT '0' COMMENT 'øàã ïîäíÿòèÿ äëÿ ñòàâîê',
`st_count` int(11) NOT NULL DEFAULT '0' COMMENT 'ñ÷åò÷èê ñòàâîê',
`st_date` timestamp NULL DEFAULT NULL COMMENT 'âðåìÿ ïîñëåäíåé ñòàâêè',
`blic` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT 'áëèö-öåíà',
`ismarked` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'âûäåëåí ëè ëîò è íà ñêîëüêî',
`ismarkedupdate` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'âðåìÿ îáíîâëåíèÿ ïîìå÷åííûõ',
PRIMARY KEY (`id`),
UNIQUE KEY `itemid` (`itemid`),
KEY `owner` (`owner`),
KEY `newowner` (`newowner`),
KEY `endtime` (`endtime`)
) ENGINE=InnoDB AUTO_INCREMENT=47492 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `autoanswer`;
CREATE TABLE `autoanswer` (
`id` int(11) NOT NULL DEFAULT '0',
`answer` varchar(255) NOT NULL DEFAULT '',
`status` int(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `status` (`status`),
KEY `id` (`id`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='àâòîîòâåò÷èê';
DROP TABLE IF EXISTS `bank`;
CREATE TABLE `bank` (
`id` mediumint(255) NOT NULL AUTO_INCREMENT,
`pass` varchar(255) NOT NULL DEFAULT '',
`cr` decimal(10,2) NOT NULL DEFAULT '0.00',
`ekr` decimal(10,2) NOT NULL DEFAULT '0.00',
`owner` int(255) NOT NULL DEFAULT '0',
`haos` tinyint(2) NOT NULL DEFAULT '0' COMMENT 'ïðèâÿçêà ñêëîíêè ê ñ÷åòó',
`def` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'ñ÷åò ïî óìîë÷àíèþ',
PRIMARY KEY (`id`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=180070 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `bank_copy`;
CREATE TABLE `bank_copy` (
`id` mediumint(255) NOT NULL AUTO_INCREMENT,
`pass` varchar(255) NOT NULL DEFAULT '',
`cr` decimal(10,2) NOT NULL DEFAULT '0.00',
`ekr` decimal(10,2) NOT NULL DEFAULT '0.00',
`owner` int(255) NOT NULL DEFAULT '0',
`haos` tinyint(2) NOT NULL DEFAULT '0' COMMENT 'ïðèâÿçêà ñêëîíêè ê ñ÷åòó',
PRIMARY KEY (`id`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=160917 DEFAULT CHARSET=cp1251 ROW_FORMAT=COMPACT;
DROP TABLE IF EXISTS `bank_ekr_log`;
CREATE TABLE `bank_ekr_log` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(11) NOT NULL DEFAULT '0',
`kr` float(11,2) NOT NULL DEFAULT '0.00',
`ekr` float(11,2) NOT NULL DEFAULT '0.00',
`date` int(15) NOT NULL DEFAULT '0',
PRIMARY KEY (`Id`),
KEY `owner` (`owner`),
KEY `date` (`date`)
) ENGINE=InnoDB AUTO_INCREMENT=584219 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `bankhistory`;
CREATE TABLE `bankhistory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` int(15) NOT NULL DEFAULT '0',
`text` varchar(150) NOT NULL DEFAULT '',
`bankid` int(8) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `bankid` (`bankid`)
) ENGINE=InnoDB AUTO_INCREMENT=4247055 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle`;
CREATE TABLE `battle` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`coment` varchar(255) NOT NULL DEFAULT '',
`teams` longtext NOT NULL COMMENT 'èñïîëüçóåòñÿ äëÿ áëîêèðîâêè áîÿ',
`timeout` int(2) NOT NULL DEFAULT '0',
`type` int(2) NOT NULL DEFAULT '0',
`status` int(2) NOT NULL DEFAULT '0' COMMENT 'Ëîêèðîâêà áîåâ - ñèñòåìíîå ïîëå',
`t1` longtext NOT NULL,
`t2` longtext NOT NULL,
`t3` longtext NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`win` int(1) NOT NULL DEFAULT '3',
`damage` longtext NOT NULL,
`to1` int(25) NOT NULL DEFAULT '0',
`to2` int(25) NOT NULL DEFAULT '0',
`to3` int(25) NOT NULL DEFAULT '0',
`exp` longtext NOT NULL COMMENT 'èñïîëüçóåòñÿ äëÿ äàííûõ î ñêëîíêàõ',
`blood` tinyint(1) NOT NULL,
`t1hist` longtext NOT NULL,
`t2hist` longtext NOT NULL,
`t3hist` longtext NOT NULL,
`status_flag` tinyint(1) NOT NULL DEFAULT '0',
`t1_dead` longtext NOT NULL,
`fond` int(8) NOT NULL DEFAULT '0',
`price` int(8) NOT NULL DEFAULT '0',
`nomagic` tinyint(1) NOT NULL DEFAULT '0',
`CHAOS` tinyint(3) NOT NULL DEFAULT '0' COMMENT '0-íå õàîò; 1- õàîò;2-õàîò ñ àâòîóäàðàìè',
`war_id` int(25) DEFAULT NULL COMMENT 'èä êëàí âàðà',
`inf` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `win` (`win`),
KEY `to1` (`to1`),
KEY `to2` (`to2`),
KEY `type` (`type`),
KEY `date` (`date`),
KEY `t1` (`t1`(10)),
KEY `t2` (`t2`(10)),
KEY `war_id` (`war_id`),
KEY `status` (`status`),
KEY `status_flag` (`status_flag`),
KEY `t3` (`t3`(10)),
KEY `to3` (`to3`)
) ENGINE=InnoDB AUTO_INCREMENT=406912423 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle_buket`;
CREATE TABLE `battle_buket` (
`owner` int(11) unsigned NOT NULL DEFAULT '0',
`bcount` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle_dam_exp`;
CREATE TABLE `battle_dam_exp` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`battle` int(11) DEFAULT '0',
`owner` int(11) DEFAULT '0',
`damage` int(11) DEFAULT '0',
`exp` int(10) unsigned NOT NULL DEFAULT '0',
`fwin` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'ôëàã îòðàáîòêè',
`dcount` int(11) NOT NULL DEFAULT '0' COMMENT 'ðåïóòàöèÿ',
`mag_damage` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'ìàã óðîí',
`dflag` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'ôëàã çàíèæåíèÿ äëÿ ñèñòåìêè',
PRIMARY KEY (`id`),
UNIQUE KEY `index2` (`battle`,`owner`),
KEY `owner` (`owner`),
KEY `battle` (`battle`)
) ENGINE=InnoDB AUTO_INCREMENT=6076606916 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle_data`;
CREATE TABLE `battle_data` (
`battle` int(11) NOT NULL DEFAULT '0',
`baff_717` int(11) NOT NULL DEFAULT '0' COMMENT 'áàô 717 âðåìÿ',
`t1_baff_804` int(11) NOT NULL DEFAULT '0',
`t2_baff_804` int(11) NOT NULL DEFAULT '0',
`t3_baff_804` int(11) NOT NULL DEFAULT '0',
`baff_863` int(11) NOT NULL DEFAULT '0' COMMENT 'ñ÷åò÷èê áîòîâ çàùèòíèêîâ â áîþ',
`t2_castle` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'äëÿ áî¸â â çàìêå',
PRIMARY KEY (`battle`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='òàáëèöû äëÿ îãðàíè÷åíèé â áîþ, äëÿ áàôîâ';
DROP TABLE IF EXISTS `battle_fd`;
CREATE TABLE `battle_fd` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`battle` int(11) DEFAULT NULL,
`owner` int(11) DEFAULT NULL,
`razmen_to` int(11) DEFAULT NULL,
`to_t` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'êîìàíäà êîìó',
`razmen_from` int(11) DEFAULT NULL,
`from_t` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'êîìàíäà îò êîãî',
`attack` tinyint(3) DEFAULT '0',
`attack2` tinyint(3) NOT NULL DEFAULT '0',
`block` tinyint(3) DEFAULT '0',
`time_blow` int(25) NOT NULL DEFAULT '0',
`lab` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'ôëàã ðàçìåíîâ â ëàáå',
PRIMARY KEY (`id`),
UNIQUE KEY `razmen_to` (`razmen_to`,`razmen_from`,`battle`),
KEY `battle` (`battle`),
KEY `owner` (`owner`),
KEY `razmen_to_2` (`razmen_to`),
KEY `razmen_from` (`razmen_from`),
KEY `time_blow` (`time_blow`),
KEY `to_t` (`to_t`),
KEY `from_t` (`from_t`)
) ENGINE=InnoDB AUTO_INCREMENT=143330007 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `battle_hist`;
CREATE TABLE `battle_hist` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`owner` int(11) DEFAULT NULL COMMENT 'èä ÷àðà',
`battle_id` bigint(20) DEFAULT NULL,
`bat_date` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `owner` (`owner`),
KEY `bat_date` (`bat_date`)
) ENGINE=InnoDB AUTO_INCREMENT=464670012 DEFAULT CHARSET=cp1251 COMMENT='äëÿ ïîèñêà çàâåðøåíîê';
DROP TABLE IF EXISTS `battle_hist_hidden`;
CREATE TABLE `battle_hist_hidden` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(11) DEFAULT NULL COMMENT 'èä ÷àðà',
`battle_id` bigint(20) DEFAULT NULL,
`bat_date` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `owner` (`owner`),
KEY `bat_date` (`bat_date`)
) ENGINE=InnoDB AUTO_INCREMENT=1348745 DEFAULT CHARSET=cp1251 COMMENT='äëÿ ïîèñêà çàâåðøåíîê - íåâåäîâ';
DROP TABLE IF EXISTS `battle_hist_rist300`;
CREATE TABLE `battle_hist_rist300` (
`hid` int(11) NOT NULL AUTO_INCREMENT,
`battle_id` int(11) unsigned NOT NULL DEFAULT '0',
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`fin_time` timestamp NULL DEFAULT NULL,
`owner` int(11) unsigned NOT NULL DEFAULT '0',
`owner_hist` text,
`bot_id` int(11) unsigned NOT NULL DEFAULT '0',
`bot_hist` text NOT NULL,
`win` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`hid`),
KEY `battle` (`battle_id`),
KEY `win` (`win`)
) ENGINE=InnoDB AUTO_INCREMENT=2906 DEFAULT CHARSET=cp1251 COMMENT='òàáëèöà èñòîðèè äëÿ áîåâ â ëîêàöèè restal300.php';
DROP TABLE IF EXISTS `battle_runs_exp`;
CREATE TABLE `battle_runs_exp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`battle` int(11) NOT NULL DEFAULT '0',
`owner` int(11) NOT NULL DEFAULT '0',
`point` int(11) NOT NULL DEFAULT '0',
`runs` int(3) NOT NULL DEFAULT '0' COMMENT 'êîëè÷åñòâî ðóí â áîþ ó ïåðñà',
`battle_flag` smallint(6) NOT NULL DEFAULT '1' COMMENT 'ôëàã êîë.ëþäåé â áîþ 0-ìåíüøå 5 ; 1- ïî óìîë÷àíèþ áîëüøå',
`rkf_bonus` smallint(6) NOT NULL DEFAULT '0' COMMENT 'RKF áîíóñ â ïðîöåíòàõ',
`useabil` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'ôèêñèðóåì èñïîëüçîâàíèå àáèëû',
`usehill` tinyint(3) unsigned DEFAULT '0' COMMENT 'ôèêñèðóåì èñïîëüçîâàíèå õèëà',
`cure_value_hp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'êîë. çàþçàííîãî õèëà',
`rkm_bonus` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'áîíóñ ÐÊÌ äëÿ íà÷èñëåíèÿ çà ìàã óðîí',
PRIMARY KEY (`id`),
UNIQUE KEY `battle` (`battle`,`owner`),
KEY `battle_2` (`battle`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=75088464 DEFAULT CHARSET=cp1251 COMMENT='íà÷èñëåíèå îïûòà ðóí';
DROP TABLE IF EXISTS `battle_time_out`;
CREATE TABLE `battle_time_out` (
`battle` int(11) NOT NULL DEFAULT '0',
`ttime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`owner` int(11) NOT NULL DEFAULT '0',
`login` varchar(30) NOT NULL DEFAULT '',
UNIQUE KEY `battle` (`battle`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle_user_time`;
CREATE TABLE `battle_user_time` (
`battle` int(11) NOT NULL DEFAULT '0' COMMENT 'èä áîÿ',
`owner` int(11) NOT NULL DEFAULT '0' COMMENT 'èä ÷àðà',
`timer1` int(11) NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ðàçìåíà ñ êîìàíäîé 1',
`timer2` int(11) NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ðàçìåíà ñ êîìàíäîé 2',
`timer3` int(11) NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ðàçìåíà ñ êîìàíäîé 3',
PRIMARY KEY (`battle`,`owner`),
KEY `timer1` (`timer1`),
KEY `timer2` (`timer2`),
KEY `timer3` (`timer3`),
KEY `owner` (`owner`),
KEY `battle` (`battle`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='òàáëèöà ãðîç';
DROP TABLE IF EXISTS `battle_vars`;
CREATE TABLE `battle_vars` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`battle` int(11) DEFAULT NULL,
`owner` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
`type` tinyint(1) DEFAULT '1',
`bexit_count` int(11) DEFAULT '0',
`bexit_team` tinyint(1) DEFAULT NULL,
`istok_use` int(11) NOT NULL DEFAULT '0' COMMENT 'êîë. þçîâ èñòî÷íèêà â áîþ äëÿ ÷àðà',
`colns_use` int(5) NOT NULL DEFAULT '0' COMMENT 'êîëè÷åñòâî âûïóùåíûõ êëîíîâ â áîþ',
`napal` int(2) DEFAULT '1' COMMENT 'àòðèáóò - íàïàäåíèÿ â áîþ 1 íàïàë 0 -èç çàÿâêè',
`unclons_use` int(11) NOT NULL DEFAULT '0' COMMENT 'êîë. îòþçàíîãî ïåðåìàíà',
`help_use` int(11) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå àïòå÷êè',
`help_proto` int(11) NOT NULL DEFAULT '0' COMMENT 'ïðîòî çàþçàíîé àïòå÷êè',
`bots_use` int(11) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå ïðèçûâà',
`baf_701_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 701 áàôà',
`baf_702_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 702 áàôà',
`baf_703_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 703 áàôà',
`baf_705_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 705 áàôà',
`baf_706_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 706 áàôà',
`baf_708_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 708 áàôà',
`baf_709_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 709 áàôà',
`baf_711_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï 711',
`baf_712_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï. 712',
`baf_713_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï 713',
`baf_714_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï 714',
`baf_715_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï 715',
`baf_720_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 720 áàôà',
`baf_721_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 721 áàôà',
`baf_722_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 722 áàôà',
`baf_723_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'ïîìîùü ñîáðàòó 723,724,725',
`baf_805_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 805 áàôà',
`baf_808_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñïîëüçîâàíèå 808 áàôà',
`baf_823_use` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'èñï. 823',
`baf_795_use` int(11) NOT NULL DEFAULT '0' COMMENT '795-ñèííÿ êíèãà',
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`battle`,`owner`),
KEY `battle` (`battle`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=92461261 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `battle_war`;
CREATE TABLE `battle_war` (
`battle` int(11) NOT NULL DEFAULT '0',
`t1` int(11) NOT NULL DEFAULT '0' COMMENT 'âåñ ïåðâîé êîìàíäû',
`t2` int(11) NOT NULL DEFAULT '0' COMMENT 'âåñ âòîðîé êîìàíäû',
`wmax` int(11) NOT NULL DEFAULT '0' COMMENT 'ïëàíêà ìàêñèìàëüíûé ïåðåâåñ',
`maxlevel` int(11) NOT NULL DEFAULT '0' COMMENT 'ìàêñèìàëüíûé óðîâåíü',
`count1` int(11) NOT NULL DEFAULT '1' COMMENT 'ñ÷åò÷èê ëþäåé â ò1',
`count2` int(11) NOT NULL DEFAULT '1' COMMENT 'ñ÷åò ëþäåé â ò2',
`active` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âêëþ÷åíà ëè ýòà ëèíåéêà',
PRIMARY KEY (`battle`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='òàáëèöà äëÿ âåñîâ êîìàíäû â êëàí âàðàõ';
DROP TABLE IF EXISTS `beginers_quest_list`;
CREATE TABLE `beginers_quest_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`qname` varchar(50) DEFAULT NULL COMMENT 'íàçâàíèå êâåñòà',
`qdescription` text COMMENT 'Êîðîòêîå îïèñàíèå êâåñòà.',
`qdescription_full` text,
`qalign` int(20) NOT NULL DEFAULT '0' COMMENT 'Ñêëîííîñòü êâåñòà. 0- îáùèå',
`qsteps` int(11) NOT NULL DEFAULT '0' COMMENT 'êîëâî øàãîâ',
`can_take` tinyint(1) NOT NULL DEFAULT '0',
`can_take_ava` tinyint(1) NOT NULL DEFAULT '0',
`aganist` varchar(20) DEFAULT NULL COMMENT 'äëÿ ïåðåõîäà ìåæäó ñêëîíêàìè',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=cp1251 COMMENT='ñïèñîê âñåõ êâåñòîâ äëÿ âñåú ñêëîíîê';
DROP TABLE IF EXISTS `beginers_quests`;
CREATE TABLE `beginers_quests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`step` int(11) NOT NULL DEFAULT '1' COMMENT 'Øàã êâåñòà',
`describe` varchar(50) DEFAULT NULL COMMENT 'íàçâàíèå êâåñòà',
`qname` varchar(50) DEFAULT NULL,
`qtype` int(11) NOT NULL DEFAULT '0' COMMENT 'òèï êâåñòà: 0-äèàëîã; 1-Âûáèâàëêà; 2-Ñîáèðàëêà; 3-Óáèâàëêà; 4-õàð-êè; 5-ëîêàöèè (ID); 6-ñ÷åò â áàíêå(äëÿ íóá êâåñòà)',
`q_fight_type` int(11) DEFAULT '0' COMMENT 'îòñëåæèâàåìûé òèï áîÿ',
`qstart` text COMMENT 'ñòàðòîâûé äèàëîã',
`answer_1` tinyint(3) NOT NULL DEFAULT '1',
`answer_2` tinyint(3) NOT NULL DEFAULT '0',
`qfin` varchar(255) DEFAULT NULL COMMENT 'Ôèíàëüíûé äèàëîã',
`q_have_to_win` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'íàäî ëè âûèãðûâàòü áîé 1 äà 0 íåò',
`qsys_fail` varchar(255) DEFAULT NULL COMMENT 'ñèñòåìêà äîïîëíèòåëüíî',
`qcondition` varchar(50) DEFAULT NULL COMMENT 'óñëîâèÿ âûïîëíåíèÿ êâåñòà (lovk:50;int:50)-òèï4, (22)-êîìíàòà - òèï5. è òä.',
`q_item` int(25) NOT NULL DEFAULT '0' COMMENT 'id-èòåìà êâåñòîâîãî èç-ìàãàçèíà',
`q_item_count` int(11) NOT NULL DEFAULT '0' COMMENT 'íóæíîå êîëè÷åñòâî ïðåäìåòîâ',
`q_item2` int(25) DEFAULT NULL,
`q_item2_count` int(11) DEFAULT NULL,
`q_item3` int(11) DEFAULT NULL,
`q_item3_count` int(11) DEFAULT NULL,
`q_item4` int(25) DEFAULT NULL,
`q_item4_count` int(11) DEFAULT NULL,
`q_bot` int(11) DEFAULT NULL,
`q_bot_count` int(11) DEFAULT NULL,
`exp` int(11) NOT NULL DEFAULT '0' COMMENT 'íàãðàäà îïûò',
`kr` int(11) NOT NULL DEFAULT '0' COMMENT 'íàãðàäà êðåäû',
`repa` int(11) NOT NULL DEFAULT '0',
`shop_prize` varchar(50) NOT NULL DEFAULT '0' COMMENT 'ID ïðîòîòèïîâ èç ìàãàçèíà ( 101,102,103) êîòîðûå äàäóòüñÿ ïîñëå âûïîëåíèÿ çàäàíèÿ',
`shop_prize_gift` tinyint(1) NOT NULL DEFAULT '0',
`eshop_prize` varchar(50) NOT NULL DEFAULT '0' COMMENT 'ID ïðîòîòèïîâ èç Eìàãàçèíà ( 101,102,103) êîòîðûå äàäóòüñÿ ïîñëå âûïîëåíèÿ çàäàíèÿ',
`eshop_prize_gift` tinyint(1) NOT NULL DEFAULT '0',
`effect_prize` varchar(50) DEFAULT NULL COMMENT 'Ïðèçû-Åôåêòû ( ïðåìèóì, óñèëåíèÿ, áîíóñû, ïðîêëÿòüÿ è òä), ôîðìàò: prem:1:4999:1296000;sila:3:123123:36000 - Ïðåìèeì id ýôåêòà 4999 +1, 15 äíåé, ñèëà +3, 10 ÷àñîâ',
`repeat` int(11) NOT NULL DEFAULT '1' COMMENT 'ñêîëüêî ðàç ìîæíî âûïîëíèòü êâåñò',
`info` text COMMENT 'Ñëóæåáíàÿ èíôîðìàöèÿ',
`nps_img` varchar(30) DEFAULT NULL COMMENT 'Ëèöî êâåñòà(êàðòèíêà)',
PRIMARY KEY (`id`,`step`)
) ENGINE=InnoDB AUTO_INCREMENT=144 DEFAULT CHARSET=cp1251 COMMENT='Êâåñòû';
DROP TABLE IF EXISTS `beginers_quests_step`;
CREATE TABLE `beginers_quests_step` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(25) DEFAULT NULL COMMENT '÷àð',
`quest_id` int(11) NOT NULL DEFAULT '0' COMMENT 'èä êâåñòà',
`qtype` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'òèï êâåñòà: 0-äèàëîã; 1-Âûáèâàëêà; 2-Ñîáèðàëêà; 3-Óáèâàëêà; 4-õàð-êè; 5-ëîêàöèè (ID); 6-ñ÷åò â áàíêå(äëÿ íóá êâåñòà)',
`qftype` tinyint(2) unsigned NOT NULL DEFAULT '0',
`status` int(2) NOT NULL DEFAULT '0' COMMENT '0 - âçÿò íî íå âûïîëíåí; 1- âûïîëíåí',
`step` tinyint(3) NOT NULL DEFAULT '1' COMMENT 'Øàã êâåñòà',
`step_f` tinyint(3) NOT NULL DEFAULT '0',
`city` varchar(255) NOT NULL DEFAULT 'capitalcity',
`get_date` int(11) DEFAULT NULL COMMENT 'äàòà êîãäà çàêîí÷èëñÿ êâåñò',
`count` int(11) NOT NULL DEFAULT '0' COMMENT 'êîëè÷åñòâî çàâåðøåííûõ ðàç',
`quest_count` int(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `questu` (`owner`,`quest_id`),
KEY `owner` (`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=1829528 DEFAULT CHARSET=cp1251 COMMENT='ñïèñêè êâåñòîâ ÷àðà/ status: 0-íåâûïîëíåí åùå ;1-âûïîëíåí';
DROP TABLE IF EXISTS `bilet`;
CREATE TABLE `bilet` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
`fsize` varchar(5) NOT NULL DEFAULT '' COMMENT 'ðàçìåð ôóòáîëêè',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 8-è ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_2013`;
CREATE TABLE `bilet_2013` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 3-õ ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_2014`;
CREATE TABLE `bilet_2014` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=159 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 4-õ ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_2015`;
CREATE TABLE `bilet_2015` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 5-è ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_2016`;
CREATE TABLE `bilet_2016` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 5-è ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_2017`;
CREATE TABLE `bilet_2017` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 7-è ëåòèå îëäÁÊ';
DROP TABLE IF EXISTS `bilet_ukr`;
CREATE TABLE `bilet_ukr` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`selname` varchar(255) DEFAULT NULL COMMENT 'êòî ïðîäàë',
`owner_nick` varchar(255) DEFAULT NULL COMMENT 'êòî êóïèë',
`owner` varchar(255) DEFAULT NULL COMMENT 'èä ÷àðà êòî êóïèë',
`fio` varchar(255) DEFAULT NULL COMMENT 'ÔÈÎ êòî êóïèë',
`vip` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'âèï äà/ íåò',
`price` int(11) NOT NULL DEFAULT '0' COMMENT 'öåíà áèëåòà',
`sdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'êîãäà ïðîäàëñÿ áèëåò',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=cp1251 COMMENT='áèëåòû íà 5-è ëåòèå îëäÁÊ Óêðàèíà';
DROP TABLE IF EXISTS `bonus_items`;
CREATE TABLE `bonus_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` bigint(25) NOT NULL DEFAULT '0' COMMENT 'èä øìîòêè èç Inventory',
`flag` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'flag - äëÿ ðàçëè÷íûõ áîíóñîâ 1- ïåðåçàðÿäêà',
`owner` bigint(20) NOT NULL DEFAULT '0' COMMENT 'whois',
`finish` bigint(11) NOT NULL DEFAULT '0' COMMENT 'øòàìï îêîí÷àíèÿ',
`battle` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `item_id` (`item_id`,`flag`,`owner`),
KEY `owner` (`owner`),
KEY `battle` (`battle`),
KEY `item_id_2` (`item_id`,`owner`)
) ENGINE=InnoDB AUTO_INCREMENT=97051 DEFAULT CHARSET=cp1251 COMMENT='áîíóñíûå èòåìû: flag=1-áîíóñíàÿ ïåðåçàðÿäêà';
DROP TABLE IF EXISTS `bots`;
CREATE TABLE `bots` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`prototype` int(255) NOT NULL DEFAULT '0',
`battle` int(255) NOT NULL DEFAULT '0',
`hp` int(15) NOT NULL DEFAULT '0',
`is_clon` tinyint(1) NOT NULL DEFAULT '0',
`is_dead` tinyint(1) DEFAULT '0',
`dead` tinyint(1) NOT NULL DEFAULT '0',
`battle_t` tinyint(1) DEFAULT '0' COMMENT 'ñòîðîíà â áîþ',
`lab` tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `battle` (`battle`),
KEY `hp` (`hp`),
KEY `prototype` (`prototype`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `boxs`;
CREATE TABLE `boxs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT 'èä èòåìà êîðîáêè - åñëè êîðîáêà ïðîäàíà',
`is_open` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'îòêðûò èëè íåò',
`box_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'òèï ëàðöà (1,2,3,4)',
`i1` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i2` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i3` bigint(11) unsigned NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i4` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i5` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i6` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i7` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i8` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i9` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i10` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i11` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i12` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i13` int(11) NOT NULL DEFAULT '0' COMMENT 'ôëàã äëÿ áèëåòà ëîòî',
`i14` int(11) NOT NULL DEFAULT '0' COMMENT '0/èòåì ID',
`i15` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i16` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i17` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i18` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i19` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i20` int(11) NOT NULL DEFAULT '0' COMMENT 'ID àáèëêè',
`i21` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `item_id` (`item_id`),
KEY `box_type` (`box_type`)
) ENGINE=InnoDB AUTO_INCREMENT=5501 DEFAULT CHARSET=cp1251 COMMENT='ëàðöû';
DROP TABLE IF EXISTS `boxs_history`;
CREATE TABLE `boxs_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`owner` int(10) unsigned NOT NULL,
`box_type` tinyint(3) unsigned NOT NULL,
`selldate` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `owner` (`owner`,`box_type`,`selldate`)
) ENGINE=InnoDB AUTO_INCREMENT=1266 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `boxsapril`;
CREATE TABLE `boxsapril` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT 'èä èòåìà êîðîáêè - åñëè êîðîáêà ïðîäàíà',
`is_open` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'îòêðûò èëè íåò',
`box_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'òèï ÿéöà (1,2)',
`i1` int(11) NOT NULL DEFAULT '0',
`i2` int(11) NOT NULL DEFAULT '0',
`i3` int(11) NOT NULL DEFAULT '0',
`i4` int(11) NOT NULL DEFAULT '0',
`i5` int(11) NOT NULL DEFAULT '0',
`i6` int(11) NOT NULL DEFAULT '0',
`i7` int(11) NOT NULL DEFAULT '0',
`i8` int(11) NOT NULL DEFAULT '0',
`i9` int(11) NOT NULL DEFAULT '0',
`i10` int(11) NOT NULL DEFAULT '0',
`i11` int(11) NOT NULL DEFAULT '0',
`i12` int(11) NOT NULL DEFAULT '0',
`i13` int(11) NOT NULL DEFAULT '0',
`i14` int(11) NOT NULL DEFAULT '0',
`i15` int(11) NOT NULL DEFAULT '0',
`i16` int(11) NOT NULL DEFAULT '0',
`i17` int(11) NOT NULL DEFAULT '0',
`i18` int(11) NOT NULL DEFAULT '0',
`i19` int(11) NOT NULL DEFAULT '0',
`i20` int(11) NOT NULL DEFAULT '0',
`i21` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `item_id` (`item_id`),
KEY `box_type` (`box_type`)
) ENGINE=InnoDB AUTO_INCREMENT=5001 DEFAULT CHARSET=cp1251 COMMENT='ÿéöà';
DROP TABLE IF EXISTS `boxsapril_history`;
CREATE TABLE `boxsapril_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`owner` int(10) unsigned NOT NULL,
`box_type` tinyint(3) unsigned NOT NULL,
`selldate` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `owner` (`owner`,`box_type`,`selldate`)
) ENGINE=InnoDB AUTO_INCREMENT=4431 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `browser_cache`;
CREATE TABLE `browser_cache` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`data` text COMMENT 'profile_data',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='çàãîëîâêè è âåðñèè áðîóçåðîâ.';
DROP TABLE IF EXISTS `castles`;
CREATE TABLE `castles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`num` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'íîìåð çàìêà',
`nlevel` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'íåîáõîäèìûé óðîâåíü äëÿ çàìêà',
`status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'ñòàòóñ ñâîáîäåí/åñòü çàÿâêà/èä¸ò áîé',
`dayofweek` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'äåíü íåäåëè êîãäà çàìîê îñâîáîæäàåòñÿ',
`hourofday` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '÷àñ êîãäà çàìîê îñâîáîæäàåòñÿ',
`timeouta` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'âî ñêîëüêî íà÷àëî áîÿ ïðè çàÿâêå è ñòàòóñå = 1',
`clanshort` varchar(50) NOT NULL DEFAULT '' COMMENT 'êëàí âëàäåëåö. åñëè ïóñòî - ìîáû',
`clanashort1` varchar(25) NOT NULL DEFAULT '' COMMENT 'ïåðâûé àòàêóþùèé êëàí',
`clanashort2` varchar(50) NOT NULL DEFAULT '' COMMENT 'âòîðîé íàïàäàþùèé êëàí',
`lastpagegen` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ïîñëåäíåé ãåíåðàöèè ñòðàíèöû',
`lastcoingen` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'âðåìÿ ïîñëåäíåé ãåíåðàöèè ìîíåòêè',
`pagenum` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'íîìåð ñòðàíèöû äëÿ ãåíåðàöèè',
`pagecolor` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'öâåò ñòðàíèöû',
`battle` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'íîìåð áîÿ, åñëè áîé èä¸ò çà çàìîê',
`tur_log` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'òåêóùèé ëîã òóðíèðà çà çàìîê',
PRIMARY KEY (`id`),
KEY `status` (`status`),
KEY `timeouta` (`timeouta`),
KEY `clanshort` (`clanshort`),
KEY `battle` (`battle`),
KEY `clanashort1` (`clanashort1`),
KEY `clanashort2` (`clanashort2`),
KEY `dayofweek` (`dayofweek`),
KEY `hourofday` (`hourofday`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `castles_history`;
CREATE TABLE `castles_history` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`castle_id` int(11) unsigned NOT NULL DEFAULT '0',
`time` int(11) unsigned NOT NULL DEFAULT '0',
`text` text NOT NULL,
PRIMARY KEY (`Id`),
KEY `castle_id` (`castle_id`),
KEY `time` (`time`)
) ENGINE=InnoDB AUTO_INCREMENT=13355 DEFAULT CHARSET=cp1251 COMMENT='èñòîðèÿ çàìêîâ';
DROP TABLE IF EXISTS `castles_inventory`;
CREATE TABLE `castles_inventory` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cid` int(10) unsigned NOT NULL,
`itemid` int(10) unsigned NOT NULL,
`owner` int(10) unsigned NOT NULL,
`team` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `cid` (`cid`,`itemid`)
) ENGINE=InnoDB AUTO_INCREMENT=56353 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `castles_osada`;
CREATE TABLE `castles_osada` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`status` tinyint(3) unsigned NOT NULL DEFAULT '0',
`nextosada` int(11) unsigned NOT NULL DEFAULT '0',
`osadaend` int(11) unsigned NOT NULL DEFAULT '0',
`score` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `castles_osada_uses`;
CREATE TABLE `castles_osada_uses` (
`owner` int(11) unsigned NOT NULL DEFAULT '0',
`count` int(11) unsigned NOT NULL DEFAULT '0',
`type` int(11) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `owner` (`owner`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251;
DROP TABLE IF EXISTS `castles_profile`;
CREATE TABLE `castles_profile` (
`owner` int(15) NOT NULL DEFAULT '0' COMMENT 'èä ÷àðà',
`prof` int(11) NOT NULL DEFAULT '0' COMMENT 'ïîëå íîìåðà êîìïëåêòà. Â ñîñòîÿíèè 0 äåðæèò ðåàëüíûå âåùè äëÿ êîìíàòû îðóæåéêè',
`pname` varchar(255) DEFAULT NULL COMMENT 'íàçâàíèå ïðîôèëÿ',
`def` tinyint(3) NOT NULL DEFAULT '0' COMMENT 'ïðîôèëü âûáðàí ïî óìîë÷àíèþ',
`sila` int(4) NOT NULL DEFAULT '0',
`lovk` int(4) NOT NULL DEFAULT '0',
`inta` int(4) NOT NULL DEFAULT '0',
`vinos` int(4) NOT NULL DEFAULT '0',
`intel` int(4) NOT NULL DEFAULT '0',
`mudra` int(4) NOT NULL DEFAULT '0',
`duh` int(4) NOT NULL DEFAULT '0',
`bojes` int(4) NOT NULL DEFAULT '0',
`noj` int(2) NOT NULL DEFAULT '0',
`mec` int(2) NOT NULL DEFAULT '0',
`topor` int(2) NOT NULL DEFAULT '0',
`dubina` int(2) NOT NULL DEFAULT '0',
`maxhp` int(6) NOT NULL DEFAULT '0',
`hp` int(6) NOT NULL DEFAULT '0',
`maxmana` int(6) NOT NULL DEFAULT '0',
`mana` int(6) NOT NULL DEFAULT '0',
`sergi` int(55) NOT NULL DEFAULT '0',
`kulon` int(55) NOT NULL DEFAULT '0',
`perchi` int(55) NOT NULL DEFAULT '0',
`weap` int(55) NOT NULL DEFAULT '0',
`bron` int(55) NOT NULL DEFAULT '0',
`r1` int(55) NOT NULL DEFAULT '0',
`r2` int(55) NOT NULL DEFAULT '0',
`r3` int(55) NOT NULL DEFAULT '0',
`helm` int(55) NOT NULL DEFAULT '0',
`shit` int(55) NOT NULL DEFAULT '0',
`boots` int(55) NOT NULL DEFAULT '0',
`stats` int(5) NOT NULL DEFAULT '0',
`master` int(5) NOT NULL DEFAULT '0',
`nakidka` int(55) NOT NULL DEFAULT '0' COMMENT 'íàêèäêà',
`mfire` int(3) NOT NULL DEFAULT '0',
`mwater` int(3) NOT NULL DEFAULT '0',
`mair` int(3) NOT NULL DEFAULT '0',
`mearth` int(3) NOT NULL DEFAULT '0',
`mlight` int(3) NOT NULL DEFAULT '0',
`mgray` int(3) NOT NULL DEFAULT '0',
`mdark` int(3) NOT NULL DEFAULT '0',
`bpbonushp` int(11) NOT NULL DEFAULT '0' COMMENT 'áûë ëè áîíóc íà õï ïðèçàïîìèíàíèè',
`rubashka` int(55) NOT NULL DEFAULT '0' COMMENT 'ðóáàøêà',
`runa1` int(11) NOT NULL DEFAULT '0',
`runa2` int(11) NOT NULL DEFAULT '0',
`runa3` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`owner`,`prof`),
UNIQUE KEY `owner` (`owner`,`prof`,`pname`),
UNIQUE KEY `owner_2` (`owner`,`pname`),
KEY `prof` (`prof`)
) ENGINE=InnoDB DEFAULT CHARSET=cp1251 COMMENT='ñîñòîÿíèå ÷àðà äëÿ îðóæåéêè çàìêîâ';
DROP TABLE IF EXISTS `castles_realchars`;
CREATE TABLE `castles_realchars` (
`owner` int(255) NOT NULL,
`sila` int(11) NOT NULL,
`lovk` int(11) NOT NULL,
`inta` int(11) NOT NULL,
`vinos` int(11) NOT NULL,
`intel` int(11) NOT NULL,
`mudra` int(11) NOT NULL,
`stats` int(15) NOT NULL,
`master` int(5) NOT NULL,
`bpbonussila` int(5) NOT NULL DEFAULT '0',
`bpbonushp` int(5) NOT NULL DEFAULT '0',