Updated to OTCv8 3.0 rev 43

This commit is contained in:
OTCv8
2021-05-15 16:51:02 +00:00
parent dea82a6751
commit 1def896276
111 changed files with 4642 additions and 2368 deletions

View File

@@ -64,7 +64,8 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
onTurn = {},
onWalk = {},
onImbuementWindow = {},
onModalDialog = {}
onModalDialog = {},
onAttackingCreatureChange = {}
}
-- basic functions & classes
@@ -355,6 +356,11 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
callback(id, title, message, buttons, enterButton, escapeButton, choices, priority)
end
end,
onAttackingCreatureChange = function(creature, oldCreature)
for i, callback in ipairs(context._callbacks.onAttackingCreatureChange) do
callback(creature, oldCreature)
end
end,
}
}
end