map.c
ds3.0/lib/secure/cmds/players/map.c · 431 B
From the archive ds3.0.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include <daemons.h>
inherit LIB_DAEMON;
mixed cmd(string args) {
string ret;
int i = atoi(args);
if(!i) i = 6;
if(!creatorp(this_player())) i = 3;
if(i <= 30 && !archp(this_player())) i = 29;
ret = MAP_D->GetMap(environment(this_player()), i, 1);
write(ret);
return 1;
}
string GetHelp(){
return ("Syntax: map\n\n"
"Displays a simple map of your location.");
}