• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved [TFS 1.0] NPC .xml

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:

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)

prova_zps6b23b5e9.png


/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:
The names should be exactly the same, so also with capitals.
Humnog The Guard has a comma, Baleal a ', Chuck the worker has capitals differences with the t and the w, Tarakinner has a capital difference with the i, George the boyscout has capitals differences with the t and the b, Frank the Plant a capital difference with the t and zumtah a capital difference with the z.
 
The names should be exactly the same, so also with capitals.
Humnog The Guard has a comma, Baleal a ', Chuck the worker has capitals differences with the t and the w, Tarakinner has a capital difference with the i, George the boyscout has capitals differences with the t and the b, Frank the Plant a capital difference with the t and zumtah a capital difference with the z.

Thank you, for helping me :D

Post solved
 
Back
Top