Page 1 of 1

Getting item out of stack of items

Posted: 2004-06-18 17:55:19
by Proky
Hi,

What I want to do is grab an item out of a stack and then perform an action on the item.

eg: stack of 50 cloths, get one cloth out of stack, chop that cloth.

I can do everything except get the single item from the group.

Any help would be great.

Thanks
Proky

Posted: 2004-06-18 21:46:56
by Yoko
,grab 1 ~0x1234
where cloth on floor, type of it 0x1234

Resultent function

Posted: 2004-06-19 15:02:41
by Proky
Thanks thats wha I needed:
sub ChopBandages()
var vCloths = '0x1765'
var vBag1 = '0x62525a03'
var vMainBag = '0x6272e8d4'
var vClothPile = '0x62754b4d'
var vScissors = '0x0f9e'
while uo.count(vCloths) > 0

uo.findtype(vCloths,-1,vBag1)
uo.grab (STR(1),'finditem')

uo.usetype(vScissors)
UO.WaitTargetObject('finditem')

wait (10000)
wend
end sub