Players join with id 0, and have NPC?
#5

Quote:
Originally Posted by McKinley
NPC-bots are counted as players too. So if you have 100 slots and 5 NPC-bots, you'll only have 95 slots.
I think he already knows that, he was asking if there could be NPCs on the server (which connect from ID 0>) and have players connecting with ID 0.

It's possible; if you added "fake" bots for the player slots from 0+, then your real NPCs, and kicked the fake ones.

Here's an example:
- I have a 100 slot server
- I have 20 NPC's
- I would have 80 playable player slots after adding the NPCs
- In that case, I would write a script to connect 80 fake bots, taking up player IDs 0-79
- The script(s) would then add the 20 real NPCs, taking up player IDs 80-99
- The script would then kick the 80 fake bots, freeing up player IDs 0-79 and allowing players to connect as normal from player ID 0+
Reply


Messages In This Thread
Players join with id 0, and have NPC? - by johnnyyy - 23.01.2010, 05:45
Re: Players join with id 0, and have NPC? - by aNdReSkKkK - 23.01.2010, 06:03
Re: Players join with id 0, and have NPC? - by Andy_McKinley - 23.01.2010, 06:52
Re: Players join with id 0, and have NPC? - by johnnyyy - 23.01.2010, 07:32
Re: Players join with id 0, and have NPC? - by ev0lution - 23.01.2010, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)