• 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 problems with npcs [9.6x]The Forgotten Server 0.2.14

miku1234567

New Member
Joined
Jan 29, 2010
Messages
8
Reaction score
0
Hello

Im making an ot and i have no idea how to add npcs to 0.2.14 because 0.3.6 npcs dosent work there. Can someone give me a tutorial because i dont find it. Do i need to change something in npc scripts?

I got error that says cannot load .lua scripts for any npc i add.

Hope u can help me.

I'm a newbie, so please dont fret :D
 
Last edited:
(waring - npcscript:: npcscript) can not load script: furniture.lua cannot open furniture.lua: No such file or direcotory

all new npc scripts i add dosent work. :S
 
Be sure the directory looks like this
XML:
script="data/npc/scripts/default.lua"

But then instead of default.lua the name of the lua file you are using.
 
Last edited:
The NPC XML files you are using that give this error, they have a part where it links a lua script to the NPC. Be sure it looks like this:
XML:
script="data/npc/scripts/default.lua"
But instead of default.lua the name of the lua file that belongs to that NPC.
 
It was just an example.
I will show an example of 1 NPC both 0.3 and 0.2 have.

0.2
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Deruno" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="132" head="20" body="39" legs="45" feet="7" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="parcel,2595,15;letter,2597,10"/>
	</parameters>
</npc>

0.3
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Deruno" script="default.lua" walkinterval="2000" floorchange="0">
	<health now="100" max="100"/>
	<look type="132" head="20" body="39" legs="45" feet="7" addons="0"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="shop_buyable" value="parcel,2595,15;letter,2597,10"/>
	</parameters>
</npc>

As you can see the directory is different.
0.2 = script="data/npc/scripts/default.lua"
0.3 = script="default.lua"
 
Back
Top