/run for s=1,28 do n=GetContainerItemLink(BANK_CONTAINER,s)if n and strfind(n,"Glyph")then print("Withdrawing "..n)UseContainerItem(BANK_CONTAINER,s)end end
At the moment script withdraws from bank every item/stack with "Glyph" in name.
My goal is to withdraw stack of 6 form Bank to Bag.
API SplitContainerItem - WoWWiki - Wikia should be helpful, but I don't get how to use it, and it may be problematic (puts item in cursor position).
/run for b=0,4 do for s=1,GetContainerNumSlots(b) do local l,a,p=GetContainerItemLink(b,s),SplitContainerItem(b,s,30),PutItemInBag(19+b)if l and strfind(l,"Volatile Life")and 90<=select(2,GetContainerItemInfo(b,s))then a p a p a p end end end
This one splits stacks >=90 (contained in Bag) into stack of 30 and puts it in the same bag.
Guess I'd have to merge them in some way but I don't really know where to start.
Anyone?