Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11985] Implement support for go_template_scripts
Add a new table `gameobject_template_scripts` to start scripts for any type gameobject. Scripts in this table are triggered for all gameobjects on GameObject::Use Note: The table `gameobject_scripts` is expected to not be required very much longer, and will most likely be removed someday
- Loading branch information
1 parent
11d92a9
commit 62a00dc
Showing
9 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
sql/updates/11985_01_mangos_gameobject_template_scripts.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
ALTER TABLE db_version CHANGE COLUMN required_11968_01_mangos_creature_linking_template required_11985_01_mangos_gameobject_template_scripts bit; | ||
|
||
-- | ||
-- Table structure for table `gameobject_template_scripts` | ||
-- | ||
|
||
DROP TABLE IF EXISTS `gameobject_template_scripts`; | ||
CREATE TABLE `gameobject_template_scripts` ( | ||
`id` mediumint(8) unsigned NOT NULL default '0', | ||
`delay` int(10) unsigned NOT NULL default '0', | ||
`command` mediumint(8) unsigned NOT NULL default '0', | ||
`datalong` mediumint(8) unsigned NOT NULL default '0', | ||
`datalong2` int(10) unsigned NOT NULL default '0', | ||
`buddy_entry` int(10) unsigned NOT NULL default '0', | ||
`search_radius` int(10) unsigned NOT NULL default '0', | ||
`data_flags` tinyint(3) unsigned NOT NULL default '0', | ||
`dataint` int(11) NOT NULL default '0', | ||
`dataint2` int(11) NOT NULL default '0', | ||
`dataint3` int(11) NOT NULL default '0', | ||
`dataint4` int(11) NOT NULL default '0', | ||
`x` float NOT NULL default '0', | ||
`y` float NOT NULL default '0', | ||
`z` float NOT NULL default '0', | ||
`o` float NOT NULL default '0', | ||
`comments` varchar(255) NOT NULL | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | ||
|
||
-- | ||
-- Dumping data for table `gameobject_template_scripts` | ||
-- | ||
|
||
LOCK TABLES `gameobject_template_scripts` WRITE; | ||
/*!40000 ALTER TABLE `gameobject_template_scripts` DISABLE KEYS */; | ||
/*!40000 ALTER TABLE `gameobject_template_scripts` ENABLE KEYS */; | ||
UNLOCK TABLES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "11984" | ||
#define REVISION_NR "11985" | ||
#endif // __REVISION_NR_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef __REVISION_SQL_H__ | ||
#define __REVISION_SQL_H__ | ||
#define REVISION_DB_CHARACTERS "required_11785_02_characters_instance" | ||
#define REVISION_DB_MANGOS "required_11968_01_mangos_creature_linking_template" | ||
#define REVISION_DB_MANGOS "required_11985_01_mangos_gameobject_template_scripts" | ||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version" | ||
#endif // __REVISION_SQL_H__ |
62a00dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Шикарные коммиты последнее время, спасибо! =)
Very interesting commits last time, I'm happy - thx! =)