• 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 files for 8.6 (Mystic River)

stratzilla

Narcissus-OTS
Joined
Jan 22, 2013
Messages
38
Reaction score
0
Location
Canada
I tried an NPC pack for TFS and it did not work. My server still have 0 NPCs, but I do have complete monster list.

Can someone point me in the direction of an NPC pack for 8.6?
 
Not sure which npcsystem that one is using, but you can try this:
npcs.rar - Speedy Share - upload your files here
 
I tried to search for one, but couldn't find one either. The one you found, they just gave errors or something or they didn't respond? If they are only a bit different from the NPC's that work on your server, you could try to edit them.
 
I'm not sure what the problem is. I get a bunch of:

Lua Script Error: [Npc interface]
data/npc/scripts/Banshee Queen.lua
data/npc/scripts/Banshee Queen.lua:1: attempt to index global 'KeywordHandler' (
a nil value)
stack traceback:
[C]: in function '__index'
data/npc/scripts/Banshee Queen.lua:1: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/Banshee Q
ueen.lua
cannot open Henricus.lua: No such file or directory
[Spawn::addMonster] Can not find bonelord
[Spawn::addMonster] Can not find Rapanaio

Lua Script Error: [Npc interface]
data/npc/scripts/bone.lua
data/npc/scripts/bone.lua:1: attempt to index global 'KeywordHandler' (a nil val
ue)
stack traceback:
[C]: in function '__index'
data/npc/scripts/bone.lua:1: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/bone.lua
cannot open Henricus.lua: No such file or directory

Lua Script Error: [Npc interface]
data/npc/scripts/dream.lua
data/npc/scripts/dream.lua:1: attempt to index global 'KeywordHandler' (a nil va
lue)
stack traceback:
[C]: in function '__index'
data/npc/scripts/dream.lua:1: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/dream.lua

etc etc errors like that for every single NPC.
 
Frodo.xml
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Frodo" script="data/npc/scripts/Frodo.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="128" head="58" body="68" legs="109" feet="131" addons="0"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell all kind of food, say {trade} to see what I got to offer!" />
<parameter key="shop_buyable" value="dragon ham,2672,20;brown mushroom,2789,10;bread,2689,4;ham,2671,8;cheese,2696,4;meat,2666,5" />
</parameters>
</npc>

Frodo.lua
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

npcHandler:addModule(FocusModule:new())

Error message:
Lua Script Error: [Npc interface]
data/npc/scripts/Frodo.lua
data/npc/scripts/Frodo.lua:1: attempt to index global 'KeywordHandler' (a nil va
lue)
stack traceback:
[C]: in function '__index'
data/npc/scripts/Frodo.lua:1: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: data/npc/scripts/Frodo.lua

Do you also have this error with the npcs I send?

Those NPCs don't exist on this RL map I'm using.
 
It's to check if those match with your npcsystem. To find out what the problem is and to know what to edit in the other npcs.
 
Last edited:
Back
Top