summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/item_db.sql2
-rw-r--r--sql-files/item_db_re.sql2
-rw-r--r--sql-files/main.sql2
-rw-r--r--sql-files/upgrades/2019-10-05--19-01.sql28
-rw-r--r--sql-files/upgrades/index.txt1
5 files changed, 33 insertions, 2 deletions
diff --git a/sql-files/item_db.sql b/sql-files/item_db.sql
index cf30566dc..01f02a091 100644
--- a/sql-files/item_db.sql
+++ b/sql-files/item_db.sql
@@ -2525,7 +2525,7 @@ REPLACE INTO `item_db` VALUES ('5326','Masquerade_C','Masquerade C','5','0','1',
REPLACE INTO `item_db` VALUES ('5327','Orc_Hero_Helm_C','Refined Helmet of Orc Hero','5','0','1','0','0','0','0','10','0','0','18446744073709551614','63','2','768','0','0',NULL,'0','0','178','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bStr,5; bonus bVit,3;','','');
REPLACE INTO `item_db` VALUES ('5328','Evil_Wing_Ears_C','Evil Wing Ears C','5','0','1','0','0','0','0','2','0','0','18446744073709551615','63','2','512','0','0',NULL,'0','0','152','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bStr,1;','','');
REPLACE INTO `item_db` VALUES ('5329','Dark_Blindfold_C','Dark Blindfold C','5','0','1','0','0','0','0','1','0','0','18446744073709551615','63','2','512','0','0',NULL,'0','0','187','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus2 bResEff,Eff_Blind,10000; bonus2 bResEff,Eff_Stun,500;','','');
-REPLACE INTO `item_db` VALUES ('5330','kRO_Drooping_Kitty_C','kRO Drooping Kitty C','5','0','1','0','0','0','0','6','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','142','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,15; bonus2 bResEff,Eff_Curse,4000; bonus2 bResEff,Eff_Curse,1000;','','');
+REPLACE INTO `item_db` VALUES ('5330','kRO_Drooping_Kitty_C','kRO Drooping Kitty C','5','0','1','0','0','0','0','6','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','142','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,15; bonus2 bResEff,Eff_Curse,4000; bonus2 bResEff,Eff_Stun,1000;','','');
REPLACE INTO `item_db` VALUES ('5331','Corsair_C','Corsair C','5','0','1','0','0','0','0','10','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','105','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bVit,3; bonus bInt,3;','','');
REPLACE INTO `item_db` VALUES ('5332','Loki_Mask','Loki Mask','5','0','0','0','200','0','0','0','0','0','18446744073709551615','63','2','513','0','20',NULL,'0','0','346','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bFlee2,3;','','');
REPLACE INTO `item_db` VALUES ('5333','Radio_Antenna','Radio Antenna','5','0','0','0','1500','0','0','2','0','0','18446744073709551615','63','2','256','0','50',NULL,'1','0','347','0','0','0','0','457',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,5; bonus bCritical,5; bonus bFlee,5; skill MG_LIGHTNINGBOLT,1; bonus4 bAutoSpellWhenHit,MG_THUNDERSTORM,5,30,1;','','');
diff --git a/sql-files/item_db_re.sql b/sql-files/item_db_re.sql
index a6605c6fc..3f4654324 100644
--- a/sql-files/item_db_re.sql
+++ b/sql-files/item_db_re.sql
@@ -3433,7 +3433,7 @@ REPLACE INTO `item_db` VALUES ('5326','Masquerade_C','Masquerade C','5','0','1',
REPLACE INTO `item_db` VALUES ('5327','Orc_Hero_Helm_C','Refined Helmet of Orc Hero','5','0','1','0','0','0','0','10','0','0','18446744073709551614','63','2','768','0','0',NULL,'0','0','178','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus bStr,5; bonus bVit,3;','','');
REPLACE INTO `item_db` VALUES ('5328','Evil_Wing_Ears_C','Evil Wing Ears C','5','0','1','0','0','0','0','4','0','0','18446744073709551615','63','2','512','0','0',NULL,'0','0','152','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus bStr,1;','','');
REPLACE INTO `item_db` VALUES ('5329','Dark_Blindfold_C','Costume Dark Blindfold','5','0','1','0','0','0','0','1','0','0','18446744073709551615','63','2','512','0','0',NULL,'0','0','187','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus2 bResEff,Eff_Blind,10000; bonus2 bResEff,Eff_Stun,500;','','');
-REPLACE INTO `item_db` VALUES ('5330','kRO_Drooping_Kitty_C','kRO Drooping Kitty C','5','0','1','0','0','0','0','9','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','142','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,15; bonus2 bResEff,Eff_Curse,4000; bonus2 bResEff,Eff_Curse,1000;','','');
+REPLACE INTO `item_db` VALUES ('5330','kRO_Drooping_Kitty_C','kRO Drooping Kitty C','5','0','1','0','0','0','0','9','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','142','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,15; bonus2 bResEff,Eff_Curse,4000; bonus2 bResEff,Eff_Stun,1000;','','');
REPLACE INTO `item_db` VALUES ('5331','Corsair_C','Corsair C','5','0','1','0','0','0','0','14','0','0','18446744073709551614','63','2','256','0','0',NULL,'0','0','105','0','0','0','0','507',NULL,'0',NULL,'0',NULL,'0','bonus bVit,3; bonus bInt,3;','','');
REPLACE INTO `item_db` VALUES ('5332','Loki_Mask','Loki Mask','5','0','0','0','200','0','0','2','0','0','18446744073709551615','63','2','513','0','20',NULL,'0','0','346','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bFlee2,3;','','');
REPLACE INTO `item_db` VALUES ('5333','Radio_Antenna','Radio Antenna','5','0','0','0','1500','0','0','2','0','0','18446744073709551615','63','2','256','0','50',NULL,'1','0','347','0','0','0','0','0',NULL,'0',NULL,'0',NULL,'0','bonus bMdef,5; bonus bCritical,5; bonus bFlee,5; skill MG_LIGHTNINGBOLT,1; bonus4 bAutoSpellWhenHit,MG_THUNDERSTORM,5,30,1;','','');
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 27839afa3..4627799aa 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -685,6 +685,7 @@ CREATE TABLE IF NOT EXISTS `sc_data` (
`char_id` INT(11) UNSIGNED NOT NULL,
`type` SMALLINT(11) UNSIGNED NOT NULL,
`tick` INT(11) NOT NULL,
+ `total_tick` INT(11) NOT NULL,
`val1` INT(11) NOT NULL DEFAULT '0',
`val2` INT(11) NOT NULL DEFAULT '0',
`val3` INT(11) NOT NULL DEFAULT '0',
@@ -931,6 +932,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1554760320); -- 2019-04-0
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1556147483); -- 2019-04-25--02-12.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1557414445); -- 2019-05-09--18-07.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1565293394); -- 2019-08-08--19-43.sql
+INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1570309293); -- 2019-10-05--19-01.sql
--
-- Table structure for table `storage`
diff --git a/sql-files/upgrades/2019-10-05--19-01.sql b/sql-files/upgrades/2019-10-05--19-01.sql
new file mode 100644
index 000000000..4cb7c1c51
--- /dev/null
+++ b/sql-files/upgrades/2019-10-05--19-01.sql
@@ -0,0 +1,28 @@
+#1570309293
+
+-- This file is part of Hercules.
+-- http://herc.ws - http://github.com/HerculesWS/Hercules
+--
+-- Copyright (C) 2019 Hercules Dev Team
+--
+-- Hercules is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-- Adds new total_tick column
+ALTER TABLE `sc_data` ADD COLUMN `total_tick` INT(11) NOT NULL AFTER `tick`;
+
+-- Copy current tick to total_tick so players doesn't lose their current
+-- status_changes, although those will still appear wrong until they end
+UPDATE `sc_data` SET `total_tick` = `tick`;
+
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1570309293);
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index 85bd2a245..10eb30762 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -56,3 +56,4 @@
2019-04-25--02-12.sql
2019-05-09--18-07.sql
2019-08-08--19-43.sql
+2019-10-05--19-01.sql