Updated to OTCv8 3.1 rev 224

This commit is contained in:
OTCv8
2022-06-06 22:04:52 +00:00
parent 00ca45bd62
commit 9cfff63e16
111 changed files with 2292 additions and 1465 deletions

View File

@@ -205,7 +205,7 @@ context.onRemoveItem = function(callback)
return context.callback("onRemoveItem", callback)
end
-- onStatesChange - callback = function(states, oldStates)
-- onStatesChange - callback = function(player, states, oldStates)
context.onStatesChange = function(callback)
return context.callback("onStatesChange", callback)
end
@@ -225,6 +225,11 @@ context.onGroupSpellCooldown = function(callback)
return context.callback("onGroupSpellCooldown", callback)
end
-- onInventoryChange - callback = function(player, slot, item, oldItem)
context.onInventoryChange = function(callback)
return context.callback("onInventoryChange", callback)
end
-- onGameQuestLog - callback = function(quests)
context.onGameQuestLog = function(callback)
return context.callback("onGameQuestLog", callback)
@@ -264,4 +269,13 @@ context.onPlayerHealthChange = function(callback)
callback(healthPercent)
end
end)
end
-- onPlayerInventoryChange -- callback = function(slot, item, oldItem)
context.onPlayerInventoryChange = function(callback)
return context.onInventoryChange(function(player, slot, item, oldItem)
if player == context.player then
callback(slot, item, oldItem)
end
end)
end

View File

@@ -163,5 +163,4 @@ context.safeLogout = g_game.safeLogout
context.ping = g_game.getPing
modules.game_cooldown.isGroupCooldownIconActive(id)
modules.game_cooldown.isCooldownIconActive(id)
modules.game_cooldown.isCooldownIconActive(id)