This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [DBC] Creating New Player Titles  (Read 2188 times)

Valkryst

  • Moderators
  • Model Change Addict
  • *****
  • Posts: 224
    • View Profile
    • http://valkryst.com/blog/
[DBC] Creating New Player Titles
« on: June 04, 2014, 06:46:25 pm »
Before I start typing out this guide, I will admit that I'm no expert on DBC editing and that some of this information may be incorrect. If you know of any additional information, notice an error, etc.. just comment and I'll do my best to keep this post updated.

There are a few things that you'll need before editing a DBC file. I've seen many different programs, and even more people recommending each program over every other program, but the vast majority either didn't work or corrupted the DBC files. I'll only be recommending the programs that work for me. So, before you continue reading, please download this; it contains everything that I use. These programs will only work on Windows.

Just in case anyone wants to know what I'm running:

  • Windows 8, x64 -- Home
  • Debian 7 x32 -- Server
  • TrinityCore -- Latest version as of 5/June/2014
  • WoTLK 3.3.5a

Assuming that you've followed my instructions to download the toolsthat we'll be using in this tutorial, lets begin!

The two questions that you should ask yourself before creating a new title are:

  • What will the title be? Will it be "Lord PlayerName", "Prisoner PlayerName", etc..?
  • How will the player get the title?

The most difficult part about creating titles is not the DBC editing. The most difficult part is figuring out how the player will get the title. If you're running a funserver then this doesn't apply too much, but if you're running a highly customized or blizzlike server then you need to give some thought as to how difficult the title should be to attain and how it will be attained (achievements, quests, custom events, etc...).

Quote
Tip:
When editing any files that can be packed into an MPQ file, you can just go into your Data/enUS/ folder and create a new folder, lets call it "patch-enUS-n.mpq", and place all of the files that you would place into the MPQ file in there. This is extremely useful if you don't want to keep on creating a new MPQ file every time you go to test new edits. When you release the edits you should place them into an MPQ file as it hides everything from the average user.

Credits to MyLilSuccyfor this information.

If you already know how to edit DBC files, which I'm going to assume that most of the people reading this don't, then you can skip to the end of this post and check out my notes on the DBC files. Although I would recommend doing a quick read-through of the tutorial. :)

The rest of this will be a simple explanation of how to add a new title to the game.

-----------------------------------------------------------------------------------------------------------------------------------

Now that you've downloaded the toolsand have a folder of clean, unedited, DBC files to work with and revert to in-case of any unforeseen errors, lets begin!

Go to the folder containing your DBC files, copy the CharTitles.dbc file into the /Tools/DBCUtil/ folder, and then double-click on DBCUtil.exe. Now go to the /Tools/CSVed/ folder, double-click on CSVed.exe, select File then Open... and select /Tools/DBCUtil/CharTitles.dbc.csv. Now scroll to the bottom of the file, right-click on the last record, select Copy Selected Row(s) then right-click on the last record again and select Paste Record(s) below Cursor Position. The next step is fairly simple as you'll just be filling in columns so double-click on the row that you just copy-pasted in and fill in the following.

  • Column 1 - 178
  • Column 2 - 0
  • Column 3 - "King %s"
  • Column 19 - 0xFF01FE
  • Column 20 - "Queen %s"
  • Column 36 - 0xFFo1FE
  • Column 37 - 143

When you finish editing the fields just click Apply Changes in the bottom-center-right of the field editing window, exit that window, save the file by selecting File and then Save, and then close CSVed.exe. Now go into /Tools/DBCUtil/ and drag CharTitles.dbc.csv onto DBCUtil.exe (make sure that you've deleted the original CharTitles.dbc file first). Now copy the new CharTitles.dbc file into your /server/bin/data/dbc/ folder and then create the folder structure to paste CharTitles.dbc into /Tools/mpqediten64/Modified Files/DBFilesClient/. Don't stop here, we're almost done! Go to /Tools/mpqediten64/, double-click on MPQEditor.exe, ant then click New MPQ. The MPQ name must start with patch- and end with either a single number or letter. For the purpose of this tutorial we will call it patch-5. For the patch name enter patch-5, click Next, select Build the MPQ archive from a file or directory, point the folder to build from to /Tools/mpqediten64/Modified Files/, make sure the compatibility is for World of Warcraft - Wrath of the Lich King, and then keep clicking Next/Finish until the window closes. Now close MPQEditor.exe and move the patch-5.mpq file from /Tools/mpqediten64/ to your /WoW/Data/ folder, restart your server, and test the new titles. If you did everything correctly you should see something similar to the images below.




-----------------------------------------------------------------------------------------------------------------------------------

CharTitles.dbc

  • Column 1 - Unique ID of the row.
  • Column 2 - According to the TinityCore documentation, this is never used. Unless this changes in the future, keep the value as zero.
  • Column 3 - The male title.
  • Column 19 - This is always 0xFF01FE. I haven't found any documentation on this field. For some information on this value see this page.
  • Column 20 - The female title.
  • Column 36 - This is always 0xFF01FE. I haven't found any documentation on this field. For some information on this value see this page.
  • Column 37 - Unique ID of something. The documentation I've seen only says that this is "Used in-game by the drop-down menu." The numbers don't seem to repeat and after a few tests they don't seem to indicate the order in which the titles will be sorted in the in-game drop-down menu.

When creating titles the only variable that can be used is %s. When using the %s variable you can place it anywhere in the title, although I'm not sure if you're able to do something such as "Grand Cr%susader". For example, you can type "Grand Crusader %s" and it will show up as "Grand Crusader Bob" if your players name is Bob. Take a look in the DBC file for more examples.

There are also separate titles for both male and female titles. The male title will only show up on male characters and the female title will only show up on female characters.

-----------------------------------------------------------------------------------------------------------------------------------

If you want to stay up-to-date with my latest tutorials or if you just want an easier way to view all of my tutorials and releases in one place then take a look at my blog.
« Last Edit: June 05, 2014, 10:54:12 pm by Admin »
MY BLOG IS NOW HERE.

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [DBC] Creating New Player Titles
« Reply #1 on: June 05, 2014, 12:47:51 am »
Quote from: "Valkryst"
Column 3 - "King %s"
In this is one factor that i personaly love
you dont need to have %s in title so you can by customized titel completly rename your self :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9