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