Yoko
http://forum.yoko.com.ua/

About find item at the ground
http://forum.yoko.com.ua/viewtopic.php?f=3&t=3088
Page 1 of 1

Author:  Purple Haze [ 2005-02-13 10:07:13 ]
Post subject:  About find item at the ground

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

Author:  Purple Haze [ 2005-02-13 10:22:10 ]
Post subject: 

someone help me here please ;0

Author:  VlastV [ 2005-02-13 11:13:52 ]
Post subject:  Re: About find item at the ground

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:
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

Author:  Yoko [ 2005-02-13 15:59:24 ]
Post subject: 

,moveitem ~0x0F0E

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/