Originally Posted by Nimhfree
In Phanx's original code all you need to do is offset the values you are examining from the call to GetMapLandmarkInfo() by one. It seems Blizzard added a new return value. So just change the line to:
Code:
local _, name, _, textureIndex = GetMapLandmarkInfo(i)
|
The new return value is landmarkType, which you actually would want to use directly. Here are the possible (known) values:
Code:
LE_MAP_LANDMARK_TYPE_NORMAL
LE_MAP_LANDMARK_TYPE_TAMER
LE_MAP_LANDMARK_TYPE_GOSSIP
LE_MAP_LANDMARK_TYPE_TAXINODE
LE_MAP_LANDMARK_TYPE_VIGNETTE
LE_MAP_LANDMARK_TYPE_INVASION