HorosCopio
Member
- Joined
- May 4, 2013
- Messages
- 8
- Reaction score
- 5
Hello guys,
I'm removing all weird errors which I was getting on a server just to try stuff out, and I'm struggling to find the error for this one, and I was wondering if someone who is good at this might see the problem?
The error I get looks like this in console:
[Error - NpcScript Interface]
data/npc/scripts/default.lua
Description:
data/npc/lib/npcsystem/modules.lua:1077: attempt to index local 'v' (a boolean value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/default.lua
I uploaded the modules.lua file, and down below you can see the default.lua file.
default.lua
I hope someone can find a minute to look into it for me, or explain me how to find this error![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Best regards,
I'm removing all weird errors which I was getting on a server just to try stuff out, and I'm struggling to find the error for this one, and I was wondering if someone who is good at this might see the problem?
The error I get looks like this in console:
[Error - NpcScript Interface]
data/npc/scripts/default.lua
Description:
data/npc/lib/npcsystem/modules.lua:1077: attempt to index local 'v' (a boolean value)
[Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/default.lua
I uploaded the modules.lua file, and down below you can see the default.lua file.
default.lua
LUA:
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())
I hope someone can find a minute to look into it for me, or explain me how to find this error
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
Best regards,
Attachments
-
modules.lua48.5 KB · Views: 17 · VirusTotal