• 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 RL 8.6 Server NPC Bug Help!!!

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
All Npc`s cant load

[12/02/2015 21:41:00] [Error - Npc interface]
[12/02/2015 21:41:00] data/npc/scripts/Basilisk.lua
[12/02/2015 21:41:00] Description:
[12/02/2015 21:41:00] data/npc/scripts/Basilisk.lua:1: attempt to index global 'KeywordHandler' (a nil value)
[12/02/2015 21:41:00] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/Basilisk.lua

Whats the fail this is the text for all Npc`s please help thanks!
 
All Npc`s cant load

[12/02/2015 21:41:00] [Error - Npc interface]
[12/02/2015 21:41:00] data/npc/scripts/Basilisk.lua
[12/02/2015 21:41:00] Description:
[12/02/2015 21:41:00] data/npc/scripts/Basilisk.lua:1: attempt to index global 'KeywordHandler' (a nil value)
[12/02/2015 21:41:00] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/Basilisk.lua

Whats the fail this is the text for all Npc`s please help thanks!
post your basilisk.lua here so i can take a look
 
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

npcHandler:addModule(FocusModule:new())

Here but all NPC`s are bugged haha
 
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())

try this now :p
 
Are you using TFS 0.3.6 with a TFS 0.4 datapack? Then add this at the top in data/npc/lib/npc.lua.
Code:
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')
You can also just use the npc lib folder from the default datapack of your server.
 
Did you added it in the npc.lua, saved it and restarted your server?
You can also just use the npcsystem for TFS 0.3.6.
http://www.speedy*****malware.localhost/DM8Yu/lib.zip
 
Back
Top