NPCs wandering off to other levels.

Hey everyone.

I seem to be having a problem with my NPCs. Every so often they’ll just disappear from where they should be show up on roofs or whatever on other levels.

I have no idea why they are doing this. Does anyone have any idea what this problem is and how to solve it?

EDIT: I apologise if this is in the wrong topic. This just seemed like the logical place to put it.

This might be a GServer bug. Try /updatelevelall when it happens again. Else, I don’t know. :S Nalin might have a look at it.

Thanks for the fast response!

Updating levels fixes it until it happens again.
You probably already know this but it happens for horses too.

Is there any script I can use to make them update themselves every so often?

hmm, I don’t know. there might be a fix for this, but you’d have to talk to Nalin or Beholder about that. Send 'em a PM.

Hmm, after reducing the number of NPCs on the level (and levels that are linked to/from it), it seems to have stopped teleporting them all over the place.

I suppose I could of use a level check with a timeout, but I don’t know the command for checking what level a player or NPC is on :stuck_out_tongue:

[QUOTE=Cadavre;7733]This might be a GServer bug. Try /updatelevelall when it happens again. Else, I don’t know. :S Nalin might have a look at it.[/QUOTE]

Nalin can’t fix this problem, hes tried and nothing.

Maybe if it’s an outside level you could have the NPC not walk beyond the level limits?

Don’t let an NPC’s x or y variable to be be less then zero or more than 64. Other than that, I have no idea. Put something in there so it changes direction when it gets near those coordinates.

Doit bitches!