Page 1 of 1
About find item at the ground
Posted: 2005-02-13 10:07:13
by Purple Haze
I want to do one script that reads if it has empty bottle on the ground or not.... if has, the script grab 'em .... like that:
emptybottle = "0F0E"
if
Uo.FindItemAtTheGround("emptybottle") > 1 then
uo.exec("grab 'emptybottle'")
else
uo.print("You didn't find a emptybottle")
endif
Could somebody help me?

cia
Posted: 2005-02-13 10:22:10
by Purple Haze
someone help me here please ;0
Re: About find item at the ground
Posted: 2005-02-13 11:13:52
by VlastV
Purple Haze wrote:I want to do one script that reads if it has empty bottle on the ground or not.... if has, the script grab 'em .... like that:
emptybottle = "0F0E"
if
Uo.FindItemAtTheGround("emptybottle") > 1 then
uo.exec("grab 'emptybottle'")
else
uo.print("You didn't find a emptybottle")
endif
Could somebody help me?

cia
Code: Select all
sub
UO.Set('finddistance','5')
UO.FindType('0x0F0E','-1','1')
while UO.FindCount() > 0
UO.WaitTargetGround('0x0F0E')
UO.Grab()
Wait(100)
UO.FindType('0x00CF','-1','1')
wend
UO.Print('You didn't find a emptybottle')
end_sub
Posted: 2005-02-13 15:59:24
by Yoko
,moveitem ~0x0F0E