• 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!

Solved error creating an NPC

JonatasLucas

New Member
Joined
Jun 12, 2013
Messages
116
Reaction score
3
Hello, when I create an NPC in my OTServ is giving the following error

2e4f61b2d386e18a2fafe29e505ca8fdf35b5686.png


DEFAULT.lua

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

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

npcHandler:addModule(FocusModule:new())

use tfs 1.1 version 10.76
 
Probably in npc file you set data/npc/scripts/default

Use only default.lua or default, can't remember if you need to set the extension.
 
Back
Top