i'm instantiating NPCs through smartfox and moving them arround, everything works fine but there is one thing that could be an issue. When i purge all active NPCs on the server they get disconnected, however the admin panel still shows a number of users in the zone.
Code: Select all
for user in mmoroom.getUserList() :
if user.isNpc():
_sfsApi.disconnectUser(user)
is used to remove them. Now my issue is that the Zone Monitor shows 8 users in the zone while really no NPCs or Players are in the room. Any idea what's causing this ?
Also, i was thinking i could spawn NPCs as "MMOItems" instead - whats the better approach here ? I got the feeling that the way the examples show the NPC integration was done before smartFox actually implemented MMOItems. So as for best performance/stability it might be better to use MMOItems feature instead ?
Best regards,
n.