From 4584ce5b86ace595e77934379deaa707851d7fe1 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 2 Feb 2012 00:38:46 -0200 Subject: [PATCH] bind Game.turn --- src/framework/net/connection.h | 2 +- src/otclient/luafunctions.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/framework/net/connection.h b/src/framework/net/connection.h index 07d548df..386e6197 100644 --- a/src/framework/net/connection.h +++ b/src/framework/net/connection.h @@ -36,7 +36,7 @@ class Connection : public std::enable_shared_from_this, boost::nonco enum { READ_TIMEOUT = 30, WRITE_TIMEOUT = 30, - SEND_INTERVAL = 1, + SEND_INTERVAL = 10, SEND_BUFFER_SIZE = 65536, RECV_BUFFER_SIZE = 65536 }; diff --git a/src/otclient/luafunctions.cpp b/src/otclient/luafunctions.cpp index 5ddb1551..a792f775 100644 --- a/src/otclient/luafunctions.cpp +++ b/src/otclient/luafunctions.cpp @@ -198,6 +198,7 @@ void OTClient::registerLuaFunctions() g_lua.bindClassStaticFunction("useWith", std::bind(&Game::useWith, &g_game, _1, _2)); g_lua.bindClassStaticFunction("move", std::bind(&Game::move, &g_game, _1, _2, _3)); g_lua.bindClassStaticFunction("useInventoryItem", std::bind(&Game::useInventoryItem, &g_game, _1, _2)); + g_lua.bindClassStaticFunction("turn", std::bind(&Game::turn, &g_game, _1)); g_lua.bindClassStaticFunction("walk", std::bind(&Game::walk, &g_game, _1)); g_lua.bindClassStaticFunction("forceWalk", std::bind(&Game::forceWalk, &g_game, _1)); g_lua.bindClassStaticFunction("attack", std::bind(&Game::attack, &g_game, _1));