[12140] Basic curency support. Based on @Supabad, @Shocker, @Shauren work.

TODO: reward/take currencies from quests, take currencies with extended cost, reset currencies week count.

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-08-29 14:11:58 +03:00 committed by Antz
parent d8eb7327a1
commit b4d7780f46
25 changed files with 620 additions and 162 deletions

View file

@ -21,7 +21,7 @@
DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_12138_01_characters_characters` bit(1) default NULL
`required_12141_01_characters_character_currencies` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
--
@ -419,6 +419,30 @@ LOCK TABLES `character_battleground_data` WRITE;
/*!40000 ALTER TABLE `character_battleground_data` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `character_currencies`
--
DROP TABLE IF EXISTS `character_currencies`;
CREATE TABLE `character_currencies` (
`guid` int(11) unsigned NOT NULL DEFAULT '0',
`id` smallint(5) unsigned NOT NULL DEFAULT '0',
`totalCount` int(11) unsigned NOT NULL DEFAULT '0',
`weekCount` int(11) unsigned NOT NULL DEFAULT '0',
`seasonCount` int(11) unsigned NOT NULL DEFAULT '0',
`flags` tinyint(2) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `character_currencies`
--
LOCK TABLES `character_currencies` WRITE;
/*!40000 ALTER TABLE `character_currencies` DISABLE KEYS */;
/*!40000 ALTER TABLE `character_currencies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `character_declinedname`
--