mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-21 23:15:54 +02:00
Fixes for bot and websocket based entergame
This commit is contained in:
@@ -130,7 +130,12 @@ context.useRune = function(itemid, target, lastSpellTimeout)
|
||||
end
|
||||
context.userune = context.useRune
|
||||
|
||||
context.findItem = g_game.findItemInContainers
|
||||
context.findItem = function(itemId, subType)
|
||||
if subType == nil then
|
||||
subType = -1
|
||||
end
|
||||
return g_game.findItemInContainers(itemId, subType)
|
||||
end
|
||||
|
||||
context.attack = g_game.attack
|
||||
context.cancelAttack = g_game.cancelAttack
|
||||
|
Reference in New Issue
Block a user