• 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 Help, Npc Script Error

furmanss

New Member
Joined
May 14, 2013
Messages
125
Reaction score
0
Got some errors left in my GUI, here is one of them

[18/05/2013 08:43:22] [Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/zurak.lua
[18/05/2013 08:43:22] cannot open data/npc/scripts/zurak.lua: No such file or directory

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Zurak" script="data/npc/scripts/default.lua" walkinterval="0" floorchange="0">
<health now="150" max="150"/>
<look type="114" corpse="6040"/>
</npc>

And

[18/05/2013 08:43:22] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[18/05/2013 08:43:22] cannot open default.lua: No such file or directory
[18/05/2013 08:43:22] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[18/05/2013 08:43:22] cannot open default.lua: No such file or directory
[18/05/2013 08:43:22] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[18/05/2013 08:43:22] cannot open default.lua: No such file or directory
[18/05/2013 08:43:22] [Warning - NpcScript::NpcScript] Can not load script: default.lua
[18/05/2013 08:43:22] cannot open default.lua: No such file or directory
 
Well I'm not an expert or anything, but the console output pretty much states what the error is. Do you have those scripts in those folders? (make sure the folders have the same names as in scripts, could be case sensitive)
 
I already told you in pm, make the directory from all npc xml files like this.
XML:
script="data/npc/scripts/default.lua"
Then instead of default.lua, the name of the lua file that npc is using.
Also be sure the lua file exists in the folder scripts in npc.
 
Back
Top