• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Unhandled Opcode

zynexx

New Member
Joined
Jul 28, 2014
Messages
6
Reaction score
2

So, I'm trying to use OTClient on my otserver, but every time I try to use a weapon or a spell that uses distance effects, I get this error on OTClient console:

Code:
ERROR: ProtocolGame parse message exception (8 bytes unread, last opcode is 0, prev opcode is 133): unhandled opcode 0

Also, after some errors, the whole client freezes.

Here's some info:
- TFS 0.4 (I added extended opcodes to source)
- OTC 0.6.7

Does anybody know how to fix this? I just need some guidance, I've been trying to fix it myself for some time.
Thanks in advance!​
 
Yup! I'm actually using it to translate some server messages (and it's working fine).
Code:
<event type="extendedopcode" name="ExtendedOpcode" event="script" value="extendedopcode.lua"/>
Lua:
OPCODE_LANGUAGE = 1
function onExtendedOpcode(cid, opcode, buffer)
        if opcode == OPCODE_LANGUAGE then
        -- otclient language
        if buffer == 'en' or buffer == 'pt' then
            setPlayerStorageValue(cid, CLIENT_LANGUAGE_STG, buffer == 'pt' and 1 or 2)
        end
        else
        -- other opcodes can be ignored, and the server will just work fine...
        end
end
 
Back
Top