mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-22 23:45:55 +02:00
Updated to OTCv8 3.0 rev 43
This commit is contained in:
@@ -477,6 +477,7 @@ function initCallbacks()
|
||||
onChannelEvent = botChannelEvent,
|
||||
onImbuementWindow = botOnImbuementWindow,
|
||||
onModalDialog = botOnModalDialog,
|
||||
onAttackingCreatureChange = botOnAttackingCreatureChange
|
||||
})
|
||||
|
||||
connect(Tile, {
|
||||
@@ -532,6 +533,7 @@ function terminateCallbacks()
|
||||
onChannelEvent = botChannelEvent,
|
||||
onImbuementWindow = botOnImbuementWindow,
|
||||
onModalDialog = botOnModalDialog,
|
||||
onAttackingCreatureChange = botOnAttackingCreatureChange
|
||||
})
|
||||
|
||||
disconnect(Tile, {
|
||||
@@ -717,3 +719,8 @@ function botOnModalDialog(id, title, message, buttons, enterButton, escapeButton
|
||||
if botExecutor == nil then return false end
|
||||
safeBotCall(function() botExecutor.callbacks.onModalDialog(id, title, message, buttons, enterButton, escapeButton, choices, priority) end)
|
||||
end
|
||||
|
||||
function botOnAttackingCreatureChange(creature, oldCreature)
|
||||
if botExecutor == nil then return false end
|
||||
safeBotCall(function() botExecutor.callbacks.onAttackingCreatureChange(creature,oldCreature) end)
|
||||
end
|
Reference in New Issue
Block a user