From b79a9d7efa9213e3c791ec356bf21b712878d1aa Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 6 Jan 2014 15:26:00 -0200 Subject: Introducing Hercules Autotrade Persistency Aka autotrading merchants survive server restarts. Originally sekai's (aka me). Special Thanks to Haruna, Michieru. Signed-off-by: shennetsind --- sql-files/main.sql | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'sql-files/main.sql') diff --git a/sql-files/main.sql b/sql-files/main.sql index 906c329fa..30882546e 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -672,6 +672,7 @@ INSERT INTO `sql_updates` (`timestamp`) VALUES (1383955424); INSERT INTO `sql_updates` (`timestamp`) VALUES (1384545461); INSERT INTO `sql_updates` (`timestamp`) VALUES (1384588175); INSERT INTO `sql_updates` (`timestamp`) VALUES (1387844126); +INSERT INTO `sql_updates` (`timestamp`) VALUES (1389028967); -- -- Table structure for table `sstatus` @@ -743,3 +744,27 @@ CREATE TABLE IF NOT EXISTS `npc_market_data` ( PRIMARY KEY (`name`,`itemid`) ) ENGINE=MyISAM; +-- +-- Table structure for table `autotrade_merchants` +-- + +CREATE TABLE IF NOT EXISTS `autotrade_merchants` ( + `account_id` int(11) NOT NULL default '0', + `char_id` int(11) NOT NULL default '0', + `sex` tinyint(2) NOT NULL default '0', + `title` varchar(80) NOT NULL default 'Buy From Me!', + PRIMARY KEY (`account_id`,`char_id`) +) ENGINE=MyISAM; + +-- +-- Table structure for table `autotrade_data` +-- + +CREATE TABLE IF NOT EXISTS `autotrade_data` ( + `char_id` int(11) NOT NULL default '0', + `itemkey` int(11) NOT NULL default '0', + `amount` int(11) NOT NULL default '0', + `price` int(11) NOT NULL default '0', + PRIMARY KEY (`char_id`,`itemkey`) +) ENGINE=MyISAM; + -- cgit v1.2.3-60-g2f50