root/trunk/sql/world_scripts_structure.sql @ 121

Revision 121, 4.2 kB (checked in by yumileroy, 17 years ago)

[svn] * Moved scripts sqls updates to main sql updates folder.
* Fixed makefile to use proper foldername.
* rXXX_world_scripts.sql will be the format for script sql updates, execute these into your world DB.

Original author: KingPin?
Date: 2008-10-27 09:57:53-05:00

Line 
1DROP TABLE IF EXISTS `custom_texts`;
2CREATE TABLE `custom_texts` (
3  `entry` mediumint(8) NOT NULL,
4  `content_default` text NOT NULL,
5  `content_loc1` text,
6  `content_loc2` text,
7  `content_loc3` text,
8  `content_loc4` text,
9  `content_loc5` text,
10  `content_loc6` text,
11  `content_loc7` text,
12  `content_loc8` text,
13  `sound` mediumint(8) unsigned NOT NULL default '0',
14  `type` tinyint unsigned NOT NULL default '0',
15  `language` tinyint unsigned NOT NULL default '0',
16  `comment` text,
17  PRIMARY KEY (`entry`)
18) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Custom Texts';
19
20DROP TABLE IF EXISTS `eventai_scripts`;
21CREATE TABLE `eventai_scripts` (
22  `id` int(11) unsigned NOT NULL COMMENT 'Identifier' AUTO_INCREMENT,
23  `creature_id` int(11) unsigned NOT NULL default '0' COMMENT 'Creature Template Identifier',
24  `event_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Event Type',
25  `event_inverse_phase_mask` int(11) signed NOT NULL default '0' COMMENT 'Mask which phases this event will not trigger in',
26  `event_chance` int(3) unsigned NOT NULL default '100',
27  `event_flags` int(3) unsigned NOT NULL default '0',
28  `event_param1` int(11) signed NOT NULL default '0',
29  `event_param2` int(11) signed NOT NULL default '0',
30  `event_param3` int(11) signed NOT NULL default '0',
31  `event_param4` int(11) signed NOT NULL default '0',
32  `action1_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
33  `action1_param1` int(11) signed NOT NULL default '0',
34  `action1_param2` int(11) signed NOT NULL default '0',
35  `action1_param3` int(11) signed NOT NULL default '0',
36  `action2_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
37  `action2_param1` int(11) signed NOT NULL default '0',
38  `action2_param2` int(11) signed NOT NULL default '0',
39  `action2_param3` int(11) signed NOT NULL default '0',
40  `action3_type` tinyint(5) unsigned NOT NULL default '0' COMMENT 'Action Type',
41  `action3_param1` int(11) signed NOT NULL default '0',
42  `action3_param2` int(11) signed NOT NULL default '0',
43  `action3_param3` int(11) signed NOT NULL default '0',
44  `comment` varchar(255) NOT NULL default '' COMMENT 'Event Comment',
45  PRIMARY KEY (`id`)
46) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Scripts';
47
48DROP TABLE IF EXISTS `eventai_summons`;
49CREATE TABLE `eventai_summons` (
50  `id` int(11) unsigned NOT NULL COMMENT 'Location Identifier' AUTO_INCREMENT,
51  `position_x` float NOT NULL default '0',
52  `position_y` float NOT NULL default '0',
53  `position_z` float NOT NULL default '0',
54  `orientation` float NOT NULL default '0',
55  `spawntimesecs` int(11) unsigned NOT NULL default '120',
56  `comment` varchar(255) NOT NULL default '' COMMENT 'Summon Comment',
57  PRIMARY KEY (`id`)
58) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='EventAI Summoning Locations';
59
60DROP TABLE IF EXISTS `eventai_texts`;
61CREATE TABLE `eventai_texts` (
62  `entry` mediumint(8) NOT NULL,
63  `content_default` text NOT NULL,
64  `content_loc1` text,
65  `content_loc2` text,
66  `content_loc3` text,
67  `content_loc4` text,
68  `content_loc5` text,
69  `content_loc6` text,
70  `content_loc7` text,
71  `content_loc8` text,
72  `sound` mediumint(8) unsigned NOT NULL default '0',
73  `type` tinyint unsigned NOT NULL default '0',
74  `language` tinyint unsigned NOT NULL default '0',
75  `comment` text,
76  PRIMARY KEY (`entry`)
77) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
78
79DROP TABLE IF EXISTS `script_texts`;
80CREATE TABLE `script_texts` (
81  `entry` mediumint(8) NOT NULL,
82  `content_default` text NOT NULL,
83  `content_loc1` text,
84  `content_loc2` text,
85  `content_loc3` text,
86  `content_loc4` text,
87  `content_loc5` text,
88  `content_loc6` text,
89  `content_loc7` text,
90  `content_loc8` text,
91  `sound` mediumint(8) unsigned NOT NULL default '0',
92  `type` tinyint unsigned NOT NULL default '0',
93  `language` tinyint unsigned NOT NULL default '0',
94  `comment` text,
95  PRIMARY KEY  (`entry`)
96) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';
97
98DROP TABLE IF EXISTS `script_db_version`;
99CREATE TABLE `script_db_version` (
100  `version` varchar(255) NOT NULL default '' COMMENT 'Script Database version string'
101) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Note: See TracBrowser for help on using the browser.