Loading...
» You are not logged in (log in)



Announce Name and Location of Mouseover Target/Item/NPC/Etc.

Author: belleboomGD
Updated 19/10/2008 (479 days ago)
 

Please log in to vote! Current rating: +2

Announce Name and Location of (Anything with a Tooltip)

I'm an herbalist who often runs across mining nodes in my travels. I like to tell my guild when I see a nice bunch of ore, but despite my neighborly sentiments I quickly tired of having to type in '/g Rich Adamantite Ore at 43x76 in WhateverZone now!' So, I figured out how to get modern technology to do the heavy lifting for me.

Mouse your cursor over the thing you want to announce; while the tooltip for that thing is visible on your screen, hit this macro. It spams the first line of the current mouseover tooltip (name) and the player's location.

You can also get the macro text from my website, no editing required: http://belleboom.googlepages.com/generalmacros

PLEASE NOTE: Because of a continuing issue with this site, double quotes are coming through garbled; everywhere you see (the ampersand symbol, which also isn't coming through correctly)quot; in the macro code, please replace with double quotes.

Sample output: Stormspire Nexus-Guard@ Netherstorm, The Stormspire: 45.0, 36.5

The code for this macro is:

/run SetMapToCurrentZone()local x,y=GetPlayerMapPosition("player");for i=1,1 do local m=getglobal("GameTooltipTextLeft"..i);local t=m:GetText();SendChatMessage(t.."@ "..format("%s, %s: %.1f, %.1f",GetZoneText(),GetSubZoneText(),x*100,y*100),"GUILD");end