mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Version 2.2.1 - updated market, text editor, bot
This commit is contained in:
@@ -59,7 +59,8 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
|
||||
onChannelList = {},
|
||||
onOpenChannel = {},
|
||||
onCloseChannel = {},
|
||||
onChannelEvent = {}
|
||||
onChannelEvent = {},
|
||||
onTurn = {}
|
||||
}
|
||||
|
||||
-- basic functions & classes
|
||||
@@ -311,6 +312,11 @@ function executeBot(config, storage, tabs, msgCallback, saveConfigCallback, relo
|
||||
callback(channelId, name, event)
|
||||
end
|
||||
end,
|
||||
onTurn = function(creature, direction)
|
||||
for i, callback in ipairs(context._callbacks.onTurn) do
|
||||
callback(creature, direction)
|
||||
end
|
||||
end,
|
||||
}
|
||||
}
|
||||
end
|
Reference in New Issue
Block a user