Updated to OTCv8 3.0 rev 91

This commit is contained in:
OTCv8
2021-07-18 11:09:50 +00:00
parent e2e56f82ed
commit de2ac3e972
102 changed files with 3050 additions and 2654 deletions

View File

@@ -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)