summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-30 18:42:58 -0200
committershennetsind <ind@henn.et>2013-10-30 18:42:58 -0200
commitc159a3c4ffd414d7423b3504a282cce1111b7874 (patch)
tree0d7051a90bcd0b9ba229ff16d52a9dea0bbee743 /sql-files
parent7fefefdde386f13f8fefa8db3ffe9ed140c8aa10 (diff)
downloadhercules-c159a3c4ffd414d7423b3504a282cce1111b7874.tar.gz
hercules-c159a3c4ffd414d7423b3504a282cce1111b7874.tar.bz2
hercules-c159a3c4ffd414d7423b3504a282cce1111b7874.tar.xz
hercules-c159a3c4ffd414d7423b3504a282cce1111b7874.zip
Account-wide Exp/Drop/Death Modifiers
Attempting to mimic the official as suggested in http://hercules.ws/board/topic/250-official-vip-system/ The variables can be read and modified thru scripting as well as sql, the patch introduces 3 new pc-arams 'ModExp','ModDrop' and 'ModDeath' for that purpose. The OnLogin modifier display is not the real deal though -- wasn't able to get it to output properly (though that might have been my client files failt) Up for review. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql4
-rw-r--r--sql-files/upgrades/2013-10-30--19-53.sql5
-rw-r--r--sql-files/upgrades/index.txt3
3 files changed, 11 insertions, 1 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 8bd28c414..29717155c 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -660,6 +660,7 @@ INSERT INTO `sql_updates` (`timestamp`) VALUES (1366078541);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1381354728);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1381423003);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1382892428);
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1383162785);
--
-- Table structure for table `sstatus`
@@ -713,6 +714,9 @@ INSERT INTO `interreg` (`varname`, `value`) VALUES
CREATE TABLE IF NOT EXISTS `account_data` (
`account_id` int(11) unsigned NOT NULL default '0',
`bank_vault` int(11) unsigned NOT NULL default '0',
+ `base_exp` TINYINT( 4 ) UNSIGNED NOT NULL default '0',
+ `base_drop` TINYINT( 4 ) UNSIGNED NOT NULL default '0',
+ `base_death` TINYINT( 4 ) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`account_id`)
) ENGINE=MyISAM;
diff --git a/sql-files/upgrades/2013-10-30--19-53.sql b/sql-files/upgrades/2013-10-30--19-53.sql
new file mode 100644
index 000000000..05481cff4
--- /dev/null
+++ b/sql-files/upgrades/2013-10-30--19-53.sql
@@ -0,0 +1,5 @@
+#1383162785
+ALTER TABLE `account_data` ADD `base_exp` TINYINT( 4 ) UNSIGNED NOT NULL default '0';
+ALTER TABLE `account_data` ADD `base_drop` TINYINT( 4 ) UNSIGNED NOT NULL default '0';
+ALTER TABLE `account_data` ADD `base_death` TINYINT( 4 ) UNSIGNED NOT NULL default '0';
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1383162785); \ No newline at end of file
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index 4afcc5a0d..2cce6f493 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -6,4 +6,5 @@
2013-04-16--01-24.sql
2013-10-09--21-38.sql
2013-10-10--16-36.sql
-2013-10-27--16-47.sql \ No newline at end of file
+2013-10-27--16-47.sql
+2013-10-30--19-53.sql \ No newline at end of file