i got problem with lua script :/
[19/8/2013 17:25:51] >>> Loading globalscripts... [Error - LuaInterface::loadFile] data/globalevents/scripts/effect.lua:3: unexpected symbol near '['
[19/8/2013 17:25:52] [Error - Event::checkScript] Cannot load script (data/globalevents/scripts/effect.lua)
[19/8/2013 17:25:52] data/globalevents/scripts/effect.lua:3: unexpected symbol near '['
anyone tell me whats wrong here??
[19/8/2013 17:25:51] >>> Loading globalscripts... [Error - LuaInterface::loadFile] data/globalevents/scripts/effect.lua:3: unexpected symbol near '['
[19/8/2013 17:25:52] [Error - Event::checkScript] Cannot load script (data/globalevents/scripts/effect.lua)
[19/8/2013 17:25:52] data/globalevents/scripts/effect.lua:3: unexpected symbol near '['
anyone tell me whats wrong here??
Code:
local config = {
["Point Shop"] = {x=259,y=259,z=7}, eff = CONST_ME_POFF},
["Depo"] = {x=253,y=257,z=7}, eff = CONST_ME_POFF},
["Exp"] = {x=259,y=257,z=7}, eff = CONST_ME_POFF},
["Training"] = {x=253,y=259,z=7}, eff = CONST_ME_POFF},
["Temple"] = {x=283,y=256,z=7}, eff = CONST_ME_POFF},
["Training"] = {x=283,y=258,z=7}, eff = CONST_ME_POFF}}
function onThink(cid, interval, lastExecution)
for k, v in pairs(config) do
doSendMagicEffect(v.pos, v.eff)
return doSendAnimatedText(v.pos, k, math.random(1, 255))
end
return true
end
Last edited: