Fixes for bot and websocket based entergame

This commit is contained in:
OTCv8
2019-11-27 23:06:03 +01:00
committed by bbarwik
parent c750ea65f8
commit ddb155333d
11 changed files with 277 additions and 5 deletions

View File

@@ -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