User:Kaydeethree/Macros

Some useful macros to get information from the game. Remember that all of these macros are one line long!

Item info
This macro will dump the name of the item on the cursor, its ID, and the path to its texture to the chatframe. To use this macro, bind it to a key, pick up an item so the cursor turns blue, then hit the key bound to this macro. Note that this macro only works for items in your inventory/bags.

Example output:
 * 32824Interface\Icons\INV_Sword_48

Vendor info
This macro will dump the name/texture of every item getting sold by the current vendor window, as well as the cost (in copper) and the quantity/itemLink of any loot tokens required.

Example output:
 * Khadgar's Hood of Triumph0Interface\Icons\inv_helmet_146 75 1
 * Khadgar's Gauntlets of Triumph0Interface\Icons\inv_gauntlets_79 45 1
 * Khadgar's Robe of Triumph0Interface\Icons\inv_chest_cloth_75 75 1
 * Khadgar's Leggings of Triumph0Interface\Icons\inv_pants_cloth_33 75 1
 * Khadgar's Shoulderpads of Triumph0Interface\Icons\inv_shoulder_110 45 1

Example output with items that cost gold: ( and, respectively)
 * Blackflight Arrow2400Interface\Icons\INV_Misc_Ammo_Arrow_01
 * Terrorshaft Arrow2400Interface\Icons\INV_Misc_Ammo_Arrow_01
 * Ironbite Shell2400Interface\Icons\INV_Misc_Ammo_Bullet_06
 * Frostbite Bullets2400Interface\Icons\INV_Misc_Ammo_Bullet_06
 * Blacksteel Throwing Dagger640Interface\Icons\INV_Weapon_ShortBlade_24
 * Jagged Throwing Axe640Interface\Icons\INV_ThrowingAxe_01

Questlog info
This macro will run through your entire quest log and dump as much information as it can get to the frame.

Example output:
 * Borean Tundra
 * 11897:71[Plug the Sinkholes]
 * Dragonblight
 * 12462:73[Breaking Off A Piece]
 * 12464:73[My Old Enemy]Group3

Quest rewards
This macro will print out roughly the same info as the item macro above, but only when you're about to choose a quest reward from the NPC.

Example output:
 * 35809Interface\Icons\INV_Weapon_ShortBlade_05
 * 35811Interface\Icons\INV_Weapon_Crossbow_21
 * 35810Interface\Icons\INV_Mace_67
 * 35807Interface\Icons\INV_Staff_50
 * 35808Interface\Icons\INV_Sword_110
 * 35812Interface\Icons\INV_Mace_65
 * 35812Interface\Icons\INV_Mace_65

NPC info

 * Updated for 3.3, really!

This macro will dump a lot of nearly all of the information you need about the NPC you are both targeting and mousing over (so the tooltip points to the right unit), except for its' lore-based race. (Human, Vrykul, Bat, etc...)

Example output:
 * Helga Rumsbane General Goods Level 70 Valiance Expedition PvP3Humanoid24053Fort Wildervar

Explanation:
 *   Level <##>  <1=Neuter,2=Male,3=Female>

Everything after the PvP tag comes from the Unit* calls, the rest comes from scraping the tooltip.

Auto-vend grays
Straight-forward gray item one-click vend macro. Thank you Cogwheel.

Minimap coords
Coordinates on the minimap title bar! This is a too big to fit into one macro--you'll need two. Run the first, then the second:

and