mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Updated to OTCv8 3.0 rev 91
This commit is contained in:
@@ -125,7 +125,7 @@ context.onContainerClose = function(callback)
|
||||
return context.callback("onContainerClose", callback)
|
||||
end
|
||||
|
||||
-- onContainerUpdateItem -- callback = function(container, slot, item)
|
||||
-- onContainerUpdateItem -- callback = function(container, slot, item, oldItem)
|
||||
context.onContainerUpdateItem = function(callback)
|
||||
return context.callback("onContainerUpdateItem", callback)
|
||||
end
|
||||
@@ -190,6 +190,21 @@ context.onAttackingCreatureChange = function(callback)
|
||||
return context.callback("onAttackingCreatureChange", callback)
|
||||
end
|
||||
|
||||
-- onManaChange -- callback = function(player, mana, maxMana, oldMana, oldMaxMana)
|
||||
context.onManaChange = function(callback)
|
||||
return context.callback("onManaChange", callback)
|
||||
end
|
||||
|
||||
-- onAddItem - callback = function(container, slot, item)
|
||||
context.onAddItem = function(callback)
|
||||
return context.callback("onAddItem", callback)
|
||||
end
|
||||
|
||||
-- onStatesChange - callback = function(states, oldStates)
|
||||
context.onStatesChange = function(callback)
|
||||
return context.callback("onStatesChange", callback)
|
||||
end
|
||||
|
||||
-- CUSTOM CALLBACKS
|
||||
|
||||
-- listen(name, callback) -- callback = function(text, channelId, pos)
|
||||
|
Reference in New Issue
Block a user