mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Auto walker update must be done from C++ not lua due to bot protection.
* Moved the auto walk checker to the source. * Implemented a temporary fix for findPath method (will now choose other tiles over null tiles).
This commit is contained in:
@@ -383,7 +383,10 @@ function onMinimapMouseRelease(self, mousePosition, mouseButton)
|
||||
local pos = self:getPosition(mousePosition)
|
||||
if pos and mouseButton == MouseLeftButton and self:isPressed() then
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player:autoWalk(pos) then return false end
|
||||
if not player:autoWalk(pos) then
|
||||
modules.game_textmessage.displayStatusMessage(tr('There is no way.'))
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
Reference in New Issue
Block a user