Sign in to follow this  

How to use Rochet2’s DressNPCs Patch


Before I start typing out this guide, I must note that this tutorial is only on how to use the patch to create new NPCs and that it requires the use of the stored procedure found here. I will not be explaining how to compile the DressNPCs patch into your core.

If you know of any additional information, notice an error, etc.. just comment and I’ll do my best to keep this post updated. In this tutorial I will assume that you know enough to be able to use WoWModelViewer and to execute a query on your database. If anything seems unclear or incorrect, just post below and I’ll look into it.

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

  • Windows 8, x64 — Home
  • Debian 7, x64 — Server
  • TrinityCore — Latest version as of 20/June/2015
  • WoTLK 3.3.5a

Now that you have WMV downloaded and open, begin by selecting a playable race (it may work for unplayable races, but I haven’t tested) and customizing the look and equipment. When choosing skins, hair, faces, etc… you may only use those which are available for players to use, this is the first limitation of the DressNPCs patch. The second limitation is that you may only use weapons that have both a displayID and an equipmentID listed as the weapons cannot work if you use a displayID.

Post-44-Image-1.jpg

After creating your NPC, take the query from here and copy-paste it into your text editor of choice. You simply need to copy the values from WMV into the query and execute the query onto your world database. As an example of how to fill out the file…

 

A creature can use up to four displays which can include either all custom displays, all pre-existing displays, or a mix of the two. A creature can also have just a single display. When entering the display ID onto creature a creature in world.creature_template, we will use the display -80000 and place it into the column modelid1. All custom displays made using the process in this tutorial must be the negative of the value that is used as the display ID in the query above. The ID in the query does not need to be the same as the ID of the creature it is being applied to, this is just a convention that I’ve grown to use.

Once the query has been executed, the display ID set, and the server restarted; the finished model should looks like the following.

Post-44-Image-3.jpg

I do realize that the shield is different than the WMV preview. I’ve edited the model on my server since that preview. The query in this post also uses the shield in the image above.


Additional Notes:

As you may already know, you can save and load created NPCs in WMV through Character -> Save Character and Character -> Load Character. When you load a character, the values for skin color, face, hair, etc… will be wrong, so you’ll need to change one of these values and then change it back to get the correct values. You can see the difference in the image below if you compare it to the almost identical image near the beginning of this post.

Post-44-Image-2.jpg



Recommended Comments

The links in the tutorial above may be out of date. If they are, then you can most-likely find an up-to-date link to the blog here.

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now