Welcome to PenUltima Online. Click to login or register.

Functions:

ListMobilesNearLocationEx( x, y, z, range, flags, realm := _DEFAULT_REALM )
Parameters:
Name Type
x,y,z Integer world coordinates
realm String - case-sensitive name of the realm
range Integer
flags Integer
Explanation
Searches the world for mobiles within range squares of (x,y,z).
Notes: uo.em constants for flags - include mobile types:
const LISTEX_FLAG_NORMAL := 0x01;
const LISTEX_FLAG_HIDDEN := 0x02;
const LISTEX_FLAG_GHOST  := 0x04;
const LISTEX_FLAG_CONCEALED  := 0x08;
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
An Array of Character References of mobiles found matching the search criteria.
Errors
"Invalid parameter"
"Realm not found"
"Invalid Coordinates for Realm"
Related
Character
Array