Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > get_zone_for_room

API Function: get_zone_for_room

Summary:
find out what zone number a room is in

Defined In LPC Object:
/usr/common/sys/zoned.c

Prototype:
int get_zone_for_room(object room)

Can Be Called By:
System, Common, Game

Description:

Gets the zone number for a given room. Zone 0 is special, and means 'unzoned', or rooms in segments that aren't assigned to any zone.

Return Value:

Zone number, or 0 for unzoned, or -1 for query denied.

Errors:
Normally none.

See Also:
get_name_for_zone , get_segments_in_zone