[Package Index | Mudlib Index | Effect Index]
Written by ceres
inherit "/std/map"; void setup() { set_name("map"); set_short("map"); set_main_plural("maps"); set_long("This piece of parchment appears to be a map of the area " "around Ankh-Morpork.\n"); set_weight( 1 ); set_length( 18 ); set_width( 12 ); set_value( 6000 ); set_material("paper"); set_map("sur"); }
.
int distance(int * c1, int * c2)
void set_map(string area)Function to set the map to one of the standard areas. If you wish to have the map cover a custom area use setup_map.
void setup_map(int x1, int y1, int x2, int y2, int detail)Function to setup the details of the map. The first two params give the coordinates of the lower left corner of the map and the second two the coordinates of the top right corner. The detail indicates the level of detail. This is given in terms of the distance from which objects are visible. For example a low-detail map might show objects that are visible from 200 miles or more whereas a more detailed map may show items down to 50 miles visibility.