uo.gettype('object')
Posted: 2009-03-14 10:46:14
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
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