ID:271961
 
I was thinking that everytime a player or players enter the dungeon it checks to see if there is a turf in the specifed location(Ex: 21,22,x(x equaling the variable used for the loop)). using a for loop and when it finally finds space it creates the dungeon. But I realize that on a server of like 50 as a good number of people on a game, that would cause a lot of lag. It would probably crash the server if like 3 dungeons were being instanced at once. Also I know that when the party clears a dungeon I would have to delete the dungeon.

If any one has any suggestions on an alternate way please post a reply.
http://www.byond.com/developer/LummoxJR/SwapMaps
http://www.byond.com/developer/Popisfizzy/pif_MapLoader

There are two libraries that will handle map loading for you (and saving, though you probably won't need that). The trick is going to be removing the instances when they are no longer in use.
Any one. I just need to see if there is an alternate way due to the fact as I said the way I would do it would probably cause the server to crash.
In response to Garthor
Thank you that is quite helpful.