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?

Moderators: Murderator+, Murderator
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