Tweaking a Trade Macro

#0 - Aug. 31, 2007, 10:40 a.m.
Blizzard Post
Ok so I have this macro and I need to more help tweaking it.

Q u o t e:
/run for i=0,4 do for x=1,GetContainerNumSlots(i) do y=GetContainerItemLink(i,x) if y then if GetItemInfo(y)=="Conjured Glacier Water" or GetItemInfo(y)=="Conjured Croissant" then PickupContainerItem(i,x); DropItemOnUnit("npc"); end end end end


It currently picks up food and water from my bag and drops it into the trade window. That all works perfectly but it tries to move all of my stacks. Is it possible to set this to only pickup one stack of each?

Thanks in advance,
#1 - Aug. 31, 2007, 1:18 p.m.
Blizzard Post
Q u o t e:
Ok so I have this macro and I need to more help tweaking it.



It currently picks up food and water from my bag and drops it into the trade window. That all works perfectly but it tries to move all of my stacks. Is it possible to set this to only pickup one stack of each?

Thanks in advance,

I really suck at loops and such, but why are you doing it 4 times?