Hello. I have a problem with lua script on my local server. I added a command for GameMaster in talkactions.xml.
And when I call a command in game I receive an error in console
My .lua code is simple
It looks like I have no require method? But when I type require and try to open () it says for me what it does..
Can u help? Im new in lua programming
Server version: 0.6.4
And when I call a command in game I receive an error in console
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/eqSpawn.lua:onSay
data/talkactions/scripts/eqSpawn.lua:2: attempt to call global 'require' (a nil value)
stack traceback:
data/talkactions/scripts/eqSpawn.lua:2: in function <data/talkactions/scripts/eqSpawn.lua:1>
My .lua code is simple
Lua:
function onSay(cid, words, param)
local createitemscript = require("createitembyname")
end
It looks like I have no require method? But when I type require and try to open () it says for me what it does..
Can u help? Im new in lua programming
Server version: 0.6.4
Last edited: