[10973] Implement game event mail sends at event start/stop.

Also implement save game event state to DB mostly for avoid
send mails at resume game event after server downtime.

Thanks to X-Savior for inspiring and original research.
This commit is contained in:
VladimirMangos 2011-01-06 12:18:26 +03:00
parent da228b707d
commit 6b9de2c958
9 changed files with 241 additions and 26 deletions

View file

@ -21,7 +21,7 @@
DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_10862_01_characters_mail` bit(1) default NULL
`required_10973_01_characters_game_event_status` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
--
@ -1060,6 +1060,25 @@ LOCK TABLES `creature_respawn` WRITE;
/*!40000 ALTER TABLE `creature_respawn` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `game_event_status`
--
DROP TABLE IF EXISTS `game_event_status`;
CREATE TABLE `game_event_status` (
`event` smallint(6) unsigned NOT NULL default '0',
PRIMARY KEY (`event`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Game event system';
--
-- Dumping data for table `game_event_status`
--
LOCK TABLES `game_event_status` WRITE;
/*!40000 ALTER TABLE `game_event_status` DISABLE KEYS */;
/*!40000 ALTER TABLE `game_event_status` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `gameobject_respawn`
--