Welcome to PenUltima Online. Click to login or register.

Functions:

ListStaticsNearLocation( x, y, z, range, flags := 0, 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 Static or Multi Items within range squares of (x,y,z).
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:
// ListStatics* flags
const ITEMS_IGNORE_STATICS      := 0x01;    // Don't list Static Items
const ITEMS_IGNORE_MULTIS       := 0x02;    // Don't list Multi Items

// special value for List[Items/Mobiles/Statics]*
const LIST_IGNORE_Z             := 0x40000000; // Ignore Z-Value and list everything
Return values
Array of Structs with members "x", "y", "z" and "objtype" or Error.
Errors
"Invalid parameter"
"Realm not found"
"Invalid Coordinates for Realm"
Related
Item
Array