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

Npc/monster spawn error

TheFastLife

New Member
Joined
Oct 8, 2010
Messages
38
Reaction score
1
Location
sweden
STILL HAVING SPAWN error :mad:

[video=youtube;wJjAwQtLHU4]http://www.youtube.com/watch?v=wJjAwQtLHU4[/video]
 
That helps :D, thanks Blue.

Check if the script directory looks like this in the npc xml file:
XML:
script="data/npc/scripts/default.lua"

Else if you don't have the default.lua
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())
 
Check the directories of all NPCs and be sure you have the file default.lua and the other lua files in data, npc, scripts.
 
Back
Top