mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Updated to OTCv8 3.1 rev 224
This commit is contained in:
@@ -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
|
@@ -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)
|
Reference in New Issue
Block a user