|
Moving between maps... probably wouldn't be too hard. Every time a NPC moves, check if they hit a warp (just like players), then if they do, delete them from the map and re-create them on the next map in theres a valid position (all functions already part of the server).
For between servers it may be a bit harder - same sequence, but you'd have to add a packet telling the other server to tell them to create the NPC but as "thralled" since they don't want to re-create the NPC when it dies. To be safe, you may want to pass back and forth a packet confirming that the NPC CAN be created before deleting it off the one server and adding it to the new, or else you could loose that NPC until the map is reset.
|