Sentinel3
New Member
- Joined
- Oct 16, 2014
- Messages
- 180
- Reaction score
- 0
Hello!
I posted this becouse I have worked like 5 days with NPC and I can't do anything, so if someone can help me I will very helpful.
Well, the problem appears when I start the server and when I try to use the command to create a npc in-game of course.(Example: /s Benjamin)
Using: TFS 1.0
Error that I get in console:
Picture of /data/npc (.XML Files)
/data/npc/scripts/default.lua
If you need more scripts for check the problem, just ask me and I will upload.
Thank you so much in advice!!
I posted this becouse I have worked like 5 days with NPC and I can't do anything, so if someone can help me I will very helpful.
Well, the problem appears when I start the server and when I try to use the command to create a npc in-game of course.(Example: /s Benjamin)
Using: TFS 1.0
Error that I get in console:
HTML:
[Error - Npc::loadFromXml] Failed to load data/npc/Humnog The Guard.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Baaleal.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Chuck the worker.xml: File was not found
[Warning] NpcSystem: Parameter(s) missing for item: nil nil
[Error - Npc::loadFromXml] Failed to load data/npc/Tarakinner.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/George the boyscout.xml: File was not found
[Error - Npc::loadFromXml] Failed to load data/npc/Frank the Plank.xml: File was not found
[Warning] NpcSystem: Parameter(s) missing for item: nil nil
[Error - Npc::loadFromXml] Failed to load data/npc/Zumtah.xml: File was not found
Picture of /data/npc (.XML Files)
/data/npc/scripts/default.lua
HTML:
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 onPlayerEndTrade(cid) npcHandler:onPlayerEndTrade(cid) end
function onPlayerCloseChannel(cid) npcHandler:onPlayerCloseChannel(cid) end
function onThink() npcHandler:onThink() end
-- OTServ event handling functions end
npcHandler:addModule(FocusModule:new())
If you need more scripts for check the problem, just ask me and I will upload.
Thank you so much in advice!!
Last edited: