• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Erm spawning an NPC

Crackers

New Member
Joined
Jul 29, 2008
Messages
1
Reaction score
0
yeah how the hell do u spawn an npc theres no where to put where they spawn ... unless im losin it .. can sum 1 explain ive updated to this from neverland 7.6 so its not as easy as i thought took me lik 2 days to sorta understand SQL ... lol
 
yeah how the hell do u spawn an npc theres no where to put where they spawn ... unless im losin it .. can sum 1 explain ive updated to this from neverland 7.6 so its not as easy as i thought took me lik 2 days to sorta understand SQL ... lol

I'm not 100% sure what you're asking, but NPC's are now placed the same way as Monsters, pretty much...

So in your map-spawn.xml file (\data\world\..). Example of Monster and NPC spawn.
Code:
<spawn centerx="909" centery="999" centerz="7" radius="5">
    <monster name="Giant Spider" x="-5" y="5" z="7" spawntime="240"/>
</spawn>
<spawn centerx="1000" centery="999" centerz="7" radius="3">
    <npc name="NPC Dude" x="-3" y="1" z="7" spawntime="240"/>
</spawn>

Hope this helps you somewhat.

Cheers.
 
Use the map editor maybe? Spawning system is exactly the same as an XML server. The only difference is that they save their data in a a database instead of thousands of .xml files. ;)
 
I am trying to add an NPC with the Remere map editor but he just wont appear on the server. First i just added an NPC to spawn.xml without modifying the map like this:

<spawn centerx="1000" centery="999" centerz="7" radius="3">
<npc name="NPC Dude" x="-3" y="1" z="7" spawntime="240"/>
</spawn>
..and he spawned alright. Then i modified a map with some monster spawns (they work) and placed an NPC Spawn on the map + entry to spawn.xml (the correct way i think?) ....but he doesnot spawn. So any advice for a noob would be appreciated.

Edit: okey NPCs spawn only once, i mean on the 1. run its okey, but then they wont spawn. I added a NPC spawn place to the map and to spawns-xml and it worked, but when i start server 2. time, NPCs are missing :(
 
Last edited:
Back
Top