solin wrote:
yes it does show info.
now I found this
,findtype type [color container_object|ground|my] - seek for object and point finditem on it if found.
Number of item stacks found may be retrieved by uo.findcount()
this is almost what I need, the only trouble is that it is scaning all the squares in finddistance, just if I can set the coords where it should scan, it will be great
Is'nt supported.
You must search using finddistance and filter search results.
e.g.:
Code:
; rock description
var rock_type = '0x0000'
var rock_colr = '0x0000'
; search tile x,y
var tile_x = 1500
var tile_y = 1600
var result = false
uo.ignorereset()
uo.findtype( rock_type, rock_colr, 'ground' )
while uo.findcount()
if uo.getX( 'finditem' ) == tile_x and uo.getY( 'finditem' ) == tile_y then
result = true
endif
uo.ignore( 'finditem' )
uo.findtype( rock_type, rock_colr, 'ground' )
wend
if result then
; rock was found in defined coordinates
else
; rock wasnt found
endif