PDA

View Full Version : How to add NPCs?



Jonas
July 5th, 2010, 12:17
...

How can i add NPCs? what a noob questions.. but i really dont know it

Drowning
July 5th, 2010, 14:33
Go to bin>data>npcs>npcspawn.cfg

Now at the top of that file is the layout used in the file to add an npc and make it move etc.
You should see something like

////////////// ID SpawnX SpawnY Height NE X NE Y SW X SW Y Name\\\\\\\\\\\\\\\\
So for example if you wanted to add a man you would add this

spawn = 1 X Y H 0 0 0 0 Man
You would replace X with the X coord where he would spawn and Y with the Y coord of where he would spawn and H with the height (most of the time 0) and the other 4 0's are where he would walk around.
Remember to use tabs between the numbers and not spaces or you'll encounter some errors when running your server.

Jonas
July 5th, 2010, 18:07
There is an Java datei: LoadNPCLists.java