Explored rooms list

Posted by Lerkista on Sat 20 Sep 2014 06:39 PM — 4 posts, 19,357 views.

#0
Hi

Any idea how i can implement this?

I want my map only display explored rooms, something like aardwolf

In LPC i can do it easily with "mappings", you can do things like:

mapping explored;

explored = ([]);

explored[21000] = 1;
explored[21001] = 1;
explored[21002] = 1;

and can search values as simple as:

a = 21000;
if( list[a] )
return "room explored."

Anything like that??

Or any idea to do this??

I don't know if using an array to store the vnums and check the entire list with every room everytime i show the map can make the mud slower
Australia Forum Administrator #1
On the client side or the server side? On the server side you would need to remember, per player.
#2
Hi

In the server side, so i need to add a variable to the player to store all the explored vnums, buy i don't know how to make it with less resources
USA #3
There's not a less resources option. Every option is at least a linear growth per player per room in memory utilization as your (ideally) database of explored rooms expands with player base growth and exploration of the realm.