• 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 v8 shop - Unable to send extended opcode 201, extended opcodes are not enabled on this server

Jpstafe

Well-Known Member
Joined
Aug 8, 2011
Messages
507
Reaction score
68
i use tfs 1.5, + otclient, i have a problem with shop
This is enabled in my client
Lua:
g_game.enableFeature(GameExtendedOpcode)

also these commits



i added json.lua to my data/lib/core and added the databases schemas for otcv8 shop

also i added shop.lua to creaturescritps

Code:
    <event type="extendedopcode" name="ExtendedOpcode" script="extendedopcode.lua" />
    <event type="extendedopcode" name="Shop" script="shop.lua" />

Code:
    player:registerEvent("ExtendedOpcode")
    player:registerEvent("Shop")


shop is opening , the client says
Code:
ERROR: Unable to send extended opcode 201, extended opcodes are not enabled on this server

in server console this is displayed
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>

Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>
what is wrong?
 
i use tfs 1.5, + otclient, i have a problem with shop
This is enabled in my client
Lua:
g_game.enableFeature(GameExtendedOpcode)

also these commits



i added json.lua to my data/lib/core and added the databases schemas for otcv8 shop

also i added shop.lua to creaturescritps

Code:
    <event type="extendedopcode" name="ExtendedOpcode" script="extendedopcode.lua" />
    <event type="extendedopcode" name="Shop" script="shop.lua" />

Code:
    player:registerEvent("ExtendedOpcode")
    player:registerEvent("Shop")


shop is opening , the client says
Code:
ERROR: Unable to send extended opcode 201, extended opcodes are not enabled on this server

in server console this is displayed
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>

Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/shop.lua:onExtendedOpcode
data/creaturescripts/scripts/shop.lua:42: attempt to index global 'g_game' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/creaturescripts/scripts/shop.lua:42: in function 'init'
        data/creaturescripts/scripts/shop.lua:274: in function <data/creaturescripts/scripts/shop.lua:258>
what is wrong?
I have the same problem, my shop works normally, but there is this error in the OTclient "console"
 
Back
Top