|
|
@ -323,6 +323,10 @@ void ProtocolGame::parseMessage(const InputMessagePtr& msg)
|
|
|
|
case Proto::GameServerEnterGame:
|
|
|
|
case Proto::GameServerEnterGame:
|
|
|
|
parseEnterGame(msg);
|
|
|
|
parseEnterGame(msg);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
// PROTOCOL>=1010
|
|
|
|
|
|
|
|
case Proto::GameServerPlayerHelpers:
|
|
|
|
|
|
|
|
parsePlayerHelpers(msg);
|
|
|
|
|
|
|
|
break;
|
|
|
|
// otclient ONLY
|
|
|
|
// otclient ONLY
|
|
|
|
case Proto::GameServerExtendedOpcode:
|
|
|
|
case Proto::GameServerExtendedOpcode:
|
|
|
|
parseExtendedOpcode(msg);
|
|
|
|
parseExtendedOpcode(msg);
|
|
|
@ -379,6 +383,18 @@ void ProtocolGame::parseEnterGame(const InputMessagePtr& msg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ProtocolGame::parsePlayerHelpers(const InputMessagePtr& msg)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
uint id = msg->getU32();
|
|
|
|
|
|
|
|
int helpers = msg->getU16();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreaturePtr creature = g_map.getCreatureById(id);
|
|
|
|
|
|
|
|
if(creature)
|
|
|
|
|
|
|
|
g_game.processPlayerHelpers(helpers);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
g_logger.traceError("could not get creature");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ProtocolGame::parseGMActions(const InputMessagePtr& msg)
|
|
|
|
void ProtocolGame::parseGMActions(const InputMessagePtr& msg)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::vector<uint8> actions;
|
|
|
|
std::vector<uint8> actions;
|
|
|
|