Updated to OTCv8 3.1 rev 217

This commit is contained in:
OTCv8
2022-05-23 21:59:13 +00:00
parent a160f49cc8
commit c70abbdfdd
10 changed files with 76 additions and 3 deletions

View File

@@ -72,7 +72,9 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
onGameEditText = {},
onGroupSpellCooldown = {},
onSpellCooldown = {},
onRemoveItem = {}
onRemoveItem = {},
onGameQuestLog = {},
onGameQuestLine = {}
}
-- basic functions & classes
@@ -404,6 +406,26 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
callback(iconId, duration)
end
end,
onGameQuestLog = function(quests)
local tmp = {}
for j,questEntry in pairs(quests) do
local id, name, completed = unpack(questEntry)
table.insert(tmp, { id = id, name = name, completed = completed })
end
for i, callback in ipairs(context._callbacks.onGameQuestLog) do
callback(tmp)
end
end,
onGameQuestLine = function(questId, questMissions)
local tmp = {}
for i,questMission in pairs(questMissions) do
local name, description = unpack(questMission)
table.insert(tmp, { name = name, description = description })
end
for i, callback in ipairs(context._callbacks.onGameQuestLine) do
callback(questId, tmp)
end
end,
}
}
end