what is wrong with this script?
I get this error:
'<eof>' expected near 'end'
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
-- OTServ event handling functions end
-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
local telePos = {x = 860, y = 320, z = 7} --change
if msgcontains(msg, 'yes') then
doTeleportThing(cid,telePos)
end
return true
end
npcHandler:addModule(FocusModule:new())
I get this error:
'<eof>' expected near 'end'