Getting item out of stack of items

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Proky
Posts: 5
Joined: 2004-06-18 17:53:15

Getting item out of stack of items

Post 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
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

,grab 1 ~0x1234
where cloth on floor, type of it 0x1234
Proky
Posts: 5
Joined: 2004-06-18 17:53:15

Resultent function

Post 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
Post Reply