WoWInterface SVN MetaMapv4.0

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 163 to Rev 164
    Reverse comparison

Rev 163 → Rev 164

trunk/MetaMap/MetaMapOptions.lua
24,9 → 24,9
end
 
if (MetaMap_CurrentAction) then
WorldMapButton:EnableMouse(false);
WorldMapFrame.ScrollContainer:EnableMouse(false);
else
WorldMapButton:EnableMouse(true);
WorldMapFrame.ScrollContainer:EnableMouse(true);
end
if (MetaMapOptions.MetaMapButtonShown) then
MetaMapButton_UpdatePosition();
60,7 → 60,7
function MetaMapButton_UpdatePosition()
if (MetaMapOptions.MetaMapButtonPosition_Old ~= MetaMapOptions.MetaMapButtonPosition or not MetaMapOptions.MetaMapButtonPositionXY) then
MetaMapButton:ClearAllPoints();
MetaMapButton:SetPoint("TOPLEFT", "Minimap", "TOPLEFT",
MetaMapButton:SetPoint("TOPLEFT", Minimap, "TOPLEFT",
52 - (80 * cos(MetaMapOptions.MetaMapButtonPosition)),
(80 * sin(MetaMapOptions.MetaMapButtonPosition)) - 52
);
77,33 → 77,150
MetaMapOptions.MetaMapAlpha2 = MetaMapAlphaSlider:GetValue();
WorldMapFrame:SetAlpha(MetaMapOptions.MetaMapAlpha2);
end
WorldMapButton:SetAlpha(MetaMapAlphaSlider:GetValue() + 0.2);
WorldMapFrame.ScrollContainer:SetAlpha(MetaMapAlphaSlider:GetValue() + 0.2);
end
 
local MetaMap_clickX = 0;
local MetaMap_clickY = 0;
function MetaMap_WorldMapFrame_OnMouseDown(self, button)
MetaMap_clickX, MetaMap_clickY = GetCursorPosition();
end
 
local MetaMap_WorldMap_isMoving = false;
local MetaMap_dragStartX = 0;
local MetaMap_dragStartY = 0;
function MetaMap_FrameStartMoving(self, button)
if ( not MetaMap_FullScreenMode and MetaMap_WorldMap_baseScale ~= 0 and button == "LeftButton" and not MetaMap_WorldMap_isMoving and self.canMove ) then
MetaMap_WorldMap_isMoving = true;
MetaMap_dragStartX = MetaMap_clickX;
MetaMap_dragStartY = MetaMap_clickY;
self:StartMoving();
end
end
 
local MetaMap_saveScale = -1;
local MetaMap_WorldMap_sizeX = 0;
local MetaMap_WorldMap_sizeY = 0;
function MetaMap_FrameStopMoving(self, button)
if ( MetaMap_WorldMap_isMoving ) then
self:StopMovingOrSizing();
local dragStopX, dragStopY = GetCursorPosition();
local moveX = (dragStopX - MetaMap_dragStartX) / UIParent:GetEffectiveScale();
local moveY = (dragStopY - MetaMap_dragStartY) / UIParent:GetEffectiveScale();
local dispX = GetScreenWidth() * UIParent:GetEffectiveScale();
local dispY = GetScreenHeight() * UIParent:GetEffectiveScale();
local newPosX = min(max(MetaMapOptions.MetaMapPos1[1] + moveX, 0), dispX - MetaMap_WorldMap_sizeX / UIParent:GetEffectiveScale());
local newPosY = max(min(MetaMapOptions.MetaMapPos1[2] + moveY, 0), -dispY + MetaMap_WorldMap_sizeY / UIParent:GetEffectiveScale());
if (MetaMapOptions.SaveSet == 1) then
MetaMapOptions.MetaMapPos1 = { newPosX, newPosY };
else
MetaMapOptions.MetaMapPos2 = { newPosX, newPosY };
end
MetaMap_WorldMap_isMoving = false;
end
end
 
local MetaMap_WorldMap_baseX = 0;
local MetaMap_WorldMap_baseY = 0;
local MetaMap_WorldMap_sizeQ = 0;
local MetaMap_WorldMapScroll_sizeX = 0;
local MetaMap_WorldMapScroll_sizeY = 0;
local MetaMap_WorldMap_spacer = 0;
local MetaPap_WorldMapFrameBg_TopY = 0;
function MetaMap_UpdateScale()
MetaMap_Debug_Print("MetaMap_UpdateScale", true);
if ( InCombatLockdown() ) then return; end
if (not MetaMap_FullScreenMode) then
if ( InCombatLockdown() or MetaMap_WorldMap_isMoving ) then return; end
 
if ( MetaMap_WorldMap_baseScale == 0 or MetaMap_WorldMap_baseX == 0 ) then
MetaMap_WorldMap_baseScale = WorldMapFrame.ScrollContainer.baseScale;
local nPoints = WorldMapFrame:GetNumPoints();
if ( nPoints == 1 ) then
_, _, _, MetaMap_WorldMap_baseX, MetaMap_WorldMap_baseY = WorldMapFrame:GetPoint();
_, _, _, _, MetaMap_WorldMapFrameBg_TopY = WorldMapFrameBg:GetPoint();
local _, _, _, spacerX, spacerY = WorldMapFrame.TitleCanvasSpacerFrame:GetPoint(2);
MetaMap_WorldMap_spacer = -spacerY;
MetaMap_WorldMapScroll_sizeX = WorldMapFrame.minimizedWidth;
MetaMap_WorldMapScroll_sizeY = WorldMapFrame.minimizedHeight - MetaMap_WorldMap_spacer;
MetaMap_WorldMap_sizeQ = WorldMapFrame.questLogWidth;
end
end
if ( MetaMapOptions.MetaMapPos1[1] == -1 ) then
MetaMapOptions.MetaMapPos1 = { MetaMap_WorldMap_baseX, MetaMap_WorldMap_baseY };
end
if ( MetaMapOptions.MetaMapPos2[1] == -1 ) then
MetaMapOptions.MetaMapPos2 = { MetaMap_WorldMap_baseX, MetaMap_WorldMap_baseY };
end
 
if (not MetaMap_FullScreenMode and MetaMap_WorldMap_baseScale ~= 0 ) then
MetaMap_Debug_Print("MetaMap_UpdateScale-NoFullScreen", true);
if (MetaMapOptions.SaveSet == 1) then
MetaMapOptions.MetaMapScale1 = MetaMapScaleSlider:GetValue();
if (MetaMapOptions.MetaMapScale1 == 0) then MetaMapOptions.MetaMapScale1 = 0.5; end
MetaMap_SetEffectiveScale(WorldMapFrame, MetaMapOptions.MetaMapScale1);
MetaMapOptions.MetaMapScale1 = math.floor((MetaMapScaleSlider:GetValue() + 0.025 ) * 20) / 20.0;
if (MetaMapOptions.MetaMapScale1 == 0) then MetaMapOptions.MetaMapScale1 = MetaMap_WorldMap_baseScale; end
MetaMap_SetWorldMapScale(MetaMapOptions.MetaMapScale1, MetaMapOptions.MetaMapPos1[1], MetaMapOptions.MetaMapPos1[2]);
else
MetaMapOptions.MetaMapScale2 = MetaMapScaleSlider:GetValue();
if (MetaMapOptions.MetaMapScale2 == 0) then MetaMapOptions.MetaMapScale2 = 0.5; end
MetaMap_SetEffectiveScale(WorldMapFrame, MetaMapOptions.MetaMapScale2);
MetaMapOptions.MetaMapScale2 = math.floor((MetaMapScaleSlider:GetValue() + 0.025 ) * 20) / 20.0;
if (MetaMapOptions.MetaMapScale2 == 0) then MetaMapOptions.MetaMapScale2 = MetaMap_WorldMap_baseScale; end
MetaMap_SetWorldMapScale(MetaMapOptions.MetaMapScale2, MetaMapOptions.MetaMapPos2[1], MetaMapOptions.MetaMapPos2[2]);
end
end
end
 
function MetaMap_SetEffectiveScale(frame, scale)
local parent = frame:GetParent();
if (parent) then
scale = scale / parent:GetEffectiveScale();
local saveQuestPanel = false;
function MetaMap_SetWorldMapScale(scale, posX, posY)
local questPanel = WorldMapFrame:IsSidePanelShown();
if ( scale == 0 ) then
-- Reset WorldMapFrame
WorldMapFrame:ClearAllPoints();
WorldMapFrame:SetPoint("TOPLEFT",UIParent,"TOPLEFT",MetaMap_WorldMap_baseX,MetaMap_WorldMap_baseY);
if ( scale ~= MetaMap_saveScale or questPanel ~= saveQuestPanel ) then
WorldMapFrame.ScrollContainer:CreateZoomLevels();
WorldMapFrame:ResetZoom();
end
WorldMapFrame.TitleCanvasSpacerFrame:SetScale(1.0);
WorldMapFrame.BorderFrame:SetScale(1.0);
WorldMapFrame.NavBar:SetScale(1.0);
WorldMapFrame.SidePanelToggle:SetScale(1.0);
WorldMapFrameBg:SetPoint("TOPLEFT",WorldMapFrame.BorderFrame,"TOPLEFT",2,MetaPap_WorldMapFrameBg_TopY);
MetaMap_ModeToggleButton:SetScale(1.0);
MetaMap_MoveToggleButton:SetScale(1.0);
MetaMap_GoToCurrentZone:SetScale(1.0);
MetaMap_OptionsButton:SetScale(1.0);
MetaMap_InstanceButton:SetScale(1.0);
QuestMapFrame:SetScale(1.0);
else
local nScale = scale / MetaMap_WorldMap_baseScale;
local spacer = MetaMap_WorldMap_spacer * nScale;
local sizeX = MetaMap_WorldMapScroll_sizeX / MetaMap_WorldMap_baseScale * scale;
local sizeY = MetaMap_WorldMapScroll_sizeY / MetaMap_WorldMap_baseScale * scale;
local setX = abs(posX) + sizeX;
local setY = -(abs(posY) + sizeY + spacer);
local bgPosY = MetaPap_WorldMapFrameBg_TopY / MetaMap_WorldMap_baseScale * nScale;
if ( questPanel ) then
setX = setX + MetaMap_WorldMap_sizeQ * nScale;
end
MetaMap_WorldMap_sizeX = (setX - posX);
MetaMap_WorldMap_sizeY = -(setY - posY);
WorldMapFrame:ClearAllPoints();
WorldMapFrame:SetPoint("TOPLEFT", UIParent, "TOPLEFT", posX, posY);
WorldMapFrame:SetPoint("BOTTOMRIGHT", UIParent, "TOPLEFT", setX, setY);
if ( scale ~= MetaMap_saveScale or questPanel ~= saveQuestPanel ) then
WorldMapFrame.ScrollContainer:CreateZoomLevels();
WorldMapFrame:ResetZoom();
end
WorldMapFrame.TitleCanvasSpacerFrame:SetScale(nScale);
WorldMapFrame.BorderFrame:SetScale(nScale);
WorldMapFrame.NavBar:SetScale(nScale);
WorldMapFrame.SidePanelToggle:SetScale(nScale);
WorldMapFrameBg:SetPoint("TOPLEFT",WorldMapFrame.BorderFrame,"TOPLEFT",2,-bgPosY);
MetaMap_ModeToggleButton:SetScale(nScale);
MetaMap_MoveToggleButton:SetScale(nScale);
MetaMap_GoToCurrentZone:SetScale(nScale);
MetaMap_OptionsButton:SetScale(nScale);
MetaMap_InstanceButton:SetScale(nScale);
QuestMapFrame:SetScale(nScale);
end
frame:SetScale(scale);
return scale;
MetaMap_saveScale = scale;
saveQuestPanel = questPanel;
end
 
function MetaMap_UpdateTTScale()
156,17 → 273,22
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
end
 
--[[old
function MetaMap_SetFrameStrata()
local strata;
if (MetaMapOptions.MetaMapFrameStrata == 2) then
if (MetaMapOptions.MetaMapFrameStrata == 4) then
strata = "DIALOG";
elseif (MetaMapOptions.MetaMapFrameStrata == 3) then
strata = "HIGH";
elseif (MetaMapOptions.MetaMapFrameStrata == 2) then
strata = "MEDIUM";
elseif (MetaMapOptions.MetaMapFrameStrata == 1) then
strata = "HIGH";
strata = "LOW";
else
strata = "MEDIUM";
strata = "BACKGROUND";
end
--WorldMapFrame_ResetFrameLevels();
WorldMapTooltip:SetFrameStrata("TOOLTIP");
-- not all parts of the WorldMapFrame are shown with the same FrameStrata
WorldMapFrame:SetFrameStrata(strata);
 
MetaMap_OptionsButton:SetFrameLevel("99");
176,13 → 298,11
MetaMap_MiscDisplay:SetFrameLevel("99");
MetaMap_MainCoords:SetFrameLevel("99");
 
--WorldMapBlobFrame:SetFrameLevel(WorldMapPOIFrame:GetFrameLevel()+1);
--WorldMapBlobFrame:SetFrameStrata("TOOLTIP");
--WorldMapQuestScrollFrame:SetFrameLevel(MetaMapTopFrame:GetFrameLevel()+6);
WorldMapCompareTooltip1:SetFrameStrata("TOOLTIP");
WorldMapCompareTooltip2:SetFrameStrata("TOOLTIP");
WorldMapTooltip:SetFrameLevel("300");
end
--]]
 
function MetaMap_ToggleOptions(key, value)
if (value) then
trunk/MetaMap/MetaMap.xml
115,7 → 115,7
</Scripts>
</Button>
 
<Button name="MetaMapNotes_NoteTemplate" hidden="true" virtual="true">
<Button name="MetaMapNotes_NoteTemplate" hidden="true" virtual="true" frameStrata="HIGH" toplevel="true">
<Size><AbsDimension x="16" y="16"/></Size>
<Anchors>
<Anchor point="CENTER"/>
146,7 → 146,7
MetaMap_MapNoteOnEnter(self,self:GetID());
</OnEnter>
<OnLeave>
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
</OnLeave>
<OnClick>
194,7 → 194,7
end
</OnEnter>
<OnLeave>
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
</OnLeave>
<OnClick>
237,7 → 237,7
</OnEnter>
<OnLeave>
_G[self:GetName().."Highlight"]:Hide();
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
</OnLeave>
</Scripts>
373,7 → 373,7
 
<Frame name="MetaMap_InstanceMenu" inherits="UIDropDownMenuTemplate" parent="UIParent" id="33"/>
 
<Frame name="MetaMap_MiscDisplay" toplevel="true" parent="WorldMapFrame" hidden="false">
<Frame name="MetaMap_MiscDisplay" parent="WorldMapFrame" hidden="false" frameStrata="HIGH" toplevel="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="MetaMapText_NoteTotals" inherits="MetaMap_FontSmallTemplate" text="">
396,7 → 396,7
</Frame>
 
<!-- Coords printing at the map -->
<Frame name="MetaMap_MainCoords" hidden="true" parent="WorldMapFrame" >
<Frame name="MetaMap_MainCoords" hidden="true" parent="WorldMapFrame" frameStrata="HIGH" toplevel="true">
<Layers>
<Layer level="ARTWORK">
<FontString name="MetaMapCoordsPlayer" inherits="MetaMap_FontSmallTemplate" text="">
561,7 → 561,7
 
 
 
<Frame name="MetaMapNotesLinesFrame" parent="WorldMapButton" hidden="false" />
<Frame name="MetaMapNotesLinesFrame" parent="WorldMapFrame.ScrollContainer.Child" hidden="false" frameStrata="HIGH" toplevel="true" />
<!--Frame name="MetaMapNotesLinesFrame" parent="WorldMapFrame" hidden="false">
<Scripts>
<OnLoad>
2111,14 → 2111,14
-- WorldMapPlayerUpper:GetScript("OnLeave")(WorldMapPlayerUpper); -- just a hide tooltip call
</OnLeave>
<OnClick>
MetaMap_WorldMapButton_OnClick(WorldMapButton, button); -- leave without self
MetaMap_WorldMapButton_OnClick(WorldMapFrame.ScrollContainer, button); -- leave without self
</OnClick>
</Scripts>
</Button>
 
<!-- for vNote & Party function -->
<Button name="MetaMapNotesPOIvNote" inherits="WorldMapMetaMapNotesMiscTemplate" id="0" parent="WorldMapButton" hidden="true"/>
<Button name="MetaMapNotesPOIparty" inherits="WorldMapMetaMapNotesMiscTemplate" id="1" parent="WorldMapButton" hidden="true"/>
<Button name="MetaMapNotesPOIvNote" inherits="WorldMapMetaMapNotesMiscTemplate" id="0" parent="WorldMapFrame.ScrollContainer" hidden="true"/>
<Button name="MetaMapNotesPOIparty" inherits="WorldMapMetaMapNotesMiscTemplate" id="1" parent="WorldMapFrame.ScrollContainer" hidden="true"/>
 
<!-- Adds the MiniNote POI to MiniMapFrame -->
<Button name="MetaMap_MiniNote" parent="Minimap" toplevel="true" hidden="true">
3039,7 → 3039,7
</Frames>
<Scripts>
<OnLoad>
self:SetHeight(WorldMapButton:GetHeight());
self:SetHeight(WorldMapFrame.ScrollContainer:GetHeight());
self:SetFrameLevel(self:GetParent():GetFrameLevel() + 4);
</OnLoad>
</Scripts>
3094,7 → 3094,7
MetaMap_InfoLineOnEnter(self);
</OnEnter>
<OnLeave>
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
</OnLeave>
</Scripts>
3251,9 → 3251,9
</Scripts>
</Frame>
 
<Button name="MetaMap_ModeToggleButton" hidden="false" parent="WorldMapFrame" inherits="UIPanelButtonTemplate" text="0">
<Button name="MetaMap_ModeToggleButton" hidden="false" parent="WorldMapFrame" inherits="UIPanelButtonTemplate" frameStrata="HIGH" toplevel="true" text="0">
<Size><AbsDimension x="22" y="22"/></Size>
<Anchors><Anchor point="TOPRIGHT" relativeTo="WorldMapFrameCloseButton" relativePoint="BOTTOMRIGHT" x="-6" y="6"/></Anchors>
<Anchors><Anchor point="RIGHT" relativeTo="WorldMapFrameCloseButton" relativePoint="LEFT" x="-18" y="0"/></Anchors>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonDown");
3264,15 → 3264,39
</Scripts>
</Button>
 
<Button name="MetaMap_GoToCurrentZone" hidden="false" parent="WorldMapFrame" inherits="UIPanelButtonTemplate" text="METAMAP_GO_TO_CURENT_ZONE">
<Size><AbsDimension x="120" y="23"/></Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="MetaMap_ModeToggleButton" relativePoint="LEFT">
<Offset><AbsDimension x="0" y="0"/></Offset>
</Anchor>
</Anchors>
<CheckButton name="MetaMap_MoveToggleButton" inherits="ActionButtonTemplate" hidden="false" parent="WorldMapFrame" frameStrata="HIGH" toplevel="true">
<Size><AbsDimension x="30" y="30"/></Size>
<Anchors><Anchor point="RIGHT" relativeTo="MetaMap_ModeToggleButton" relativePoint="LEFT" x="7" y="0"/></Anchors>
<Backdrop bgFile="Interface\Buttons\LockButton-Border"/>
<Scripts>
<OnLoad>
self:SetChecked(false);
WorldMapFrame.canMove = false;
WorldMapFrame:SetMovable(false);
WorldMapFrame:EnableMouse(false);
WorldMapFrame:SetClampedToScreen(false);
WorldMapFrame:RegisterForDrag("LeftButton");
WorldMapFrame:HookScript("OnMouseDown", MetaMap_WorldMapFrame_OnMouseDown);
WorldMapFrame:SetScript("OnDragStart", MetaMap_FrameStartMoving)
WorldMapFrame:SetScript("OnDragStop", MetaMap_FrameStopMoving)
</OnLoad>
<OnClick>
WorldMapFrame.canMove = self:GetChecked();
WorldMapFrame:SetMovable(self:GetChecked());
WorldMapFrame:EnableMouse(self:GetChecked());
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\LockButton-Locked-Up"/>
<PushedTexture file="Interface\Buttons\LockButton-Unlocked-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\LockButton-Unlocked-Up"/>
</CheckButton>
 
<Button name="MetaMap_GoToCurrentZone" hidden="false" parent="WorldMapFrame" inherits="UIPanelButtonTemplate" frameStrata="HIGH" toplevel="true" text="METAMAP_GO_TO_CURENT_ZONE">
<Size><AbsDimension x="110" y="23"/></Size>
<Anchors><Anchor point="RIGHT" relativeTo="MetaMap_MoveToggleButton" relativePoint="LEFT" x="5" y="0"/></Anchors>
<Scripts>
<OnLoad>
self:RegisterForClicks("LeftButtonDown");
</OnLoad>
<OnClick>
3283,14 → 3307,9
</Scripts>
</Button>
 
<!-- Option button position in the map frame -->
<Button name="MetaMap_OptionsButton" hidden="false" parent="WorldMapFrame" inherits="OptionsButtonTemplate" text="METAMAP_OPTIONS_BUTTON">
<Size><AbsDimension x="100" y="23"/></Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="MetaMap_GoToCurrentZone" relativePoint="LEFT">
<Offset><AbsDimension x="-6" y="0"/></Offset>
</Anchor>
</Anchors>
<Button name="MetaMap_OptionsButton" hidden="false" parent="WorldMapFrame" inherits="OptionsButtonTemplate" frameStrata="HIGH" toplevel="true" text="METAMAP_OPTIONS_BUTTON">
<Size><AbsDimension x="90" y="23"/></Size>
<Anchors><Anchor point="RIGHT" relativeTo="MetaMap_GoToCurrentZone" relativePoint="LEFT" x="3" y="0"/></Anchors>
<Scripts>
<OnEnter>
if (not MetaMapOptions.MenuMode) then
3305,14 → 3324,9
</Scripts>
</Button>
 
<!-- The instance menu button -->
<Button name="MetaMap_InstanceButton" hidden="false" parent="WorldMapFrame" inherits="OptionsButtonTemplate" text="Instance">
<Button name="MetaMap_InstanceButton" hidden="false" parent="WorldMapFrame" inherits="OptionsButtonTemplate" frameStrata="HIGH" toplevel="true" text="Instance">
<Size><AbsDimension x="80" y="23"/></Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="WorldMapFrameNavBarOverlay" relativePoint="TOPLEFT">
<Offset><AbsDimension x="-2" y="1"/></Offset>
</Anchor>
</Anchors>
<Anchors><Anchor point="TOPLEFT" relativeTo="WorldMapFramePortraitFrame" relativePoint="TOPRIGHT" x="-7" y="-10"/></Anchors>
<Scripts>
<OnEnter>
if (not MetaMapOptions.MenuMode) then
trunk/MetaMap/Bindings.xml
1,4 → 1,5
<Bindings>
<!--
<Binding name="METAMAP_MAPTOGGLE" header="METAMAP_TITLE">
MetaMap_ToggleFrame(WorldMapFrame);
</Binding>
32,4 → 33,5
<Binding name = "METAMAP_NBK">
MetaMap_LoadNBK()
</Binding>
-->
</Bindings>
trunk/MetaMap/MetaMapFunctions.lua
48,36 → 48,36
 
function MetaMap_GetMapContinents()
local continentNames = { };
local continentsP6 = { GetMapContinents() };
local index = 0;
for i = 2, #continentsP6, 2 do
index = index + 1;
continentNames[index] = continentsP6[i];
for i = 1, 1000 do
local mapInfo = C_Map.GetMapInfo(i);
if ( mapInfo and mapInfo.mapType == 2 and mapInfo.parentMapID > 0 ) then
continentNames[mapInfo.mapID] = mapInfo.name;
end
end
 
return continentNames;
end
 
function MetaMap_GetMapZones(cKey)
function MetaMap_GetMapZones(cMapID)
local zoneNames = { };
local zonesP6 = { GetMapZones(cKey) };
local index = 0;
for i = 2, #zonesP6, 2 do
index = index + 1;
zoneNames[index] = zonesP6[i];
local mapid = zonesP6[i-1];
local subZonesP6 = { GetMapSubzones(mapid) };
if ( #subZonesP6 > 0 ) then
for j = 2, #subZonesP6, 2 do
index = index + 1;
zoneNames[index] = subZonesP6[j];
local mapInfo = C_Map.GetMapChildrenInfo(cMapID);
for key, zone in pairs(mapInfo) do
if ( zone.mapType == 3 ) then
zoneNames[zone.mapID] = zone.name;
-- some maps have sub-maps
local sMapInfo = C_Map.GetMapChildrenInfo(zone.mapID);
for sKey, sZone in pairs(sMapInfo) do
if ( sZone.mapType == 3 ) then
zoneNames[sZone.mapID] = sZone.name;
end
end
end
end
 
return zoneNames;
end
 
--[[
function MetaMap_GetMapZoneID(continent,zoneName)
local mapid, name
local zonesP6 = { GetMapZones(continent) };
95,6 → 95,7
end
end
end
--]]
 
function MetaMap_MergeZoneName(zoneTable)
local nameid;
106,6 → 107,10
end
 
function MetaMap_GetMapZoneName(areaid)
local mapInfo = C_Map.GetMapInfo(areaid);
if ( mapInfo ) then return mapInfo.name; end
--old
--[[
local clist = MetaMap_GetMapContinents();
for c = 1, #clist do
local mapid, name
124,6 → 129,7
end
end
end
--]]
end
 
function MetaMap_ZoneIDToName(continentKey, zoneKey)
153,7 → 159,7
end
if (continentKey == -1) then
for index, zoneTable in pairs(MetaMap_ZoneTable) do
if ( zoneTable.mapid and (zoneTable.mapid == zoneKey) ) then
if ( zoneTable.mapid and MetaMap_UiMapID_AreaID[zoneKey] and (zoneTable.mapid == MetaMap_UiMapID_AreaID[zoneKey].AreaID) ) then
return MetaMap_MergeZoneName(zoneTable);
end
end
163,16 → 169,42
return UNKNOWN;
end
 
function MetaMap_GetCurrentMapDungeonLevel()
local level;
local mapID = WorldMapFrame:GetMapID();
if ( mapID and MetaMap_UiMapID_AreaID[mapID] ) then
level = MetaMap_UiMapID_AreaID[mapID].Floor;
else
level = 0;
end
return level;
end
 
function MetaMap_GetCurrentMapInfo()
local mapName = "";
local mapID = WorldMapFrame:GetMapID();
if ( MetaMapOptions.ShowDNI ) then
mapName = MetaMapOptions.MetaMapZone;
else
mapName = MetaMap_ZoneIDToName(-1, mapID);
end
local mapLevel = 0;
if ( MetaMap_UiMapID_AreaID[mapID] ) then
mapLevel = MetaMap_UiMapID_AreaID[mapID].Floor;
end
 
--old
--[[
local mapName, dataZone;
local _, _, _, isMicroDungeon = GetMapInfo();
local mapLevel = GetCurrentMapDungeonLevel();
if ( MetaMapOptions.ShowDNI or isMicroDungeon ) then
if ( MetaMapOptions.ShowDNI ) then
mapName = MetaMapOptions.MetaMapZone;
else
local MapZone = GetCurrentMapZone();
if ( MapZone > 0 ) then
mapName = MetaMap_ZoneIDToName(-1, GetCurrentMapAreaID());
mapName = MetaMap_ZoneIDToName(-1, WorldMapFrame:GetMapID());
else
local mapC = GetCurrentMapContinent();
local mapZ = GetCurrentMapZone();
180,7 → 212,7
if ( (mapC == -1) and (mapZ == 0) ) then
local name = GetMapInfo();
if ( name ) then
mapName = MetaMap_ZoneIDToName(-1, GetCurrentMapAreaID());
mapName = MetaMap_ZoneIDToName(-1, WorldMapFrame:GetMapID());
end
end
if ( not mapName ) then
188,7 → 220,8
end
end
end
return mapName, mapLevel, MetaMap_Notes[mapName], isMicroDungeon;
--]]
return mapName, mapLevel, MetaMap_Notes[mapName];
end
 
function MetaMap_SplitZoneName(zoneName0)
238,7 → 271,7
if (not currentid) then
found = true;
else
if (currentid == zoneTable.mapid) then found = true; end
if (MetaMap_UiMapID_AreaID[currentid].AreaID == zoneTable.mapid) then found = true; end
end
end
end
248,7 → 281,11
ztype = zoneTable.ztype;
mapid = 0;
if (zoneTable.mapid ~= nil) then
mapid = zoneTable.mapid;
for i = 1, 1000 do
if ( MetaMap_UiMapID_AreaID[i] and MetaMap_UiMapID_AreaID[i].AreaID == zoneTable.mapid ) then
mapid = i;
end
end
end
end
end
trunk/MetaMap/MetaMapOptions.xml
407,8 → 407,8
_G[self:GetName().."Text"]:SetText(METAMAP_OPTIONS_SCALE);
_G[self:GetName().."High"]:SetText();
_G[self:GetName().."Low"]:SetText();
self:SetMinMaxValues(0.0,1.0);
self:SetValueStep(0.01);
self:SetMinMaxValues(0.2,1.0);
self:SetValueStep(0.05);
</OnLoad>
<OnValueChanged>
MetaMap_UpdateScale();
459,11 → 459,11
WorldMapTooltip:SetOwner(self, "ANCHOR_CENTER");
WorldMapTooltip:SetText("Tooltip Scaling Sample", 0, 1, 0);
WorldMapTooltip:AddLine("Move the Tooltip slider to change the scale of the tooltips shown on the WorldMap", 1, 1, 1, true);
WorldMapPOIFrame.allowBlobTooltip = false;
--old WorldMapPOIFrame.allowBlobTooltip = false;
WorldMapTooltip:Show();
</OnEnter>
<OnLeave>
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
</OnLeave>
</Scripts>
533,6 → 533,7
</Scripts>
</Slider>
 
<!-- old
<Slider name="MetaMapFrameStrataSlider" inherits="OptionsSliderTemplate">
<Size><AbsDimension x="150" y="16"/></Size>
<Anchors>
546,17 → 547,18
_G[self:GetName().."Text"]:SetText(METAMAP_OPTIONS_FRAMESTRATA..": |cff00ff00"..self:GetValue());
_G[self:GetName().."High"]:SetText();
_G[self:GetName().."Low"]:SetText();
self:SetMinMaxValues(0,2);
self:SetMinMaxValues(0,4);
self:SetValueStep(1);
self:SetValue(MetaMapOptions.MetaMapFrameStrata);
</OnShow>
<OnValueChanged>
MetaMapOptions.MetaMapFrameStrata = MetaMapFrameStrataSlider:GetValue();
_G[self:GetName().."Text"]:SetText(METAMAP_OPTIONS_FRAMESTRATA..": |cff00ff00"..self:GetValue());
MetaMapOptions.MetaMapFrameStrata = math.floor(MetaMapFrameStrataSlider:GetValue() + 0.5);
_G[self:GetName().."Text"]:SetText(METAMAP_OPTIONS_FRAMESTRATA..": |cff00ff00"..MetaMapOptions.MetaMapFrameStrata);
MetaMap_SetFrameStrata();
</OnValueChanged>
</Scripts>
</Slider>
-->
</Frames>
</Frame>
 
trunk/MetaMap/MetaMap.lua
97,9 → 97,10
local MetaMapTopFrame_Visible = false;
local MataMapMainMenu_Visible = false;
 
MetaMap_WorldMap_baseScale = 0;
local MetaMap_oldScale = 0;
local MetaMap_oldScrollH = 0;
local MetaMap_oldScrollV = 0;
local MetaMap_oldScale = 0;
 
MetaMap_CurrentAction = false;
local MetaMap_LastNote = 0;
124,6 → 125,8
["MetaMapAlpha2"] = 0.60,
["BDshader1"] = 0.0,
["BDshader2"] = 0.0,
["MetaMapPos1"] = { -1, -1 },
["MetaMapPos2"] = { -1, -1 },
["MetaMapScale1"] = 0.75,
["MetaMapScale2"] = 0.55,
["MetaMapTTScale1"] = 1.0,
184,15 → 187,17
function MetaMap_SetWorldMap()
MiniMapWorldMapButton:Hide();
 
hooksecurefunc("WorldMapFrame_ToggleWindowSize", MetaMap_FullScreenToggle);
--old hooksecurefunc("WorldMapFrame_ToggleWindowSize", MetaMap_FullScreenToggle);
-- hooksecurefunc is not working for functions called directly by XML code, thats use additional:
WorldMapFrame.BorderFrame.MaximizeMinimizeFrame.MinimizeButton:HookScript("OnClick", MetaMap_FullScreenToggle);
WorldMapFrame.BorderFrame.MaximizeMinimizeFrame.MaximizeButton:HookScript("OnClick", MetaMap_FullScreenToggle);
 
-- update the lines at change of the world map zoom
WorldMapScrollFrame:HookScript("OnMouseWheel", MetaMap_MainMapUpdate);
--old WorldMapScrollFrame:HookScript("OnMouseWheel", MetaMap_MainMapUpdate);
WorldMapFrame.ScrollContainer:HookScript("OnMouseWheel", MetaMap_MainMapUpdate);
WorldMapFrame.ScrollContainer:HookScript("OnMouseDown", MetaMap_ProcessMapClick);
 
MetaMap_SetFrameStrata();
--old MetaMap_SetFrameStrata();
 
MetaMap_WorldMapFrame_OnKeyDown_old = WorldMapFrame:GetScript("OnKeyDown");
MetaMap_FullScreenToggle();
211,9 → 216,7
hooksecurefunc(WorldMapFrame, "Show", MetaMapTopFrame_OnShow);
hooksecurefunc(WorldMapFrame, "Hide", MetaMapTopFrame_OnHide);
 
MetaMap_SetMapToCurrentZone();
 
MetaMap_oldScale = WORLDMAP_SETTINGS.size;
--old MetaMap_SetMapToCurrentZone();
end
 
function MetaMapButton_OnClick()
224,37 → 227,46
function MetaMap_OnLoad(self)
hooksecurefunc("ToggleDropDownMenu", MetaMap_ToggleDropDownMenu);
 
hooksecurefunc("WorldMapZoomOutButton_OnClick", MetaMap_WorldMapZoomOutButton_OnClick);
--old hooksecurefunc("WorldMapZoomOutButton_OnClick", MetaMap_WorldMapZoomOutButton_OnClick);
WorldMapFrame.ScrollContainer:HookScript("OnMouseUp", MetaMap_WorldMapZoomOutButton_OnClick);
QuestMapFrame:HookScript("OnMouseUp", MetaMap_QuestMapFrame_OnMouseUp);
 
--# hooksecurefunc("QuestMapFrame_CloseQuestDetails", MetaMap_QuestMapFrame_CloseQuestDetails);
QuestMapFrame.DetailsFrame.BackButton:HookScript("OnClick", MetaMap_QuestMapFrameDetailsFrameBackButton_OnClick);
WorldMapScrollFrame:HookScript("OnMouseWheel", MetaMap_WorldMapScrollFrame_OnMouseWheel);
hooksecurefunc("WorldMapScrollFrame_OnPan", MetaMap_WorldMapScrollFrame_OnPan);
--old WorldMapScrollFrame:HookScript("OnMouseWheel", MetaMap_WorldMapScrollFrame_OnMouseWheel);
WorldMapFrame.ScrollContainer:HookScript("OnMouseWheel", MetaMap_WorldMapScrollFrame_OnMouseWheel);
--old hooksecurefunc("WorldMapScrollFrame_OnPan", MetaMap_WorldMapScrollFrame_OnPan);
--??? WorldMapFrame.ScrollContainer:HookScript("IsPanning", MetaMap_WorldMapScrollFrame_OnPan);
 
hooksecurefunc("QuestLogQuests_GetHeaderButton", MetaMap_QuestLogQuests_GetHeaderButton);
hooksecurefunc("QuestLogQuests_GetTitleButton", MetaMap_QuestLogQuests_GetTitleButton);
--old hooksecurefunc("QuestLogQuests_GetHeaderButton", MetaMap_QuestLogQuests_GetHeaderButton);
--???
--old hooksecurefunc("QuestLogQuests_GetTitleButton", MetaMap_QuestLogQuests_GetTitleButton);
--???
 
hooksecurefunc("NavBar_ClearTrailingButtons", MetaMap_NavBar_ClearTrailingButtons);
hooksecurefunc("WorldMapLevelButton_OnClick", MetaMap_WorldMapLevelButton_OnClick);
--old hooksecurefunc("WorldMapLevelButton_OnClick", MetaMap_WorldMapLevelButton_OnClick);
 
AzerothButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
OutlandButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
DraenorButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--old AzerothButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
--old OutlandButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
--old DraenorButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
 
TheMaelstromButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
DeepholmButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
KezanButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
LostIslesButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--old TheMaelstromButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
--old DeepholmButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
--old KezanButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
--old LostIslesButton:HookScript("OnClick", MetaMap_WorldMapAreaButton_OnClick);
--???
 
--#? WorldMapLevelUpButton:HookScript("OnClick", MetaMap_WorldMapLevelUpDown_OnClick);
--#? WorldMapLevelDownButton:HookScript("OnClick", MetaMap_WorldMapLevelUpDown_OnClick);
--#? hooksecurefunc("WorldMapLevelButton_OnClick", MetaMap_WorldMapLevelUpDown_OnClick);
 
self:RegisterEvent("ADDON_LOADED");
self:RegisterEvent("VARIABLES_LOADED");
self:RegisterEvent("UPDATE_BINDINGS");
self:RegisterEvent("WORLD_MAP_UPDATE");
--old self:RegisterEvent("WORLD_MAP_UPDATE");
WorldMapFrame.ScrollContainer:HookScript("OnUpdate", MetaMap_WORLD_MAP_UPDATE);
self:RegisterEvent("ZONE_CHANGED_NEW_AREA");
self:RegisterEvent("ZONE_CHANGED");
self:RegisterEvent("ZONE_CHANGED_INDOORS");
318,8 → 330,8
end
 
function MetaMapContainerFrame_OnLoad(frame)
frame:SetWidth(WorldMapButton:GetWidth() - MetaMap_MapListFrame:GetWidth()-1);
frame:SetHeight(WorldMapButton:GetHeight()-41);
frame:SetWidth(WorldMapFrame.ScrollContainer:GetWidth() - MetaMap_MapListFrame:GetWidth()-1);
frame:SetHeight(WorldMapFrame.ScrollContainer:GetHeight()-41);
frame:SetFrameLevel(frame:GetParent():GetFrameLevel()+3);
MetaMapContainer_Header:SetFrameLevel(frame:GetFrameLevel()+2);
MetaMapContainer_Footer:SetFrameLevel(frame:GetFrameLevel()+2);
340,7 → 352,7
WorldMapPlayerLower:ClearAllPoints();
PositionWorldMapArrowFrame("center","WorldMapDetailFrame","topleft",xOfs,yOfs);
WorldMapPlayerLower:ClearAllPoints();
WorldMapPlayerLower:SetPoint("center","WorldMapDetailFrame","topleft",500,-308);
WorldMapPlayerLower:SetPoint("center",WorldMapDetailFrame,"topleft",500,-308);
UpdateWorldMapArrow();
point, relativeTo, relativePoint, xOfs, yOfs = WorldMapPlayerLower:GetPoint();
DEFAULT_CHAT_FRAME:AddMessage("ArrowAfter: "..point..","..relativeTo:GetName()..","..relativePoint..","..xOfs..","..yOfs);
362,7 → 374,8
MetaMap_InfoLineFrame:SetFrameLevel(WorldMapFrame:GetFrameLevel()+3);
MetaMap_Debug_Print("MetaMapTopFrame_OnShow: Updating Quests",true);
end
WorldMapFrameTutorialButton:Hide();
--old WorldMapFrameTutorialButton:Hide();
WorldMapFrame.BorderFrame.Tutorial:Hide();
 
if (not MetaMap_VarsLoaded) then return; end
 
379,8 → 392,8
if ( not MetaMapTopFrame_Visible ) then
StaticPopup1:SetFrameStrata("FULLSCREEN");
if (MetaMap_FullScreenMode or InCombatLockdown()) then
MetaMapNotesEditFrame:SetParent("WorldMapFrame");
MetaMap_SendFrame:SetParent("WorldMapFrame");
MetaMapNotesEditFrame:SetParent(WorldMapFrame);
MetaMap_SendFrame:SetParent(WorldMapFrame);
end
end
 
410,9 → 423,9
 
MetaMap_ToggleDR(self,0);
StaticPopup1:SetFrameStrata("DIALOG");
MetaMapNotesEditFrame:SetParent("UIParent");
MetaMapNotesEditFrame:SetParent(UIParent);
MetaMapNotesEditFrame:SetFrameStrata("FULLSCREEN");
MetaMap_SendFrame:SetParent("UIParent");
MetaMap_SendFrame:SetParent(UIParent);
MetaMap_SendFrame:SetFrameStrata("FULLSCREEN");
MetaMap_SetMapToCurrentZone();
 
435,6 → 448,10
end
end
 
function MetaMap_WORLD_MAP_UPDATE(self,elapsed)
MetaMap_OnEvent(self, "WORLD_MAP_UPDATE");
end
 
local WORLD_MAP_UPDATE_event_look = false;
-- skip the required delay for map changes in case of a zone change
local MetaMap_ZONE_CHANGE = false;
453,6 → 470,7
elseif (event == "VARIABLES_LOADED") then
MetaMap_SetWorldMap();
 
--[[old
-- Prevents taint from expanding menus past blizzard's MAXBUTTONS, also fixes an init issue with menus longer than 17.
if ( UIDROPDOWNMENU_MAXBUTTONS < 29 ) then
local toggle;
467,6 → 485,7
ToggleFrame(WorldMapFrame);
end
end
--]]
 
MetaMap_CurrentSaveSet = MetaMapOptions.SaveSet;
MetaMap_ModeToggleButton:SetText(MetaMapOptions.SaveSet);
488,28 → 507,30
MetaMap_OrigChatFrame_OnEvent = ChatFrame_MessageEventHandler;
ChatFrame_MessageEventHandler = MetaMap_ChatFrame_OnEvent;
 
MetaMap_MiniNote.TimeSinceLastUpdate = 0;
for i=0, 9, 1 do
if (MetaMap_NoteFilter[i] == nil) then MetaMap_NoteFilter[i] = true; end
end
if (not MetaMapOptions.MetaMapZone) then
MetaMapOptions.MetaMapZone = MetaMap_ZoneTable[110][MetaMap_Locale];
end
if (not MetaMapOptions.MetaMapLevel) then MetaMapOptions.MetaMapLevel = 0; end
if ( not MetaMapOptions.oldScrollH ) then MetaMapOptions.oldScrollH = 0; end
if ( not MetaMapOptions.oldScrollV ) then MetaMapOptions.oldScrollV = 0; end
if ( not MetaMapOptions.oldScale ) then MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size; end
MetaMap_ZoneCapture = nil;
-- shifted to PLAYER_ENTERING_WORLD, because the worldMapFrame is not fully initialized yet
--old MetaMap_MiniNote.TimeSinceLastUpdate = 0;
--old for i=0, 9, 1 do
--old if (MetaMap_NoteFilter[i] == nil) then MetaMap_NoteFilter[i] = true; end
--old end
--old if (not MetaMapOptions.MetaMapZone) then
--old MetaMapOptions.MetaMapZone = MetaMap_ZoneTable[110][MetaMap_Locale];
--old end
--old if (not MetaMapOptions.MetaMapLevel) then MetaMapOptions.MetaMapLevel = 0; end
--old if ( not MetaMapOptions.oldScrollH ) then MetaMapOptions.oldScrollH = 0; end
--old if ( not MetaMapOptions.oldScrollV ) then MetaMapOptions.oldScrollV = 0; end
--old if ( not MetaMapOptions.oldScale ) then MetaMapOptions.oldScale = WorldMapFrame:GetScale(); end
--old MetaMap_ZoneCapture = nil;
 
MetaMapOptions_Init();
MetaMapList_Init();
-- shifted to PLAYER_ENTERING_WORLD, because the worldMapFrame is not fully initialized yet
--old MetaMapOptions_Init();
--old MetaMapList_Init();
 
-- check if MobMap is installed and using its internal quest tracker
if ( mobmap_use_questtracker ) then
MetaMap_Print(METAMAP_MOBMAP_QUESTTRACKER_WARNING, true, 1, 0, 0);
mobmap_use_questtracker = false;
MobMap_QuestTracker_Setup();
end
--old -- check if MobMap is installed and using its internal quest tracker
--old if ( mobmap_use_questtracker ) then
--old MetaMap_Print(METAMAP_MOBMAP_QUESTTRACKER_WARNING, true, 1, 0, 0);
--old mobmap_use_questtracker = false;
--old MobMap_QuestTracker_Setup();
--old end
MetaMap_VarsLoaded = true;
elseif (event == "WORLD_MAP_UPDATE") then
if (not MetaMap_VarsLoaded) then return; end
578,12 → 599,6
if ( not MetaMap_StayOnMap and (zType == "DNI" or zType == "BG" or zType == "SCN" or zType == "RDI") ) then
MetaMapOptions.ShowDNI = true;
MetaMap_ShowInstance(self, true);
--#? run this if a menu entry of the world map is used
--#? elseif ( ???) then
--#? MetaMapOptions.ShowDNI = false;
--#? MetaMapOptions.MetaMapZone = nil;
--#? MetaMapOptions.MetaMapLevel = 0;
--#? UIDropDownMenu_ClearAll(MetaMap_InstanceMenu);
end
 
if (IsAddOnLoaded("MetaMapWKB") and WKB_DisplayFrame:IsVisible()) then
644,11 → 659,33
MetaMap_Timer_DelayWKB_AddUnitInfo = 5.0;
elseif (event == "PLAYER_ENTERING_WORLD") then
if (not MetaMap_VarsLoaded) then return; end
if (not MetaMap_GetRealZoneText()) then return; end
 
ShowUIPanel(WorldMapFrame);
MetaMapOptions_Init();
MetaMapList_Init();
HideUIPanel(WorldMapFrame);
 
MetaMap_MiniNote.TimeSinceLastUpdate = 0;
for i=0, 9, 1 do
if (MetaMap_NoteFilter[i] == nil) then MetaMap_NoteFilter[i] = true; end
end
if (not MetaMapOptions.MetaMapZone) then
MetaMapOptions.MetaMapZone = MetaMap_ZoneTable[110][MetaMap_Locale];
end
MetaMap_oldScale = MetaMap_WorldMap_baseScale;
if (not MetaMapOptions.MetaMapLevel) then MetaMapOptions.MetaMapLevel = 0; end
if ( not MetaMapOptions.oldScrollH ) then MetaMapOptions.oldScrollH = 0; end
if ( not MetaMapOptions.oldScrollV ) then MetaMapOptions.oldScrollV = 0; end
if ( not MetaMapOptions.oldScale ) then MetaMapOptions.oldScale = MetaMap_oldScale; end
MetaMap_ZoneCapture = nil;
 
--old if (not MetaMap_GetRealZoneText()) then return; end
 
MetaMap_SetMapToCurrentZone();
 
MetaMap_ZoneDisplay:SetText(METAMAP_CURZONE..MetaMap_GetRealZoneText());
if ( MetaMap_GetRealZoneText() ) then
MetaMap_ZoneDisplay:SetText(METAMAP_CURZONE..MetaMap_GetRealZoneText());
end
MetaMap_Timer_DelayWKB_AddUnitInfo = 5.0;
elseif (event == "MINIMAP_UPDATE_ZOOM") then
MetaMap_MinimapUpdateZoom();
791,17 → 828,20
if (MetaMap_RealZoneTimer and MetaMap_RealZoneTimer < 0) then
MetaMap_RealZoneTimer = nil;
if (realZone) then
local _, _, _, isMicroDungeon = GetMapInfo();
--old local _, _, _, isMicroDungeon = GetMapInfo();
for _, zoneTable in pairs(MetaMap_ZoneTable) do
if (zoneTable[MetaMap_Locale] == realZone) then
if ( (zoneTable.ztype == "SZR") and not isMicroDungeon ) then
--old if ( (zoneTable.ztype == "SZR") and not isMicroDungeon ) then
if ( zoneTable.ztype == "SZR" ) then
realZone = MetaMap_SplitZoneName(zoneTable.Location);
end
end
end
local baseName = MetaMap_SplitZoneName(MetaMap_BaseMap.Name);
if ( (baseName ~= realZone) or (MetaMap_IsMicroDungeon ~= isMicroDungeon) ) then
MetaMap_IsMicroDungeon = isMicroDungeon;
--old if ( (baseName ~= realZone) or (MetaMap_IsMicroDungeon ~= isMicroDungeon) ) then
if ( baseName ~= realZone ) then
--old MetaMap_IsMicroDungeon = isMicroDungeon;
MetaMap_IsMicroDungeon = false;
MetaMap_OnEvent(self, "ZONE_CHANGED");
MetaMap_Debug_Print("*** Event ZONE_CHANGED triggered by MetaMap_OnUpdate ***",true);
end
876,6 → 916,7
-- print(GetMapZones(1)); SetMapZoom(1,4);
-- the mapList used by SetMapZoom(continent,mapListNr) is a combination of
-- GetMapZones(continent) and GetMapSubzones(mapid), but with dungeons removed
--[[
function MetaMap_SetMapZoomByName(name)
if (not name or name == "") then SetMapZoom(-1,0); return; end
local cKey, zKey = MetaMap_NameToZoneID(name);
892,6 → 933,7
end
SetMapZoom(-1,0);
end
--]]
 
-- check if the zoneName is included in MetaMap_ZoneTable else add it
function MetaMap_ZoneTableUpdate(zoneName)
1188,10 → 1230,12
MetaMap_Debug_Print("FullScreenToggle:", true);
if ( InCombatLockdown() ) then return; end
 
local mapid = GetCurrentMapAreaID();
local level = GetCurrentMapDungeonLevel();
local mapid = WorldMapFrame:GetMapID();
if ( not mapid ) then return; end
--old local level = GetCurrentMapDungeonLevel();
 
MetaMap_FullScreenMode = ( not WorldMapFrame_InWindowedMode() );
--old MetaMap_FullScreenMode = ( not WorldMapFrame_InWindowedMode() );
MetaMap_FullScreenMode = WorldMapFrame.isMaximized;
if (not MetaMap_FullScreenMode) then
WorldMapFrame:SetScript("OnKeyDown", nil);
MetaMapOptions_Init();
1202,13 → 1246,14
WorldMapFrame:SetScript("OnKeyDown", MetaMap_WorldMapFrame_OnKeyDown_old);
MetaMap_MainCoords:Hide();
end
WorldMapFrameTutorialButton:Hide();
--old WorldMapFrameTutorialButton:Hide();
 
local _, _, _, isMicroDungeon = GetMapInfo();
if ( not isMicroDungeon ) then SetMapByID(mapid); end
--old local _, _, _, isMicroDungeon = GetMapInfo();
--old if ( not isMicroDungeon ) then SetMapByID(mapid); end
WorldMapFrame:SetMapID(mapid);
-- ??? MetaMapShown is undefined ???
if (MetaMapShown) then MetaMap_ShowInstance(self, true); end
if ( (level ~= 0) and not isMicroDungeon ) then SetDungeonMapLevel(level); end
--old if (MetaMapShown) then MetaMap_ShowInstance(self, true); end
--old if ( (level ~= 0) and not isMicroDungeon ) then SetDungeonMapLevel(level); end
end
 
function MetaMap_ShowInstance(self, show, basemap)
1217,21 → 1262,21
 
MetaMapOptions.ShowDNI = show;
 
local _, _, _, isMicroDungeon = GetMapInfo();
--old local _, _, _, isMicroDungeon = GetMapInfo();
if (basemap or not WorldMapFrame:IsVisible()) then
if (show and (zType == "RDI" or zType == "DNI" or zType == "BG" or zType == "SCN")) then
--#? UIDropDownMenu_SetText(MetaMap_InstanceMenu, MetaMapOptions.MetaMapZone);
else
--#? UIDropDownMenu_ClearAll(MetaMap_InstanceMenu);
if ( isMicroDungeon ) then
MetaMapOptions.MetaMapLevel = GetCurrentMapDungeonLevel();
else
--old if ( isMicroDungeon ) then
--old MetaMapOptions.MetaMapLevel = GetCurrentMapDungeonLevel();
--old else
MetaMapOptions.MetaMapZone = nil;
MetaMapOptions.MetaMapLevel = 0;
end
--old end
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
end
return;
end
1240,7 → 1285,7
-- set the map only if different to the shown map to prevent endless loop
local map_isSet = false;
local _, instance = MetaMap_NameToZoneID(MetaMapOptions.MetaMapZone);
local location = GetCurrentMapAreaID();
local location = WorldMapFrame:GetMapID();
if (instance ~= location) then
-- to set the mapid to 611 does not work, but its the same map as 685
if (instance == 611) then
1251,7 → 1296,7
map_isSet = true;
end
local level = MetaMapOptions.MetaMapLevel;
location = GetCurrentMapDungeonLevel();
location = MetaMap_GetCurrentMapDungeonLevel();
if (level ~= 0 and level ~= location) then
SetDungeonMapLevel(MetaMapOptions.MetaMapLevel);
map_isSet = true;
1265,15 → 1310,15
else
if (not show) then
--#? UIDropDownMenu_ClearAll(MetaMap_InstanceMenu);
if ( isMicroDungeon ) then
MetaMapOptions.MetaMapLevel = GetCurrentMapDungeonLevel();
else
--old if ( isMicroDungeon ) then
--old MetaMapOptions.MetaMapLevel = GetCurrentMapDungeonLevel();
--old else
MetaMapOptions.MetaMapZone = nil;
MetaMapOptions.MetaMapLevel = 0;
end
--old end
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
end
if (WorldMapFrame:IsVisible()) then
if (IsAddOnLoaded("MetaMapWKB") and WKB_DisplayFrame:IsVisible()) then
1300,7 → 1345,8
function MetaMap_MiniCoordsUpdate()
if (WorldMapFrame:IsVisible()) then return; end
 
local px, py = GetPlayerMapPosition("player");
--old local px, py = GetPlayerMapPosition("player");
local px, py = C_Map.GetBestMapForUnit("player");
if (px == 0 and py == 0) then
local _, _, zType = MetaMap_GetZoneTableEntry(MetaMap_GetRealZoneText());
if (zType == "DN") then
1319,12 → 1365,12
function MetaMap_MainCoordsUpdate()
local OFFSET_X = 0;
local OFFSET_Y = 0;
local centerX, centerY = WorldMapButton:GetCenter()
local width = WorldMapButton:GetWidth()
local height = WorldMapButton:GetHeight()
local centerX, centerY = WorldMapFrame.ScrollContainer:GetCenter()
local width = WorldMapFrame.ScrollContainer:GetWidth()
local height = WorldMapFrame.ScrollContainer:GetHeight()
local x, y = GetCursorPosition()
x = x / WorldMapButton:GetEffectiveScale()
y = y / WorldMapButton:GetEffectiveScale()
x = x / WorldMapFrame.ScrollContainer:GetEffectiveScale()
y = y / WorldMapFrame.ScrollContainer:GetEffectiveScale()
 
if (centerX == nil) then
centerX = 0;
1347,7 → 1393,7
MetaMapCoordsCursor:SetText("|cffffffff"..format("%4.1f, %4.1f", x, y));
end
 
local px, py = GetPlayerMapPosition("player");
local px, py = C_Map.GetBestMapForUnit("player");
if(px==nil) then px=0; end
if(py==nil) then py=0; end
if (px == 0 and py == 0) then
1355,7 → 1401,8
local continent, zone = MetaMap_NameToZoneID(MetaMap_GetRealZoneText());
if (zType == "DN") then
MetaMapCoordsPlayer:SetText(METAMAP_INSTANCE_1);
elseif (GetCurrentMapContinent() ~= continent or GetCurrentMapZone() ~= zone) then
--old elseif (GetCurrentMapContinent() ~= continent or GetCurrentMapZone() ~= zone) then
elseif (GetCurrentMapContinent() ~= continent or zone ~= 1) then
MetaMapCoordsPlayer:SetText("");
else
MetaMapCoordsPlayer:SetText("|cff00ff00Dead Zone");
1483,7 → 1530,7
MetaMapOptions.MetaMapLevel = 0;
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
MetaMap_ShowInstance(self, true);
 
MetaMap_CurrentMap = MetaMap_SaveCurrentMapData();
1716,9 → 1763,9
HideUIPanel(MetaMap_DialogFrame);
else
if (MetaMap_FullScreenMode) then
MetaMap_DialogFrame:SetParent("WorldMapFrame");
MetaMap_DialogFrame:SetParent(WorldMapFrame);
else
MetaMap_DialogFrame:SetParent("UIParent");
MetaMap_DialogFrame:SetParent(UIParent);
MetaMap_DialogFrame:SetFrameStrata("FULLSCREEN");
end
ShowUIPanel(MetaMap_DialogFrame);
1799,13 → 1846,14
end
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
if (zType == "RDI" or zType == "DNI" or zType == "BG" or zType == "SCN") then
MetaMap_ShowInstance(self, true);
else
MetaMap_ShowInstance(self, false);
-- SetMapZoom(MetaMap_NameToZoneID(zoneName));
MetaMap_SetMapZoomByName(zoneName);
--old MetaMap_SetMapZoomByName(zoneName);
WorldMapFrame:SetMapID(MetaMap_NameToZoneID(zoneName));
end
 
MetaMap_CurrentMap = MetaMap_SaveCurrentMapData();
1853,11 → 1901,12
end
 
-- This gets called from WorldMapFrame.lua when user left clicks on the map.
local MetaMap_ProcessMapClick_old = ProcessMapClick;
function ProcessMapClick(...)
MetaMap_Debug_Print("ProcessMapClick", true);
--old local MetaMap_ProcessMapClick_old = ProcessMapClick;
--old function ProcessMapClick(...)
function MetaMap_ProcessMapClick(self, button)
MetaMap_Debug_Print("MetaMap_ProcessMapClick", true);
 
local mapName, mapLevel, dataZone, isMicroDungeon = MetaMap_GetCurrentMapInfo();
local mapName, mapLevel, dataZone = MetaMap_GetCurrentMapInfo();
 
if (not MetaMap_FramesHidden()) then return; end
 
1891,12 → 1940,12
 
if ( (IsControlKeyDown() or IsShiftKeyDown() or IsAltKeyDown()) and mapName and dataZone ) then
if (mapName or MetaMapOptions.ShowDNI) then
local centerX, centerY = WorldMapButton:GetCenter();
local width = WorldMapButton:GetWidth();
local height = WorldMapButton:GetHeight();
local centerX, centerY = WorldMapFrame.ScrollContainer:GetCenter();
local width = WorldMapFrame.ScrollContainer:GetWidth();
local height = WorldMapFrame.ScrollContainer:GetHeight();
local x, y = GetCursorPosition();
x = x / WorldMapButton:GetEffectiveScale();
y = y / WorldMapButton:GetEffectiveScale();
x = x / WorldMapFrame.ScrollContainer:GetEffectiveScale();
y = y / WorldMapFrame.ScrollContainer:GetEffectiveScale();
 
if (centerX == nil) then
centerX = 0;
1922,7 → 1971,7
end
else
MetaMap_Debug_Print("--------click mark-------",true);
MetaMap_ProcessMapClick_old(...);
--old MetaMap_ProcessMapClick_old(...);
 
if ( not MetaMapOptions.MapChange ) then
MetaMap_StayOnMap = true;
1965,15 → 2014,16
 
-- map frame zoom in/out
function MetaMap_WorldMapScrollFrame_OnMouseWheel(self, delta)
if ( not WorldMapFrame_InWindowedMode() ) then return; end
if ( WorldMapFrame.isMaximized ) then return; end
 
local newScale = WorldMapDetailFrame:GetScale();
local newScale = WorldMapFrame.ScrollContainer.currentScale;
if ( newScale == MetaMap_oldScale ) then return; end
 
local scrollFrame = WorldMapScrollFrame;
--[[old
local scrollFrame = WorldMapFrame.ScrollContainer;
local relativeFrame = UIParent;
 
local myScale = WorldMapFrame:GetScale();
local myScale = scrollFrame:GetScale();
local relativeFrameScale = relativeFrame:GetScale();
 
-- get the mouse position on the frame, with 0,0 at top left
1994,24 → 2044,29
-- set scroll values
scrollFrame:SetHorizontalScroll(newScrollH);
scrollFrame:SetVerticalScroll(newScrollV);
--]]
 
--save values
MetaMap_oldScale = newScale;
MetaMap_oldScrollH = newScrollH;
MetaMap_oldScrollV = newScrollV;
--old MetaMap_oldScrollH = newScrollH;
MetaMap_oldScrollH = WorldMapFrame.ScrollContainer.currentScrollX;
--old MetaMap_oldScrollV = newScrollV;
MetaMap_oldScrollV = WorldMapFrame.ScrollContainer.currentScrollY;
end
 
-- reset local variables related to map zoom
function MetaMap_WorldMapScrollFrame_ResetZoom()
MetaMap_oldScrollH = 0;
MetaMap_oldScrollV = 0;
MetaMap_oldScale = WORLDMAP_SETTINGS.size;
MetaMap_oldScale = MetaMap_WorldMap_baseScale;
end
 
-- the zoomed world map is moved
function MetaMap_WorldMapScrollFrame_OnPan()
MetaMap_oldScrollH = WorldMapScrollFrame:GetHorizontalScroll();
MetaMap_oldScrollV = WorldMapScrollFrame:GetVerticalScroll();
--old MetaMap_oldScrollH = WorldMapScrollFrame:GetHorizontalScroll();
MetaMap_oldScrollH = WorldMapFrame.ScrollContainer.currentScrollX;
--old MetaMap_oldScrollV = WorldMapScrollFrame:GetVerticalScroll();
MetaMap_oldScrollV = WorldMapFrame.ScrollContainer.currentScrollY;
end
 
-- max. zoom world map at player position
2103,7 → 2158,8
-- *** Allow zoom out from all dungeons and BGs ***
-- This gets called from WorldMapFrame.lua when user right clicks on the map or
-- gets called from WorldMapFrame.xml if the "WorldMapZoomOutButton" is clicked
function MetaMap_WorldMapZoomOutButton_OnClick()
function MetaMap_WorldMapZoomOutButton_OnClick(self, button)
if ( button ~= "RightButton" ) then return; end
MetaMap_Debug_Print("MetaMap_WorldMapZoomOutButton_OnClick", true);
if ( not MetaMapOptions.MapChange ) then
MetaMap_StayOnMap = true;
2120,7 → 2176,8
SetMapByID(mapid);
else
-- SetMapZoom(MetaMap_NameToZoneID(mapName));
MetaMap_SetMapZoomByName(mapName);
--old MetaMap_SetMapZoomByName(mapName);
WorldMapFrame:SetMapID(MetaMap_NameToZoneID(zoneName));
end
MetaMapOptions.MetaMapZone = mapName;
else
2128,8 → 2185,8
local continent;
if (zIndex) then continent = MetaMap_ZoneTable[zIndex].Continent; end
if (not continent) then continent = -1; end
SetMapZoom(continent, 0);
MetaMapOptions.MetaMapZone = MetaMap_ZoneIDToName(continent, 0);
--old SetMapZoom(continent, 0);
--old MetaMapOptions.MetaMapZone = MetaMap_ZoneIDToName(continent, 0);
end
MetaMap_ShowInstance(nil, false);
MetaMap_MainMapUpdate();
2334,7 → 2391,7
if (_G["MetaMapNotesPOI"..noteNumber]) then
button = _G["MetaMapNotesPOI"..noteNumber];
else
button = CreateFrame("Button" ,"MetaMapNotesPOI"..noteNumber, WorldMapButton, "MetaMapNotes_NoteTemplate");
button = CreateFrame("Button" ,"MetaMapNotesPOI"..noteNumber, WorldMapFrame.ScrollContainer.Child, "MetaMapNotes_NoteTemplate");
MetaMap_LastNote = MetaMap_LastNote + 1;
end
button:SetWidth(MetaMapOptions.NoteSize);
2618,7 → 2675,7
MetaMap_SetMapToCurrentZone();
 
local mapName, mapLevel, dataZone = MetaMap_GetCurrentMapInfo();
local px, py = GetPlayerMapPosition("player");
local px, py = C_Map.GetBestMapForUnit("player");
if (not dataZone or px == 0 or px == nil) then
MetaMap_Print(METAMAP_INVALIDZONE, true);
return;
2655,7 → 2712,7
if (msg ~= "" and msg ~= nil) then
name = string.sub(msg,string.find(msg,"%s*([^%c]*)"));
end
local noteAdded, noteID = MetaMap_AddNewNote(mapName, px, py, name, "", "", UnitName("player"), 0, 0, 0, 0, mode, GetCurrentMapDungeonLevel());
local noteAdded, noteID = MetaMap_AddNewNote(mapName, px, py, name, "", "", UnitName("player"), 0, 0, 0, 0, mode, MetaMap_GetCurrentMapDungeonLevel());
if (noteAdded) then
if (mode ~= 2) then
MetaMap_Print(format(METAMAP_ACCEPT_NOTE, MetaMap_GetRealZoneText()), true);
2670,7 → 2727,7
end
 
function MetaMap_QuickNoteShow()
local x, y = GetPlayerMapPosition("player");
local x, y = C_Map.GetBestMapForUnit("player");
local coords = format("%d, %d", x * 100, y * 100);
Coords_EditBox:SetText(coords);
MiniNote_CheckButton:SetChecked(false);
2788,8 → 2845,8
 
Minimap:SetZoom(Minimap:GetZoom() + tempzoom);
MetaMap_IsInside = MetaMap_MiniNote_IsInCity;
local _, _, _, isMicroDungeon = GetMapInfo();
MetaMap_IsMicroDungeon = isMicroDungeon;
--old local _, _, _, isMicroDungeon = GetMapInfo();
--old MetaMap_IsMicroDungeon = isMicroDungeon;
MetaMap_MiniNote_MapzoomInit = true;
end
end
2801,8 → 2858,9
end
local zName, zIndex = MetaMap_GetZoneTableEntry(MetaMap_GetRealZoneText());
local continent, zone = MetaMap_NameToZoneID(MetaMap_GetRealZoneText());
if (not zIndex or continent ~= GetCurrentMapContinent() or zone ~= GetCurrentMapZone()) then return; end
local x, y = GetPlayerMapPosition("player");
--old if (not zIndex or continent ~= GetCurrentMapContinent() or zone ~= GetCurrentMapZone()) then return; end
if (not zIndex or continent ~= GetCurrentMapContinent() or zone ~= 1) then return; end
local x, y = C_Map.GetBestMapForUnit("player");
if (x == 0 and y == 0) then return; end
local currentSet = MetaMap_ZoneTable[zIndex];
local currentZoom = Minimap:GetZoom();
2835,7 → 2893,7
deltax = math.cos(m) * 57 * adjust;
deltay = math.sin(m) * 57 * adjust;
end
MetaMap_MiniNote:SetPoint("CENTER", "MinimapCluster", "TOPLEFT", 105 + deltax, -93 - deltay);
MetaMap_MiniNote:SetPoint("CENTER", MinimapCluster, "TOPLEFT", 105 + deltax, -93 - deltay);
MetaMap_MiniNote:Show();
end
 
2851,7 → 2909,7
if (MetaMap_MiniNote_Data.id > 0) then
MetaMap_SetMapToCurrentZone();
if (not WorldMapFrame:IsVisible()) then
MetaMapNotesEditFrame:SetParent("UIParent");
MetaMapNotesEditFrame:SetParent(UIParent);
end
MetaMap_EditExistingNote(MetaMap_MiniNote_Data.id);
elseif (MetaMap_MiniNote_Data.id == 0) then
2868,8 → 2926,8
function MetaMap_EditNewNote(ax, ay)
if (not MetaMap_FramesHidden()) then return; end
local mapName, mapLevel, dataZone = MetaMap_GetCurrentMapInfo();
local width = WorldMapButton:GetWidth();
local height = WorldMapButton:GetHeight();
local width = WorldMapFrame.ScrollContainer:GetWidth();
local height = WorldMapFrame.ScrollContainer:GetHeight();
local xOffset,yOffset;
MetaMap_TempData_xPos = ax;
MetaMap_TempData_yPos = ay;
2932,12 → 2990,12
MetaMap_TempData_Id = id;
 
if (id == 0) then
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
MetaMap_EditNewNote(MetaMap_vnote_xPos, MetaMap_vnote_yPos);
return;
elseif (id == -1) then
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
MetaMap_EditNewNote(MetaMap_PartyNoteData.xPos, MetaMap_PartyNoteData.yPos);
return;
2977,7 → 3035,7
dataZone[MetaMap_TempData_Id].icon = MetaMap_TempData_Icon;
dataZone[MetaMap_TempData_Id].xPos = MetaMap_TempData_xPos;
dataZone[MetaMap_TempData_Id].yPos = MetaMap_TempData_yPos;
dataZone[MetaMap_TempData_Id].mLevel = GetCurrentMapDungeonLevel();
dataZone[MetaMap_TempData_Id].mLevel = MetaMap_GetCurrentMapDungeonLevel();
 
if (MetaMap_TempData_LootID ~= nil) then
dataZone[MetaMap_TempData_Id].lootid = MetaMap_TempData_LootID;
3103,7 → 3161,7
 
function MetaMap_MainMapUpdate()
MetaMap_Debug_Print("MetaMap_MainMapUpdate", true);
if (WorldMapButton:IsVisible()) then
if (WorldMapFrame.ScrollContainer:IsVisible()) then
MetaMap_WorldMapButton_OnUpdate();
end
if (Minimap:IsVisible() and MinimapPing_OnUpdate ~= nil) then
3130,7 → 3188,7
if (MetaMap_FramesHidden()) then
--MetaMap_Debug_Print("MapNoteOnEnter:Showing", true);
local x, y = self:GetCenter();
local x2, y2 = WorldMapButton:GetCenter();
local x2, y2 = WorldMapFrame.ScrollContainer:GetCenter();
local anchor = "";
if (x > x2) then
anchor = "ANCHOR_LEFT";
3160,10 → 3218,10
WorldMapTooltip:AddDoubleLine(METAMAP_CREATEDBY, dataZone[id].creator, 0, 0.75, 0.85, 0, 0.75, 0.85);
end
end
WorldMapPOIFrame.allowBlobTooltip = false;
--old WorldMapPOIFrame.allowBlobTooltip = false;
WorldMapTooltip:Show();
else
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
end
end
3211,8 → 3269,8
local msg = dataZone[id].name.." "..tinf1.." ("..mapName.." - "..coords..")";
ChatFrameEditBox:Insert(msg);
elseif (dataZone[id].icon ~= 10) then
local width = WorldMapButton:GetWidth();
local height = WorldMapButton:GetHeight();
local width = WorldMapFrame.ScrollContainer:GetWidth();
local height = WorldMapFrame.ScrollContainer:GetHeight();
id = id + 0;
MetaMap_TempData_Id = id;
local ax = dataZone[id].xPos;
3228,7 → 3286,7
yOffset = -(ay * height) + 113;
end
MetaMap_SendNoteButton:Enable();
WorldMapPOIFrame.allowBlobTooltip = true;
--old WorldMapPOIFrame.allowBlobTooltip = true;
WorldMapTooltip:Hide();
MetaMap_EditExistingNote(MetaMap_TempData_Id);
end
3266,12 → 3324,12
local lineCount = #(zoneTable);
local currentX = MetaMap_Notes[mapName][id].xPos;
local currentY = MetaMap_Notes[mapName][id].yPos;
local centerX, centerY = WorldMapButton:GetCenter();
local width = WorldMapButton:GetWidth();
local height = WorldMapButton:GetHeight();
local centerX, centerY = WorldMapFrame.ScrollContainer:GetCenter();
local width = WorldMapFrame.ScrollContainer:GetWidth();
local height = WorldMapFrame.ScrollContainer:GetHeight();
local x, y = GetCursorPosition();
x = x / WorldMapButton:GetEffectiveScale();
y = y / WorldMapButton:GetEffectiveScale();
x = x / WorldMapFrame.ScrollContainer:GetEffectiveScale();
y = y / WorldMapFrame.ScrollContainer:GetEffectiveScale();
 
if (centerX == nil) then
centerX = 0;
3312,22 → 3370,27
local MetaMapNotesLine = MetaMap_CreateLineObject(id);
local positiveSlopeTexture = METAMAP_IMAGE_PATH.."LineTemplatePositive256";
local negativeSlopeTexture = METAMAP_IMAGE_PATH.."LineTemplateNegative256";
local width = WorldMapDetailFrame:GetWidth();
local height = WorldMapDetailFrame:GetHeight();
local width = WorldMapFrame.ScrollContainer.Child:GetWidth();
local height = WorldMapFrame.ScrollContainer.Child:GetHeight();
local deltax = math.abs((x1 - x2) * width);
local deltay = math.abs((y1 - y2) * height);
local xOffset = math.min(x1,x2) * width;
local yOffset = -(math.min(y1,y2) * height);
--old local xOffset = math.min(x1,x2) * width;
--old local yOffset = -(math.min(y1,y2) * height);
local xOffset1 = math.min(x1,x2) * width;
local yOffset1 = -(math.min(y1,y2) * height);
local xOffset2 = math.max(x1,x2) * width;
local yOffset2 = -(math.max(y1,y2) * height);
 
local lowerpixel = math.min(deltax, deltay);
lowerpixel = lowerpixel / 256;
if (lowerpixel > 1) then
lowerpixel = 1;
end
if (deltax == 0) then
if (x1 - x2 == 0) then
deltax = 2;
MetaMapNotesLine:SetTexture(0, 0, 0);
MetaMapNotesLine:SetTexCoord(0, 1, 0, 1);
elseif (deltay == 0) then
elseif (y1 - y2 == 0) then
deltay = 2;
MetaMapNotesLine:SetTexture(0, 0, 0);
MetaMapNotesLine:SetTexCoord(0, 1, 0, 1);
3349,11 → 3412,12
end
end
 
MetaMapNotesLine:SetParent(WorldMapFrame.ScrollContainer.Child);
MetaMapNotesLine:SetPoint("TOPLEFT", WorldMapFrame.ScrollContainer.Child, "TOPLEFT", xOffset1, yOffset1);
MetaMapNotesLine:SetPoint("BOTTOMRIGHT", WorldMapFrame.ScrollContainer.Child, "TOPLEFT", xOffset2, yOffset2);
 
MetaMapNotesLine:SetPoint("TOPLEFT", "WorldMapDetailFrame", "TOPLEFT", xOffset, yOffset);
 
MetaMapNotesLine:SetWidth(deltax);
MetaMapNotesLine:SetHeight(deltay);
--old MetaMapNotesLine:SetWidth(deltax);
--old MetaMapNotesLine:SetHeight(deltay);
MetaMapNotesLine:Show();
end
 
3436,12 → 3500,12
 
if (button == "LeftButton" and (IsControlKeyDown() or IsShiftKeyDown() or IsAltKeyDown())) then
if (mapName or MetaMapOptions.ShowDNI) then
local centerX, centerY = WorldMapButton:GetCenter();
local width = WorldMapButton:GetWidth();
local height = WorldMapButton:GetHeight();
local centerX, centerY = WorldMapFrame.ScrollContainer:GetCenter();
local width = WorldMapFrame.ScrollContainer:GetWidth();
local height = WorldMapFrame.ScrollContainer:GetHeight();
local x, y = GetCursorPosition();
x = x / WorldMapButton:GetEffectiveScale();
y = y / WorldMapButton:GetEffectiveScale();
x = x / WorldMapFrame.ScrollContainer:GetEffectiveScale();
y = y / WorldMapFrame.ScrollContainer:GetEffectiveScale();
 
if (centerX == nil) then
centerX = 0;
3478,7 → 3542,7
end
end
 
function MetaMap_WorldMapButton_OnUpdate(self, elapsed)
function MetaMap_WorldMapButton_OnUpdate()
if (not MetaMap_VarsLoaded or MetaMap_Drawing) then return; end
local lastNote = 0;
local lastLine = 0;
3499,14 → 3563,15
local temp = MetaMap_CreateNoteObject(i);
local xPos = dataZone[i].xPos;
local yPos = dataZone[i].yPos;
local xOffset = xPos * WorldMapButton:GetWidth();
local yOffset = -yPos * WorldMapButton:GetHeight();
local xOffset = xPos * WorldMapFrame.ScrollContainer.Child:GetWidth();
local yOffset = -yPos * WorldMapFrame.ScrollContainer.Child:GetHeight();
 
temp:SetParent("WorldMapButton");
temp:SetPoint("CENTER", "WorldMapButton", "TOPLEFT", xOffset, yOffset);
temp:SetParent(WorldMapFrame.ScrollContainer.Child); -- ##### self:GetMap():GetCanvasContainer()
temp:SetPoint("CENTER", WorldMapFrame.ScrollContainer.Child, "TOPLEFT", xOffset, yOffset);
 
_G["MetaMapNotesPOI"..i.."Texture"]:SetTexture(METAMAP_ICON_PATH.."Icon"..dataZone[i].icon);
_G["MetaMapNotesPOI"..i.."Highlight"]:Hide();
--[[old
for landmarkIndex = 1, GetNumMapLandmarks(), 1 do
local worldMapPOI = _G["WorldMapFramePOI"..landmarkIndex];
if (worldMapPOI == nil) then break; end
3515,9 → 3580,10
local xPosmin = xPos - 2; local xPosmax = xPos + 2;
local yPosmin = yPos - 2; local yPosmax = yPos + 2;
if(x~=nil and y ~=nil and (x > xPosmin and x < xPosmax) and (y > yPosmin and y < yPosmax)) then
metaMapPOI:SetFrameLevel(worldMapPOI:GetFrameLevel() + 1);
metaMapPOI:SetFrameLevel(WorldMapFrame.ScrollContainer.Child:GetFrameLevel() + 1);
end
end
--]]
 
if (dataZone[i].icon == 10) then
if (dataZone[i].name == MetaMap_FilterName) then
3526,7 → 3592,7
else
temp:Show();
end
elseif (MetaMap_NoteFilter[dataZone[i].icon] and (dataZone[i].mLevel == nil or dataZone[i].mLevel == GetCurrentMapDungeonLevel())) then
elseif (MetaMap_NoteFilter[dataZone[i].icon] and (dataZone[i].mLevel == nil or dataZone[i].mLevel == MetaMap_GetCurrentMapDungeonLevel())) then
temp:Show();
else
MetaMap_FilterName = dataZone[i].name;
3574,9 → 3640,9
if (dataZone) then
-- vNote button
if (mapName and MetaMap_vnote_xPos ~= nil) then
xOffset = MetaMap_vnote_xPos * WorldMapButton:GetWidth();
yOffset = -MetaMap_vnote_yPos * WorldMapButton:GetHeight();
MetaMapNotesPOIvNote:SetPoint("CENTER", "WorldMapButton", "TOPLEFT", xOffset, yOffset);
xOffset = MetaMap_vnote_xPos * WorldMapFrame.ScrollContainer.Child:GetWidth();
yOffset = -MetaMap_vnote_yPos * WorldMapFrame.ScrollContainer.Child:GetHeight();
MetaMapNotesPOIvNote:SetPoint("CENTER", WorldMapFrame.ScrollContainer.Child, "TOPLEFT", xOffset, yOffset);
 
MetaMapNotesPOIvNote:Show();
else
3590,10 → 3656,10
else
MetaMapNotesPOIpartyTexture:SetTexture(METAMAP_ICON_PATH.."Iconparty");
end
xOffset = MetaMap_PartyNoteData.xPos * WorldMapButton:GetWidth();
yOffset = -MetaMap_PartyNoteData.yPos * WorldMapButton:GetHeight();
MetaMapNotesPOIparty:SetParent("WorldMapButton");
MetaMapNotesPOIparty:SetPoint("CENTER", "WorldMapButton", "TOPLEFT", xOffset, yOffset);
xOffset = MetaMap_PartyNoteData.xPos * WorldMapFrame.ScrollContainer.Child:GetWidth();
yOffset = -MetaMap_PartyNoteData.yPos * WorldMapFrame.ScrollContainer.Child:GetHeight();
MetaMapNotesPOIparty:SetParent(WorldMapFrame.ScrollContainer.Child);
MetaMapNotesPOIparty:SetPoint("CENTER", WorldMapFrame.ScrollContainer.Child, "TOPLEFT", xOffset, yOffset);
 
MetaMapNotesPOIparty:Show();
else
3606,7 → 3672,7
MetaMapList_Init();
MetaMap_FilterName = "";
if (IsAddOnLoaded("MetaMapTRK")) then
TRK_DisplayNodes(mapName, GetCurrentMapDungeonLevel());
TRK_DisplayNodes(mapName, MetaMap_GetCurrentMapDungeonLevel());
end
end
 
3645,7 → 3711,7
end
 
function MetaMapPOI_OnEvent(mode)
if (GetCurrentMapZone() == 0) then return; end
--old if (GetCurrentMapZone() == 0) then return; end
local mapName, mapLevel, dataZone = MetaMap_GetCurrentMapInfo();
local noteAdded1, noteAdded2;
local name, unknown, textureIndex, x, y;
3659,10 → 3725,10
end
if (mode == 1) then
if (textureIndex==6) then
noteAdded1 = MetaMap_AddNewNote(mapName, x, y, name, "", "", METAMAPPOI_NAME, icon, 6, 0, 0,nil,GetCurrentMapDungeonLevel());
noteAdded1 = MetaMap_AddNewNote(mapName, x, y, name, "", "", METAMAPPOI_NAME, icon, 6, 0, 0,nil,MetaMap_GetCurrentMapDungeonLevel());
end
else
noteAdded2 = MetaMap_AddNewNote(mapName, x, y, name, "", "", METAMAPPOI_NAME, icon, 6, 0, 0,nil,GetCurrentMapDungeonLevel());
noteAdded2 = MetaMap_AddNewNote(mapName, x, y, name, "", "", METAMAPPOI_NAME, icon, 6, 0, 0,nil,MetaMap_GetCurrentMapDungeonLevel());
end
end
if (noteAdded1 and noteAdded2) then
3726,7 → 3792,7
WorldMapTooltip:AddLine(METAMAP_INFOLINE_HINT3, 0.40, 0.40, 0.40, false);
WorldMapTooltip:AddLine(METAMAP_INFOLINE_HINT4, 0.40, 0.40, 0.40, false);
 
WorldMapPOIFrame.allowBlobTooltip = false;
--old WorldMapPOIFrame.allowBlobTooltip = false;
WorldMapTooltip:Show();
--WorldMapTooltip:SetFrameLevel(WorldMapFrame:GetFrameLevel() + 20);
end
4046,35 → 4112,39
MetaMap_StayOnMap = false;
MetaMap_MapClick = false;
end
SetMapToCurrentZone();
local realID = GetCurrentMapAreaID();
--old SetMapToCurrentZone();
local realID = C_Map.GetBestMapForUnit("player");
if ( not realID ) then return; end
WorldMapFrame:SetMapID(realID);
 
local realZone = GetRealZoneText();
local _, _, _, isMicroDungeon = GetMapInfo();
--old local _, _, _, isMicroDungeon = GetMapInfo();
if (realZone) then
local _, index, type = MetaMap_GetZoneTableEntry(realZone, realID);
if ( index and (type == "SZR") and not isMicroDungeon ) then
--old if ( index and (type == "SZR") and not isMicroDungeon ) then
if ( index and (type == "SZR") ) then
local mapName = MetaMap_ZoneTable[index]["Location"];
if (mapName) then
if (MetaMapOptions.MetaMapZone) then MetaMapOptions.MetaMapZone = mapName; end
local _, _, _, mapid = MetaMap_GetZoneTableEntry(mapName);
if ( mapid ~= 0 ) then
MetaMap_Debug_Print("SetMapByID",true);
SetMapByID(mapid);
--old SetMapByID(mapid);
WorldMapFrame:SetMapID(mapid);
--SetDungeonMapLevel(0);
else
MetaMap_Debug_Print("SetMapZoom",true);
-- SetMapZoom(MetaMap_NameToZoneID(mapName));
MetaMap_SetMapZoomByName(mapName);
--old MetaMap_SetMapZoomByName(mapName);
WorldMapFrame:SetMapID(MetaMap_NameToZoneID(zoneName));
end
end
end
end
 
if (realZone) then
for _, zoneTable in pairs(MetaMap_ZoneTable) do
if (zoneTable[MetaMap_Locale] == realZone) then
if ( not zoneTable.mapid or (zoneTable.mapid == GetCurrentMapAreaID() and not isMicroDungeon) ) then
--old if ( not zoneTable.mapid or (zoneTable.mapid == WorldMapFrame:GetMapID() and not isMicroDungeon) ) then
if ( not zoneTable.mapid or (zoneTable.mapid == MetaMap_UiMapID_AreaID[WorldMapFrame:GetMapID()].AreaID) ) then
if (zoneTable.ztype == "SZR") then
realZone = zoneTable.Location;
else
4089,25 → 4159,25
MetaMapOptions.MetaMapLevel = 0;
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
end
 
MetaMap_BaseMap.ID = GetCurrentMapAreaID();
MetaMap_BaseMap.Level = GetCurrentMapDungeonLevel();
MetaMap_BaseMap.ID = WorldMapFrame:GetMapID();
MetaMap_BaseMap.Level = MetaMap_GetCurrentMapDungeonLevel();
 
if ( not MetaMapOptions.MapChange and WorldMapFrame:IsVisible() and mapReset and self and not MetaMap_CurrentMap.Micro ) then
MetaMap_SetMapAfterRefresh(self);
else
if ( isMicroDungeon ) then
MetaMapOptions.MetaMapZone = GetRealZoneText();
MetaMapOptions.MetaMapLevel = GetCurrentMapDungeonLevel();
MetaMapOptions.MetaMapLevel = MetaMap_GetCurrentMapDungeonLevel();
else
MetaMapOptions.MetaMapZone = MetaMap_GetRealZoneText();
MetaMapOptions.MetaMapLevel = 0;
end
MetaMapOptions.oldScrollH = 0;
MetaMapOptions.oldScrollV = 0;
MetaMapOptions.oldScale = WORLDMAP_SETTINGS.size;
MetaMapOptions.oldScale = WorldFrame:GetScale();
MetaMapOptions.ShowDNI = true;
MetaMap_CurrentMap = MetaMap_SaveCurrentMapData();
 
4128,19 → 4198,21
local mapName = MetaMap_GetCurrentMapInfo();
local currentMap = {};
if (mapName) then
currentMap.Name = mapName;
currentMap.ID = GetCurrentMapAreaID();
currentMap.Name = mapName;
currentMap.ID = WorldMapFrame:GetMapID();
-- check for dungeon map of cosmos
if ( (currentMap.ID == -1) and (mapName ~= "The Cosmos") ) then
currentMap.Name = "The Cosmos";
end
currentMap.CID = GetCurrentMapContinent();
currentMap.ZID = GetCurrentMapZone();
currentMap.Level = GetCurrentMapDungeonLevel();
local _, _, _, isMicroDungeon = GetMapInfo();
currentMap.Micro = isMicroDungeon;
end
--old currentMap.CID = GetCurrentMapContinent();
currentMap.CID = C_Map.GetWorldPosFromMapPos(currentMap.ID, C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player"));
--old currentMap.ZID = GetCurrentMapZone();
currentMap.ZID = 1;
currentMap.Level = MetaMap_GetCurrentMapDungeonLevel();
--old local _, _, _, isMicroDungeon = GetMapInfo();
--old currentMap.Micro = isMicroDungeon;
if ( resetScale ) then
currentMap.oldScale = WORLDMAP_SETTINGS.size;
currentMap.oldScale = MetaMap_WorldMap_baseScale;
currentMap.oldScrollH = 0;
currentMap.oldScrollV = 0;
else
4177,8 → 4249,8
if (MetaMapOptions.MapChange) then return {}; end
if (not WorldMapFrame:IsVisible()) then return {}; end
if (not MetaMap_CurrentMap.Name or not MetaMap_CurrentMap.ID) then return {}; end
local mapID = GetCurrentMapAreaID();
local mapLevel = GetCurrentMapDungeonLevel();
local mapID = WorldMapFrame:GetMapID();
local mapLevel = MetaMap_GetCurrentMapDungeonLevel();
if (mapID == MetaMap_CurrentMap.ID and mapLevel == MetaMap_CurrentMap.Level) then return {}; end
 
local _, _, zType = MetaMap_GetZoneTableEntry(MetaMap_CurrentMap.Name);
trunk/MetaMap/MetaMapIDs.lua New file
0,0 → 1,943
-- This is for the 8.x map transition.
-- Previously maps were represented by either by a pair of WorldMapAreaID and DungeonFloor or a DungeonMapID.
-- In the new system all maps are represented by a UiMapID.
 
-- [UiMapID] = {AreaID = WorldMapAreaID, MapID = DungeonMapID, Floor = DungeonFloor
MetaMap_UiMapID_AreaID = {
[1] = {AreaID = 4, MapID = nil, Floor = 0 },
[2] = {AreaID = 4, MapID = 598, Floor = 8 },
[3] = {AreaID = 4, MapID = 602, Floor = 10 },
[4] = {AreaID = 4, MapID = 603, Floor = 11 },
[5] = {AreaID = 4, MapID = 604, Floor = 12 },
[6] = {AreaID = 4, MapID = 657, Floor = 19 },
[7] = {AreaID = 9, MapID = nil, Floor = 0 },
[8] = {AreaID = 9, MapID = 570, Floor = 6 },
[9] = {AreaID = 9, MapID = 575, Floor = 7 },
[10] = {AreaID = 11, MapID = nil, Floor = 0 },
[11] = {AreaID = 11, MapID = 690, Floor = 20 },
[12] = {AreaID = 13, MapID = nil, Floor = 0 },
[13] = {AreaID = 14, MapID = nil, Floor = 0 },
[14] = {AreaID = 16, MapID = nil, Floor = 0 },
[15] = {AreaID = 17, MapID = nil, Floor = 0 },
[16] = {AreaID = 17, MapID = 695, Floor = 18 },
[17] = {AreaID = 19, MapID = nil, Floor = 0 },
[18] = {AreaID = 20, MapID = nil, Floor = 0 },
[19] = {AreaID = 20, MapID = 592, Floor = 13 },
[20] = {AreaID = 20, MapID = 976, Floor = 25 },
[21] = {AreaID = 21, MapID = nil, Floor = 0 },
[22] = {AreaID = 22, MapID = nil, Floor = 0 },
[23] = {AreaID = 23, MapID = nil, Floor = 0 },
[24] = {AreaID = 23, MapID = 947, Floor = 20 },
[25] = {AreaID = 24, MapID = nil, Floor = 0 },
[26] = {AreaID = 26, MapID = nil, Floor = 0 },
[27] = {AreaID = 27, MapID = nil, Floor = 0 },
[28] = {AreaID = 27, MapID = 581, Floor = 6 },
[29] = {AreaID = 27, MapID = 582, Floor = 7 },
[30] = {AreaID = 27, MapID = 585, Floor = 10 },
[31] = {AreaID = 27, MapID = 587, Floor = 11 },
[32] = {AreaID = 28, MapID = nil, Floor = 0 },
[33] = {AreaID = 28, MapID = 625, Floor = 14 },
[34] = {AreaID = 28, MapID = 626, Floor = 15 },
[35] = {AreaID = 28, MapID = 627, Floor = 16 },
[36] = {AreaID = 29, MapID = nil, Floor = 0 },
[37] = {AreaID = 30, MapID = nil, Floor = 0 },
[38] = {AreaID = 30, MapID = 567, Floor = 1 },
[39] = {AreaID = 30, MapID = 577, Floor = 2 },
[40] = {AreaID = 30, MapID = 706, Floor = 19 },
[41] = {AreaID = 30, MapID = 1085, Floor = 21 },
[42] = {AreaID = 32, MapID = nil, Floor = 0 },
[43] = {AreaID = 32, MapID = 1087, Floor = 22 },
[44] = {AreaID = 32, MapID = 1089, Floor = 23 },
[45] = {AreaID = 32, MapID = 1090, Floor = 24 },
[46] = {AreaID = 32, MapID = 1016, Floor = 27 },
[47] = {AreaID = 34, MapID = nil, Floor = 0 },
[48] = {AreaID = 35, MapID = nil, Floor = 0 },
[49] = {AreaID = 36, MapID = nil, Floor = 0 },
[50] = {AreaID = 37, MapID = nil, Floor = 0 },
[51] = {AreaID = 38, MapID = nil, Floor = 0 },
[52] = {AreaID = 39, MapID = nil, Floor = 0 },
[53] = {AreaID = 39, MapID = 579, Floor = 4 },
[54] = {AreaID = 39, MapID = 580, Floor = 5 },
[55] = {AreaID = 39, MapID = 689, Floor = 17 },
[56] = {AreaID = 40, MapID = nil, Floor = 0 },
[57] = {AreaID = 41, MapID = nil, Floor = 0 },
[58] = {AreaID = 41, MapID = 558, Floor = 2 },
[59] = {AreaID = 41, MapID = 564, Floor = 3 },
[60] = {AreaID = 41, MapID = 565, Floor = 4 },
[61] = {AreaID = 41, MapID = 566, Floor = 5 },
[62] = {AreaID = 42, MapID = nil, Floor = 0 },
[63] = {AreaID = 43, MapID = nil, Floor = 0 },
[64] = {AreaID = 61, MapID = nil, Floor = 0 },
[65] = {AreaID = 81, MapID = nil, Floor = 0 },
[66] = {AreaID = 101, MapID = nil, Floor = 0 },
[67] = {AreaID = 101, MapID = 696, Floor = 21 },
[68] = {AreaID = 101, MapID = 699, Floor = 22 },
[69] = {AreaID = 121, MapID = nil, Floor = 0 },
[70] = {AreaID = 141, MapID = nil, Floor = 0 },
[71] = {AreaID = 161, MapID = nil, Floor = 0 },
[72] = {AreaID = 161, MapID = 622, Floor = 15 },
[73] = {AreaID = 161, MapID = 623, Floor = 16 },
[74] = {AreaID = 161, MapID = 631, Floor = 17 },
[75] = {AreaID = 161, MapID = 632, Floor = 18 },
[76] = {AreaID = 181, MapID = nil, Floor = 0 },
[77] = {AreaID = 182, MapID = nil, Floor = 0 },
[78] = {AreaID = 201, MapID = nil, Floor = 0 },
[79] = {AreaID = 201, MapID = 621, Floor = 14 },
[80] = {AreaID = 241, MapID = nil, Floor = 0 },
[81] = {AreaID = 261, MapID = nil, Floor = 0 },
[82] = {AreaID = 261, MapID = 620, Floor = 13 },
[83] = {AreaID = 281, MapID = nil, Floor = 0 },
[84] = {AreaID = 301, MapID = nil, Floor = 0 },
[85] = {AreaID = 321, MapID = nil, Floor = 0 },
[86] = {AreaID = 321, MapID = 118, Floor = 1 },
[87] = {AreaID = 341, MapID = nil, Floor = 0 },
[88] = {AreaID = 362, MapID = nil, Floor = 0 },
[89] = {AreaID = 381, MapID = nil, Floor = 0 },
[90] = {AreaID = 382, MapID = nil, Floor = 0 },
[91] = {AreaID = 401, MapID = nil, Floor = 0 },
[92] = {AreaID = 443, MapID = nil, Floor = 0 },
[93] = {AreaID = 461, MapID = nil, Floor = 0 },
[94] = {AreaID = 462, MapID = nil, Floor = 0 },
[95] = {AreaID = 463, MapID = nil, Floor = 0 },
[96] = {AreaID = 463, MapID = 593, Floor = 1 },
[97] = {AreaID = 464, MapID = nil, Floor = 0 },
[98] = {AreaID = 464, MapID = 594, Floor = 2 },
[99] = {AreaID = 464, MapID = 688, Floor = 3 },
[100] = {AreaID = 465, MapID = nil, Floor = 0 },
[101] = {AreaID = 466, MapID = nil, Floor = 0 },
[102] = {AreaID = 467, MapID = nil, Floor = 0 },
[103] = {AreaID = 471, MapID = nil, Floor = 0 },
[104] = {AreaID = 473, MapID = nil, Floor = 0 },
[105] = {AreaID = 475, MapID = nil, Floor = 0 },
[106] = {AreaID = 476, MapID = nil, Floor = 0 },
[107] = {AreaID = 477, MapID = nil, Floor = 0 },
[108] = {AreaID = 478, MapID = nil, Floor = 0 },
[109] = {AreaID = 479, MapID = nil, Floor = 0 },
[110] = {AreaID = 480, MapID = nil, Floor = 0 },
[111] = {AreaID = 481, MapID = nil, Floor = 0 },
[112] = {AreaID = 482, MapID = nil, Floor = 0 },
[113] = {AreaID = 485, MapID = nil, Floor = 0 },
[114] = {AreaID = 486, MapID = nil, Floor = 0 },
[115] = {AreaID = 488, MapID = nil, Floor = 0 },
[116] = {AreaID = 490, MapID = nil, Floor = 0 },
[117] = {AreaID = 491, MapID = nil, Floor = 0 },
[118] = {AreaID = 492, MapID = nil, Floor = 0 },
[119] = {AreaID = 493, MapID = nil, Floor = 0 },
[120] = {AreaID = 495, MapID = nil, Floor = 0 },
[121] = {AreaID = 496, MapID = nil, Floor = 0 },
[122] = {AreaID = 499, MapID = nil, Floor = 0 },
[123] = {AreaID = 501, MapID = nil, Floor = 0 },
[124] = {AreaID = 502, MapID = nil, Floor = 0 },
[125] = {AreaID = 504, MapID = 27, Floor = 1 },
[126] = {AreaID = 504, MapID = 26, Floor = 2 },
[127] = {AreaID = 510, MapID = nil, Floor = 0 },
[128] = {AreaID = 512, MapID = nil, Floor = 0 },
[129] = {AreaID = 520, MapID = 25, Floor = 1 },
[130] = {AreaID = 521, MapID = nil, Floor = 0 },
[131] = {AreaID = 521, MapID = 34, Floor = 1 },
[132] = {AreaID = 522, MapID = 50, Floor = 1 },
[133] = {AreaID = 523, MapID = 1, Floor = 1 },
[134] = {AreaID = 523, MapID = 2, Floor = 2 },
[135] = {AreaID = 523, MapID = 41, Floor = 3 },
[136] = {AreaID = 524, MapID = 39, Floor = 1 },
[137] = {AreaID = 524, MapID = 40, Floor = 2 },
[138] = {AreaID = 525, MapID = 54, Floor = 1 },
[139] = {AreaID = 525, MapID = 55, Floor = 2 },
[140] = {AreaID = 526, MapID = 53, Floor = 1 },
[141] = {AreaID = 527, MapID = 61, Floor = 1 },
[142] = {AreaID = 528, MapID = nil, Floor = 0 },
[143] = {AreaID = 528, MapID = 42, Floor = 1 },
[144] = {AreaID = 528, MapID = 43, Floor = 2 },
[145] = {AreaID = 528, MapID = 45, Floor = 3 },
[146] = {AreaID = 528, MapID = 46, Floor = 4 },
[147] = {AreaID = 529, MapID = nil, Floor = 0 },
[148] = {AreaID = 529, MapID = 69, Floor = 1 },
[149] = {AreaID = 529, MapID = 70, Floor = 2 },
[150] = {AreaID = 529, MapID = 71, Floor = 3 },
[151] = {AreaID = 529, MapID = 72, Floor = 4 },
[152] = {AreaID = 529, MapID = 98, Floor = 5 },
[153] = {AreaID = 530, MapID = nil, Floor = 0 },
[154] = {AreaID = 530, MapID = 36, Floor = 1 },
[155] = {AreaID = 531, MapID = nil, Floor = 0 },
[156] = {AreaID = 532, MapID = 63, Floor = 1 },
[157] = {AreaID = 533, MapID = 47, Floor = 1 },
[158] = {AreaID = 533, MapID = 48, Floor = 2 },
[159] = {AreaID = 533, MapID = 49, Floor = 3 },
[160] = {AreaID = 534, MapID = 37, Floor = 1 },
[161] = {AreaID = 534, MapID = 38, Floor = 2 },
[162] = {AreaID = 535, MapID = 56, Floor = 1 },
[163] = {AreaID = 535, MapID = 57, Floor = 2 },
[164] = {AreaID = 535, MapID = 58, Floor = 3 },
[165] = {AreaID = 535, MapID = 59, Floor = 4 },
[166] = {AreaID = 535, MapID = 60, Floor = 5 },
[167] = {AreaID = 535, MapID = 73, Floor = 6 },
[168] = {AreaID = 536, MapID = 52, Floor = 1 },
[169] = {AreaID = 540, MapID = nil, Floor = 0 },
[170] = {AreaID = 541, MapID = nil, Floor = 0 },
[171] = {AreaID = 542, MapID = 96, Floor = 1 },
[172] = {AreaID = 543, MapID = 94, Floor = 1 },
[173] = {AreaID = 543, MapID = 95, Floor = 2 },
[174] = {AreaID = 544, MapID = nil, Floor = 0 },
[175] = {AreaID = 544, MapID = 611, Floor = 1 },
[176] = {AreaID = 544, MapID = 614, Floor = 2 },
[177] = {AreaID = 544, MapID = 615, Floor = 3 },
[178] = {AreaID = 544, MapID = 616, Floor = 4 },
[179] = {AreaID = 545, MapID = nil, Floor = 0 },
[180] = {AreaID = 545, MapID = 606, Floor = 1 },
[181] = {AreaID = 545, MapID = 609, Floor = 2 },
[182] = {AreaID = 545, MapID = 610, Floor = 3 },
[183] = {AreaID = 601, MapID = 101, Floor = 1 },
[184] = {AreaID = 602, MapID = nil, Floor = 0 },
[185] = {AreaID = 603, MapID = 102, Floor = 1 },
[186] = {AreaID = 604, MapID = 103, Floor = 1 },
[187] = {AreaID = 604, MapID = 104, Floor = 2 },
[188] = {AreaID = 604, MapID = 105, Floor = 3 },
[189] = {AreaID = 604, MapID = 106, Floor = 4 },
[190] = {AreaID = 604, MapID = 107, Floor = 5 },
[191] = {AreaID = 604, MapID = 108, Floor = 6 },
[192] = {AreaID = 604, MapID = 109, Floor = 7 },
[193] = {AreaID = 604, MapID = 110, Floor = 8 },
[194] = {AreaID = 605, MapID = nil, Floor = 0 },
[195] = {AreaID = 605, MapID = 617, Floor = 5 },
[196] = {AreaID = 605, MapID = 618, Floor = 6 },
[197] = {AreaID = 605, MapID = 619, Floor = 7 },
[198] = {AreaID = 606, MapID = nil, Floor = 0 },
[199] = {AreaID = 607, MapID = nil, Floor = 0 },
[200] = {AreaID = 609, MapID = nil, Floor = 0 },
[201] = {AreaID = 610, MapID = nil, Floor = 0 },
[202] = {AreaID = 611, MapID = nil, Floor = 0 },
[203] = {AreaID = 613, MapID = nil, Floor = 0 },
[204] = {AreaID = 614, MapID = nil, Floor = 0 },
[205] = {AreaID = 615, MapID = nil, Floor = 0 },
[206] = {AreaID = 626, MapID = nil, Floor = 0 },
[207] = {AreaID = 640, MapID = nil, Floor = 0 },
[208] = {AreaID = 640, MapID = 991, Floor = 1 },
[209] = {AreaID = 640, MapID = 992, Floor = 2 },
[210] = {AreaID = 673, MapID = nil, Floor = 0 },
[213] = {AreaID = 680, MapID = 136, Floor = 1 },
[217] = {AreaID = 684, MapID = nil, Floor = 0 },
[218] = {AreaID = 685, MapID = nil, Floor = 0 },
[219] = {AreaID = 686, MapID = nil, Floor = 0 },
[220] = {AreaID = 687, MapID = 176, Floor = 1 },
[221] = {AreaID = 688, MapID = 162, Floor = 1 },
[222] = {AreaID = 688, MapID = 163, Floor = 2 },
[223] = {AreaID = 688, MapID = 164, Floor = 3 },
[224] = {AreaID = 689, MapID = nil, Floor = 0 },
[225] = {AreaID = 690, MapID = 165, Floor = 1 },
[226] = {AreaID = 691, MapID = 168, Floor = 1 },
[227] = {AreaID = 691, MapID = 169, Floor = 2 },
[228] = {AreaID = 691, MapID = 170, Floor = 3 },
[229] = {AreaID = 691, MapID = 172, Floor = 4 },
[230] = {AreaID = 692, MapID = 171, Floor = 1 },
[231] = {AreaID = 692, MapID = 180, Floor = 2 },
[232] = {AreaID = 696, MapID = 181, Floor = 1 },
[233] = {AreaID = 697, MapID = nil, Floor = 0 },
[234] = {AreaID = 699, MapID = nil, Floor = 0 },
[235] = {AreaID = 699, MapID = 262, Floor = 1 },
[236] = {AreaID = 699, MapID = 263, Floor = 2 },
[237] = {AreaID = 699, MapID = 264, Floor = 3 },
[238] = {AreaID = 699, MapID = 265, Floor = 4 },
[239] = {AreaID = 699, MapID = 266, Floor = 5 },
[240] = {AreaID = 699, MapID = 267, Floor = 6 },
[241] = {AreaID = 700, MapID = nil, Floor = 0 },
[242] = {AreaID = 704, MapID = 200, Floor = 1 },
[243] = {AreaID = 704, MapID = 201, Floor = 2 },
[244] = {AreaID = 708, MapID = nil, Floor = 0 },
[245] = {AreaID = 709, MapID = nil, Floor = 0 },
[246] = {AreaID = 710, MapID = 222, Floor = 1 },
[247] = {AreaID = 717, MapID = nil, Floor = 0 },
[248] = {AreaID = 718, MapID = 196, Floor = 1 },
[249] = {AreaID = 720, MapID = nil, Floor = 0 },
[250] = {AreaID = 721, MapID = 202, Floor = 1 },
[251] = {AreaID = 721, MapID = 207, Floor = 2 },
[252] = {AreaID = 721, MapID = 208, Floor = 3 },
[253] = {AreaID = 721, MapID = 209, Floor = 4 },
[254] = {AreaID = 721, MapID = 210, Floor = 5 },
[255] = {AreaID = 721, MapID = 211, Floor = 6 },
[256] = {AreaID = 722, MapID = 214, Floor = 1 },
[257] = {AreaID = 722, MapID = 215, Floor = 2 },
[258] = {AreaID = 723, MapID = 216, Floor = 1 },
[259] = {AreaID = 723, MapID = 217, Floor = 2 },
[260] = {AreaID = 724, MapID = 218, Floor = 1 },
[261] = {AreaID = 725, MapID = 221, Floor = 1 },
[262] = {AreaID = 726, MapID = 223, Floor = 1 },
[263] = {AreaID = 727, MapID = 226, Floor = 1 },
[264] = {AreaID = 727, MapID = 227, Floor = 2 },
[265] = {AreaID = 728, MapID = 228, Floor = 1 },
[266] = {AreaID = 729, MapID = 230, Floor = 1 },
[267] = {AreaID = 730, MapID = 231, Floor = 1 },
[268] = {AreaID = 730, MapID = 232, Floor = 2 },
[269] = {AreaID = 731, MapID = 233, Floor = 1 },
[270] = {AreaID = 731, MapID = 234, Floor = 2 },
[271] = {AreaID = 731, MapID = 235, Floor = 3 },
[272] = {AreaID = 732, MapID = 238, Floor = 1 },
[273] = {AreaID = 733, MapID = nil, Floor = 0 },
[274] = {AreaID = 734, MapID = nil, Floor = 0 },
[275] = {AreaID = 736, MapID = nil, Floor = 0 },
[276] = {AreaID = 737, MapID = nil, Floor = 0 },
[277] = {AreaID = 747, MapID = nil, Floor = 0 },
[279] = {AreaID = 749, MapID = 28, Floor = 1 },
[280] = {AreaID = 750, MapID = 256, Floor = 1 },
[281] = {AreaID = 750, MapID = 257, Floor = 2 },
[282] = {AreaID = 752, MapID = 252, Floor = 1 },
[283] = {AreaID = 753, MapID = 116, Floor = 1 },
[284] = {AreaID = 753, MapID = 117, Floor = 2 },
[285] = {AreaID = 754, MapID = 131, Floor = 1 },
[286] = {AreaID = 754, MapID = 132, Floor = 2 },
[287] = {AreaID = 755, MapID = 182, Floor = 1 },
[288] = {AreaID = 755, MapID = 183, Floor = 2 },
[289] = {AreaID = 755, MapID = 184, Floor = 3 },
[290] = {AreaID = 755, MapID = 185, Floor = 4 },
[291] = {AreaID = 756, MapID = 166, Floor = 1 },
[292] = {AreaID = 756, MapID = 167, Floor = 2 },
[293] = {AreaID = 757, MapID = 123, Floor = 1 },
[294] = {AreaID = 758, MapID = 128, Floor = 1 },
[295] = {AreaID = 758, MapID = 129, Floor = 2 },
[296] = {AreaID = 758, MapID = 134, Floor = 3 },
[297] = {AreaID = 759, MapID = 119, Floor = 1 },
[298] = {AreaID = 759, MapID = 120, Floor = 2 },
[299] = {AreaID = 759, MapID = 135, Floor = 3 },
[300] = {AreaID = 760, MapID = 150, Floor = 1 },
[301] = {AreaID = 761, MapID = 149, Floor = 1 },
[302] = {AreaID = 762, MapID = 137, Floor = 1 },
[303] = {AreaID = 762, MapID = 140, Floor = 2 },
[304] = {AreaID = 762, MapID = 141, Floor = 3 },
[305] = {AreaID = 762, MapID = 179, Floor = 4 },
[306] = {AreaID = 763, MapID = 151, Floor = 1 },
[307] = {AreaID = 763, MapID = 152, Floor = 2 },
[308] = {AreaID = 763, MapID = 153, Floor = 3 },
[309] = {AreaID = 763, MapID = 154, Floor = 4 },
[310] = {AreaID = 764, MapID = 142, Floor = 1 },
[311] = {AreaID = 764, MapID = 143, Floor = 2 },
[312] = {AreaID = 764, MapID = 144, Floor = 3 },
[313] = {AreaID = 764, MapID = 145, Floor = 4 },
[314] = {AreaID = 764, MapID = 146, Floor = 5 },
[315] = {AreaID = 764, MapID = 147, Floor = 6 },
[316] = {AreaID = 764, MapID = 148, Floor = 7 },
[317] = {AreaID = 765, MapID = 155, Floor = 1 },
[318] = {AreaID = 765, MapID = 156, Floor = 2 },
[319] = {AreaID = 766, MapID = 191, Floor = 1 },
[320] = {AreaID = 766, MapID = 192, Floor = 2 },
[321] = {AreaID = 766, MapID = 195, Floor = 3 },
[322] = {AreaID = 767, MapID = 126, Floor = 1 },
[323] = {AreaID = 767, MapID = 127, Floor = 2 },
[324] = {AreaID = 768, MapID = 125, Floor = 1 },
[325] = {AreaID = 769, MapID = 122, Floor = 1 },
[327] = {AreaID = 772, MapID = nil, Floor = 0 },
[328] = {AreaID = 773, MapID = 271, Floor = 1 },
[329] = {AreaID = 775, MapID = nil, Floor = 0 },
[330] = {AreaID = 776, MapID = 322, Floor = 1 },
[331] = {AreaID = 779, MapID = 341, Floor = 1 },
[332] = {AreaID = 780, MapID = 355, Floor = 1 },
[333] = {AreaID = 781, MapID = nil, Floor = 0 },
[334] = {AreaID = 782, MapID = 349, Floor = 1 },
[335] = {AreaID = 789, MapID = nil, Floor = 0 },
[336] = {AreaID = 789, MapID = 440, Floor = 1 },
[337] = {AreaID = 793, MapID = nil, Floor = 0 },
[338] = {AreaID = 795, MapID = nil, Floor = 0 },
[339] = {AreaID = 796, MapID = nil, Floor = 0 },
[340] = {AreaID = 796, MapID = 433, Floor = 1 },
[341] = {AreaID = 796, MapID = 434, Floor = 2 },
[342] = {AreaID = 796, MapID = 435, Floor = 3 },
[343] = {AreaID = 796, MapID = 436, Floor = 4 },
[344] = {AreaID = 796, MapID = 437, Floor = 5 },
[345] = {AreaID = 796, MapID = 438, Floor = 6 },
[346] = {AreaID = 796, MapID = 439, Floor = 7 },
[347] = {AreaID = 797, MapID = 219, Floor = 1 },
[348] = {AreaID = 798, MapID = 236, Floor = 1 },
[349] = {AreaID = 798, MapID = 237, Floor = 2 },
[350] = {AreaID = 799, MapID = 383, Floor = 1 },
[351] = {AreaID = 799, MapID = 385, Floor = 2 },
[352] = {AreaID = 799, MapID = 386, Floor = 3 },
[353] = {AreaID = 799, MapID = 387, Floor = 4 },
[354] = {AreaID = 799, MapID = 388, Floor = 5 },
[355] = {AreaID = 799, MapID = 389, Floor = 6 },
[356] = {AreaID = 799, MapID = 390, Floor = 7 },
[357] = {AreaID = 799, MapID = 391, Floor = 8 },
[358] = {AreaID = 799, MapID = 393, Floor = 9 },
[359] = {AreaID = 799, MapID = 398, Floor = 10 },
[360] = {AreaID = 799, MapID = 399, Floor = 11 },
[361] = {AreaID = 799, MapID = 401, Floor = 12 },
[362] = {AreaID = 799, MapID = 402, Floor = 13 },
[363] = {AreaID = 799, MapID = 403, Floor = 14 },
[364] = {AreaID = 799, MapID = 404, Floor = 15 },
[365] = {AreaID = 799, MapID = 405, Floor = 16 },
[366] = {AreaID = 799, MapID = 406, Floor = 17 },
[367] = {AreaID = 800, MapID = nil, Floor = 0 },
[368] = {AreaID = 800, MapID = 467, Floor = 1 },
[369] = {AreaID = 800, MapID = 466, Floor = 2 },
[370] = {AreaID = 803, MapID = 458, Floor = 1 },
[371] = {AreaID = 806, MapID = nil, Floor = 0 },
[372] = {AreaID = 806, MapID = 678, Floor = 6 },
[373] = {AreaID = 806, MapID = 679, Floor = 7 },
[374] = {AreaID = 806, MapID = 691, Floor = 15 },
[375] = {AreaID = 806, MapID = 692, Floor = 16 },
[376] = {AreaID = 807, MapID = nil, Floor = 0 },
[377] = {AreaID = 807, MapID = 687, Floor = 14 },
[378] = {AreaID = 808, MapID = nil, Floor = 0 },
[379] = {AreaID = 809, MapID = nil, Floor = 0 },
[380] = {AreaID = 809, MapID = 680, Floor = 8 },
[381] = {AreaID = 809, MapID = 682, Floor = 9 },
[382] = {AreaID = 809, MapID = 683, Floor = 10 },
[383] = {AreaID = 809, MapID = 684, Floor = 11 },
[384] = {AreaID = 809, MapID = 685, Floor = 12 },
[385] = {AreaID = 809, MapID = 707, Floor = 17 },
[386] = {AreaID = 809, MapID = 739, Floor = 20 },
[387] = {AreaID = 809, MapID = 740, Floor = 21 },
[388] = {AreaID = 810, MapID = nil, Floor = 0 },
[389] = {AreaID = 810, MapID = 686, Floor = 13 },
[390] = {AreaID = 811, MapID = nil, Floor = 0 },
[391] = {AreaID = 811, MapID = 668, Floor = 1 },
[392] = {AreaID = 811, MapID = 669, Floor = 2 },
[393] = {AreaID = 811, MapID = 670, Floor = 3 },
[394] = {AreaID = 811, MapID = 671, Floor = 4 },
[395] = {AreaID = 811, MapID = 708, Floor = 18 },
[396] = {AreaID = 811, MapID = 709, Floor = 19 },
[397] = {AreaID = 813, MapID = nil, Floor = 0 },
[398] = {AreaID = 816, MapID = nil, Floor = 0 },
[399] = {AreaID = 819, MapID = nil, Floor = 0 },
[400] = {AreaID = 819, MapID = 502, Floor = 1 },
[401] = {AreaID = 820, MapID = nil, Floor = 0 },
[402] = {AreaID = 820, MapID = 495, Floor = 1 },
[403] = {AreaID = 820, MapID = 496, Floor = 2 },
[404] = {AreaID = 820, MapID = 497, Floor = 3 },
[405] = {AreaID = 820, MapID = 498, Floor = 4 },
[406] = {AreaID = 820, MapID = 499, Floor = 5 },
[407] = {AreaID = 823, MapID = nil, Floor = 0 },
[408] = {AreaID = 823, MapID = 1157, Floor = 1 },
[409] = {AreaID = 824, MapID = nil, Floor = 0 },
[410] = {AreaID = 824, MapID = 503, Floor = 1 },
[411] = {AreaID = 824, MapID = 504, Floor = 2 },
[412] = {AreaID = 824, MapID = 505, Floor = 3 },
[413] = {AreaID = 824, MapID = 512, Floor = 4 },
[414] = {AreaID = 824, MapID = 513, Floor = 5 },
[415] = {AreaID = 824, MapID = 514, Floor = 6 },
[416] = {AreaID = 851, MapID = nil, Floor = 0 },
[417] = {AreaID = 856, MapID = nil, Floor = 0 },
[418] = {AreaID = 857, MapID = nil, Floor = 0 },
[419] = {AreaID = 857, MapID = 727, Floor = 1 },
[420] = {AreaID = 857, MapID = 728, Floor = 2 },
[421] = {AreaID = 857, MapID = 729, Floor = 3 },
[422] = {AreaID = 858, MapID = nil, Floor = 0 },
[423] = {AreaID = 860, MapID = 576, Floor = 1 },
[424] = {AreaID = 862, MapID = nil, Floor = 0 },
[425] = {AreaID = 864, MapID = nil, Floor = 0 },
[426] = {AreaID = 864, MapID = 578, Floor = 3 },
[427] = {AreaID = 866, MapID = nil, Floor = 0 },
[428] = {AreaID = 866, MapID = 584, Floor = 9 },
[429] = {AreaID = 867, MapID = 633, Floor = 1 },
[430] = {AreaID = 867, MapID = 634, Floor = 2 },
[431] = {AreaID = 871, MapID = 639, Floor = 1 },
[432] = {AreaID = 871, MapID = 640, Floor = 2 },
[433] = {AreaID = 873, MapID = nil, Floor = 0 },
[434] = {AreaID = 873, MapID = 677, Floor = 5 },
[435] = {AreaID = 874, MapID = 641, Floor = 1 },
[436] = {AreaID = 874, MapID = 648, Floor = 2 },
[437] = {AreaID = 875, MapID = 649, Floor = 1 },
[438] = {AreaID = 875, MapID = 650, Floor = 2 },
[439] = {AreaID = 876, MapID = 635, Floor = 1 },
[440] = {AreaID = 876, MapID = 636, Floor = 2 },
[441] = {AreaID = 876, MapID = 637, Floor = 3 },
[442] = {AreaID = 876, MapID = 638, Floor = 4 },
[443] = {AreaID = 877, MapID = nil, Floor = 0 },
[444] = {AreaID = 877, MapID = 651, Floor = 1 },
[445] = {AreaID = 877, MapID = 652, Floor = 2 },
[446] = {AreaID = 877, MapID = 653, Floor = 3 },
[447] = {AreaID = 878, MapID = nil, Floor = 0 },
[448] = {AreaID = 880, MapID = nil, Floor = 0 },
[449] = {AreaID = 881, MapID = nil, Floor = 0 },
[450] = {AreaID = 882, MapID = nil, Floor = 0 },
[451] = {AreaID = 883, MapID = nil, Floor = 0 },
[452] = {AreaID = 884, MapID = nil, Floor = 0 },
[453] = {AreaID = 885, MapID = 654, Floor = 1 },
[454] = {AreaID = 885, MapID = 655, Floor = 2 },
[455] = {AreaID = 885, MapID = 656, Floor = 3 },
[456] = {AreaID = 886, MapID = nil, Floor = 0 },
[457] = {AreaID = 887, MapID = nil, Floor = 0 },
[458] = {AreaID = 887, MapID = 660, Floor = 1 },
[459] = {AreaID = 887, MapID = 661, Floor = 2 },
[460] = {AreaID = 888, MapID = nil, Floor = 0 },
[461] = {AreaID = 889, MapID = nil, Floor = 0 },
[462] = {AreaID = 890, MapID = nil, Floor = 0 },
[463] = {AreaID = 891, MapID = nil, Floor = 0 },
[464] = {AreaID = 891, MapID = 599, Floor = 9 },
[465] = {AreaID = 892, MapID = nil, Floor = 0 },
[466] = {AreaID = 892, MapID = 588, Floor = 12 },
[467] = {AreaID = 893, MapID = nil, Floor = 0 },
[468] = {AreaID = 894, MapID = nil, Floor = 0 },
[469] = {AreaID = 895, MapID = nil, Floor = 0 },
[470] = {AreaID = 895, MapID = 583, Floor = 8 },
[471] = {AreaID = 896, MapID = 663, Floor = 1 },
[472] = {AreaID = 896, MapID = 664, Floor = 2 },
[473] = {AreaID = 896, MapID = 665, Floor = 3 },
[474] = {AreaID = 897, MapID = 666, Floor = 1 },
[475] = {AreaID = 897, MapID = 667, Floor = 2 },
[476] = {AreaID = 898, MapID = 642, Floor = 1 },
[477] = {AreaID = 898, MapID = 643, Floor = 2 },
[478] = {AreaID = 898, MapID = 644, Floor = 3 },
[479] = {AreaID = 898, MapID = 645, Floor = 4 },
[480] = {AreaID = 899, MapID = 672, Floor = 1 },
[481] = {AreaID = 900, MapID = 673, Floor = 1 },
[482] = {AreaID = 900, MapID = 674, Floor = 2 },
[483] = {AreaID = 906, MapID = nil, Floor = 0 },
[486] = {AreaID = 911, MapID = nil, Floor = 0 },
[487] = {AreaID = 912, MapID = nil, Floor = 0 },
[488] = {AreaID = 914, MapID = nil, Floor = 0 },
[489] = {AreaID = 914, MapID = 726, Floor = 1 },
[490] = {AreaID = 919, MapID = nil, Floor = 0 },
[491] = {AreaID = 919, MapID = 732, Floor = 1 },
[492] = {AreaID = 919, MapID = 733, Floor = 2 },
[493] = {AreaID = 919, MapID = 734, Floor = 3 },
[494] = {AreaID = 919, MapID = 735, Floor = 4 },
[495] = {AreaID = 919, MapID = 736, Floor = 5 },
[496] = {AreaID = 919, MapID = 737, Floor = 6 },
[497] = {AreaID = 919, MapID = 738, Floor = 7 },
[498] = {AreaID = 920, MapID = nil, Floor = 0 },
[499] = {AreaID = 922, MapID = 741, Floor = 1 },
[500] = {AreaID = 922, MapID = 742, Floor = 2 },
[501] = {AreaID = 924, MapID = 746, Floor = 1 },
[502] = {AreaID = 924, MapID = 748, Floor = 2 },
[503] = {AreaID = 925, MapID = 749, Floor = 1 },
[504] = {AreaID = 928, MapID = nil, Floor = 0 },
[505] = {AreaID = 928, MapID = 758, Floor = 1 },
[506] = {AreaID = 928, MapID = 759, Floor = 2 },
[507] = {AreaID = 929, MapID = nil, Floor = 0 },
[508] = {AreaID = 930, MapID = 750, Floor = 1 },
[509] = {AreaID = 930, MapID = 751, Floor = 2 },
[510] = {AreaID = 930, MapID = 752, Floor = 3 },
[511] = {AreaID = 930, MapID = 753, Floor = 4 },
[512] = {AreaID = 930, MapID = 754, Floor = 5 },
[513] = {AreaID = 930, MapID = 755, Floor = 6 },
[514] = {AreaID = 930, MapID = 756, Floor = 7 },
[515] = {AreaID = 930, MapID = 757, Floor = 8 },
[516] = {AreaID = 933, MapID = nil, Floor = 0 },
[517] = {AreaID = 933, MapID = 761, Floor = 1 },
[518] = {AreaID = 934, MapID = 760, Floor = 1 },
[519] = {AreaID = 935, MapID = nil, Floor = 0 },
[520] = {AreaID = 937, MapID = nil, Floor = 0 },
[521] = {AreaID = 937, MapID = 775, Floor = 1 },
[522] = {AreaID = 938, MapID = 776, Floor = 1 },
[523] = {AreaID = 939, MapID = nil, Floor = 0 },
[524] = {AreaID = 940, MapID = nil, Floor = 0 },
[525] = {AreaID = 941, MapID = nil, Floor = 0 },
[526] = {AreaID = 941, MapID = 815, Floor = 1 },
[527] = {AreaID = 941, MapID = 816, Floor = 2 },
[528] = {AreaID = 941, MapID = 817, Floor = 3 },
[529] = {AreaID = 941, MapID = 818, Floor = 4 },
[530] = {AreaID = 941, MapID = 859, Floor = 6 },
[531] = {AreaID = 941, MapID = 860, Floor = 7 },
[532] = {AreaID = 941, MapID = 861, Floor = 8 },
[533] = {AreaID = 941, MapID = 862, Floor = 9 },
[534] = {AreaID = 945, MapID = nil, Floor = 0 },
[535] = {AreaID = 946, MapID = nil, Floor = 0 },
[536] = {AreaID = 946, MapID = 884, Floor = 13 },
[537] = {AreaID = 946, MapID = 885, Floor = 14 },
[538] = {AreaID = 946, MapID = 937, Floor = 30 },
[539] = {AreaID = 947, MapID = nil, Floor = 0 },
[540] = {AreaID = 947, MapID = 886, Floor = 15 },
[541] = {AreaID = 947, MapID = 894, Floor = 22 },
[542] = {AreaID = 948, MapID = nil, Floor = 0 },
[543] = {AreaID = 949, MapID = nil, Floor = 0 },
[544] = {AreaID = 949, MapID = 888, Floor = 16 },
[545] = {AreaID = 949, MapID = 889, Floor = 17 },
[546] = {AreaID = 949, MapID = 890, Floor = 18 },
[547] = {AreaID = 949, MapID = 891, Floor = 19 },
[548] = {AreaID = 949, MapID = 892, Floor = 20 },
[549] = {AreaID = 949, MapID = 893, Floor = 21 },
[550] = {AreaID = 950, MapID = nil, Floor = 0 },
[551] = {AreaID = 950, MapID = 863, Floor = 10 },
[552] = {AreaID = 950, MapID = 864, Floor = 11 },
[553] = {AreaID = 950, MapID = 880, Floor = 12 },
[554] = {AreaID = 951, MapID = nil, Floor = 0 },
[555] = {AreaID = 951, MapID = 808, Floor = 22 },
[556] = {AreaID = 953, MapID = nil, Floor = 0 },
[557] = {AreaID = 953, MapID = 789, Floor = 1 },
[558] = {AreaID = 953, MapID = 790, Floor = 2 },
[559] = {AreaID = 953, MapID = 793, Floor = 3 },
[560] = {AreaID = 953, MapID = 794, Floor = 4 },
[561] = {AreaID = 953, MapID = 795, Floor = 5 },
[562] = {AreaID = 953, MapID = 796, Floor = 6 },
[563] = {AreaID = 953, MapID = 797, Floor = 7 },
[564] = {AreaID = 953, MapID = 798, Floor = 8 },
[565] = {AreaID = 953, MapID = 800, Floor = 9 },
[566] = {AreaID = 953, MapID = 801, Floor = 10 },
[567] = {AreaID = 953, MapID = 802, Floor = 11 },
[568] = {AreaID = 953, MapID = 803, Floor = 12 },
[569] = {AreaID = 953, MapID = 804, Floor = 13 },
[570] = {AreaID = 953, MapID = 805, Floor = 14 },
[571] = {AreaID = 955, MapID = nil, Floor = 0 },
[572] = {AreaID = 962, MapID = nil, Floor = 0 },
[573] = {AreaID = 964, MapID = 814, Floor = 1 },
[574] = {AreaID = 969, MapID = 828, Floor = 1 },
[575] = {AreaID = 969, MapID = 830, Floor = 2 },
[576] = {AreaID = 969, MapID = 831, Floor = 3 },
[577] = {AreaID = 970, MapID = nil, Floor = 0 },
[578] = {AreaID = 970, MapID = 858, Floor = 1 },
[579] = {AreaID = 971, MapID = 902, Floor = 23 },
[580] = {AreaID = 971, MapID = 903, Floor = 24 },
[581] = {AreaID = 971, MapID = 904, Floor = 25 },
[582] = {AreaID = 973, MapID = nil, Floor = 0 },
[585] = {AreaID = 976, MapID = 905, Floor = 26 },
[586] = {AreaID = 976, MapID = 906, Floor = 27 },
[587] = {AreaID = 976, MapID = 907, Floor = 28 },
[588] = {AreaID = 978, MapID = nil, Floor = 0 },
[589] = {AreaID = 978, MapID = 934, Floor = 29 },
[590] = {AreaID = 980, MapID = nil, Floor = 0 },
[592] = {AreaID = 983, MapID = nil, Floor = 0 },
[593] = {AreaID = 984, MapID = 837, Floor = 1 },
[594] = {AreaID = 986, MapID = nil, Floor = 0 },
[595] = {AreaID = 987, MapID = 839, Floor = 1 },
[596] = {AreaID = 988, MapID = 842, Floor = 1 },
[597] = {AreaID = 988, MapID = 841, Floor = 2 },
[598] = {AreaID = 988, MapID = 840, Floor = 3 },
[599] = {AreaID = 988, MapID = 843, Floor = 4 },
[600] = {AreaID = 988, MapID = 844, Floor = 5 },
[601] = {AreaID = 989, MapID = 845, Floor = 1 },
[602] = {AreaID = 989, MapID = 846, Floor = 2 },
[606] = {AreaID = 993, MapID = 847, Floor = 1 },
[607] = {AreaID = 993, MapID = 848, Floor = 2 },
[608] = {AreaID = 993, MapID = 849, Floor = 3 },
[609] = {AreaID = 993, MapID = 850, Floor = 4 },
[610] = {AreaID = 994, MapID = nil, Floor = 0 },
[611] = {AreaID = 994, MapID = 852, Floor = 1 },
[612] = {AreaID = 994, MapID = 853, Floor = 2 },
[613] = {AreaID = 994, MapID = 854, Floor = 3 },
[614] = {AreaID = 994, MapID = 855, Floor = 4 },
[615] = {AreaID = 994, MapID = 856, Floor = 5 },
[616] = {AreaID = 995, MapID = 877, Floor = 1 },
[617] = {AreaID = 995, MapID = 878, Floor = 2 },
[618] = {AreaID = 995, MapID = 879, Floor = 3 },
[619] = {AreaID = 1007, MapID = nil, Floor = 0 },
[620] = {AreaID = 1008, MapID = nil, Floor = 0 },
[621] = {AreaID = 1008, MapID = 912, Floor = 1 },
[622] = {AreaID = 1009, MapID = nil, Floor = 0 },
[623] = {AreaID = 1010, MapID = nil, Floor = 0 },
[624] = {AreaID = 1011, MapID = nil, Floor = 0 },
[625] = {AreaID = 1014, MapID = nil, Floor = 0 },
[626] = {AreaID = 1014, MapID = 993, Floor = 4 },
[627] = {AreaID = 1014, MapID = 1009, Floor = 10 },
[628] = {AreaID = 1014, MapID = 1010, Floor = 11 },
[629] = {AreaID = 1014, MapID = 1011, Floor = 12 },
[630] = {AreaID = 1015, MapID = nil, Floor = 0 },
[631] = {AreaID = 1015, MapID = 1019, Floor = 17 },
[632] = {AreaID = 1015, MapID = 1020, Floor = 18 },
[633] = {AreaID = 1015, MapID = 1021, Floor = 19 },
[634] = {AreaID = 1017, MapID = nil, Floor = 0 },
[635] = {AreaID = 1017, MapID = 1018, Floor = 1 },
[636] = {AreaID = 1017, MapID = 1006, Floor = 9 },
[637] = {AreaID = 1017, MapID = 1034, Floor = 25 },
[638] = {AreaID = 1017, MapID = 1035, Floor = 26 },
[639] = {AreaID = 1017, MapID = 1036, Floor = 27 },
[640] = {AreaID = 1017, MapID = 1037, Floor = 28 },
[641] = {AreaID = 1018, MapID = nil, Floor = 0 },
[642] = {AreaID = 1018, MapID = 1012, Floor = 13 },
[643] = {AreaID = 1018, MapID = 1013, Floor = 14 },
[644] = {AreaID = 1018, MapID = 1014, Floor = 15 },
[645] = {AreaID = 1020, MapID = nil, Floor = 0 },
[646] = {AreaID = 1021, MapID = nil, Floor = 0 },
[647] = {AreaID = 1021, MapID = 939, Floor = 1 },
[648] = {AreaID = 1021, MapID = 940, Floor = 2 },
[649] = {AreaID = 1022, MapID = nil, Floor = 0 },
[650] = {AreaID = 1024, MapID = nil, Floor = 0 },
[651] = {AreaID = 1024, MapID = 996, Floor = 5 },
[652] = {AreaID = 1024, MapID = 997, Floor = 6 },
[653] = {AreaID = 1024, MapID = 1005, Floor = 8 },
[654] = {AreaID = 1024, MapID = 1015, Floor = 16 },
[655] = {AreaID = 1024, MapID = 1025, Floor = 20 },
[656] = {AreaID = 1024, MapID = 1026, Floor = 21 },
[657] = {AreaID = 1024, MapID = 1038, Floor = 29 },
[658] = {AreaID = 1024, MapID = 1039, Floor = 30 },
[659] = {AreaID = 1024, MapID = 1040, Floor = 31 },
[660] = {AreaID = 1024, MapID = 1117, Floor = 40 },
[661] = {AreaID = 1026, MapID = nil, Floor = 0 },
[662] = {AreaID = 1026, MapID = 926, Floor = 1 },
[663] = {AreaID = 1026, MapID = 927, Floor = 2 },
[664] = {AreaID = 1026, MapID = 925, Floor = 3 },
[665] = {AreaID = 1026, MapID = 928, Floor = 4 },
[666] = {AreaID = 1026, MapID = 929, Floor = 5 },
[667] = {AreaID = 1026, MapID = 930, Floor = 6 },
[668] = {AreaID = 1026, MapID = 931, Floor = 7 },
[669] = {AreaID = 1026, MapID = 932, Floor = 8 },
[670] = {AreaID = 1026, MapID = 933, Floor = 9 },
[671] = {AreaID = 1027, MapID = nil, Floor = 0 },
[672] = {AreaID = 1028, MapID = nil, Floor = 0 },
[673] = {AreaID = 1028, MapID = 1022, Floor = 1 },
[674] = {AreaID = 1028, MapID = 1023, Floor = 2 },
[675] = {AreaID = 1028, MapID = 1024, Floor = 3 },
[676] = {AreaID = 1031, MapID = nil, Floor = 0 },
[677] = {AreaID = 1032, MapID = 941, Floor = 1 },
[678] = {AreaID = 1032, MapID = 942, Floor = 2 },
[679] = {AreaID = 1032, MapID = 943, Floor = 3 },
[680] = {AreaID = 1033, MapID = nil, Floor = 0 },
[681] = {AreaID = 1033, MapID = 1031, Floor = 22 },
[682] = {AreaID = 1033, MapID = 1032, Floor = 23 },
[683] = {AreaID = 1033, MapID = 1033, Floor = 24 },
[684] = {AreaID = 1033, MapID = 1064, Floor = 32 },
[685] = {AreaID = 1033, MapID = 1065, Floor = 33 },
[686] = {AreaID = 1033, MapID = 1068, Floor = 34 },
[687] = {AreaID = 1033, MapID = 1069, Floor = 35 },
[688] = {AreaID = 1033, MapID = 1070, Floor = 36 },
[689] = {AreaID = 1033, MapID = 1071, Floor = 37 },
[690] = {AreaID = 1033, MapID = 1072, Floor = 38 },
[691] = {AreaID = 1033, MapID = 1114, Floor = 39 },
[692] = {AreaID = 1033, MapID = 1007, Floor = 41 },
[693] = {AreaID = 1033, MapID = 1008, Floor = 42 },
[694] = {AreaID = 1034, MapID = nil, Floor = 0 },
[695] = {AreaID = 1035, MapID = 946, Floor = 1 },
[696] = {AreaID = 1037, MapID = nil, Floor = 0 },
[697] = {AreaID = 1038, MapID = nil, Floor = 0 },
[698] = {AreaID = 1039, MapID = 948, Floor = 1 },
[699] = {AreaID = 1039, MapID = 949, Floor = 2 },
[700] = {AreaID = 1039, MapID = 954, Floor = 3 },
[701] = {AreaID = 1039, MapID = 958, Floor = 4 },
[702] = {AreaID = 1040, MapID = 966, Floor = 1 },
[703] = {AreaID = 1041, MapID = nil, Floor = 0 },
[704] = {AreaID = 1041, MapID = 963, Floor = 1 },
[705] = {AreaID = 1041, MapID = 964, Floor = 2 },
[706] = {AreaID = 1042, MapID = nil, Floor = 0 },
[707] = {AreaID = 1042, MapID = 967, Floor = 1 },
[708] = {AreaID = 1042, MapID = 968, Floor = 2 },
[709] = {AreaID = 1044, MapID = nil, Floor = 0 },
[710] = {AreaID = 1045, MapID = 969, Floor = 1 },
[711] = {AreaID = 1045, MapID = 970, Floor = 2 },
[712] = {AreaID = 1045, MapID = 971, Floor = 3 },
[713] = {AreaID = 1046, MapID = nil, Floor = 0 },
[714] = {AreaID = 1047, MapID = nil, Floor = 0 },
[715] = {AreaID = 1048, MapID = nil, Floor = 0 },
[716] = {AreaID = 1049, MapID = 973, Floor = 1 },
[717] = {AreaID = 1050, MapID = nil, Floor = 0 },
[718] = {AreaID = 1051, MapID = nil, Floor = 0 },
[719] = {AreaID = 1052, MapID = nil, Floor = 0 },
[720] = {AreaID = 1052, MapID = 981, Floor = 1 },
[721] = {AreaID = 1052, MapID = 982, Floor = 2 },
[723] = {AreaID = 1054, MapID = 974, Floor = 1 },
[725] = {AreaID = 1056, MapID = nil, Floor = 0 },
[726] = {AreaID = 1057, MapID = nil, Floor = 0 },
[728] = {AreaID = 1059, MapID = nil, Floor = 0 },
[729] = {AreaID = 1060, MapID = 975, Floor = 1 },
[731] = {AreaID = 1065, MapID = nil, Floor = 0 },
[732] = {AreaID = 1066, MapID = 977, Floor = 1 },
[733] = {AreaID = 1067, MapID = nil, Floor = 0 },
[734] = {AreaID = 1068, MapID = 978, Floor = 1 },
[735] = {AreaID = 1068, MapID = 979, Floor = 2 },
[736] = {AreaID = 1069, MapID = 980, Floor = 1 },
[737] = {AreaID = 1070, MapID = 983, Floor = 1 },
[738] = {AreaID = 1071, MapID = nil, Floor = 0 },
[739] = {AreaID = 1072, MapID = nil, Floor = 0 },
[740] = {AreaID = 1073, MapID = 985, Floor = 1 },
[741] = {AreaID = 1073, MapID = 986, Floor = 2 },
[742] = {AreaID = 1075, MapID = 987, Floor = 1 },
[743] = {AreaID = 1075, MapID = 988, Floor = 2 },
[744] = {AreaID = 1076, MapID = 989, Floor = 1 },
[745] = {AreaID = 1076, MapID = 990, Floor = 2 },
[746] = {AreaID = 1076, MapID = 1078, Floor = 3 },
[747] = {AreaID = 1077, MapID = nil, Floor = 0 },
[748] = {AreaID = 1078, MapID = nil, Floor = 0 },
[749] = {AreaID = 1079, MapID = 994, Floor = 1 },
[750] = {AreaID = 1080, MapID = nil, Floor = 0 },
[751] = {AreaID = 1081, MapID = 998, Floor = 1 },
[752] = {AreaID = 1081, MapID = 999, Floor = 2 },
[753] = {AreaID = 1081, MapID = 1000, Floor = 3 },
[754] = {AreaID = 1081, MapID = 1001, Floor = 4 },
[755] = {AreaID = 1081, MapID = 1002, Floor = 5 },
[756] = {AreaID = 1081, MapID = 1003, Floor = 6 },
[757] = {AreaID = 1082, MapID = nil, Floor = 0 },
[758] = {AreaID = 1084, MapID = nil, Floor = 0 },
[759] = {AreaID = 1085, MapID = 1027, Floor = 1 },
[760] = {AreaID = 1086, MapID = nil, Floor = 0 },
[761] = {AreaID = 1087, MapID = nil, Floor = 0 },
[762] = {AreaID = 1087, MapID = 1029, Floor = 1 },
[763] = {AreaID = 1087, MapID = 1030, Floor = 2 },
[764] = {AreaID = 1088, MapID = 1041, Floor = 1 },
[765] = {AreaID = 1088, MapID = 1042, Floor = 2 },
[766] = {AreaID = 1088, MapID = 1043, Floor = 3 },
[767] = {AreaID = 1088, MapID = 1044, Floor = 4 },
[768] = {AreaID = 1088, MapID = 1045, Floor = 5 },
[769] = {AreaID = 1088, MapID = 1046, Floor = 6 },
[770] = {AreaID = 1088, MapID = 1047, Floor = 7 },
[771] = {AreaID = 1088, MapID = 1048, Floor = 8 },
[772] = {AreaID = 1088, MapID = 1049, Floor = 9 },
[773] = {AreaID = 1090, MapID = nil, Floor = 0 },
[774] = {AreaID = 1090, MapID = 1050, Floor = 1 },
[775] = {AreaID = 1091, MapID = nil, Floor = 0 },
[776] = {AreaID = 1092, MapID = nil, Floor = 0 },
[777] = {AreaID = 1094, MapID = 1051, Floor = 1 },
[778] = {AreaID = 1094, MapID = 1052, Floor = 2 },
[779] = {AreaID = 1094, MapID = 1053, Floor = 3 },
[780] = {AreaID = 1094, MapID = 1054, Floor = 4 },
[781] = {AreaID = 1094, MapID = 1055, Floor = 5 },
[782] = {AreaID = 1094, MapID = 1056, Floor = 6 },
[783] = {AreaID = 1094, MapID = 1057, Floor = 7 },
[784] = {AreaID = 1094, MapID = 1058, Floor = 8 },
[785] = {AreaID = 1094, MapID = 1059, Floor = 9 },
[786] = {AreaID = 1094, MapID = 1060, Floor = 10 },
[787] = {AreaID = 1094, MapID = 1061, Floor = 11 },
[788] = {AreaID = 1094, MapID = 1062, Floor = 12 },
[789] = {AreaID = 1094, MapID = 1086, Floor = 13 },
[790] = {AreaID = 1096, MapID = nil, Floor = 0 },
[791] = {AreaID = 1097, MapID = 1066, Floor = 1 },
[792] = {AreaID = 1097, MapID = 1067, Floor = 2 },
[793] = {AreaID = 1099, MapID = nil, Floor = 0 },
[794] = {AreaID = 1100, MapID = 1073, Floor = 1 },
[795] = {AreaID = 1100, MapID = 1074, Floor = 2 },
[796] = {AreaID = 1100, MapID = 1075, Floor = 3 },
[797] = {AreaID = 1100, MapID = 1076, Floor = 4 },
[798] = {AreaID = 1102, MapID = 1077, Floor = 1 },
[799] = {AreaID = 1104, MapID = nil, Floor = 0 },
[800] = {AreaID = 1104, MapID = 1079, Floor = 1 },
[801] = {AreaID = 1104, MapID = 1080, Floor = 2 },
[802] = {AreaID = 1104, MapID = 1081, Floor = 3 },
[803] = {AreaID = 1104, MapID = 1082, Floor = 4 },
[804] = {AreaID = 1105, MapID = 1083, Floor = 1 },
[805] = {AreaID = 1105, MapID = 1084, Floor = 2 },
[806] = {AreaID = 1114, MapID = nil, Floor = 0 },
[807] = {AreaID = 1114, MapID = 1091, Floor = 1 },
[808] = {AreaID = 1114, MapID = 1092, Floor = 2 },
[809] = {AreaID = 1115, MapID = 1093, Floor = 1 },
[810] = {AreaID = 1115, MapID = 1094, Floor = 2 },
[811] = {AreaID = 1115, MapID = 1095, Floor = 3 },
[812] = {AreaID = 1115, MapID = 1096, Floor = 4 },
[813] = {AreaID = 1115, MapID = 1097, Floor = 5 },
[814] = {AreaID = 1115, MapID = 1098, Floor = 6 },
[815] = {AreaID = 1115, MapID = 1099, Floor = 7 },
[816] = {AreaID = 1115, MapID = 1100, Floor = 8 },
[817] = {AreaID = 1115, MapID = 1101, Floor = 9 },
[818] = {AreaID = 1115, MapID = 1102, Floor = 10 },
[819] = {AreaID = 1115, MapID = 1103, Floor = 11 },
[820] = {AreaID = 1115, MapID = 1104, Floor = 12 },
[821] = {AreaID = 1115, MapID = 1105, Floor = 13 },
[822] = {AreaID = 1115, MapID = 1106, Floor = 14 },
[823] = {AreaID = 1116, MapID = nil, Floor = 0 },
[824] = {AreaID = 1126, MapID = nil, Floor = 0 },
[825] = {AreaID = 1127, MapID = 1110, Floor = 1 },
[826] = {AreaID = 1129, MapID = 1111, Floor = 1 },
[827] = {AreaID = 1130, MapID = 1112, Floor = 1 },
[828] = {AreaID = 1131, MapID = 1113, Floor = 1 },
[829] = {AreaID = 1132, MapID = 1115, Floor = 1 },
[830] = {AreaID = 1135, MapID = nil, Floor = 0 },
[831] = {AreaID = 1135, MapID = 1163, Floor = 1 },
[832] = {AreaID = 1135, MapID = 1165, Floor = 2 },
[833] = {AreaID = 1135, MapID = 1184, Floor = 7 },
[834] = {AreaID = 1136, MapID = nil, Floor = 0 },
[835] = {AreaID = 1137, MapID = 1118, Floor = 1 },
[836] = {AreaID = 1137, MapID = 1119, Floor = 2 },
[837] = {AreaID = 1139, MapID = nil, Floor = 0 },
[838] = {AreaID = 1140, MapID = nil, Floor = 0 },
[839] = {AreaID = 1142, MapID = 1123, Floor = 1 },
[840] = {AreaID = 1143, MapID = 1120, Floor = 1 },
[841] = {AreaID = 1143, MapID = 1121, Floor = 2 },
[842] = {AreaID = 1143, MapID = 1122, Floor = 3 },
[843] = {AreaID = 1144, MapID = nil, Floor = 0 },
[844] = {AreaID = 1145, MapID = nil, Floor = 0 },
[845] = {AreaID = 1146, MapID = 1124, Floor = 1 },
[846] = {AreaID = 1146, MapID = 1125, Floor = 2 },
[847] = {AreaID = 1146, MapID = 1126, Floor = 3 },
[848] = {AreaID = 1146, MapID = 1127, Floor = 4 },
[849] = {AreaID = 1146, MapID = 1128, Floor = 5 },
[850] = {AreaID = 1147, MapID = 1129, Floor = 1 },
[851] = {AreaID = 1147, MapID = 1130, Floor = 2 },
[852] = {AreaID = 1147, MapID = 1132, Floor = 3 },
[853] = {AreaID = 1147, MapID = 1133, Floor = 4 },
[854] = {AreaID = 1147, MapID = 1134, Floor = 5 },
[855] = {AreaID = 1147, MapID = 1135, Floor = 6 },
[856] = {AreaID = 1147, MapID = 1136, Floor = 7 },
[857] = {AreaID = 1148, MapID = 1138, Floor = 1 },
[858] = {AreaID = 1149, MapID = nil, Floor = 0 },
[859] = {AreaID = 1150, MapID = nil, Floor = 0 },
[860] = {AreaID = 1151, MapID = nil, Floor = 0 },
[861] = {AreaID = 1152, MapID = nil, Floor = 0 },
[862] = {AreaID = 1153, MapID = nil, Floor = 0 },
[863] = {AreaID = 1154, MapID = nil, Floor = 0 },
[864] = {AreaID = 1155, MapID = nil, Floor = 0 },
[865] = {AreaID = 1156, MapID = 1143, Floor = 1 },
[866] = {AreaID = 1156, MapID = 1144, Floor = 2 },
[867] = {AreaID = 1157, MapID = 1140, Floor = 1 },
[868] = {AreaID = 1158, MapID = 1139, Floor = 1 },
[869] = {AreaID = 1159, MapID = 1141, Floor = 1 },
[870] = {AreaID = 1159, MapID = 1142, Floor = 2 },
[871] = {AreaID = 1160, MapID = nil, Floor = 0 },
[872] = {AreaID = 1161, MapID = nil, Floor = 0 },
[873] = {AreaID = 1161, MapID = 1145, Floor = 1 },
[874] = {AreaID = 1161, MapID = 1146, Floor = 2 },
[875] = {AreaID = 1162, MapID = nil, Floor = 0 },
[876] = {AreaID = 1163, MapID = nil, Floor = 0 },
[877] = {AreaID = 1164, MapID = nil, Floor = 0 },
[878] = {AreaID = 1165, MapID = nil, Floor = 0 },
[879] = {AreaID = 1165, MapID = 1147, Floor = 1 },
[880] = {AreaID = 1165, MapID = 1148, Floor = 2 },
[881] = {AreaID = 1166, MapID = 1150, Floor = 1 },
[882] = {AreaID = 1170, MapID = nil, Floor = 0 },
[883] = {AreaID = 1170, MapID = 1166, Floor = 3 },
[884] = {AreaID = 1170, MapID = 1167, Floor = 4 },
[885] = {AreaID = 1171, MapID = nil, Floor = 0 },
[886] = {AreaID = 1171, MapID = 1168, Floor = 5 },
[887] = {AreaID = 1171, MapID = 1169, Floor = 6 },
[888] = {AreaID = 1172, MapID = 1154, Floor = 1 },
[889] = {AreaID = 1173, MapID = 1149, Floor = 1 },
[890] = {AreaID = 1173, MapID = 1156, Floor = 2 },
[891] = {AreaID = 1174, MapID = nil, Floor = 0 },
[892] = {AreaID = 1174, MapID = 1181, Floor = 1 },
[893] = {AreaID = 1174, MapID = 1179, Floor = 2 },
[894] = {AreaID = 1174, MapID = 1180, Floor = 3 },
[895] = {AreaID = 1175, MapID = nil, Floor = 0 },
[896] = {AreaID = 1176, MapID = nil, Floor = 0 },
[897] = {AreaID = 1177, MapID = nil, Floor = 0 },
[898] = {AreaID = 1177, MapID = 1158, Floor = 1 },
[899] = {AreaID = 1177, MapID = 1159, Floor = 2 },
[900] = {AreaID = 1177, MapID = 1160, Floor = 3 },
[901] = {AreaID = 1177, MapID = 1161, Floor = 4 },
[902] = {AreaID = 1177, MapID = 1162, Floor = 5 },
[903] = {AreaID = 1178, MapID = nil, Floor = 0 },
[904] = {AreaID = 1183, MapID = nil, Floor = 0 },
[905] = {AreaID = 1184, MapID = nil, Floor = 0 },
[906] = {AreaID = 1185, MapID = nil, Floor = 0 },
[907] = {AreaID = 1186, MapID = nil, Floor = 0 },
[908] = {AreaID = 1187, MapID = nil, Floor = 0 },
[909] = {AreaID = 1188, MapID = nil, Floor = 0 },
[910] = {AreaID = 1188, MapID = 1170, Floor = 1 },
[911] = {AreaID = 1188, MapID = 1171, Floor = 2 },
[912] = {AreaID = 1188, MapID = 1172, Floor = 3 },
[913] = {AreaID = 1188, MapID = 1173, Floor = 4 },
[914] = {AreaID = 1188, MapID = 1174, Floor = 5 },
[915] = {AreaID = 1188, MapID = 1175, Floor = 6 },
[916] = {AreaID = 1188, MapID = 1176, Floor = 7 },
[917] = {AreaID = 1188, MapID = 1177, Floor = 8 },
[918] = {AreaID = 1188, MapID = 1178, Floor = 9 },
[919] = {AreaID = 1188, MapID = 1182, Floor = 10 },
[920] = {AreaID = 1188, MapID = 1183, Floor = 11 },
[921] = {AreaID = 1190, MapID = nil, Floor = 0 },
[922] = {AreaID = 1191, MapID = nil, Floor = 0 },
[923] = {AreaID = 1192, MapID = nil, Floor = 0 },
[924] = {AreaID = 1193, MapID = nil, Floor = 0 },
[925] = {AreaID = 1194, MapID = nil, Floor = 0 },
[926] = {AreaID = 1195, MapID = nil, Floor = 0 },
[927] = {AreaID = 1196, MapID = nil, Floor = 0 },
[928] = {AreaID = 1197, MapID = nil, Floor = 0 },
[929] = {AreaID = 1198, MapID = nil, Floor = 0 },
[930] = {AreaID = 1199, MapID = nil, Floor = 0 },
[931] = {AreaID = 1200, MapID = nil, Floor = 0 },
[932] = {AreaID = 1201, MapID = nil, Floor = 0 },
[933] = {AreaID = 1202, MapID = nil, Floor = 0 },
[934] = {AreaID = 1204, MapID = 1185, Floor = 1 },
[935] = {AreaID = 1204, MapID = 1186, Floor = 2 },
[936] = {AreaID = 1205, MapID = nil, Floor = 0 },
[938] = {AreaID = 1210, MapID = nil, Floor = 0 },
[939] = {AreaID = 1211, MapID = nil, Floor = 0 },
[940] = {AreaID = 1212, MapID = 1188, Floor = 1 },
[941] = {AreaID = 1212, MapID = 1189, Floor = 2 },
[942] = {AreaID = 1213, MapID = nil, Floor = 0 },
[943] = {AreaID = 1214, MapID = nil, Floor = 0 },
[971] = {AreaID = 1215, MapID = nil, Floor = 0 },
[972] = {AreaID = 1216, MapID = nil, Floor = 0 },
[973] = {AreaID = 1217, MapID = 1190, Floor = 1 },
[974] = {AreaID = 1219, MapID = nil, Floor = 0 },
[975] = {AreaID = 1219, MapID = 1191, Floor = 1 },
[976] = {AreaID = 1219, MapID = 1192, Floor = 2 },
[977] = {AreaID = 1219, MapID = 1193, Floor = 3 },
[978] = {AreaID = 1219, MapID = 1194, Floor = 4 },
[979] = {AreaID = 1219, MapID = 1195, Floor = 5 },
[980] = {AreaID = 1219, MapID = 1196, Floor = 6 },
[981] = {AreaID = 1220, MapID = nil, Floor = 0 },
[994] = {AreaID = 1184, MapID = nil, Floor = 0 },
[998] = {AreaID = 382, MapID = nil, Floor = 0 },
}
trunk/MetaMap/MetaMap.toc
16,6 → 16,7
localisation.fr.lua
localisation.de.lua
localisation.es.lua
MetaMapIDs.lua
MetaMapConstants.lua
MetaMapFunctions.lua
MetaMapOptions.lua