Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > get_room_by_num

API Function: get_room_by_num

Summary:
finds a room by its room number

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

Prototype:
object get_room_by_num(int room_num)

Can Be Called By:
System, Common, Game

Description:

Returns a room object given the room number. The number is assigned by add_room_to_zone.

Return Value:

The room object, or nil if it can't be found.

Errors:
Normally none.

See Also:
add_room_to_zone