From 9d2298037eecbe83ab12f023cf29e3c92ed0fba3 Mon Sep 17 00:00:00 2001 From: zygzagZ Date: Thu, 12 Jan 2017 15:30:24 +0100 Subject: [PATCH 1/2] Fixed inconsistences between const.lua and const.h causing messagetypes not to work --- modules/gamelib/const.lua | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/modules/gamelib/const.lua b/modules/gamelib/const.lua index b8d42196..415ab67a 100644 --- a/modules/gamelib/const.lua +++ b/modules/gamelib/const.lua @@ -209,17 +209,18 @@ MessageModes = { TutorialHint = 38, Thankyou = 39, Market = 40, - BeyondLast = 41, - MonsterYell = 42, - MonsterSay = 43, - Red = 44, - Blue = 45, - RVRChannel = 46, - RVRAnswer = 47, - RVRContinue = 48, - GameHighlight = 49, - NpcFromStartBlock = 50, - Last = 51, + Mana = 41, + BeyondLast = 42, + MonsterYell = 43, + MonsterSay = 44, + Red = 45, + Blue = 46, + RVRChannel = 47, + RVRAnswer = 48, + RVRContinue = 49, + GameHighlight = 50, + NpcFromStartBlock = 51, + Last = 52, Invalid = 255, } From 8486f6c867f5a2127d9b3018fec217f97731b5a3 Mon Sep 17 00:00:00 2001 From: zygzagZ Date: Thu, 12 Jan 2017 15:40:13 +0100 Subject: [PATCH 2/2] Fixed talking with npc for 8.54 --- src/client/protocolcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/protocolcodes.cpp b/src/client/protocolcodes.cpp index 2dbf1191..2d1e5ffd 100644 --- a/src/client/protocolcodes.cpp +++ b/src/client/protocolcodes.cpp @@ -119,7 +119,7 @@ void buildMessageModesMap(int version) { messageModesMap[Otc::MessageWhisper] = 2; messageModesMap[Otc::MessageYell] = 3; messageModesMap[Otc::MessageNpcTo] = 4; - messageModesMap[Otc::MessageNpcFrom] = 5; + messageModesMap[Otc::MessageNpcFromStartBlock] = 5; messageModesMap[Otc::MessagePrivateFrom] = 6; messageModesMap[Otc::MessagePrivateTo] = 6; messageModesMap[Otc::MessageChannel] = 7;