mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 14:13:27 +02:00
Minor bug fixes
This commit is contained in:
@@ -113,9 +113,21 @@ context.setSpellTimeout = function()
|
||||
context.lastSpell = context.now
|
||||
end
|
||||
|
||||
context.use = g_game.useInventoryItem
|
||||
context.usewith = g_game.useInventoryItemWith
|
||||
context.useWith = g_game.useInventoryItemWith
|
||||
context.use = function(thing, subtype)
|
||||
if type(thing) == 'number' then
|
||||
return g_game.useInventoryItem(thing, subtype)
|
||||
else
|
||||
return g_game.use(thing)
|
||||
end
|
||||
end
|
||||
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)
|
||||
end
|
||||
end
|
||||
context.useWith = context.usewith
|
||||
|
||||
context.useRune = function(itemid, target, lastSpellTimeout)
|
||||
if context.lastRuneUse == nil then
|
||||
|
Reference in New Issue
Block a user