OTCv8 / otclientv8

Clean, ready to use version of OTClientV8 - Alternative, highly optimized Tibia client
Other
254 stars 191 forks source link

7.4 protocol cannot parse creature talk/speak #218

Open V0RT4C opened 2 years ago

V0RT4C commented 2 years ago

The problem is in OTClient source file protocolcodes.cpp. These 2 functions:

translateMessageModeFromServer buildMessageModesMap

In function buildMessageModesMap there is no messageModeMap being built if the client protocol is < 760. And in translateMessageModeFromServer it will always return OTC::MessageInvalid if the messagemode is not found in the MessageModeMap.

I tried changing line 189 in OTClient source:

} else if(version >= 760) {

to this:

} else if(version >= 740) {

and it works using 760 message modes at least.

Please update this so 7.4 creature speak/talk can work in OTClient v8

(Same is true for text messages by the way)