• 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!

OTServ 8.60 r.6052 NCP SCRIPT ERROR

emzee

New Member
Joined
Jun 23, 2011
Messages
42
Reaction score
0
i tried every thing to fix this error but i have failed ... does any one have a clue about how should it be fixed ?!


Uploaded with ImageShack.us
thank u for ur time !! :)
 

Attachments

Last edited:
the error is repeated it says "warning:[NcpScript:NcpScript] Can not Load Script. data/ncp/scripts/data/ncp/scripts/"any ncp".lua and it also says cannot open such file or directory !! stuff like that ... i dont know what to do ? :(
 
WTF! why you have your npc folder like that must be /data/npc < here comes the .xml files.
And data/npc/scripts < gere comes the lua files
 
Are you using Linux?
If you are so you need to lowecase the name of the files for exemple:

Juliet.lua > juliet.lua

And are you sure that this files exists in this folder?

Also show us any of yours npc the xml file !

Maybe your npc file is like this:
script="data/npc/scripts/npcluafile.lua"

change to this
script="npcluafile.lua"
 
WTF! why you have your npc folder like that must be /data/npc < here comes the .xml files.
And data/npc/scripts < gere comes the lua files

Sirrr i swearr my folder is just like what u said !! data\ncp "where xml files are \scrips "where scripts are\lib "where there are some files idont know about" ?? but still the error comes out this way =/
----------------------------------------------------
 
Are you using Linux?
If you are so you need to lowecase the name of the files for exemple:

Juliet.lua > juliet.lua

And are you sure that this files exists in this folder?

Also show us any of yours npc the xml file !

No =/ im using windows .. this problem is killing me =/
 
ok for example the rook guard shop seller named obi

obi.xml
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Obi" script="data/npc/scripts/Obi.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="131" head="19" body="63" legs="96" feet="38" addons="0"/>
</npc>

obi.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())

=)
 
You can change this in the source code but if you dont have experience i dont recommend.
Also you can create inside data/npc/scripts/

a folder called
"data"
inside this folder create another called
"npc"
inside this folder create another called
"scripts"
inside this folder put all your npc lua files

REP++ please
 
You can change this in the source code but if you dont have experience i dont recommend.
Also you can create inside data/npc/scripts/

a folder called
"data"
inside this folder create another called
"npc"
inside this folder create another called
"scripts"
inside this folder put all your npc lua files

REP++ please

i jst did exactly what u told me but the same error poped out ? =/ any other ideas ?
 
Thats impossible show me a SS where i can see the dir of the scripts.
If you did exactly what i told you its no way to be wrong.
 
i jst edited it and .. i got different errors now =/ i know im very annoying but i really need ur help in this !! =l now he is giving me these errors



Uploaded with ImageShack.us

what now ? :)
 
Back
Top