mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 07:57:12 +01:00
Fix protocol error #362
TODO: Handle the helpers in LUA, it could be added into Battle Window i think, if someone know where should this be comment here !
This commit is contained in:
@@ -171,6 +171,7 @@ void Game::processEnterGame()
|
||||
g_lua.callGlobalField("g_game", "onEnterGame");
|
||||
}
|
||||
|
||||
|
||||
void Game::processGameStart()
|
||||
{
|
||||
m_online = true;
|
||||
@@ -234,6 +235,11 @@ void Game::processGMActions(const std::vector<uint8>& actions)
|
||||
g_lua.callGlobalField("g_game", "onGMActions", actions);
|
||||
}
|
||||
|
||||
void Game::processPlayerHelpers(int helpers)
|
||||
{
|
||||
g_lua.callGlobalField("g_game", "onPlayerHelpersUpdate", helpers);
|
||||
}
|
||||
|
||||
void Game::processPing()
|
||||
{
|
||||
g_lua.callGlobalField("g_game", "onPing");
|
||||
|
||||
Reference in New Issue
Block a user