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

Title: [Solved] Npcs not spawn!
Post 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....  :?
Title: Re: [Question] Npcs not spawn!
Post by: Laniax on February 18, 2012, 12:49:16 pm
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.
Title: Re: [Question] Npcs not spawn!
Post by: Blackplayer27 on February 18, 2012, 08:54:23 pm
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.
Title: Re: [Question] Npcs not spawn!
Post by: doresain on February 18, 2012, 10:14:11 pm
you need to add your displayid to creature_model_info
i've the same problem with spells
Title: Re: [Question] Npcs not spawn!
Post by: Blackplayer27 on February 19, 2012, 12:11:02 am
Thx it Work's :D
Title: Re: [Question] Npcs not spawn!
Post by: Zorgo on February 19, 2012, 02:11:11 am
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... >.<
Title: Re: [Question] Npcs not spawn!
Post by: Zorgo on February 19, 2012, 01:50:31 pm
Solved! Thx^^
Title: Re: [Solved] Npcs not spawn!
Post by: Steff on February 19, 2012, 10:46:37 pm
And how did you solve it?
How should another guy with the same problem do.
Title: Re: [Solved] Npcs not spawn!
Post by: Zorgo on February 20, 2012, 09:32:00 am
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.
Title: Re: [Solved] Npcs not spawn!
Post by: Steff on February 20, 2012, 10:46:45 am
Thanks :) This will perhaps help some other modder with the same problem.
Title: Re: [Solved] Npcs not spawn!
Post by: Blackplayer27 on February 20, 2012, 12:17:02 pm
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