summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 05:35:04 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-10 05:35:04 +0000
commit84f811edfd2e5b2811f438bb64368ec85d8891a1 (patch)
treea415e0a4060ac5d53fd1c9d9220a28b929e0a97b /sql-files
parentdef5e240def548bdd4fa6e3ba424d03c883b5bc1 (diff)
downloadhercules-84f811edfd2e5b2811f438bb64368ec85d8891a1.tar.gz
hercules-84f811edfd2e5b2811f438bb64368ec85d8891a1.tar.bz2
hercules-84f811edfd2e5b2811f438bb64368ec85d8891a1.tar.xz
hercules-84f811edfd2e5b2811f438bb64368ec85d8891a1.zip
Char server now loads/saves quest information.
Included table definitions for quests and quest objectives. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12545 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql28
-rw-r--r--sql-files/upgrade_svn12545.sql27
2 files changed, 55 insertions, 0 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 0b8c9b32c..dc733686b 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -566,6 +566,34 @@ CREATE TABLE `pet` (
) ENGINE=MyISAM;
--
+-- Table structure for table `quest`
+--
+
+DROP TABLE IF EXISTS `quest`;
+CREATE TABLE `quest` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `name` varchar(255) NOT NULL default '',
+ `char_id` int(11) unsigned NOT NULL default '0',
+ `quest_id` int(10) unsigned NOT NULL,
+ `state` enum('1','0') NOT NULL default '0',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM;
+
+--
+-- Table structure for table `quest_mob`
+--
+
+DROP TABLE IF EXISTS `quest_objective`;
+CREATE TABLE `quest_objective` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `quest_id` int(11) unsigned NOT NULL,
+ `count` mediumint(8) unsigned NOT NULL default '0',
+ `name` varchar(255) NOT NULL default '',
+ `num` tinyint(3) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM;
+
+--
-- Table structure for table `ragsrvinfo`
--
diff --git a/sql-files/upgrade_svn12545.sql b/sql-files/upgrade_svn12545.sql
new file mode 100644
index 000000000..a3eadacf0
--- /dev/null
+++ b/sql-files/upgrade_svn12545.sql
@@ -0,0 +1,27 @@
+--
+-- Table structure for table `quest`
+--
+
+DROP TABLE IF EXISTS `quest`;
+CREATE TABLE `quest` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `name` varchar(255) NOT NULL default '',
+ `char_id` int(11) unsigned NOT NULL default '0',
+ `quest_id` int(10) unsigned NOT NULL,
+ `state` enum('1','0') NOT NULL default '0',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM;
+
+--
+-- Table structure for table `quest_mob`
+--
+
+DROP TABLE IF EXISTS `quest_objective`;
+CREATE TABLE `quest_objective` (
+ `id` int(11) unsigned NOT NULL auto_increment,
+ `quest_id` int(11) unsigned NOT NULL,
+ `count` mediumint(8) unsigned NOT NULL default '0',
+ `name` varchar(255) NOT NULL default '',
+ `num` tinyint(3) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM; \ No newline at end of file