Thread Tools Display Modes
08-04-08, 03:49 PM   #1
Doyal
A Murloc Raider
Premium Member
Join Date: Jul 2008
Posts: 6
Play sound when tracked node appears on minimap

When tracking herbs, mines, or treasure, i want to play a sound. With riding crop and mithril spurs, you can cover ground fast when doing a gathering pass over a zone. But at that speed, nodes appear and disappear very quickly on the minimap, and you can miss them. Is there any event that can be hooked that says a tracked resource is in range? And then play a sound?
__________________
~~ may all your goats be free of fleas
~~ and may your camels never spit
  Reply With Quote
08-04-08, 03:54 PM   #2
Xolan
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 23
Dunno about an event, but I guess you could calculate the distance between your char and a nearby node, and trigger a sound if it's under a set value.
  Reply With Quote
08-04-08, 03:57 PM   #3
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
http://www.wowinterface.com/forums/s...ad.php?t=16554
__________________
Never be satisfied with satisfactory.
  Reply With Quote
08-04-08, 04:20 PM   #4
Doyal
A Murloc Raider
Premium Member
Join Date: Jul 2008
Posts: 6
Oh poo

Thanks for the links. I see others have done a bit of thinking on this and found that Blizzard doesn't provide any support. The only other way i can think of is using a complicated mechanism to enable some simple image processing. By pulling out the image data from the bounding box of the minimap, at 5 or 10 hertz, it's possible to look for the yellow color and shoot out a sound when found. But this would be a separate app, not an add-on. Variations in screen resolution could be accomodated via xml config file with the origin and extent info of the minimap bounding box.
__________________
~~ may all your goats be free of fleas
~~ and may your camels never spit
  Reply With Quote
08-04-08, 04:25 PM   #5
Freki
A Deviate Faerie Dragon
 
Freki's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 18
As mentioned in the other thread, there was an idea that I believe someone made into a mod in which they would move the minimap over your cursor and scale the minimap so small that all the tooltips would be on the cursor. Not sure if this would still work but it's worth looking in to.
  Reply With Quote
08-04-08, 04:53 PM   #6
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
You can scale the minimap like this:

MinimapCluster:SetScale(0.1)

My only guess for the cursor would be to use GetCursorPosition() and then using :SetPoint(x, y) to the coordinates recieved with GetCursorPosition().
__________________
Never be satisfied with satisfactory.

Last edited by Cralor : 08-04-08 at 04:56 PM.
  Reply With Quote
08-04-08, 05:15 PM   #7
kneeki
A Flamescale Wyrmkin
 
kneeki's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 134
I wrote an addon like this for myself about a year ago. I never released it to the public. It was crude, about as crude as you could get. After looking around (back then, don't know about now) there was not any Events, or functions which blizzard provides to ease this addon.

But, how I did it has already been mentioned. Shrink the map down and place it on the cursor, read the tooltips, and put it back. Every time this occurs (however often you wish) everything goes crazy. It's not easy to do everything quickly either, and most of the time the tooltip info never even came up; rendering the addon useless.

Until Blizzard gives the API or Events making such an addon easy (CPU and Code wise) I suggest abandoning the idea. Unless some other amazing method has been thought up which surpasses my skills.
  Reply With Quote
08-04-08, 05:25 PM   #8
Xolan
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 23
Do the dots have their own frame name? If so you could just make it make a noise if it's visible. Sounds too easy to be true though.

However, the aforementioned method can be used, not sure with the blizzard tracking, but at least with Cartographer and the likes that rely on the map (not minimap). That is to make a distance calculation.
  Reply With Quote
08-04-08, 05:28 PM   #9
kneeki
A Flamescale Wyrmkin
 
kneeki's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 134
Originally Posted by Xolan View Post
Do the dots have their own frame name? If so you could just make it make a noise if it's visible. Sounds too easy to be true though.

However, the aforementioned method can be used, not sure with the blizzard tracking, but at least with Cartographer and the likes that rely on the map (not minimap). That is to make a distance calculation.
They all had unique names, seemingly random (though I'm sure they were not) but all different.
  Reply With Quote
08-04-08, 05:32 PM   #10
Sepioth
A Molten Giant
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 894
Originally Posted by Doyal View Post
Thanks for the links. I see others have done a bit of thinking on this and found that Blizzard doesn't provide any support. The only other way i can think of is using a complicated mechanism to enable some simple image processing. By pulling out the image data from the bounding box of the minimap, at 5 or 10 hertz, it's possible to look for the yellow color and shoot out a sound when found. But this would be a separate app, not an add-on. Variations in screen resolution could be accomodated via xml config file with the origin and extent info of the minimap bounding box.
Nice idea about the imaging processing but I believe that would be considered a bot.

As others have stated in this and the other thread unless Blizz opens up the minimap there will be no way to get info about what pops on the map.
  Reply With Quote
08-04-08, 06:14 PM   #11
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Blizzard doesn't want us to be able to do this, hence the "workaround". Which, I hear, is very unnerving to see it do while you're playing.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Play sound when tracked node appears on minimap


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