diff --git a/modules/gamelib/game.lua b/modules/gamelib/game.lua index 58b53969..625da5bb 100644 --- a/modules/gamelib/game.lua +++ b/modules/gamelib/game.lua @@ -66,7 +66,9 @@ function g_game.getSupportedClients() 1012, 1013, 1020, 1021, 1022, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, - 1040, 1041, 1050, 1051 + 1040, 1041, 1050, 1051, 1052, + 1053, 1054, 1055, 1056, 1057, + 1058, 1059, 1060, 1061 } end diff --git a/src/client/game.cpp b/src/client/game.cpp index c7e89ca0..1ccc16f7 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -648,7 +648,7 @@ bool Game::walk(Otc::Direction direction) m_localPlayer->stopAutoWalk(); - g_lua.callGlobalField("g_game", "onWalk", direction); + g_lua.callGlobalField("g_game", "onWalk", direction, false); forceWalk(direction); m_lastWalkDir = direction; @@ -713,6 +713,8 @@ bool Game::dashWalk(Otc::Direction direction) return false; } + g_lua.callGlobalField("g_game", "onWalk", direction, true); + forceWalk(direction); m_dashTimer.restart(); m_lastWalkDir = direction; diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 4a60f48a..4a64249d 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -405,7 +405,7 @@ void ProtocolGame::parsePlayerHelpers(const InputMessagePtr& msg) if(creature) g_game.processPlayerHelpers(helpers); else - g_logger.traceError("could not get creature"); + g_logger.traceError(stdext::format("could not get creature with id %d", id)); } void ProtocolGame::parseGMActions(const InputMessagePtr& msg)