From d2d734ce0983fbed72e69f555f57f29de04f30b3 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 9 Mar 2013 00:04:28 -0300 Subject: Hercules Renewal'd Pin Code Feature is not, I repeat, NOT complete. the decryption is not fully functional which leads to dial values different from the ones the player used. Credits: lemongrass3110 for the base yommy for the packets LightFighter for the decrypt function (altho its not stable :P) Signed-off-by: shennetsind --- sql-files/main.sql | 6 +++++- sql-files/upgrades/2013-03-06--00-00.sql | 9 +++++++++ sql-files/upgrades/2013-03-09--01-56.sql | 4 ++++ sql-files/upgrades/index.txt | 4 +++- sql-files/upgrades/upgrade_svn17178.sql | 7 ------- 5 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 sql-files/upgrades/2013-03-06--00-00.sql create mode 100644 sql-files/upgrades/2013-03-09--01-56.sql delete mode 100644 sql-files/upgrades/upgrade_svn17178.sql (limited to 'sql-files') diff --git a/sql-files/main.sql b/sql-files/main.sql index 3270bf7e2..b7b3e5226 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -438,7 +438,9 @@ CREATE TABLE IF NOT EXISTS `login` ( `lastlogin` datetime NOT NULL default '0000-00-00 00:00:00', `last_ip` varchar(100) NOT NULL default '', `birthdate` DATE NOT NULL DEFAULT '0000-00-00', - `character_slots` TINYINT( 3 ) unsigned NOT NULL, + `character_slots` TINYINT( 3 ) unsigned NOT NULL default '0', + `pincode` varchar(4) NOT NULL default '', + `pincode_change` int(11) unsigned NOT NULL default '0', PRIMARY KEY (`account_id`), KEY `name` (`userid`) ) ENGINE=MyISAM AUTO_INCREMENT=2000000; @@ -648,6 +650,8 @@ CREATE TABLE IF NOT EXISTS `sql_updates` ( INSERT INTO `sql_updates` (`timestamp`) VALUES (1360858500); INSERT INTO `sql_updates` (`timestamp`) VALUES (1360951560); INSERT INTO `sql_updates` (`timestamp`) VALUES (1362445531); +INSERT INTO `sql_updates` (`timestamp`) VALUES (1362528000); +INSERT INTO `sql_updates` (`timestamp`) VALUES (1362794218); -- -- Table structure for table `sstatus` diff --git a/sql-files/upgrades/2013-03-06--00-00.sql b/sql-files/upgrades/2013-03-06--00-00.sql new file mode 100644 index 000000000..844e3d8a8 --- /dev/null +++ b/sql-files/upgrades/2013-03-06--00-00.sql @@ -0,0 +1,9 @@ +#1362528000 +-- This script resets all dewata quests that were done by your users before this revision +-- Author: Euphy +DELETE FROM `quest` WHERE `quest_id` > 5034 AND `quest_id` < 5055; +DELETE FROM `quest` WHERE `quest_id` > 9154 AND `quest_id` < 9166; +DELETE FROM `global_reg_value` WHERE `str` = 'dewata_gatti'; +DELETE FROM `global_reg_value` WHERE `str` = 'dewata_legend'; +DELETE FROM `global_reg_value` WHERE `str` = 'dewata_oldman'; +INSERT INTO `sql_updates` (`timestamp`) VALUES (1362528000); \ No newline at end of file diff --git a/sql-files/upgrades/2013-03-09--01-56.sql b/sql-files/upgrades/2013-03-09--01-56.sql new file mode 100644 index 000000000..43811ee33 --- /dev/null +++ b/sql-files/upgrades/2013-03-09--01-56.sql @@ -0,0 +1,4 @@ +#1362794218 +ALTER TABLE `login` ADD COLUMN `pincode` varchar(4) NOT NULL DEFAULT ''; +ALTER TABLE `login` ADD COLUMN `pincode_change` int(11) unsigned NOT NULL DEFAULT '0'; +INSERT INTO `sql_updates` (`timestamp`) VALUES (1362794218); \ No newline at end of file diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index bd835414c..a803adffc 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -1,3 +1,5 @@ 2013-02-14--16-15.sql 2013-02-15--18-06.sql -2013-03-05--01-05.sql \ No newline at end of file +2013-03-05--01-05.sql +2013-03-06--00-00.sql +2013-03-09--01-56.sql \ No newline at end of file diff --git a/sql-files/upgrades/upgrade_svn17178.sql b/sql-files/upgrades/upgrade_svn17178.sql deleted file mode 100644 index 02c4c1475..000000000 --- a/sql-files/upgrades/upgrade_svn17178.sql +++ /dev/null @@ -1,7 +0,0 @@ --- This script resets all quests that were done by your users before this revision --- Author: Euphy -DELETE FROM `quest` WHERE `quest_id` > 5034 AND `quest_id` < 5055; -DELETE FROM `quest` WHERE `quest_id` > 9154 AND `quest_id` < 9166; -DELETE FROM `global_reg_value` WHERE `str` = 'dewata_gatti'; -DELETE FROM `global_reg_value` WHERE `str` = 'dewata_legend'; -DELETE FROM `global_reg_value` WHERE `str` = 'dewata_oldman'; -- cgit v1.2.3-70-g09d2