Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Thoraric on May 11, 2016, 11:53:52 pm

Title: [QUESTION] [WotLk] give sound to npc?
Post by: Thoraric on May 11, 2016, 11:53:52 pm
I created new line in Soundentries.dbc and added some new sound.wav file.
How to add my soundentries.dbc ID-s to specific NPC-s in the game?
For example i spawn an npc which doesn't have any voice or sound, and I want to give him sound if i left-click him he should say greetings or something.
Title: Re: [QUESTION] [WotLk] give sound to npc?
Post by: schlumpf on May 12, 2016, 12:08:25 am
CreatureSoundData.dbc
Title: Re: [QUESTION] [WotLk] give sound to npc?
Post by: Amaroth on May 12, 2016, 11:12:12 am
https://wowdev.wiki/DB/CreatureDisplayInfo (https://wowdev.wiki/DB/CreatureDisplayInfo" onclick="window.open(this.href);return false;)
Field #13. Reffers to:
https://wowdev.wiki/DB/NPCSounds (https://wowdev.wiki/DB/NPCSounds" onclick="window.open(this.href);return false;)
Which reffers to sound entries you've made.
Title: Re: [QUESTION] [WotLk] give sound to npc?
Post by: schlumpf on May 12, 2016, 11:19:02 am
Note that there are multiple ways to NPCSounds: Either via CreatureDisplayInfo or via CreatureSoundData which is referenced from either CreatureDisplayInfo or CreatureModelData. It depends on how specifically you want to override them.
Title: [SOLVED] Re: [QUESTION] [WotLk] give sound to npc?
Post by: Thoraric on May 12, 2016, 01:10:39 pm
Thank you guys