Log in

View Full Version : [WoW] Macro: How much of X does player have?



Darelik
08-26-2010, 09:06 PM
I don't know if there's an addon for this (Altoholic?) but it's a pretty simple macro to find out how much of X does a certain toon has.

I needed to find out which toon has the most triumphs and I had to switch to every character currency window of every toon. This also works for gold and other stuff.

Below is "How many Emblem of Triumph does X have" and is sent to party chat:

/run local name = UnitName("player"); SendChatMessage("" .. name .. " has "..GetItemCount("Emblem of Triumph", true).. " \124cffa335ee\124Hitem:47241:0:0:0:0:0:0:0:0\124h[Emblem of Triumph]\124h\124r", "PARTY", nil, "PARTY")


Of course, you can customise that to give you a link for "Emblem of Frost" too. Just change Triumph to Frost and grab the itemlink from WoWHead.

Below is "How much gold does X have" and is sent to party chat:

/run local name = UnitName("player"); SendChatMessage("" .. name .. " currently has: "..GetCoinText(GetMoney(),", ").."", "PARTY", nil, "PARTY")

Hope that helped someone :)

Zub
08-26-2010, 09:15 PM
yup i used the second one (gold) and it's quite handy
Didn't know of the emblem one, thanks!

i'd love to find a way to sum up all the party answers (and get a gold total for example), but i guess i'll need a mod for that.

Oathbreaker
09-06-2010, 11:14 PM
Gold:
/run local name = UnitName("player"); SendChatMessage("Gold: "..GetCoinText(GetMoney(),", ").."", "GUILD", nil, "GUILD")

Honor:
/run local name = UnitName("player"); SendChatMessage("Honor: "..GetHonorCurrency().."", "GUILD", nil, "GUILD")

Stone Keeper's Shards:
/run local name = UnitName("player"); SendChatMessage("Stone Keeper's Shards: "..GetItemCount("Stone Keeper's Shard", true).. "", "RAID", nil, "RAID")

Runic Healing Injectors:
/run local name = UnitName("player"); SendChatMessage("Runic Healing Injectors: "..GetItemCount("Runic Healing Injector", true).. "", "RAID", nil, "RAID")

Runic Mana Injectors:
/run local name = UnitName("player"); SendChatMessage("Runic Mana Injectors: "..GetItemCount("Runic Mana Injector", true).. "", "RAID", nil, "RAID")

Sweet Potato Bread:
/run local name = UnitName("player"); SendChatMessage("Sweet Potatoe Bread: "..GetItemCount("Sweet Potato Bread", true).. "", "RAID", nil, "RAID")

Heavy Frostweave Bandages:
/run local name = UnitName("player"); SendChatMessage("Heavy Frostweave Bandages: "..GetItemCount("Heavy Frostweave Bandage", true).. "", "RAID", nil, "RAID")

Venture Coins:
/run local name = UnitName("player"); SendChatMessage("Venture Coins: "..GetItemCount("Venture Coin", true).. "", "RAID", nil, "RAID")

Conjured Mana Strudels:
/run local name = UnitName("player"); SendChatMessage("Conjured Mana Strudels: "..GetItemCount("Conjured Mana Strudel", true).. "", "RAID", nil, "RAID")