mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-22 07:25:54 +02:00
Updated to OTCv8 3.0 rev 43
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user