Welcome to PenUltima Online. Click to login or register.

Functions:

ListItemsNearLocationOfType( x, y, z, range, objtype, realm := _DEFAULT_REALM )
Parameters:
Name Type
x,y,z Integer world coordinates
realm String - case-sensitive name of the realm
range Integer
objtype Integer
Explanation
Searches the world for items within range squares of (x,y,z) of type objtype.
Notes: 19 is used for the Z-Range or use LIST_IGNORE_Z constant as Z Parameter to list all Items ignoring Z-Value. Rectangular range is used - x-range and y-range are compared independently.
Notes: from uo.em constants:
// special value for List[Items/Mobiles/Statics]*
const LIST_IGNORE_Z             := 0x40000000; // Ignore Z-Value and list everything
Return values
<uninitialized object> if invalid parameters, or Array of Item References of Items matching "objtype" found near the location.
Errors
"Realm not found"
"Invalid Coordinates for Realm"
Related
Item
Array