This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Post Your most used Macros
Post Reply
Return to board index
Post by
457939
This post was from a user who has deleted their account.
Post by
Toldu
/g gratz
Post by
Tikaa
/ac +start /run local y={"Come Get some!","You over there, Get Here!","You are a litte trouble maker aint you?","Comeon you Pansy!",""}SendChatMessage(y)
/cast Execute;Taunt
#showtooltip Charge
/cast Charge; Intervene
/ac +start /highfive
/script UIErrorsFrame:Hide()
#showtooltip Shield Slam
/cast Shield Slam
/cast !Heroic Strike
/cast Shield Block
/script UIErrorsFrame:Clear(); UIErrorsFrame:Show()
Post by
RedwoodElf
This will destroy all grey items in your backpack if you aren't in a merchant window, and sell them if you are.
/run for b=0,4 do for s=1,GetContainerNumSlots(b)do local i,q=GetContainerItemLink(b,s) if i then _,_,q=GetItemInfo(i) if q==0 then if GetMerchantItemInfo(1) then UseContainerItem(b,s) else PickupContainerItem(b,s) DeleteCursorItem() end end end end end
Post by
HighFive
I rather destroy only the item (stack) with the lowest cost (and have set an script to sell the gays automatically).
Post by
RedwoodElf
Well I only use the "Destroy" option if I'm literally nowhere near a merchant, have no scrapbots in my inventory, and have a long way to go in the instance I'm running.
If you can come up with a way to value the stacks and pick only the cheapest one in a macro, by all means, post it.
Post by
Cloud8690
I rather destroy only the item (stack) with the lowest cost (and have set an script to sell the gays automatically).
You sell gays?
Post by
HighFive
Just a sec.
edit: This is what I use.if hf_cheapest_item then
ClearCursor()
PickupContainerItem(hf_cheapest_item.b,hf_cheapest_item.s)
DeleteCursorItem()
hf_chapest_item=nil
print'Destroyed.'
else
local cost=math.huge
for bag=0,4 do
for slot=0,GetContainerNumSlots(bag) do
local item=GetContainerItemLink(bag,slot)
if item then
local _,_,qual = GetItemInfo(item)
local _,count=GetContainerItemInfo(bag,slot)
if qual==0 then
if cost>count*GetSellValue(item)then
hf_cheapest_item={
b=bag,
s=slot,
c=count,
i=item,
v=count*GetSellValue(item)
}
cost=count*GetSellValue(item)
end
end
end
end
end
if hf_cheapest_item then
print('Destroy '..hf_cheapest_item.c..'x'..hf_cheapest_item.i..'('..FormatMoneyText(hf_cheapest_item.v)..')?')
else
print'No Junk items.'
end
endA global table storing the cheapest item info, so that I can do it in two clicks (first prints the info, second destroys). I've registered the BAG_UPDATE event on a different page to reset it to nil as well.
The GetSellValue and FormatMoneyText are custom global functions that I've defined elsewhere.
@Cloud: Yeah, but I'm all sold out now, sorry.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.