Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(First update for 3.0.2 changes)
Line 2: Line 2:
 
Returns the information about a landmark on the current world map.
 
Returns the information about a landmark on the current world map.
 
name, description, textureIndex, x, y = GetMapLandmarkInfo(landmarkIndex);
 
name, description, textureIndex, x, y = GetMapLandmarkInfo(landmarkIndex);
  +
  +
Note that 3.0.2 added more icons (102 now), doubled the size of the POIIcons.blp texture to 256x256 and moved the invisible texture from index 15 to 0.
   
 
==Parameters==
 
==Parameters==
Line 10: Line 12:
 
:;name : String - The name of the landmark
 
:;name : String - The name of the landmark
 
:;description : String - A description of the landmark. In Battlegrounds this can dynamic information such as which faction controls the landmark.
 
:;description : String - A description of the landmark. In Battlegrounds this can dynamic information such as which faction controls the landmark.
:;textureIndex : Number - An index representing which landmark icon to display. These icons are in <tt>Interface\Minimap\POIIcons.blp</tt>, in an 8x8 grid. Values are:
+
:;textureIndex : Number - An index representing which landmark icon to display. These icons are in <tt>Interface\Minimap\POIIcons.blp</tt>, in an 16x16 grid (each icon is 16x16). Values are:
 
[[Image:POIIcons.png|frame|POIIcons.blp]]
 
[[Image:POIIcons.png|frame|POIIcons.blp]]
::: <span style="visibility:hidden">0</span>0 [[Image:IconSmall_POI0.png]] Mine, neutral
+
::: <span style="visibility:hidden">0</span>0 &mdash; Invisible (There's a number of these on zoomed in maps that don't get displayed.)
::: <span style="visibility:hidden">0</span>1 [[Image:IconSmall_POI1.png]] Mine, held by [[Horde]]
+
::: <span style="visibility:hidden">0</span>1 [[Image:IconSmall_POI0.png]] Mine, neutral
::: <span style="visibility:hidden">0</span>2 [[Image:IconSmall_POI2.png]] Mine, held by [[Alliance]]
+
::: <span style="visibility:hidden">0</span>2 [[Image:IconSmall_POI1.png]] Mine, held by [[Horde]]
::: <span style="visibility:hidden">0</span>3 [[Image:IconSmall_POI3.png]] Graveyard, assaulted by Alliance
+
::: <span style="visibility:hidden">0</span>3 [[Image:IconSmall_POI2.png]] Mine, held by [[Alliance]]
::: <span style="visibility:hidden">0</span>4 [[Image:IconSmall_POI4.png]] Town
+
::: <span style="visibility:hidden">0</span>4 [[Image:IconSmall_POI3.png]] Graveyard, assaulted by Alliance
::: <span style="visibility:hidden">0</span>5 [[Image:IconSmall_POI5.png]] City
+
::: <span style="visibility:hidden">0</span>5 [[Image:IconSmall_POI4.png]] Town
::: <span style="visibility:hidden">0</span>6 [[Image:IconSmall_POI6.png]] Flag (Shown when you ask a town guard for directions.)
+
::: <span style="visibility:hidden">0</span>6 [[Image:IconSmall_POI5.png]] City
::: <span style="visibility:hidden">0</span>7 [[Image:IconSmall_POI7.png]] Player corpse marker
+
::: <span style="visibility:hidden">0</span>7 [[Image:IconSmall_POI6.png]] Flag (Shown when you ask a town guard for directions.)
::: <span style="visibility:hidden">0</span>8 [[Image:IconSmall_POI8.png]] Tower, assaulted by Alliance
+
::: <span style="visibility:hidden">0</span>8 [[Image:IconSmall_POI7.png]] Player corpse marker
::: <span style="visibility:hidden">0</span>9 [[Image:IconSmall_POI9.png]] Tower, held by Horde
+
::: <span style="visibility:hidden">0</span>9 [[Image:IconSmall_POI8.png]] Tower, assaulted by Alliance
::: 10 [[Image:IconSmall_POI10.png]] Tower, held by Alliance
+
::: 10 [[Image:IconSmall_POI9.png]] Tower, held by Horde
::: 11 [[Image:IconSmall_POI11.png]] Tower, assaulted by Horde
+
::: 11 [[Image:IconSmall_POI10.png]] Tower, held by Alliance
::: 12 [[Image:IconSmall_POI12.png]] Graveyard, held by Horde
+
::: 12 [[Image:IconSmall_POI11.png]] Tower, assaulted by Horde
::: 13 [[Image:IconSmall_POI13.png]] Graveyard, assaulted by Horde
+
::: 13 [[Image:IconSmall_POI12.png]] Graveyard, held by Horde
::: 14 [[Image:IconSmall_POI14.png]] Graveyard, held by Alliance
+
::: 14 [[Image:IconSmall_POI13.png]] Graveyard, assaulted by Horde
  +
::: 15 [[Image:IconSmall_POI14.png]] Graveyard, held by Alliance
::: 15 &mdash; Invisible (There's a number of these on zoomed in maps that don't get displayed.)
 
 
::: 16 [[Image:IconSmall_POI16.png]] Gold Mine, neutral
 
::: 16 [[Image:IconSmall_POI16.png]] Gold Mine, neutral
 
::: 17 [[Image:IconSmall_POI17.png]] Gold Mine, assaulted by Alliance
 
::: 17 [[Image:IconSmall_POI17.png]] Gold Mine, assaulted by Alliance
Line 53: Line 55:
 
::: 39 [[Image:IconSmall_POI39.png]] Stables, assaulted by Horde
 
::: 39 [[Image:IconSmall_POI39.png]] Stables, assaulted by Horde
 
::: 40 [[Image:IconSmall_POI40.png]] Stables, held by Horde
 
::: 40 [[Image:IconSmall_POI40.png]] Stables, held by Horde
::: 41-63 &mdash; Currently unused
+
::: 41-102 &mdash; Currently unused/unknown
   
 
:;x : Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)
 
:;x : Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)

Revision as of 10:38, 24 October 2008

Returns the information about a landmark on the current world map.

name, description, textureIndex, x, y = GetMapLandmarkInfo(landmarkIndex);

Note that 3.0.2 added more icons (102 now), doubled the size of the POIIcons.blp texture to 256x256 and moved the invisible texture from index 15 to 0.

Parameters

Arguments

landmarkIndex
Number - Indicates which landmark to query (from 1 to GetNumMapLandmarks())

Returns

name
String - The name of the landmark
description
String - A description of the landmark. In Battlegrounds this can dynamic information such as which faction controls the landmark.
textureIndex
Number - An index representing which landmark icon to display. These icons are in Interface\Minimap\POIIcons.blp, in an 16x16 grid (each icon is 16x16). Values are:
POIIcons

POIIcons.blp

00 — Invisible (There's a number of these on zoomed in maps that don't get displayed.)
01 IconSmall POI0 Mine, neutral
02 IconSmall POI1 Mine, held by Horde
03 IconSmall POI2 Mine, held by Alliance
04 IconSmall POI3 Graveyard, assaulted by Alliance
05 IconSmall POI4 Town
06 IconSmall POI5 City
07 IconSmall POI6 Flag (Shown when you ask a town guard for directions.)
08 IconSmall POI7 Player corpse marker
09 IconSmall POI8 Tower, assaulted by Alliance
10 IconSmall POI9 Tower, held by Horde
11 IconSmall POI10 Tower, held by Alliance
12 IconSmall POI11 Tower, assaulted by Horde
13 IconSmall POI12 Graveyard, held by Horde
14 IconSmall POI13 Graveyard, assaulted by Horde
15 IconSmall POI14 Graveyard, held by Alliance
16 IconSmall POI16 Gold Mine, neutral
17 IconSmall POI17 Gold Mine, assaulted by Alliance
18 IconSmall POI18 Gold Mine, held by Alliance
19 IconSmall POI19 Gold Mine, assaulted by Horde
20 IconSmall POI20 Gold Mine, held by Horde
21 IconSmall POI21 Lumber Mill, neutral
22 IconSmall POI22 Lumber Mill, assaulted by Alliance
23 IconSmall POI23 Lumber Mill, held by Alliance
24 IconSmall POI24 Lumber Mill, assaulted by Horde
25 IconSmall POI25 Lumber Mill, held by Horde
26 IconSmall POI26 Blacksmith, neutral
27 IconSmall POI27 Blacksmith, assaulted by Alliance
28 IconSmall POI28 Blacksmith, held by Alliance
29 IconSmall POI29 Blacksmith, assaulted by Horde
30 IconSmall POI30 Blacksmith, held by Horde
31 IconSmall POI31 Farm, neutral
32 IconSmall POI32 Farm, assaulted by Alliance
33 IconSmall POI33 Farm, held by Alliance
34 IconSmall POI34 Farm, assaulted by Horde
35 IconSmall POI35 Farm, held by Horde
36 IconSmall POI36 Stables, neutral
37 IconSmall POI37 Stables, assaulted by Alliance
38 IconSmall POI38 Stables, held by Alliance
39 IconSmall POI39 Stables, assaulted by Horde
40 IconSmall POI40 Stables, held by Horde
41-102 — Currently unused/unknown
x
Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)
y
Number - The Y location of the landmark's center (A proportion of the current map's height, between 0 and 1)