Merge pull request #799 from zygzagZ/master

Fixed inconsistences between const.lua and const.h causing messagetypes not to work
Fixed talking with npc for 8.54
This commit is contained in:
Ahmed Samy 2017-01-13 01:05:57 +02:00 committed by GitHub
commit d5858092ca
2 changed files with 13 additions and 12 deletions

View File

@ -209,17 +209,18 @@ MessageModes = {
TutorialHint = 38, TutorialHint = 38,
Thankyou = 39, Thankyou = 39,
Market = 40, Market = 40,
BeyondLast = 41, Mana = 41,
MonsterYell = 42, BeyondLast = 42,
MonsterSay = 43, MonsterYell = 43,
Red = 44, MonsterSay = 44,
Blue = 45, Red = 45,
RVRChannel = 46, Blue = 46,
RVRAnswer = 47, RVRChannel = 47,
RVRContinue = 48, RVRAnswer = 48,
GameHighlight = 49, RVRContinue = 49,
NpcFromStartBlock = 50, GameHighlight = 50,
Last = 51, NpcFromStartBlock = 51,
Last = 52,
Invalid = 255, Invalid = 255,
} }

View File

@ -119,7 +119,7 @@ void buildMessageModesMap(int version) {
messageModesMap[Otc::MessageWhisper] = 2; messageModesMap[Otc::MessageWhisper] = 2;
messageModesMap[Otc::MessageYell] = 3; messageModesMap[Otc::MessageYell] = 3;
messageModesMap[Otc::MessageNpcTo] = 4; messageModesMap[Otc::MessageNpcTo] = 4;
messageModesMap[Otc::MessageNpcFrom] = 5; messageModesMap[Otc::MessageNpcFromStartBlock] = 5;
messageModesMap[Otc::MessagePrivateFrom] = 6; messageModesMap[Otc::MessagePrivateFrom] = 6;
messageModesMap[Otc::MessagePrivateTo] = 6; messageModesMap[Otc::MessagePrivateTo] = 6;
messageModesMap[Otc::MessageChannel] = 7; messageModesMap[Otc::MessageChannel] = 7;