View Single Post
07-25-16, 02:50 PM   #3
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Originally Posted by Nimhfree View Post
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
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote