[center:2bft6105]Remember when you first entered the gates of your capital city and found the faction leader?
Must of been a shame if you was a human; Bolvar Fordragon had a regular human voice :lol:[/center:2bft6105]
This tutorial is about adding custom greeting/farewell/stoppokingme voices to a custom NPC.
You will need:
~ Some voices.. audio files etc for your NPC.
~ A DBC editor. Taliis is recommended.
~ Three DBC files: SoundEntries.dbc, CreatureDisplayInfo.dbc and NPCSounds.dbc
~ A server emulator to create and test out your custom displayID. (ArcEmu is used here)
~ A bit of strength, stamina and intellect. Drink some Red Bull and get buffed up.
RIGHT! First we must obtain some audio files. You can either record your own voice; steal some off another source or just use placeholder sounds. It doesn't matter, as long as you have audio files!
Once you have all the audio files; ensure that they are named correctly. You have to split your audio between 'greeting', 'farewell' and 'pissed'. My NPC doesn't have a farewell voice, so you may have to envision this yourself.
[center:2bft6105]
[/center:2bft6105]
Once you have your files; Put them in a folder somewhere within your project directory.
Ex: SoundCreatureCustomcustom_test-1.wav etc etcNow comes the most integral part of the process. Open your DBC editor and open NPCSounds.dbc, CreatureDisplayInfo.dbc and SoundEntries.dbc...
[center:2bft6105]
[/center:2bft6105]
First of all, open SoundEntries.dbc and prepare to edit. Copy a row and follow these steps:
Column #1 is simply the ID for your audio. Change it to 20020 or another number.
#2: the type of audio. Change this to 17.
#3: the string which describes the audio. To edit this, click on 'Strings' and notice the bar at the top. Enter your desired descriptive name and click the green + button. Then copy the #offset number and paste it into column 3.
[center:2bft6105]
[/center:2bft6105]
#4: the string which is the name of the actual audio file. Once again, go into strings and add this.
[center:2bft6105]
[/center:2bft6105]
#5: every column after #4 is extra space to add extra audio files. Go into strings and add your audio files, then paste the #offsets into those columns.
[center:2bft6105]
[/center:2bft6105]
Now you must skip to column #23. Once again, we have another string offset. You must edit this to the filepath of your audio files. Go into strings once again and add the filepath.
[center:2bft6105]
[/center:2bft6105]
Column #24 is the volume of the audio. I have changed it to 1.0, however it is up to you.
Column #26 is the distance of the audio. Keep this the same.
Column #27 is similar to above. Keep it the same unless you feel experimental.
Same applies for the last two columns.
You must repeat these steps for the pissed and farewell sounds. :twisted:
[center:2bft6105]
[/center:2bft6105]
Once you have completed this, you must go into CreatureDisplayInfo.dbc. Once again; copy a row from there. Now - my NPC is Stormwind guard with a unique voice; so I have copied the displayID of a Stormwind guard. Choose what you copy carefully. There are guides on this forum which tell you how to create your own NPC with customized armour etc.
Change the ID to 40000 or something similar and then skip straight to column 12. This column points to NPCSounds.dbc and holds the information for your NPC voices. Go into NPCSounds.dbc...
Once again; copy a row and begin editing.
Column #0 is the ID. Change it to 700 or whatever.
#1: the greeting sounds. Enter the ID of your greetings sounds from SoundEntries here.
#2: the farewell sounds. Same as above but with a different ID.
#3: the pissed sounds. Same as above.
[center:2bft6105]
[/center:2bft6105]
Go back into CreatureDisplayInfo and add the ID of your custom voice to the column.
Save all of your DBC files and create an MPQ with both the voices and the DBC files within.
AT LAST! We have created a 'custom' displayID with custom greeting/farewell sounds! /CHEER!
Now you must implement an NPC into your server's database so we can test that this works correctly.
If you have basic knowledge of how it all works; then this should be a walk in the park.
I use websites like Wow-V to create custom NPCs. When you are in the process of creating your NPC; ensure that it's displayID is the same as the custom row you made in CreatureDisplayInfo (in my case; it was 40000).
Start up your server, make sure your MPQ patch is in your Data folder and start up Wow!
Now: go into your server and spawn your NPC. For ArcEmu this is .cr sp 40000 (in my case).
Once your NPC is spawned, click on him/her and you will hopefully hear your custom audio!
[center:2bft6105]SUCCESS! [/center:2bft6105]I will add a video of my custom NPC soon.