mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 01:37:02 +00:00
Let script library know when some event is about to start. Event id's may be found in several sources, such as spells, GO's and transport/taxi paths. Database scripts may be prevented by returning true from script side whenever needed. If false, DB script will run like normal. New database table event_id_scripts will need a ScriptName for the event id, in same way as for example areatrigger_scripts. Signed-off-by: NoFantasy <nofantasy@nf.no>
8 lines
370 B
SQL
8 lines
370 B
SQL
ALTER TABLE db_version CHANGE COLUMN required_10289_02_mangos_creature_model_info required_10299_01_mangos_event_id_scripts bit;
|
|
|
|
DROP TABLE IF EXISTS `event_id_scripts`;
|
|
CREATE TABLE `event_id_scripts` (
|
|
`id` mediumint(8) NOT NULL,
|
|
`ScriptName` char(64) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Script library scripted events';
|