Tibia Idle
Active Member
- Joined
- Nov 23, 2023
- Messages
- 149
- Reaction score
- 28
I can’t receive the opcode from the server in OTClient, please help. This is what my code looks like. In the OTClient console it of course displays “OPCODE MODULE START,” but the second message about receiving the opcode doesn’t appear.
on otclient:
on tfs
omg. fixed ;p
on otclient:
LUA:
function init()
print("OPCODE MODULE START")
ProtocolGame.registerExtendedOpcode(90, opcoderead)
end
function opcoderead(protocol, opcode, buffer)
print("opcode from server")
end
on tfs
Code:
function onSay(player, words, param)
player:sendExtendedOpcode(90, "Test opcode")
return true
end
Post automatically merged:
omg. fixed ;p
Last edited: