1
0
Bifurcation 0
Ce dépôt a été archivé le 2020-03-15. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
questhelperredux/QuestHelper/collect_hearth.lua

43 lignes
1 Kio
Lua
Brut Vue normale Historique

QuestHelper_File["collect_hearth.lua"] = "4.0.1.$svnversion$"
QuestHelper_Loadtime["collect_hearth.lua"] = GetTime()
local debug_output = false
if QuestHelper_File["collect_hearth.lua"] == "Development Version" then debug_output = true end
local QHCZ
local GetLoc
local Merger
local last_hearth = 0
local function CollectHearth()
local start, cd, _ = GetItemCooldown(6948)
if last_hearth + 1800 < GetTime() and cd == 1800 then
last_hearth = start
QHCZ[GetBindLocation()] = GetLoc()
end
end
local function OnEvent()
-- DoZoneUpdate("border", true)
CollectHearth()
end
function QH_Collect_Hearth_Init(QHCData, API)
if not QHCData.hearth then QHCData.hearth = {} end
QHCZ = QHCData.hearth
QH_Event("ZONE_CHANGED", OnEvent)
QH_Event("ZONE_CHANGED_INDOORS", OnEvent)
QH_Event("ZONE_CHANGED_NEW_AREA", OnEvent)
--API.Registrar_OnUpdateHook(OnUpdate)
GetLoc = API.Callback_LocationBolusCurrent
QuestHelper: Assert(GetLoc)
Merger = API.Utility_Merger
QuestHelper: Assert(Merger)
end