Loc()
loc(<object>)
Powers: Functions
Returns the database reference number of the location of <object>. To view the location of an object owned by someone else, it either must be in a room that you control with the
Functions power or be an object that you can see from your present location.
The location of a room or zone is the object itself, and the location of an exit is the room of its source.
Players not set
Dark can be located as long as they are in a room set with a
Jump_Ok,
Link_Ok,
Abode, or
Visible flag. Zones not set
Universal can locate any object in any room belonging to the zone.
Example:
[loc(me)] => '#42'
[loc(#42)] => '#42'
Errors:
"#-1 Too far away to see."
- The <object> isn't in your immediate vicinity.
See also: rloc(),
room()
From the TinyMARE Help command - Courtesy Gandalf
--
SluggyQBFreak - 17 Feb 2017