Fix parseLogin packet

This commit is contained in:
TheSumm 2014-12-30 19:25:20 +01:00
parent 50c36bb2ba
commit 4b7770361d
3 changed files with 8 additions and 4 deletions

View File

@ -329,7 +329,8 @@ namespace Otc
MessageRVRAnswer = 47, MessageRVRAnswer = 47,
MessageRVRContinue = 48, MessageRVRContinue = 48,
MessageGameHighlight = 49, MessageGameHighlight = 49,
LastMessage = 50, MessageNpcFromStartBlock = 50,
LastMessage = 51,
MessageInvalid = 255 MessageInvalid = 255
}; };

View File

@ -40,7 +40,7 @@ void buildMessageModesMap(int version) {
messageModesMap[Otc::MessageChannel] = 7; messageModesMap[Otc::MessageChannel] = 7;
messageModesMap[Otc::MessageChannelHighlight] = 8; messageModesMap[Otc::MessageChannelHighlight] = 8;
messageModesMap[Otc::MessageSpell] = 9; messageModesMap[Otc::MessageSpell] = 9;
//NpcFromStartBlock = 10 messageModesMap[Otc::MessageNpcFromStartBlock] = 10;
messageModesMap[Otc::MessageNpcFrom] = 11; messageModesMap[Otc::MessageNpcFrom] = 11;
messageModesMap[Otc::MessageNpcTo] = 12; messageModesMap[Otc::MessageNpcTo] = 12;
messageModesMap[Otc::MessageGamemasterBroadcast] = 13; messageModesMap[Otc::MessageGamemasterBroadcast] = 13;

View File

@ -385,8 +385,11 @@ void ProtocolGame::parseLogin(const InputMessagePtr& msg)
} }
bool canReportBugs = msg->getU8(); bool canReportBugs = msg->getU8();
msg->getU8(); // can change pvp framing option if(g_game.getClientVersion() >= 1053)
msg->getU8(); // expert mode enabled msg->getU8(); // can change pvp frame option
if(g_game.getClientVersion() >= 1058)
msg->getU8(); // expert mode enabled
m_localPlayer->setId(playerId); m_localPlayer->setId(playerId);
g_game.setServerBeat(serverBeat); g_game.setServerBeat(serverBeat);