I've done some searchin and found some info on this. I figured I'd put it here since there hasn't been any mention of this feature coming to my favorite addon yet.
To get the digsites, you use ArchaeologyMapUpdateAll() like this:
Code:
numEntries = ArchaeologyMapUpdateAll()
this will return the number of digsites in the current zone, or for which ever zone is being shown on the map. It wont work if you've zoomed out to the continent or further...
next you need to make a loop to go thru those so we should use something like this:
Code:
for i = 1, numEntries do
...
end
and in that loop we need to get the points(or blobs as the function calls them):
Code:
for i = 1, numEntries do
blob = ArcheologyGetVisibleBlobID(i)
...
end
now we need to draw these too, the only thing i could find about drawing blobs was for drawing quest areas but i'd imagine it should work:
Code:
for i = 1, numEntries do
blob = ArcheologyGetVisibleBlobID(i)
mapframe:DrawBlob(blob,true)
end
that leaves us with the final bit of:
Code:
numEntries = ArchaeologyMapUpdateAll()
for i = 1, numEntries do
blob = ArcheologyGetVisibleBlobID(i)
mapframe:DrawBlob(blob,true)
end
now i'm quite sure that someone else could make that fit into the carbonite addon, but thats what i've found. It seems plausible that this would work.
I found this basic info on the wowprogramming.com site, it seems to be an open source for wow api stuffs, tho the amount info for the archaeology functions is small (my guess is since the functions were just added there isn't much info available for us yet).