1
0
Bifurcation 0

Fixed some issues with the code for the new LostIsles fix. Almost have the hearth collection finished... Just a couple more things to do.

Cette révision appartient à :
Nathanial.C.Jones 2011-01-29 02:40:17 +00:00
Parent e507f1bf9c
révision de3585db04
2 fichiers modifiés avec 11 ajouts et 9 suppressions

Voir le fichier

@ -19,13 +19,13 @@ local function OnZoneChanged()
end
end
local GetMonsterType
local function OnConfirmBinder(...)
local new_home = unpack(...)
if not QHCZ[new_home] then QHCZ[new_home] = {} end
if not QHCZ[new_home].Innkeeper then QHCZ[new_home].Innkeeper = {} end
QHCZ[new_home].Innkeeper.Name = UnitName("target")
if not QHCZ[new_home].Innkeeper.Loc then QHCZ[new_home].Innkeeper.Loc = {} end
table.insert(QHCZ[new_home].Innkeeper.Loc, GetLoc())
QuestHelper:TextOut(UnitName("target") .. " wants to set your hearth location to " .. new_home)
QHCZ[new_home].Innkeeper.ID = GetMonsterType(UnitName("target"))
end
function QH_Collect_Hearth_Init(QHCData, API)
@ -44,4 +44,7 @@ function QH_Collect_Hearth_Init(QHCData, API)
Merger = API.Utility_Merger
QuestHelper: Assert(Merger)
GetMonsterType = API.Utility_GetMonsterType
QuestHelper: Assert(GetMonsterType)
end

Voir le fichier

@ -296,11 +296,10 @@ function load_graph_links()
-- I hate Blizzard... They can't make up their mind whether we are on LostIsles, LostIsles_terrain1 or LostIsles_terrain2, but we only seem to be on one.
-- Create a lookup table.
local converter = {
181 = function() return convertLostIsles(181, 208, 209) end,
208 = function() return convertLostIsles(208, 181, 209) end,
209 = funciton() return convertLostIsles(209, 181, 208) end
}
local converter = {}
convert[181] = function() return convertLostIsles(181, 208, 209) end,
convert[208] = function() return convertLostIsles(208, 181, 209) end,
convert[209] = function() return convertLostIsles(209, 181, 208) end
-- Use the lookup table to get the real coordinate.
if converter[coord[1]] then coord[1] = converter[coord[1]]() end