View Single Post
10-27-05, 05:44 PM   #1
vincentgdg
A Murloc Raider
Join Date: Sep 2005
Posts: 8
waiting for something

Hello.

I am just working on my first addon, called Restack.
What it shall do is restacking stackable items in your bags to the maximum possible stacksize.
You all know that when you get plenty of the same items through mail or the bank they don't stack but each stack takes its own place in your bags.

My addon scans the bags for identical items and puts them together in stacks when possible.

So far the addon works, but there is a problem with the timing.

Lets say you have 7, 3 and 2 stacks of the same item.
My addon does a PickupContainerItem(BagNum,SlotNum) first with the stack to move and then with the stack to put it on to. This is in a loop for each stack.

But it does that too fast with the second stack and WoW ignores it.

What can I do to somehow wait until WoW is ready to take on the next action?

Regards
Thomas
  Reply With Quote