Jpstafe
Well-Known Member
- Joined
- Aug 8, 2011
- Messages
- 561
- Reaction score
- 76
i use tfs 1.5, + otclient, i have a problem with shop
This is enabled in my client
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
shop is opening , the client says
in server console this is displayed
what is wrong?
This is enabled in my client
LUA:
g_game.enableFeature(GameExtendedOpcode)
also these commits
OTCv8 detection, custom features packet, bigget packet size and bug f… · OTCv8/forgottenserver@2839d4d
…ix for rsa reader
github.com
Added better ping function · OTCv8/forgottenserver@25fbc09
A free and open-source MMORPG server emulator written in C++, compatible with OTClientV8 - Added better ping function · OTCv8/forgottenserver@25fbc09
github.com
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>