Bonehard
06-13-2014, 03:06 PM
Hello,
i have start to add npc's to my zone just for testing and have found a problem i can't fix.
first i start with the #spawn command to add npc to my location:
#spawn TestMob 303 85 0 10000 2
Thos works like it should.
The npc with the correct race shows up at my position.
To create a new entry to the npc_types table i do the #npcspawn create command:
( Npc selected )
#npcspawn create
I get the information that:
TestMob0000 was created successfully.
But the npc where not added to the npc_types table.
For testing i did after the #npcspawn created the #npcspawn add to have an entry to the spawn table.
When i look into the spawn2 table i got an new entry. And there is also an spawngroup entry and spawn event but the npc id is set to 0.
I did also some test an adding an npc via sql with id and without id to see if the auto-increment value is set correctly and it was working.
Anyone can give me some hints where my problem could be?
Sourcecode and database rev. should be up to date.
I did also look into the tutorials how to create npc. :)
i have start to add npc's to my zone just for testing and have found a problem i can't fix.
first i start with the #spawn command to add npc to my location:
#spawn TestMob 303 85 0 10000 2
Thos works like it should.
The npc with the correct race shows up at my position.
To create a new entry to the npc_types table i do the #npcspawn create command:
( Npc selected )
#npcspawn create
I get the information that:
TestMob0000 was created successfully.
But the npc where not added to the npc_types table.
For testing i did after the #npcspawn created the #npcspawn add to have an entry to the spawn table.
When i look into the spawn2 table i got an new entry. And there is also an spawngroup entry and spawn event but the npc id is set to 0.
I did also some test an adding an npc via sql with id and without id to see if the auto-increment value is set correctly and it was working.
Anyone can give me some hints where my problem could be?
Sourcecode and database rev. should be up to date.
I did also look into the tutorials how to create npc. :)