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

Solved Can't Load Default.lua????

linx001

New Member
Joined
Nov 7, 2008
Messages
32
Reaction score
0
when the ot server i am using starts up and loads everything i get this message

[Warning- Npcscript::NpcScript] Can not lad script: default.lua
cannot open default.lua: No such file or directory

i dont understand it beause i have the default.lua in data/npc/scripts
 
The default.lua should look like this:
Code:
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())

Mayby you have done something wrong there! :p
 
You ned go
data/npc/scripts
in you Default.lua
delete all and paste this
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())
 
[SOLVED] I do have kinda the same problem! I am converting tfs 0.3.7_svn to tfs 1.0 but im getting these errors

24uwbid.jpg
 
Last edited:
Back
Top