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

Problem with extended opcodes

eduardbean

Member
Joined
Nov 26, 2010
Messages
129
Solutions
2
Reaction score
15
Im Getting this erro
Code:
ERROR: Unable to send extended opcode 10, extended opcodes are not enabled

In This code
Code:
function addItemList()
    local protocolGame = g_game.getProtocolGame()
    if protocolGame then
        protocolGame:sendExtendedOpcode(10, "D")
        return true
    end
end

How i can enable the opcodes ?​
 
You need to add the opcode system to your server aswell, if your server does not send the packet that signals that opcodes are enabled you cannot use them.
 
Im using TFS 1.0, it already have opcode system in source.
Code:
function onExtendedOpcode(player, opcode, buffer)
    local loots = Loot:create()
   
    if opcode == 10 then
        print(buffer)
    end
end

and i registre the event in login, what is that i download the tfs / otclient source 2 day ago and compile it.​
 
Sorry, i have the next error:

ERROR: Unable to send extended opcode 5, extended opcodes are not enabled

Trying to use a module... Could you share with me please, how you fixed?
 
Back
Top