| Yoko http://forum.yoko.com.ua/ |
|
| uo.gettype('object') http://forum.yoko.com.ua/viewtopic.php?f=3&t=14542 |
Page 1 of 1 |
| Author: | xinxilas [ 2009-03-14 10:46:14 ] |
| Post subject: | uo.gettype('object') |
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 |
|
| Author: | Destruction [ 2009-03-14 10:48:37 ] |
| Post subject: | |
uo.getgraphic() Code: while uo.count( uo.getgraphic('ITEM') ) >= 1Code: UO.FindType(uo.getgraphic('ITEM'),'-1','CONTAINER1')
|
|
| Author: | xinxilas [ 2009-03-14 11:15:34 ] |
| Post subject: | |
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')
and thank you again EDIT: How can i count how much item types are in some container? |
|
| Author: | Destruction [ 2009-03-14 13:15:36 ] |
| Post subject: | |
containerOf |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|