UO ASSISTANT / VERSION 0.4.0

Find what is loaded

Trees, cave tiles, items and open windows, with name, graphic and hue filters.

Full scripting guide

Scanning terrain, items and open gumps

UO Assistant 0.4.0 adds scanTiles, findItems and findGumps. These methods inspect loaded client facts without opening containers, asking the shard for names, loading map blocks or clicking controls. The SDK now exposes 48 methods. Three new read-only examples are available in the script example selector and SDK/examples.

Query properties are PascalCase. Unknown property names are rejected, so a misspelled filter cannot silently broaden a search. Name matching ignores case and uses substring matching unless ExactName is true. Graphic and Hue are numeric artwork and colour identifiers; a serial identifies one actual item.

Run a new search before acting on a result. Ordinary useObject, targetGround, waitForTarget and dialog-reply methods retain their existing live checks. Inspection does not create a target or dialog reply lease.

Nearby trees and cave tiles

scanTiles({ Kind: "Tree", Radius: 12 }) reads map statics around the player. Kind also accepts Cave, Land, Static and Any. Combine Name, ExactName, Graphic and Hue filters. Radius is 0-18 tiles; only currently loaded cells within the client view are inspected.

Each page returns Map, X, Y, Radius, CapturedUtc, Tiles, NextOffset, UnloadedTiles, Truncated and Complete. A tile has X/Y/Z, original Graphic, seasonal DisplayGraphic, Hue, Name, Kind, Tree, Cave and Distance. Keep the returned Map/X/Y and the same radius/filters for every page. Continue with NextOffset until it is null. Sum UnloadedTiles and retain any Truncated flag from every page before claiming a complete area scan.

Native work examines at most 32 cells per page, returns at most 256 matches and observes the existing cooperative 2 ms budget between cells. A dense cell is capped at 128 linked objects. Limits are reported explicitly. Moving or changing map can invalidate a multi-page observation; start again after moving.

Tree classification uses the client tree filter. Cave classification uses the configured static cave filter; land tiles whose tile-data name contains cave are also candidates. Custom shard graphics may need an explicit Graphic or Name query using Kind Any. Classification does not prove that the server permits chopping or mining, or that resources remain.

Finding loaded items by name or graphic

findItems({ Name: "axe", Scope: "Owned", Graphic: 0x0F49 }) combines the requested filters. Scope can be Any, Ground, Owned, Equipped or Backpack. A numeric Container restricts the search to its contents; Recursive defaults to true. Range is 0-32 and applies to Ground scope. Movable and IsContainer can further narrow results; Limit is 1-512, default 128.

The returned Items use the best known cached property name, item name or tile-data name. Complete refers to currently captured facts, not the entire shard. UnknownNames counts items with no searchable name. Missing inventory, truncated results and unopened requested containers are reported as partial. No property request is sent and unseen container contents cannot be discovered by scanning.

An item result can be used with useObject(item.Serial) after checking that it is still the intended accessible object. For static trees use the coordinates and original Graphic with targetGround after waiting for the axe cursor.

Inspecting general game windows

findGumps() includes visible local game windows and server dialogs belonging to the current world. Filter by Type, LocalSerial, ServerSerial, Name, Graphic or Hue. Name searches the window type or visible control text. Graphic and Hue identify artwork on a matching control. Follow NextOffset for further pages.

Each window includes Type, token, local/server identifiers, position, size, active page, FromServer, Controls and Truncated. Controls include their type, serial, position, size, page, enabled state, text and supported graphics/hues; buttons also expose Button, Action and ToPage. Nested visible controls are inspected to depth 12, with at most 256 visited controls per window. Hidden controls and inactive pages are excluded.

Editable fields are excluded from this general inspection. Text is limited to 256 characters and may contain HTML markup. A scan can be partial when the time, window or control budget is reached. Opening, closing or changing a window while paging can change results; rescan before acting. Replies to server gumps still require waitForGump and a current reply lease. Native windows are inspection-only through this API.

Longer bounded scripts and testing

Scripts may explicitly select a run limit from 1 to 1800 seconds. The default remains 60 seconds. At up to 300 seconds the existing budgets remain 250,000 statements, 1,024 host calls and 256 dispatched requests. Longer limits multiply these by ceil(seconds / 300), up to six times. Read-only native scans count as dispatched requests. The 16 MiB memory, recursion, source size, output and per-call bounds are unchanged.

Stop, disconnect, session changes and shard policy still end or refuse affected runs. A script must report unfinished work when it reaches its time, operation, weight or tool limit. A bounded run is not an unlimited background service.

The offline bench can search its captured item snapshot. It refuses terrain and general gump scans because those facts are absent from that snapshot. Connected-client and synthetic native tests cover those methods; do not treat an offline success as evidence of live harvesting.

This development preview has automated client, host and synthetic script checks. Live shard harvesting, custom cave graphics and populated-world scan performance still require receiving-system gameplay checks.