Take the Tour | Site Map


Documentation
Downloads
Scripts
Community
EUO FAQ
Search

Name

findItem — Finds items, monsters, players, NPCs based on object ID or object type.

Synopsis

findItem {{id} | {type} | *} [index] [[G] | [G_{dist}] | [C] | [C_{container id}]]

Description

The findItem command finds objects given by their ID (6-8 letters) or any object type (2-3 letters). If no index is given the first object found is returned in the #FIND* variables. If an index is given, the {index}'th object is returned in the #FIND*. If * is used instead of an id or an index, all items of all types will be returned.

Table 11. findItem options

ArgumentDescription
COnly objects in containers are returned.
C_{container id}Only objects in the container given by {container id} are returned.
GOnly objects on the ground are returned.
G_{dist}Only objects on the ground, and no farther than {dist} are returned.

Example

initEvents

set %regbag XXXXX ; <- replace with your own bag

; find an dagger on the ground within 2 tiles (pickup distance)
; and picks it up and drops it at a specific position
findItem TSF G_2 ;
if #findkind <> -1
{
  event Drag #findID
	wait 20
	click 200 300 p
}

; find a stack of black perl in a specific bag and moves it
; to a specific position
findItem KUF C_ , %regbag
if #findkind <> -1
{
  event Drag #findID
	wait 20
	click 200 300 p
}

See Also

ignoreItem, #findID, #findType, #findX, #findY, #findZ, #findDist, #findKind, #findStack, #findBagID, #findRep, #findCol, #findCnt

User Contributed Notes
/www/www.easyuo.com/docs/Command_findItem.php
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Thu, 10 Jan 2008 - 14:22:32