Skip to content

Commit 189a5d9

Browse files
committed
[Custom] Remove creature.modelid Usage
With this commit, creature.modelid can be effectively dropped Based on 7929ee6
1 parent c53b683 commit 189a5d9

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

ACID/acid_tbc.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16904,6 +16904,8 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers
1690416904
('1683605','16836','9','0','100','1025','0','40','3400','4700','0','0','11','20824','1','256','0','0','0','0','0','0','0','0','Escaped Dreghood - Cast Lightning Bolt'),
1690516905
-- Honor Hold Defender 16842
1690616906
('1684201','16842','11','0','100','0','0','0','0','0','0','0','11','18950','0','34','0','0','0','0','0','0','0','0','Honor Hold Defender - Cast Invisibility and Stealth Detection on Spawn'),
16907+
('1684202','-72636','11','0','100','0','0','0','0','0','0','0','3','0','16387','0','0','0','0','0','0','0','0','0','Honor Hold Defender - Set Model on Spawn'),
16908+
('1684203','-72637','11','0','100','0','0','0','0','0','0','0','3','0','16387','0','0','0','0','0','0','0','0','0','Honor Hold Defender - Set Model on Spawn'),
1690716909
-- Crust Burster (16844) - npc_burster_worm
1690816910
-- Stormwind Cavalryman
1690916911
('1684301','16843','4','0','100','0','0','0','0','0','0','0','43','0','0','0','0','0','0','0','0','0','0','0','Stormwind Cavalryman - Dismount on Aggro'),

Updates/0604_creature_modelid.sql

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
-- Remove remaining cases where `creature`.`modelid` != 0
2+
-- Obsolte column can be removed! (Implementing probability column seems questionable)
3+
UPDATE `creature` SET `modelid` = 0 WHERE `id` IN (16842,21419,22332,22418,19937,17432,17439,25195);
4+
5+
/*
6+
Time: 02/02/2008 00:09:06.000 Number: 117822
7+
Entry: 22332
8+
[0] Name: Brood of Neltharaku
9+
[1] Name:
10+
[2] Name:
11+
[3] Name:
12+
Sub Name:
13+
Icon Name:
14+
Type Flags: None (0)
15+
Type: Dragonkin (2)
16+
Family: None (0)
17+
Rank: Elite (1)
18+
Unk Int: 0
19+
Pet Spell Data Id: 0
20+
[0] Display ID: 19980
21+
[1] Display ID: 0
22+
[2] Display ID: 0
23+
[3] Display ID: 0
24+
HealthMultriplier: 4
25+
ManaMultiplier: 3
26+
Racial Leader: False
27+
28+
[1] (46) UNIT_FIELD_FLAGS: (33600) Unk6, NotAttackbleByPlayerControlled, OnlyAttackableByPlayerControlled, OnlySwim
29+
[1] (152) UNIT_FIELD_DISPLAYID: 19980
30+
maybe invisible?
31+
*/
32+

utilities/cmangos_custom.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,19 +200,32 @@ UPDATE broadcast_text SET `text`="Should Kil'jaeden rise up through the Sunwell
200200

201201
-- modelids with probability = 0
202202
UPDATE creature_template SET `modelid2` = 0, `modelid3` = 0, `modelid4` = 0 WHERE `entry` IN (
203+
17432, -- Stillpine Defender (2001,6802,8589)
204+
17439, -- Stillpine Hunter (2001,6802,8589)
203205
17734, -- Underbog Lord
204206
17459, -- Chess Waiting Room (DND)
205207
18095, -- Doomfire
206208
18104, -- Doomfire Targeting
207209
19632, -- Lykul Stinger (6633,7350,11091)
210+
19937, -- Commander Hogarth (16503,16504,16505)
208211
20155, -- Hillsbrad Internment Lodge Quest Trigger
209212
20156, -- Thrall Quest Trigger
210213
21060, -- Enraged Air Spirit (15294)
214+
25195, -- Marksman Bova (18742,18741,18740)
211215
25265, -- Demonic Vapor
212216
25267, -- Demonic Vapor (Trail)
213217
25703 -- Brutallus Death Cloud
214218
);
215219

220+
UPDATE creature_template SET `modelid1` = 0, `modelid3` = 0, `modelid4` = 0 WHERE `entry` IN (
221+
21419, -- Infernal Attacker - modelid1 (17312)
222+
22418 -- Archimonde Channel Target (18783)
223+
);
224+
225+
UPDATE creature_template SET `modelid2` = 17188 WHERE `entry` = 22332; -- Brood of Neltharaku (19980)
226+
227+
-- -------------------------------
228+
216229
UPDATE `creature_template` SET `name` = 'Redeemed Spirit of Earth' WHERE `entry` = 21739; -- Redeemed Spriit of Earth
217230

218231
-- -------------------------------

0 commit comments

Comments
 (0)