Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[z1186] Imporvments gameevent creature morphing.
* This is allow have more clean logic in feature work. * Prevent modify static creature data. * Table `game_event_model_equip` renamed to `game_event_creature_data` * Table allow now store same creatures for different events, BUT expected that related events no active in same time. * Added possibility switch entry at gameevent time. This let have diff factions/loot and etc for creatures. * Added possibility cast spells at gameevent start/end. Exist some spells that expected casted to creature at gameevent start for model replace, and for animation in other cases. Note: `game_event_creature_data`.`modelid` field posisble will removed soon in fowor related spell use. Ofc, when spells will implemented in core. (based on master commit cedf1d2) (based on master commit 36c0e42) (based on master commit af25119) (based on commit 43e4343)
- Loading branch information
VladimirMangos
committed
Dec 31, 2010
1 parent
2cfff2f
commit aa8b61d
Showing
10 changed files
with
222 additions
and
143 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
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
14 changes: 14 additions & 0 deletions
14
sql/updates/z1186_s0600_01_mangos_game_event_creature_data.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,14 @@ | ||
ALTER TABLE db_version CHANGE COLUMN required_z1159_s0566_01_mangos_mangos_string required_z1186_s0600_01_mangos_game_event_creature_data bit; | ||
|
||
|
||
DROP TABLE IF EXISTS game_event_creature_data; | ||
RENAME TABLE game_event_model_equip TO game_event_creature_data; | ||
|
||
ALTER TABLE game_event_creature_data | ||
ADD COLUMN entry_id mediumint(8) unsigned NOT NULL default '0' AFTER guid, | ||
ADD COLUMN spell_start mediumint(8) unsigned NOT NULL default '0' AFTER equipment_id, | ||
ADD COLUMN spell_end mediumint(8) unsigned NOT NULL default '0' AFTER spell_start; | ||
|
||
ALTER TABLE game_event_creature_data | ||
DROP PRIMARY KEY, | ||
ADD PRIMARY KEY (`guid`,`event`); |
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
Oops, something went wrong.