Yoko

All sides of Injection
It is currently 2026-03-04 03:18:50

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: uo.gettype('object')
PostPosted: 2009-03-14 10:46:14 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
Is there any comand that i can getthe type of an object?? to use like that:

sub massm()
uo.exec('set quiet 0')
uo.print('Choose the container where are the itens:')
uo.exec('set quiet 1')
UO.AddObject('CONTAINER1')
While UO.Targeting()
Wait(100)
Wend
uo.exec('set quiet 0')
uo.print('Choose the container to put the itens:')
uo.exec('set quiet 1')
UO.AddObject('CONTAINER2')
While UO.Targeting()
Wait(100)
Wend
uo.exec('set quiet 0')
uo.print('Choose the item type:')
uo.exec('set quiet 1')
UO.AddObject('ITEM')
While UO.Targeting()
Wait(100)
Wend
uo.exec('set quiet 0')
while uo.count( STR( uo.gettype('ITEM') ) ) >= 1
UO.FindType(STR( uo.gettype('ITEM') ),'-1','CONTAINER1')
uo.moveitem('finditem', '0', 'CONTAINER2')
wait(1600)
wend
end sub

Or another solution for that...
An way to choose via target the item type that will be moved


Last edited by xinxilas on 2009-03-14 11:12:35, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-03-14 10:48:37 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
uo.getgraphic()

Code:
while uo.count( uo.getgraphic('ITEM') ) >= 1
Code:
UO.FindType(uo.getgraphic('ITEM'),'-1','CONTAINER1')

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-03-14 11:15:34 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
Is there any way to get his countainer id?

like: uo.getcontainer('ITEM')

Cuz if exists an way to do that i can remove this:
Code:
uo.exec('set quiet 0') 
uo.print('Choose the container where are the itens:')
uo.exec('set quiet 1')
UO.AddObject('CONTAINER1')
While UO.Targeting()
Wait(100)
Wend


and thank you again :)

EDIT:

How can i count how much item types are in some container?


Last edited by xinxilas on 2009-03-14 13:47:15, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-03-14 13:15:36 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
containerOf

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


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