Updated to OTCv8 3.1 rev 229

This commit is contained in:
OTCv8
2022-07-09 22:09:37 +00:00
parent 88fb41bafc
commit a48d0fd0d1
125 changed files with 24548 additions and 732 deletions

View File

@@ -73,9 +73,7 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
onGroupSpellCooldown = {},
onSpellCooldown = {},
onRemoveItem = {},
onInventoryChange = {},
onGameQuestLog = {},
onGameQuestLine = {}
onInventoryChange = {}
}
-- basic functions & classes
@@ -419,27 +417,7 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
for i, callback in ipairs(context._callbacks.onInventoryChange) do
callback(player, slot, item, oldItem)
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
}
}
end