Yoko

All sides of Injection
It is currently 2026-02-16 04:07:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-02-13 10:07:13 
Offline

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


Top
   
 Post subject:
PostPosted: 2005-02-13 10:22:10 
Offline

Joined: 2005-02-13 10:00:00
Posts: 3
someone help me here please ;0


Top
   
PostPosted: 2005-02-13 11:13:52 
Offline

Joined: 2005-02-07 19:28:26
Posts: 37
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


Top
   
 Post subject:
PostPosted: 2005-02-13 15:59:24 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
,moveitem ~0x0F0E


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited