About find item at the ground

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Purple Haze
Posts: 3
Joined: 2005-02-13 10:00:00

About find item at the ground

Post 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
Purple Haze
Posts: 3
Joined: 2005-02-13 10:00:00

Post by Purple Haze »

someone help me here please ;0
VlastV
Posts: 37
Joined: 2005-02-07 19:28:26
Contact:

Re: About find item at the ground

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

,moveitem ~0x0F0E
Post Reply