Yoko

All sides of Injection
It is currently 2025-11-10 01:06:50

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2007-06-25 06:42:55 
Offline

Joined: 2004-07-13 07:43:11
Posts: 2
Say i have a chest full of items of different types, is there a way i can loop through all items in the container? This would be useful if say i had lots of magic items, I could id each one without explicitly knowing the type. For lots of items that are the same type, this is easy with UO.FindType() and UO.Ignore()


Top
   
 Post subject:
PostPosted: 2007-06-25 10:27:40 
Offline

Joined: 2004-07-13 07:43:11
Posts: 2
it's ok i found out how to do it, you just specify 0 for the type, for example:

sub main()
var item

UO.AddObject('container')
While UO.Targeting()
Wait(500)
Wend
UO.Findtype(0, 0, 'container')
item = UO.GetSerial('finditem')
UO.Print(item)

end sub


Top
   
 Post subject:
PostPosted: 2007-06-28 09:35:12 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
it is more right use
Code:
uo.findtype(-1,-1,"0x00000") ; 0x000000 - ID of container


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 7 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited