代码拉取完成,页面将自动刷新
#DressNPCs [![Build Status](https://travis-ci.org/Rochet2/TrinityCore.svg?branch=dressnpcs)](https://travis-ci.org/Rochet2/TrinityCore)
####About
You can make an NPC, set the displays or items you want him to have and his race and gender (defines displayID) as well as facial features and skin color.
All this is done in the database.
The values for skins and features range from 0 to 12 or something .. not quite sure how many there are. (it varies for races)<br />
***Note*** The items can use positive value as item entry and negative for displayid.<br />
Source: http://rochet2.github.io/Dress%20NPCs.html
Known bugs: Portraits dont work properly - a client side visual bug
####Installation
Available as:
- Direct merge: https://github.com/Rochet2/TrinityCore/tree/dressnpcs
- Diff: https://github.com/Rochet2/TrinityCore/compare/TrinityCore:3.3.5...dressnpcs.diff
- Diff in github view: https://github.com/Rochet2/TrinityCore/compare/TrinityCore:3.3.5...dressnpcs
Using direct merge:
- open git bash to source location
- do `git remote add rochet2 https://github.com/Rochet2/TrinityCore.git`
- do `git pull rochet2 dressnpcs`
- use cmake and compile
Using diff:
- DO NOT COPY THE DIFF DIRECTLY! It causes apply to fail.
- download the diff by __right clicking__ the link and select __Save link as__
- place the downloaded `dressnpcs.diff` to the source root folder
- open git bash to source location
- do `git apply dressnpcs.diff`
- use cmake and compile
After compiling:
- Run `\src\server\scripts\Custom\DressNPCs\world.sql` to your world database
####Usage
Create a row to `creature_template_outfits` table with your desired race, gender and equipped items.
Create an NPC. Set the `creature_template_outfits` entry to the modelID column in `creature_template`, but __make it negative__.
Clear wow cache folder, restart server and spawn the NPC.
The patch also adds `.reload creature_template_outfit` command. You can use it to reload the creature outfit table again for testing.
You should be able to reload the table with new entries of ingame creatures. Relog to update the visual look of creatures with the reloaded data.
__Using reload is not recommended.__ (not outfit nor template)
####Bugs and Contact
Report issues and similar to http://rochet2.github.io/
Example:
SET @NPCENTRY := 6;
REPLACE INTO `creature_template_outfits` (`entry`, `race`, `gender`, `skin`, `face`, `hair`, `haircolor`, `facialhair`, `head`, `shoulders`, `body`, `chest`, `waist`, `legs`, `feet`, `wrists`, `hands`, `back`, `tabard`)
VALUES (123, 11, 1, 14, 4, 10, 3, 5, -31286, -43617, 0, -26267, -26270, -26272, 0, 0, -43698, 0, 0);
-- INSERT INTO `creature_equip_template` (`entry`, `id`, `itemEntry1`, `itemEntry2`, `itemEntry3`)
-- VALUES (@NPCENTRY, 2, 32946, 32945, 0);
UPDATE `creature_template` SET `modelid2` = -123 WHERE `entry` = @NPCENTRY;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。