Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-14-14, 03:36 AM   #1
spartaniz
A Kobold Labourer
Join Date: Apr 2014
Posts: 1
Inventory: Keep N amount while deleting X

Hi guys

I do not know anyyything about programming so bare with me please.

I want a macro that will delete N amount of items IF i have a certain amount already.

Say I am farming copper veins and need 20 copper and 5 rough stone. I already have 5 roughstone but only 4 copper. I want a macro (if possible) to delete any extra roughstone automatically.

This:

/run for bag = 0,4,1 do for slot = 1, 32, 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,2835) then PickupContainerItem(bag,slot); DeleteCursorItem(); end; end; end

deletes all the rough stone in my bags...

Any help? Anyone? please?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Inventory: Keep N amount while deleting X


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off