Updated to OTCv8 3.0 rev 43

This commit is contained in:
OTCv8
2021-05-15 16:51:02 +00:00
parent dea82a6751
commit 1def896276
111 changed files with 4642 additions and 2368 deletions

View File

@@ -185,6 +185,11 @@ context.onModalDialog = function(callback)
return context.callback("onModalDialog", callback)
end
-- onAttackingCreatureChange -- callback = function(creature, oldCreature)
context.onAttackingCreatureChange = function(callback)
return context.callback("onAttackingCreatureChange", callback)
end
-- CUSTOM CALLBACKS
-- listen(name, callback) -- callback = function(text, channelId, pos)

View File

@@ -124,7 +124,7 @@ context.usewith = function(thing, target, subtype)
if type(thing) == 'number' then
return g_game.useInventoryItemWith(thing, target, subtype)
else
return g_game.useWith(item, target, subtype)
return g_game.useWith(thing, target, subtype)
end
end
context.useWith = context.usewith