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
uo.gettype('object')
Moderators: Murderator+, Murderator
uo.gettype('object')
Last edited by xinxilas on 2009-03-14 11:12:35, edited 1 time in total.
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
uo.getgraphic()
Code: Select all
while uo.count( uo.getgraphic('ITEM') ) >= 1
Code: Select all
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.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
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:
and thank you again
EDIT:
How can i count how much item types are in some container?
like: uo.getcontainer('ITEM')
Cuz if exists an way to do that i can remove this:
Code: Select all
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.
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
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.
Telegram: @tatikom
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom