Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Zorgo on February 18, 2012, 10:39:41 am
-
Hi Guys
Ich create some Display IDs for my Server.
The soldier that I create are very nice and I can morph me in all of this. (The Npcs I can moprh, too.)
My problem is. If I create a new Npc in the DB and give them the Display Id from my soldier, the dont spawn in the world.
The Core said:
Syntax: .npc add #creatureid
Spawn a creature by the given template id of #creatureid
What is here the problem....pleas help me.... :?
-
Assuming you use Trinitycore:
You add creatures in the database by adding them in the 'creature_template' table. If you do not know how to do this i advice to use a database editor such as Truice.
in this creature_template table, you give your npc an unique number called an 'EntryID'. this is the number which you need to spawn your npc with ingame.
So if i create an npc in the database with EntryID: 12345
I would need to type this ingame to spawn him: .npc add 12345
I hope that answers your question.
-
If we create NPC with a custom displayid we cant spawn this npc. But if we create npc with a normal blizzard displayid we can spawn the NPC.
We test the DisplayID's mith morph and all display id's work.
-
you need to add your displayid to creature_model_info
i've the same problem with spells
-
Thx it Work's :D
-
Yes thank you.
But now the Npc spawn in Deathstate.....why? o.o
And which data in the Db make this. Sry I didnt work for a long time with the Db and Trinity... >.<
-
Solved! Thx^^
-
And how did you solve it?
How should another guy with the same problem do.
-
Oh ehm sorry.
I must set a Entry in the 'creature_model_info'.
Here I can insert the Display ID and then I can spawn the npc.
-
Thanks :) This will perhaps help some other modder with the same problem.
-
If the npc dead spawn you most set
http://www.trinitycore.info/Creature_te ... type_flags (http://www.trinitycore.info/Creature_template_tc2#type_flags" onclick="window.open(this.href);return false;)
on 1