mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 1.5 - bug fixes and small improvements
This commit is contained in:
@@ -39,6 +39,11 @@ context.onTalk = function(callback)
|
||||
return context.callback("onTalk", callback)
|
||||
end
|
||||
|
||||
-- onTextMessage(callback) -- callback = function(mode, text)
|
||||
context.onTextMessage = function(callback)
|
||||
return context.callback("onTextMessage", callback)
|
||||
end
|
||||
|
||||
-- onAddThing(callback) -- callback = function(tile, thing)
|
||||
context.onAddThing = function(callback)
|
||||
return context.callback("onAddThing", callback)
|
||||
|
@@ -64,12 +64,10 @@ context.macro = function(timeout, name, hotkey, callback, parent)
|
||||
end
|
||||
|
||||
-- hotkey(keys, callback)
|
||||
-- hotkey(keys, callback, parent)
|
||||
-- hotkey(keys, name, callback)
|
||||
-- hotkey(keys, name, callback, parent)
|
||||
context.hotkey = function(keys, name, callback, parent, single)
|
||||
if type(name) == 'function' then
|
||||
parent = callback
|
||||
callback = name
|
||||
name = ""
|
||||
end
|
||||
@@ -110,12 +108,10 @@ context.hotkey = function(keys, name, callback, parent, single)
|
||||
end
|
||||
|
||||
-- singlehotkey(keys, callback)
|
||||
-- singlehotkey(keys, callback, parent)
|
||||
-- singlehotkey(keys, name, callback)
|
||||
-- singlehotkey(keys, name, callback, parent)
|
||||
context.singlehotkey = function(keys, name, callback, parent)
|
||||
if type(name) == 'function' then
|
||||
parent = callback
|
||||
callback = name
|
||||
name = ""
|
||||
end
|
||||
|
Reference in New Issue
Block a user