Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > add_room_to_zone

API Function: add_room_to_zone

Summary:
add a room to a zone and assign it a number

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

Prototype:
void add_room_to_zone(object room, int num, int req_zone)

Can Be Called By:
System, Common, Game

Description:

Add a registered room to a zone, or autoassign a zone. Give the room the specified number, or autoassign a number. If num or req_zone is -1, the value is autoassigned, otherwise the number specified is used.

The room's number will be set with set_number().

Return Value:

None.

Errors:
If an unregistered room is given, or num or req_zone cannot be used as specified, an error occurs.

See Also:
add_room_object , get_room_by_num