mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 01:37:02 +00:00
This change will: * make it easier to use cached data directly without any modifications * correct issues regarding invisible models * simplify certain aspects of model selection itself and make it somehow easier to control and maintain special cases. Two new fields added to creature_model_info, to store modelid_alternative and modelid_other_team * _alternative holds an alt. model, for cases where gender are the same, or is not male/female. * _other_team is generally used for totem models, but may have future use. This commit will possibly break a few things (visually) and will require DB projects to update their creature_template models data. It is advised to use cache data as-is, and in addition fill creature_model_info for certain models, totems in particular, for expected appearance. Signed-off-by: NoFantasy <nofantasy@nf.no>
8 lines
617 B
SQL
8 lines
617 B
SQL
ALTER TABLE db_version CHANGE COLUMN required_10286_01_mangos_creature_addon required_10289_01_mangos_creature_template bit;
|
|
|
|
ALTER TABLE creature_template CHANGE COLUMN modelid_A modelid_1 mediumint(8) unsigned NOT NULL default '0';
|
|
ALTER TABLE creature_template CHANGE COLUMN modelid_A2 modelid_2 mediumint(8) unsigned NOT NULL default '0';
|
|
ALTER TABLE creature_template CHANGE COLUMN modelid_H modelid_3 mediumint(8) unsigned NOT NULL default '0';
|
|
ALTER TABLE creature_template CHANGE COLUMN modelid_H2 modelid_4 mediumint(8) unsigned NOT NULL default '0';
|
|
|
|
UPDATE creature_template SET modelid_3=0 WHERE entry=1;
|