• 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!

Recive Opcode in Client

eduardbean

Member
Joined
Nov 26, 2010
Messages
129
Solutions
2
Reaction score
15
Good afternoon, I'm with a problem in TFS 1.0, I can not send an opcode for my client.

Thats is my module:

Code:
function init()
    ProtocolGame.registerOpcode(90, callBackOpcode)
end

function terminate()
end


function callBackOpcode(protocol, msg)
    print("a")
end

And it is my talkactions

Code:
function onSay(player, words, param)
    player:sendExtendedOpcode(90, "send")
    print("send")
end

But in OtClient terminal dont print anything.​
 
ExtendedOpcode is different from Opcode


use:


ProtocolGame.registerExtendedOpcode
 
Back
Top