Tweaking a Trade Macro

by Ohhmagic | 31/08/2007 09:40:21

Ohhmagic

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,

by Aeus | 31/08/2007 12:18:17

Aeus


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?

Blizzard Announcement Recent Blizzard Announcements

 



Loaded in 0.04234 seconds