-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBD.sql
1830 lines (1764 loc) · 54.5 KB
/
BD.sql
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
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Lun 01 Juin 2015 à 19:20
-- Version du serveur: 5.1.66
-- Version de PHP: 5.2.17
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `u842844217_bd1`
--
DELIMITER $$
--
-- Procédures
--
CREATE DEFINER=`u842844217_admin`@`localhost` PROCEDURE `ADD_ARMOR`( IN id INT( 5 ) , IN name VARCHAR( 50 ) , IN typeitem ENUM( 'HELMET', 'CHEST', 'LEGGINGS', 'BOOTS' ) , IN durability INT( 5 ) , IN weight FLOAT, IN normaldefense INT( 3 ) )
BEGIN INSERT INTO ITEM
VALUES (
id , name , typeitem
);
INSERT INTO ARMOR
VALUES (
id , durability , weight , normaldefense
);
END$$
CREATE DEFINER=`u842844217_admin`@`localhost` PROCEDURE `ADD_SHIELD`( IN id INT( 5 ) , IN name VARCHAR( 50 ) , IN typeitem ENUM('SMALLSHIELD','NORMALSHIELD','LARGESHIELD','UNIQUESHIELD','OTHERSHIELD') , IN durability INT( 5 ) , IN weight FLOAT, IN normalreduction INT ( 3 ) )
BEGIN INSERT INTO ITEM
VALUES (
id , name , typeitem
);
INSERT INTO SHIELD
VALUES (
id , durability , weight , normalreduction
);
END$$
CREATE DEFINER=`u842844217_admin`@`localhost` PROCEDURE `ADD_WEAPON`( IN id INT( 5 ) , IN name VARCHAR( 50 ) , IN typeitem ENUM('CATALYST','TALISMAN','FLAME','SHIELD','BOSS','BOW','GREATBOW','CROSSBOW','DAGGER','STRAIGHTSWORD','CURVEDSWORD','KATANA','PIERCINGSWORD','AXE','FISTWEAPON','HAMMER','SPEAR','HALLBERD','WHIP','GREATSWORD','ULTRAGREATSWORD','CURVEDGREATSWORD','GREATAXE','GREATHAMMER') , IN durability INT( 5 ) , IN weight FLOAT, IN normaldamages INT( 4 ) )
BEGIN INSERT INTO ITEM
VALUES (
id , name , typeitem
);
INSERT INTO WEAPON
VALUES (
id , durability , weight , normaldamages
);
END$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Structure de la table `ARMOR`
--
CREATE TABLE IF NOT EXISTS `ARMOR` (
`ID_ITEM` int(5) NOT NULL,
`DURABILITY` int(4) NOT NULL,
`WEIGHT` float NOT NULL,
`NORMAL_DEFENSE` int(3) NOT NULL,
KEY `ID_ITEM` (`ID_ITEM`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `ARMOR`
--
INSERT INTO `ARMOR` (`ID_ITEM`, `DURABILITY`, `WEIGHT`, `NORMAL_DEFENSE`) VALUES
(1, 150, 2.5, 17),
(2, 150, 2.2, 14),
(3, 600, 8, 26),
(4, 500, 3.5, 15),
(5, 200, 1.2, 6),
(6, 200, 1.2, 6),
(7, 200, 1.2, 6),
(8, 500, 4.5, 16),
(9, 150, 0.6, 6),
(10, 80, 1.4, 6),
(11, 300, 10, 21),
(12, 450, 4.2, 14),
(13, 250, 3, 14),
(14, 600, 6, 27),
(15, 550, 5, 21),
(16, 200, 0.7, 5),
(17, 600, 5.1, 22),
(18, 200, 1.2, 9),
(19, 400, 4.5, 22),
(20, 300, 3, 12),
(21, 500, 4.8, 15),
(22, 150, 0.4, 5),
(23, 300, 3, 12),
(24, 800, 3, 16),
(25, 150, 4.2, 25),
(26, 300, 3.8, 18),
(27, 150, 0.8, 6),
(28, 450, 4.7, 17),
(29, 500, 5.1, 16),
(30, 450, 4.5, 15),
(31, 600, 6.3, 27),
(32, 400, 1.4, 11),
(33, 700, 6.5, 39),
(34, 450, 6.5, 25),
(35, 800, 7.2, 41),
(36, 900, 7.5, 36),
(37, 600, 4.2, 18),
(38, 500, 4.5, 18),
(39, 500, 5.1, 18),
(40, 250, 4.1, 17),
(41, 200, 3, 10),
(42, 250, 1.1, 8),
(43, 250, 2.6, 10),
(44, 350, 4.5, 14),
(45, 400, 4.2, 14),
(46, 200, 0.9, 8),
(47, 150, 0.8, 7),
(48, 400, 1.5, 12),
(49, 400, 2.5, 12),
(50, 700, 5.5, 32),
(51, 150, 0.6, 3),
(52, 500, 5, 22),
(53, 250, 1.2, 7),
(54, 250, 2.5, 13),
(55, 350, 1.2, 8),
(56, 200, 0.9, 9),
(57, 600, 4.8, 21),
(58, 300, 3.9, 20),
(59, 700, 6.8, 40),
(60, 300, 2, 12),
(61, 200, 0.9, 8),
(62, 250, 3.5, 14),
(63, 500, 5.4, 16),
(64, 800, 6.8, 35),
(65, 400, 1.1, 8),
(66, 250, 1.2, 9),
(67, 400, 1.4, 9),
(68, 250, 1.1, 9),
(69, 400, 5, 18),
(70, 400, 2.7, 21),
(71, 800, 17.6, 91),
(72, 500, 14, 42),
(73, 200, 2.3, 20),
(74, 700, 17.6, 106),
(75, 600, 12, 52),
(76, 200, 2.3, 23),
(77, 250, 4, 41),
(78, 400, 6, 32),
(79, 300, 10.1, 53),
(80, 500, 12.9, 59),
(81, 150, 1.6, 9),
(82, 700, 12, 70),
(83, 80, 3.1, 20),
(84, 200, 2.3, 20),
(85, 150, 2, 19),
(86, 250, 6.4, 34),
(87, 250, 4.7, 24),
(88, 400, 10.9, 37),
(89, 350, 4, 22),
(90, 250, 6.6, 24),
(91, 250, 2.8, 21),
(92, 200, 7.8, 26),
(93, 900, 19.5, 92),
(94, 250, 5.9, 26),
(95, 800, 17, 86),
(96, 450, 13, 50),
(97, 700, 16.4, 91),
(98, 400, 3.5, 31),
(99, 600, 16.4, 72),
(100, 500, 11.7, 48),
(101, 450, 11.7, 39),
(102, 500, 13.3, 41),
(103, 450, 12.3, 45),
(104, 150, 3, 23),
(105, 300, 9.8, 45),
(106, 150, 10.9, 59),
(107, 400, 3.9, 32),
(108, 500, 12.5, 40),
(109, 300, 4.5, 27),
(110, 300, 6, 30),
(111, 400, 11.7, 57),
(112, 200, 3.1, 23),
(113, 600, 10.9, 48),
(114, 200, 1.8, 13),
(115, 250, 3.1, 23),
(116, 550, 13, 57),
(117, 600, 15.6, 68),
(118, 400, 3.9, 23),
(119, 450, 10.9, 37),
(120, 250, 10.5, 45),
(121, 350, 9, 35),
(122, 500, 13.3, 47),
(123, 600, 10.5, 42),
(124, 150, 1, 14),
(125, 400, 3.5, 23),
(126, 250, 4, 33),
(127, 400, 3.9, 32),
(128, 400, 2.3, 18),
(129, 250, 1.7, 14),
(130, 400, 2.1, 14),
(131, 250, 1.6, 12),
(132, 350, 0.7, 5),
(133, 400, 1.6, 12),
(134, 800, 10.4, 54),
(135, 500, 8.3, 25),
(136, 200, 1.4, 12),
(137, 700, 10.4, 61),
(138, 600, 5.5, 25),
(139, 200, 1.4, 13),
(140, 500, 7.6, 35),
(141, 150, 0.9, 6),
(142, 700, 4, 29),
(143, 80, 0.5, 3),
(144, 150, 1.2, 11),
(145, 200, 1.4, 12),
(146, 250, 2.8, 15),
(147, 250, 2.8, 12),
(148, 300, 3.6, 12),
(149, 400, 3.5, 17),
(150, 350, 4.3, 17),
(151, 900, 11.5, 54),
(152, 250, 3.5, 13),
(153, 800, 10.4, 54),
(154, 450, 7, 27),
(155, 700, 9.7, 54),
(156, 400, 1.2, 12),
(157, 600, 9.7, 41),
(158, 250, 6.2, 26),
(159, 500, 3, 11),
(160, 300, 3, 17),
(161, 500, 5, 21),
(162, 600, 4.6, 20),
(163, 450, 3.7, 18),
(164, 500, 7.8, 24),
(165, 450, 1.5, 6),
(166, 150, 1.2, 9),
(167, 300, 5.8, 27),
(168, 150, 6.4, 37),
(169, 400, 0.8, 7),
(170, 500, 7.4, 24),
(171, 300, 1.5, 10),
(172, 400, 6.9, 34),
(173, 200, 1.8, 14),
(174, 600, 5.4, 24),
(175, 400, 2.8, 15),
(176, 200, 1, 8),
(177, 400, 1.8, 11),
(178, 250, 1.8, 13),
(179, 550, 6, 26),
(180, 600, 9.2, 40),
(181, 450, 3.5, 17),
(182, 150, 0.6, 8),
(183, 400, 4, 32),
(184, 250, 2.5, 17),
(185, 400, 2.1, 14),
(186, 300, 6, 32),
(187, 250, 1.6, 12),
(188, 800, 10.4, 54),
(189, 500, 8.3, 25),
(190, 200, 1.4, 12),
(191, 700, 10.4, 61),
(192, 600, 6.5, 28),
(193, 200, 1.4, 13),
(194, 500, 7.6, 35),
(195, 150, 4, 22),
(196, 700, 7, 40),
(197, 80, 1.8, 12),
(198, 150, 2.5, 14),
(199, 200, 1.4, 12),
(200, 250, 5, 27),
(201, 250, 6.2, 26),
(202, 500, 6.9, 28),
(203, 600, 5.5, 23),
(204, 250, 2.8, 12),
(205, 400, 6.4, 22),
(206, 350, 5.3, 21),
(207, 350, 2, 14),
(208, 250, 1.4, 13),
(209, 250, 1.3, 12),
(210, 200, 1.5, 13),
(211, 400, 1.6, 12),
(212, 900, 11.5, 54),
(213, 250, 3.5, 13),
(214, 800, 10.4, 54),
(215, 450, 8, 31),
(216, 700, 9.7, 54),
(217, 400, 3, 23),
(218, 600, 9.7, 41),
(219, 450, 6.9, 23),
(220, 500, 7.8, 24),
(221, 450, 4, 15),
(222, 300, 5.8, 27),
(223, 150, 6.4, 37),
(224, 400, 3.5, 29),
(225, 500, 7.4, 24),
(226, 300, 3.2, 19),
(227, 300, 4.6, 18),
(228, 400, 6.9, 34),
(229, 200, 1.8, 14),
(230, 600, 6.4, 26),
(231, 500, 4, 14),
(232, 150, 2.5, 13),
(233, 400, 2.8, 16),
(234, 200, 1, 8),
(235, 250, 3, 12),
(236, 550, 7, 30),
(237, 600, 9.2, 40),
(238, 450, 6.4, 22),
(239, 150, 3, 15),
(240, 400, 2.8, 15);
--
-- Déclencheurs `ARMOR`
--
DROP TRIGGER IF EXISTS `SUPPR_ARMOR`;
DELIMITER //
CREATE TRIGGER `SUPPR_ARMOR` BEFORE DELETE ON `ARMOR`
FOR EACH ROW DELETE FROM ITEM WHERE ID=OLD.ID_ITEM
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Structure de la table `DOUBLE_BOSS`
--
CREATE TABLE IF NOT EXISTS `DOUBLE_BOSS` (
`ID_ENEMY` int(5) NOT NULL,
`LIFE_SECOND_BOSS` int(5) NOT NULL,
`LIFE_SUPER_BOSS_1` int(5) NOT NULL DEFAULT '0',
`LIFE_SUPER_BOSS_2` int(5) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `DOUBLE_BOSS`
--
INSERT INTO `DOUBLE_BOSS` (`ID_ENEMY`, `LIFE_SECOND_BOSS`, `LIFE_SUPER_BOSS_1`, `LIFE_SUPER_BOSS_2`) VALUES
(173, 480, 0, 0),
(174, 1642, 4094, 2981);
-- --------------------------------------------------------
--
-- Structure de la table `ENEMY`
--
CREATE TABLE IF NOT EXISTS `ENEMY` (
`ID` int(5) NOT NULL AUTO_INCREMENT,
`NAME` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`LIFE` int(6) DEFAULT NULL,
`BOSS` tinyint(1) NOT NULL DEFAULT '0',
`DEATH_AMOUNT` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
UNIQUE KEY `ID_BOSS` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1043 ;
--
-- Contenu de la table `ENEMY`
--
INSERT INTO `ENEMY` (`ID`, `NAME`, `LIFE`, `BOSS`, `DEATH_AMOUNT`) VALUES
(1, 'Hollow', 69, 0, 2),
(2, 'Undead Soldier', 102, 0, 1),
(3, 'Undead Soldier', 85, 0, 0),
(4, 'Armored Hollow', 75, 0, 3),
(5, 'Small Undead Rat', 80, 0, 0),
(6, 'Skeleton', 184, 0, 0),
(7, 'Giant Skeleton', 268, 0, 0),
(8, 'Black Knight', 497, 0, 0),
(9, 'Havel the Rock', 1034, 0, 0),
(10, 'Undead Attack Dog', 100, 0, 0),
(11, 'Hollow', 53, 0, 0),
(12, 'Undead Assassin', 138, 0, 0),
(13, 'Hollow', 63, 0, 1),
(14, 'Undead Soldier', 102, 0, 0),
(15, 'Small Undead Rat', 96, 0, 0),
(16, 'Black Knight', 532, 0, 0),
(17, 'Armored Tusk', 307, 0, 0),
(18, 'Channeler', 186, 0, 0),
(19, 'Prowling Demon', 1506, 0, 0),
(20, 'Heavy Knight', 372, 0, 0),
(21, 'Small Undead Rat', 112, 0, 0),
(22, 'Large Undead Rat', 140, 0, 0),
(23, 'Giant Undead Rat', 692, 0, 0),
(24, 'Undead Attack Dog', 100, 0, 0),
(25, 'Hollow', 74, 0, 0),
(26, 'Channeler', 186, 0, 0),
(27, 'Butcher', 672, 0, 0),
(28, 'Slime', 143, 0, 0),
(29, 'Basilisk', 116, 0, 0),
(30, 'Crystal Golem', 408, 0, 0),
(31, 'Golden Crystal Golem', 816, 0, 0),
(32, 'Hydra', 2520, 0, 0),
(33, 'Black Knight', 603, 0, 0),
(34, 'Giant Stone Knight', 190, 0, 0),
(35, 'Demonic Foliage', 193, 0, 0),
(36, 'Tree Lizard', 169, 0, 0),
(37, 'Great Feline', 1465, 0, 0),
(38, 'Possessed Tree', 180, 0, 0),
(39, 'Frog-Ray', 162, 0, 0),
(40, 'Mushroom Parent', 2376, 0, 0),
(41, 'Mushroom Child', 633, 0, 0),
(42, 'Bandit', 908, 0, 0),
(43, 'Cleric', 767, 0, 0),
(44, 'Hunter', 767, 0, 0),
(45, 'Knight', 849, 0, 0),
(46, 'Sorcerer', 719, 0, 0),
(47, 'Thief', 767, 0, 0),
(48, 'Infested Barbarian', 883, 0, 0),
(49, 'Infested Ghoul', 365, 0, 0),
(50, 'Blowdart Sniper', 93, 0, 0),
(51, 'Flaming Attack Dog', 124, 0, 0),
(52, 'Parasitic Wall Hugger', 593, 0, 0),
(53, 'Cragspider', 167, 0, 0),
(54, 'Giant Mosquito', 50, 0, 0),
(55, 'Giant Leech', 124, 0, 0),
(56, 'Ghost (Male)', 231, 0, 0),
(57, 'Ghost (Female)', 290, 0, 0),
(58, 'Darkwraith', 525, 0, 0),
(59, 'Mass of Souls', 2059, 0, 0),
(60, 'Drake', 1152, 0, 0),
(61, 'Undead Dragon', 3480, 0, 0),
(62, 'Mimic', 992, 0, 0),
(63, 'Serpent Soldier', 430, 0, 0),
(64, 'Serpent Mage', 290, 0, 0),
(65, 'Heavy Knight', 620, 0, 0),
(66, 'Prowling Demon', 1506, 0, 0),
(67, 'Prowling Demon', 2510, 0, 0),
(68, 'Giant', 1726, 0, 0),
(69, 'Balder Knight', 380, 0, 0),
(70, 'Undead Prince Ricard', 719, 0, 0),
(71, 'Gargoyle', 1119, 0, 0),
(72, 'Sentinel', 535, 0, 0),
(73, 'Royal Sentinel', 755, 0, 0),
(74, 'Painting Guardian', 230, 0, 0),
(75, 'Bat Wing Demon', 419, 0, 0),
(76, 'Silver Knight', 464, 0, 0),
(77, 'Mimic', 1041, 0, 0),
(78, 'Prowling Demon', 2635, 0, 0),
(79, 'Balder Knight', 767, 0, 0),
(80, 'Berenike Knight', 821, 0, 0),
(81, 'Pike Soldier', 821, 0, 0),
(82, 'Sorcerer', 719, 0, 0),
(83, 'Armored Tusk', 640, 0, 0),
(84, 'Undead Swordsman Crystal Soldier', 212, 0, 0),
(85, 'Undead Archer Crystal Soldier', 155, 0, 0),
(86, 'Channeler', 387, 0, 0),
(87, 'Crystal General', 742, 0, 0),
(88, 'Serpent Soldier', 537, 0, 0),
(89, 'Serpent Mage', 362, 0, 0),
(90, 'Pisaca', 350, 0, 0),
(91, 'Older Sister Pisaca', 800, 0, 0),
(92, 'Younger Sister Pisaca', 650, 0, 0),
(93, 'Mimic', 1240, 0, 0),
(94, 'Crystal Golem', 680, 0, 0),
(95, 'Golden Crystal Golem', 1360, 0, 0),
(96, 'Crystal Butterfly', 1255, 0, 0),
(97, 'Man Eater Shell', 740, 0, 0),
(98, 'Necromancer', 411, 0, 0),
(99, 'Swordsman Skeleton', 196, 0, 0),
(100, 'Archer Skeleton', 154, 0, 0),
(101, 'Skeleton Wheel', 134, 0, 0),
(102, 'Black Knight', 710, 0, 0),
(103, 'Prowling Demon', 2133, 0, 0),
(104, 'Giant Skeleton Archer', 262, 0, 0),
(105, 'Giant Skeleton', 286, 0, 0),
(106, 'Bone Tower', 291, 0, 0),
(107, 'Skeleton Beast', 446, 0, 0),
(108, 'Black Knight', 887, 0, 0),
(109, 'Pinwheel Servant', 506, 0, 0),
(110, 'Skeleton Baby', 36, 0, 0),
(111, 'Minor Capra Demon', 589, 0, 0),
(112, 'Minor Taurus Demon', 900, 0, 0),
(113, 'Burrowing Rockworm', 616, 0, 0),
(114, 'Demonic Statue', 196, 0, 0),
(115, 'Chaos Bug', 79, 0, 0),
(116, 'Hollow', 132, 0, 0),
(117, 'Engorged Zombie', 330, 0, 0),
(118, 'Crow Demon', 930, 0, 0),
(119, 'Snow Rat', 237, 0, 0),
(120, 'Phalanx', 335, 0, 0),
(121, 'Undead Dragon', 3956, 0, 0),
(122, 'Skeleton Wheel', 196, 0, 0),
(123, 'Heavy Knight', 686, 0, 0),
(124, 'Basilisk', 193, 0, 0),
(125, 'Mushroom Parent', 2483, 0, 0),
(126, 'Hydra', 3863, 0, 0),
(127, 'Man Eater Shell', 865, 0, 0),
(128, 'Egg Carrier', 128, 0, 0),
(129, 'Vile Maggot', 68, 0, 0),
(130, 'Mushroom Child', 662, 0, 0),
(131, 'Bounding Demon', 1407, 0, 0),
(132, 'Demonic Statue', 205, 0, 0),
(133, 'Chaos Eater', 650, 0, 0),
(134, 'Daughter of Chaos', 698, 0, 0),
(135, 'Prowling Demon', 3137, 0, 0),
(136, 'Chaos Bug', 79, 0, 0),
(137, 'Red-Eyed Chaos Bug', 79, 0, 0),
(138, 'Black Knight', 958, 0, 0),
(139, 'Lesser Sanctuary Guardian', 2030, 0, 0),
(140, 'Scarecrow', 320, 0, 0),
(141, 'Stone Guardian', 560, 0, 0),
(142, 'Undead Attack Dog', 210, 0, 0),
(143, 'Bloathead', 380, 0, 0),
(144, 'Bloathead Sorcerer', 300, 0, 0),
(145, 'Chained Prisoner', 1280, 0, 0),
(146, 'Small Humanity Phantom', 200, 0, 0),
(147, 'Medium Humanity Phantom', 400, 0, 0),
(148, 'Large Humanity Phantom', 700, 0, 0),
(149, 'Asylum Demon', 813, 1, 1),
(150, 'Bed of Chaos', 1, 1, 0),
(151, 'Black Dragon Kalameet', 5400, 1, 0),
(152, 'Capra Demon', 1176, 1, 0),
(153, 'Ceaseless Discharge', 4200, 1, 0),
(154, 'Centipede Demon', 3434, 1, 0),
(155, 'Chaos Witch Quelaag', 3139, 1, 0),
(156, 'Crossbreed Priscilla', 2300, 1, 0),
(157, 'Dark Sun Gwyndolin', 2011, 1, 0),
(158, 'Demon Firesage', 5448, 1, 0),
(159, 'Four Kings', 9504, 1, 0),
(160, 'Gaping Dragon', 4660, 1, 0),
(161, 'Gravelord Nito', 4317, 1, 0),
(162, 'Gwyn, Lord of Cinder', 4185, 1, 0),
(163, 'Iron Golem', 2880, 1, 0),
(164, 'Knight Artorias', 3750, 1, 0),
(165, 'Manus, Father of the Abyss', 6666, 1, 0),
(166, 'Moonlight Butterfly', 1506, 1, 0),
(167, 'Pinwheel', 1326, 1, 0),
(168, 'Sanctuary Guardian', 2560, 1, 0),
(169, 'Seath the Scaleless', 5525, 1, 0),
(170, 'Sif, the Great Grey Wolf', 3432, 1, 0),
(171, 'Stray Demon', 5250, 1, 0),
(172, 'Taurus Demon', 1215, 1, 0),
(173, 'Bell Gargoyles', 1000, 1, 1),
(174, 'Smough & Ornstein', 2645, 1, 0);
--
-- Déclencheurs `ENEMY`
--
DROP TRIGGER IF EXISTS `SUPPR_ENEMY`;
DELIMITER //
CREATE TRIGGER `SUPPR_ENEMY` BEFORE DELETE ON `ENEMY`
FOR EACH ROW DELETE FROM IS_LOCATED WHERE OLD.ID=ID_ENEMY
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Structure de la table `IS_LOCATED`
--
CREATE TABLE IF NOT EXISTS `IS_LOCATED` (
`ID_ENEMY` int(5) DEFAULT NULL,
`ID_LOCATION` int(3) DEFAULT NULL,
KEY `ID_ENEMY` (`ID_ENEMY`),
KEY `ID_LOCATION` (`ID_LOCATION`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `IS_LOCATED`
--
INSERT INTO `IS_LOCATED` (`ID_ENEMY`, `ID_LOCATION`) VALUES
(1, 1),
(2, 1),
(3, 2),
(4, 2),
(5, 2),
(6, 2),
(7, 2),
(3, 3),
(4, 3),
(8, 3),
(9, 3),
(10, 3),
(11, 3),
(12, 3),
(13, 4),
(14, 4),
(15, 4),
(16, 4),
(17, 4),
(18, 4),
(19, 4),
(20, 4),
(21, 5),
(22, 5),
(23, 5),
(24, 5),
(25, 5),
(26, 5),
(27, 5),
(28, 5),
(29, 5),
(30, 21),
(31, 21),
(32, 21),
(33, 21),
(34, 20),
(35, 20),
(36, 20),
(37, 20),
(38, 20),
(39, 20),
(40, 20),
(41, 20),
(42, 20),
(43, 20),
(44, 20),
(45, 20),
(46, 20),
(47, 20),
(48, 6),
(49, 6),
(50, 6),
(51, 6),
(52, 6),
(53, 6),
(54, 6),
(55, 6),
(13, 23),
(56, 23),
(57, 23),
(58, 23),
(59, 23),
(60, 22),
(61, 22),
(62, 10),
(63, 10),
(64, 10),
(65, 10),
(66, 10),
(67, 10),
(68, 10),
(69, 10),
(70, 10),
(71, 11),
(72, 11),
(73, 11),
(74, 11),
(75, 11),
(76, 11),
(77, 11),
(78, 11),
(79, 11),
(80, 11),
(81, 11),
(82, 11),
(83, 25),
(84, 25),
(85, 25),
(86, 25),
(87, 25),
(88, 25),
(89, 25),
(90, 25),
(91, 25),
(92, 25),
(93, 25),
(94, 25),
(95, 25),
(96, 26),
(97, 26),
(94, 26),
(95, 26),
(98, 27),
(99, 27),
(100, 27),
(101, 27),
(102, 27),
(103, 27),
(104, 28),
(105, 28),
(106, 28),
(107, 28),
(108, 28),
(109, 28),
(110, 28),
(111, 29),
(112, 29),
(113, 29),
(114, 29),
(115, 29),
(116, 12),
(117, 12),
(118, 12),
(119, 12),
(120, 12),
(121, 12),
(122, 12),
(123, 12),
(124, 9),
(124, 8),
(125, 9),
(125, 8),
(126, 9),
(127, 9),
(128, 7),
(129, 7),
(130, 8),
(131, 30),
(132, 30),
(133, 30),
(134, 30),
(135, 30),
(136, 30),
(137, 30),
(138, 32),
(139, 13),
(140, 15),
(141, 15),
(142, 15),
(143, 16),
(144, 16),
(145, 16),
(146, 19),
(147, 19),
(148, 19),
(143, 19),
(144, 19),
(149, 1),
(150, 30),
(151, 15),
(152, 3),
(153, 29),
(154, 29),
(155, 7),
(156, 12),
(157, 11),
(158, 29),
(159, 24),
(160, 5),
(161, 28),
(162, 32),
(163, 10),
(164, 15),
(165, 19),
(166, 20),
(167, 27),
(168, 13),
(169, 26),
(171, 1),
(170, 20),
(172, 3),
(173, 4),
(174, 11),
(173, 4),
(174, 11);
--
-- Déclencheurs `IS_LOCATED`
--
DROP TRIGGER IF EXISTS `AJ_BOSS`;
DELIMITER //
CREATE TRIGGER `AJ_BOSS` BEFORE INSERT ON `IS_LOCATED`
FOR EACH ROW BEGIN
IF ((SELECT BOSS FROM ENEMY WHERE ID=NEW.ID_ENEMY)=1) THEN
UPDATE LOCATION L, IS_LOCATED SET BOSSES_NBR=(BOSSES_NBR+1) WHERE L.ID=NEW.ID_LOCATION;
END IF;
END
//
DELIMITER ;
DROP TRIGGER IF EXISTS `RET_BOSS`;
DELIMITER //
CREATE TRIGGER `RET_BOSS` BEFORE DELETE ON `IS_LOCATED`
FOR EACH ROW BEGIN
IF ((SELECT BOSS FROM ENEMY WHERE ID=OLD.ID_ENEMY)=1) THEN
UPDATE LOCATION L, IS_LOCATED SET BOSSES_NBR=(BOSSES_NBR-1) WHERE L.ID=OLD.ID_LOCATION;
END IF;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Structure de la table `ITEM`
--
CREATE TABLE IF NOT EXISTS `ITEM` (
`ID` int(5) NOT NULL DEFAULT '0',
`NAME` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`TYPE` enum('RING','MIRACLE','SORCERY','PYROMANCY','SET','HELMET','CHEST','LEGGINGS','GAUNTLETS','MULTIPLAYER ITEM','CONSUMABLE','BONFIRE ITEM','AMMO','EMBER','ORE','KEY','CATALYST','TALISMAN','FLAME','SMALLSHIELD','NORMALSHIELD','LARGESHIELD','UNIQUESHIELD','OTHERSHIELD','BOSS','BOW','GREATBOW','CROSSBOW','DAGGER','STRAIGHTSWORD','CURVEDSWORD','KATANA','THRUSTINGSWORD','AXE','FISTWEAPON','HAMMER','SPEAR','HALBERD','WHIP','GREATSWORD','ULTRAGREATSWORD','CURVEDGREATSWORD','GREATAXE','GREATHAMMER') COLLATE utf8_unicode_ci NOT NULL,
`DROP_AMOUNT` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
UNIQUE KEY `ID_WEAPON` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `ITEM`
--
INSERT INTO `ITEM` (`ID`, `NAME`, `TYPE`, `DROP_AMOUNT`) VALUES
(1, 'Bloated Head', 'HELMET', 0),
(2, 'Bloated Sorcerer Head', 'HELMET', 0),
(3, 'Fang Boar Helm', 'HELMET', 0),
(4, 'Gargoyle Helm', 'HELMET', 0),
(5, 'Mask of the Child', 'HELMET', 0),
(6, 'Mask of the Father', 'HELMET', 0),
(7, 'Mask of the Mother', 'HELMET', 0),
(8, 'Royal Helm', 'HELMET', 0),
(9, 'Sack', 'HELMET', 0),
(10, 'Sunlight Maggot', 'HELMET', 0),
(11, 'Symbol of Avarice', 'HELMET', 0),
(12, 'Balder Helm', 'HELMET', 1),
(13, 'Big Hat', 'HELMET', 3),
(14, 'Black Iron Helm', 'HELMET', 3),
(15, 'Black Knight Helm', 'HELMET', 0),
(16, 'Black Sorcerer Hat', 'HELMET', 0),
(17, 'Brass Helm', 'HELMET', 0),
(18, 'Brigand Hood', 'HELMET', 0),
(19, 'Catarina Helm', 'HELMET', 0),
(20, 'Chain Helm', 'HELMET', 0),
(21, 'Cleric Helm', 'HELMET', 0),
(22, 'Crown of Dusk', 'HELMET', 0),
(23, 'Crown of the Dark Sun', 'HELMET', 0),
(24, 'Crown of the Great Lord', 'HELMET', 0),
(25, 'Crystalline Helm', 'HELMET', 0),
(26, 'Dark Mask', 'HELMET', 0),
(27, 'Dingy Hood', 'HELMET', 0),
(28, 'Eastern Helm', 'HELMET', 0),
(29, 'Elite Cleric Helm', 'HELMET', 0),
(30, 'Elite Knight Helm', 'HELMET', 0),
(31, 'Giant Helm', 'HELMET', 0),
(32, 'Gold-Hemmed Black Hood', 'HELMET', 0),
(33, 'Golem Helm', 'HELMET', 0),
(34, 'Gough`s Helm', 'HELMET', 0),
(35, 'Guardian Helm', 'HELMET', 0),
(36, 'Havel`s Helm', 'HELMET', 0),
(37, 'Helm of Artorias', 'HELMET', 0),
(38, 'Helm of Favor', 'HELMET', 0),
(39, 'Helm of The Wise', 'HELMET', 0),
(40, 'Helm of Thorns', 'HELMET', 0),
(41, 'Hollow Soldier Helm', 'HELMET', 0),
(42, 'Hollow Thief`s Hood', 'HELMET', 0),
(43, 'Hollow Warrior Helm', 'HELMET', 0),
(44, 'Iron Helm', 'HELMET', 0),
(45, 'Knight Helm', 'HELMET', 0),
(46, 'Mage Smith Hat', 'HELMET', 0),
(47, 'Maiden Hood', 'HELMET', 0),
(48, 'Mask of the Sealer', 'HELMET', 0),
(49, 'Mask of Velka', 'HELMET', 0),
(50, 'Ornstein`s Helm', 'HELMET', 0),
(51, 'Painting Guardian Hood', 'HELMET', 0),
(52, 'Paladin Helm', 'HELMET', 0),
(53, 'Pharis`s Hat', 'HELMET', 0),
(54, 'Porcelain Mask', 'HELMET', 0),
(55, 'Priest`s Hat', 'HELMET', 0),
(56, 'Shadow Mask', 'HELMET', 0),
(57, 'Silver Knight Helm', 'HELMET', 0),
(58, 'Six-Eyed Helm of the Channelers', 'HELMET', 0),
(59, 'Smough`s Helm', 'HELMET', 0),
(60, 'Snickering Top Hat', 'HELMET', 0),
(61, 'Sorcerer Hat', 'HELMET', 0),
(62, 'Standard Helm', 'HELMET', 0),
(63, 'Steel Helm', 'HELMET', 0),
(64, 'Stone Helm', 'HELMET', 0),
(65, 'Tattered Cloth Hood', 'HELMET', 0),
(66, 'Thief Mask', 'HELMET', 0),
(67, 'Wanderer Hood', 'HELMET', 0),
(68, 'Witch Hat', 'HELMET', 0),
(69, 'Xanthous Crown', 'HELMET', 0),
(70, 'Moonlight Robe', 'CHEST', 0),
(71, 'Mage Smith Coat', 'CHEST', 0),
(72, 'Maiden Robe', 'CHEST', 0),
(73, 'Lord`s Blade Robe', 'CHEST', 0),
(74, 'Leather Armor', 'CHEST', 0),
(75, 'Knight Armor', 'CHEST', 0),
(76, 'Holy Robe', 'CHEST', 0),
(77, 'Hollow Warrior Armor', 'CHEST', 0),
(78, 'Hollow Thief`s Leather Armor', 'CHEST', 0),
(79, 'Hollow Soldier Armor', 'CHEST', 0),
(80, 'Havel`s Armor', 'CHEST', 0),
(81, 'Hard Leather Armor', 'CHEST', 0),
(82, 'Guardian Armor', 'CHEST', 0),
(83, 'Gough`s Armor', 'CHEST', 0),
(84, 'Golem Armor', 'CHEST', 0),
(85, 'Gold-Hemmed Black Cloak', 'CHEST', 0),
(86, 'Giant Armor', 'CHEST', 0),
(87, 'Embraced Armor of Favor', 'CHEST', 0),
(88, 'Elite Knight Armor', 'CHEST', 0),
(89, 'Elite Cleric Armor', 'CHEST', 0),
(90, 'Eastern Armor', 'CHEST', 0),
(91, 'Dingy Robe', 'CHEST', 0),
(92, 'Dark Armor', 'CHEST', 0),
(93, 'Crystalline Armor', 'CHEST', 0),
(94, 'Crimson Robe', 'CHEST', 0),
(95, 'Cleric Armor', 'CHEST', 0),
(96, 'Chester`s Long Coat', 'CHEST', 0),
(97, 'Chain Armor', 'CHEST', 0),
(98, 'Catarina Armor', 'CHEST', 0),
(99, 'Brigand Armor', 'CHEST', 0),
(100, 'Brass Armor', 'CHEST', 0),
(101, 'Black Sorcerer Cloak', 'CHEST', 0),
(102, 'Black Leather Armor', 'CHEST', 0),
(103, 'Black Knight Armor', 'CHEST', 0),
(104, 'Black Iron Armor', 'CHEST', 0),
(105, 'Black Cleric Robe', 'CHEST', 0),
(106, 'Balder Armor', 'CHEST', 0),
(107, 'Armor of Thorns', 'CHEST', 0),
(108, 'Armor of the Sun', 'CHEST', 1),
(109, 'Armor of the Glorious', 'CHEST', 0),
(110, 'Armor of Artorias', 'CHEST', 1),
(111, 'Antiquated Dress', 'CHEST', 0),
(112, 'Ornstein`s Armor', 'CHEST', 0),
(113, 'Painting Guardian Robe', 'CHEST', 0),
(114, 'Paladin Armor', 'CHEST', 0),
(115, 'Robe of the Channelers', 'CHEST', 0),
(116, 'Robe of the Great Lord', 'CHEST', 0),
(117, 'Sage Robe', 'CHEST', 0),
(118, 'Shadow Garb', 'CHEST', 0),
(119, 'Silver Knight Armor', 'CHEST', 0),
(120, 'Smough`s Armor', 'CHEST', 0),
(121, 'Sorcerer Cloak', 'CHEST', 0),
(122, 'Steel Armor', 'CHEST', 0),
(123, 'Stone Armor', 'CHEST', 0),
(124, 'Tattered Cloth Robe', 'CHEST', 0),
(125, 'Wanderer Coat', 'CHEST', 0),
(126, 'Witch Cloak', 'CHEST', 0),
(127, 'Xanthous Overcoat', 'CHEST', 0),
(128, 'Ornstein`s Gauntlets', 'GAUNTLETS', 0),
(129, 'Moonlight Gloves', 'GAUNTLETS', 0),
(130, 'Maiden Gloves', 'GAUNTLETS', 0),
(131, 'Mage Smith Gauntlets', 'GAUNTLETS', 0),
(132, 'Lord`s Blade Gloves', 'GAUNTLETS', 0),
(133, 'Leather Gloves', 'GAUNTLETS', 0),
(134, 'Knight Gauntlets', 'GAUNTLETS', 0),
(135, 'Leather Gauntlets', 'GAUNTLETS', 0),
(136, 'Iron Bracelet', 'GAUNTLETS', 0),
(137, 'Havel`s Gauntlets', 'GAUNTLETS', 0),
(138, 'Hard Leather Gauntlets', 'GAUNTLETS', 0),
(139, 'Guardian Gauntlets', 'GAUNTLETS', 0),
(140, 'Gough`s Gauntlets', 'GAUNTLETS', 0),
(141, 'Golem Gauntlets', 'GAUNTLETS', 0),
(142, 'Gold-Hemmed Black Gloves', 'GAUNTLETS', 0),
(143, 'Giant Gauntlets', 'GAUNTLETS', 0),
(144, 'Gauntlets of Thorns', 'GAUNTLETS', 0),
(145, 'Gauntlets of the Vanquisher', 'GAUNTLETS', 0),
(146, 'Gauntlets of the Channelers', 'GAUNTLETS', 0),
(147, 'Gauntlets of Favor', 'GAUNTLETS', 0),
(148, 'Gauntlets of Artorias', 'GAUNTLETS', 0),
(149, 'Elite Knight Gauntlets', 'GAUNTLETS', 0),
(150, 'Elite Cleric Gauntlets', 'GAUNTLETS', 0),
(151, 'Eastern Gauntlets', 'GAUNTLETS', 0),
(152, 'Dingy Gloves', 'GAUNTLETS', 0),
(153, 'Dark Gauntlets', 'GAUNTLETS', 0),
(154, 'Crystalline Gauntlets', 'GAUNTLETS', 0),
(155, 'Crimson Gloves', 'GAUNTLETS', 0),
(156, 'Cleric Gauntlets', 'GAUNTLETS', 0),
(157, 'Chester`s Gloves', 'GAUNTLETS', 0),
(158, 'Catarina Gauntlets', 'GAUNTLETS', 0),
(159, 'Brigand Gauntlets', 'GAUNTLETS', 0),
(160, 'Brass Gauntlets', 'GAUNTLETS', 0),
(161, 'Bracelet of the Great Lord', 'GAUNTLETS', 0),
(162, 'Black Sorcerer Gauntlets', 'GAUNTLETS', 0),
(163, 'Black Manchette', 'GAUNTLETS', 0),
(164, 'Black Leather Gloves', 'GAUNTLETS', 0),
(165, 'Black Knight Gauntlets', 'GAUNTLETS', 0),
(166, 'Black Iron Gauntlets', 'GAUNTLETS', 0),
(167, 'Balder Gauntlets', 'GAUNTLETS', 0),
(168, 'Antiquated Gloves', 'GAUNTLETS', 0),
(169, 'Painting Guardian Gloves', 'GAUNTLETS', 0),
(170, 'Paladin Gauntlets', 'GAUNTLETS', 0),
(171, 'Shadow Gauntlets', 'GAUNTLETS', 0),
(172, 'Silver Knight Gauntlets', 'GAUNTLETS', 0),
(173, 'Smough`s Gauntlets', 'GAUNTLETS', 0),
(174, 'Sorcerer Gauntlets', 'GAUNTLETS', 0),
(175, 'Steel Gauntlets', 'GAUNTLETS', 0),
(176, 'Stone Gauntlets', 'GAUNTLETS', 0),
(177, 'Tattered Cloth Manchette', 'GAUNTLETS', 0),
(178, 'Traveling Gloves', 'GAUNTLETS', 0),
(179, 'Traveling Gloves', 'GAUNTLETS', 0),
(180, 'Wanderer Manchette', 'GAUNTLETS', 0),
(181, 'Witch Gloves', 'GAUNTLETS', 0),
(182, 'Xanthous Gloves', 'GAUNTLETS', 0),
(183, 'Sorcerer Boots', 'LEGGINGS', 0),
(184, 'Smough`s Leggings', 'LEGGINGS', 0),
(185, 'Silver Knight Leggings', 'LEGGINGS', 0),
(186, 'Shadow Leggings', 'LEGGINGS', 0),
(187, 'Paladin Leggings', 'LEGGINGS', 0),