MapleCouponInstaller + EXP/DROP Coupon System
Added mechanics for the EXP/DROP cash coupons (such as enabling out-of-time active coupons via command and automatic update of active ones over the designed interval). Created MapleCouponInstaller as means to gather info about the coupon intervals and rates from the WZs (the generated SQL table is already updated on the db_database.sql file).
This commit is contained in:
+54
-4
@@ -184,7 +184,7 @@ CREATE TABLE IF NOT EXISTS `characters` (
|
||||
KEY `party` (`party`),
|
||||
KEY `ranking1` (`level`,`exp`),
|
||||
KEY `ranking2` (`gm`,`job`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=30000 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=1 ;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cooldowns` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
@@ -15929,9 +15929,6 @@ CREATE TABLE IF NOT EXISTS `monsterbook` (
|
||||
`level` int(1) DEFAULT '1'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
|
||||
INSERT INTO `monsterbook` (`charid`, `cardid`, `level`) VALUES
|
||||
(30000, 2380011, 1);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `monstercarddata` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`cardid` int(11) NOT NULL DEFAULT '0',
|
||||
@@ -16316,6 +16313,59 @@ CREATE TABLE IF NOT EXISTS `nxcode` (
|
||||
PRIMARY KEY (`code`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `nxcoupons` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`couponid` int(11) NOT NULL DEFAULT '0',
|
||||
`rate` int(11) NOT NULL DEFAULT '0',
|
||||
`activeday` int(11) NOT NULL DEFAULT '0',
|
||||
`starthour` int(11) NOT NULL DEFAULT '0',
|
||||
`endhour` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=41 ;
|
||||
|
||||
INSERT INTO `nxcoupons` (`id`, `couponid`, `rate`, `activeday`, `starthour`, `endhour`) VALUES
|
||||
(1,5211000,2,1,18,20),
|
||||
(2,5211004,2,1,7,11),
|
||||
(3,5211005,2,1,10,14),
|
||||
(4,5211006,2,1,13,17),
|
||||
(5,5211007,2,1,16,20),
|
||||
(6,5211008,2,1,19,23),
|
||||
(7,5211009,2,1,7,11),
|
||||
(8,5211010,2,1,10,14),
|
||||
(9,5211011,2,1,13,17),
|
||||
(10,5211012,2,1,16,20),
|
||||
(11,5211013,2,1,19,23),
|
||||
(12,5211014,2,1,7,11),
|
||||
(13,5211015,2,1,10,14),
|
||||
(14,5211016,2,1,13,17),
|
||||
(15,5211017,2,1,16,20),
|
||||
(16,5211018,2,1,19,23),
|
||||
(17,5211037,2,1,0,4),
|
||||
(18,5211038,2,1,0,4),
|
||||
(19,5211039,2,1,0,4),
|
||||
(20,5211040,2,1,3,7),
|
||||
(21,5211041,2,1,3,7),
|
||||
(22,5211042,2,1,3,7),
|
||||
(23,5211043,2,1,6,10),
|
||||
(24,5211044,2,1,6,10),
|
||||
(25,5211045,2,1,6,10),
|
||||
(26,5211046,2,1,0,24),
|
||||
(27,5211048,2,1,0,24),
|
||||
(28,5211049,2,1,0,24),
|
||||
(29,5211052,3,1,0,24),
|
||||
(30,5211060,3,1,0,24),
|
||||
(31,5360000,2,1,0,24),
|
||||
(32,5360001,2,1,7,11),
|
||||
(33,5360002,2,1,10,14),
|
||||
(34,5360003,2,1,13,17),
|
||||
(35,5360004,2,1,16,20),
|
||||
(36,5360005,2,1,19,23),
|
||||
(37,5360006,2,1,0,4),
|
||||
(38,5360007,2,1,3,7),
|
||||
(39,5360008,2,1,6,10),
|
||||
(40,5360042,2,1,0,24);
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `pets` (
|
||||
`petid` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(13) DEFAULT NULL,
|
||||
|
||||
Reference in New Issue
Block a user