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: [Solved] Npcs not spawn!  (Read 3507 times)

Zorgo

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
  • sic semper tyrannis!
    • View Profile
[Solved] Npcs not spawn!
« 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....  :?
« Last Edit: February 19, 2012, 01:50:55 pm by Admin »
"Für die Republik!"

 -Protektor Nikolai Anvar-

Laniax

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 62
    • View Profile
Re: [Question] Npcs not spawn!
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Current project: AIO Emulation solution.

Blackplayer27

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 52
    • View Profile
    • http://home.pf-control.de/
Re: [Question] Npcs not spawn!
« Reply #2 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.
« Last Edit: February 18, 2012, 11:58:01 pm by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [Question] Npcs not spawn!
« Reply #3 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Blackplayer27

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 52
    • View Profile
    • http://home.pf-control.de/
Re: [Question] Npcs not spawn!
« Reply #4 on: February 19, 2012, 12:11:02 am »
Thx it Work's :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zorgo

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
  • sic semper tyrannis!
    • View Profile
Re: [Question] Npcs not spawn!
« Reply #5 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... >.<
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
"Für die Republik!"

 -Protektor Nikolai Anvar-

Zorgo

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
  • sic semper tyrannis!
    • View Profile
Re: [Question] Npcs not spawn!
« Reply #6 on: February 19, 2012, 01:50:31 pm »
Solved! Thx^^
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
"Für die Republik!"

 -Protektor Nikolai Anvar-

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Solved] Npcs not spawn!
« Reply #7 on: February 19, 2012, 10:46:37 pm »
And how did you solve it?
How should another guy with the same problem do.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Zorgo

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
  • sic semper tyrannis!
    • View Profile
Re: [Solved] Npcs not spawn!
« Reply #8 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
"Für die Republik!"

 -Protektor Nikolai Anvar-

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Solved] Npcs not spawn!
« Reply #9 on: February 20, 2012, 10:46:45 am »
Thanks :) This will perhaps help some other modder with the same problem.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Blackplayer27

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 52
    • View Profile
    • http://home.pf-control.de/
Re: [Solved] Npcs not spawn!
« Reply #10 on: February 20, 2012, 12:17:02 pm »
If the npc dead spawn you most set
http://www.trinitycore.info/Creature_te ... type_flags
on 1
« Last Edit: January 01, 1970, 01:00:00 am by Admin »