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

Lua Error in server npc!

Duzy

New Member
Joined
Jul 27, 2009
Messages
16
Reaction score
0
[16/12/2009 18:28:06] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Amuletseller.xml).
[16/12/2009 18:28:07] Info: failed to load external entity "data/npc/Amuletseller.xml"
 
Do you have Amuletseller.xml in data/npc/ ? (With a big A in the start?)
If not show the file if you need help.. how else would we know?
 
Code:
<npc name="Connor" script="data/npc/scripts/default.lua">
	<health now="150" max="150"/>
	<look type="273" head="124" body="0" legs="0" feet="124" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1" />
		<parameter key="message_greet" value="Hello |PLAYERNAME|. Welcome to my amulets and rings store. Say (trade) to see my whole offer " />
		<parameter key="shop_buyable" value="stone skin amulet,2197,5000,5;amulet of loss,2173,10000,1;elven amulet,2198,500,50;terra amulet,7887,4000,200;magma amulet,7890,4000;glacier amulet,7888,4000,200;lightning pendant,7889,4000,200;sword ring,2207,1000;axe ring,2208,1000;club ring,2209,1000;stealth ring,2165,1000;ring of healing,2214,2000;dwarven ring,2213,1000;might ring,2164,1500,20;energy ring,2167,1500;life ring,2168,1000;time ring,2169,2000;" />
	</parameters>
</npc>
 
Last edited:
Copy one of the npcs that you have and rename it Amuletseller (If you do not allready have one) in data/npc.

And remove the text in the new file that you renamed Amuletseller.
Then paste this code into it.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Amuletseller" script="data/npc/scripts/default.lua" walkinterval="1000" floorchange="0">
    <health now="100" max="100"/>
    <look type="128" head="116" body="79" legs="117" feet="76" addons="0"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|. I sell amulet of loss,dwarven ring,might ring,key ring,time ring,energy ring,stealth ring,life ring, ring of healing, club ring ,sword ring and axe ring."/>
        <parameter key="message_farewell" value="It was a pleasure to help you, |PLAYERNAME|."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value=";Aols;Star;depot;Offers;explain;" />
        <parameter key="keyword_reply1" value="Wana Buy Amulets Say {trade}." />

        <parameter key="module_shop" value="1"/>
        <parameter key="shop_buyable"  value="amulet of loss,2173,50000;dwarven ring,2213,2000;might ring,2164,5000;key ring,5801,10000;time ring,2169,2000;energy ring,2167,2000;stealth ring,2165,2000;life ring,2168,1000;ring of healing,2214,2000;axe ring,2208,200;club ring,2209,200;sword ring,2207,200;stone skin,2197,5000,5" />
        <parameter key="shop_sellable" value="" />
    </parameters>
</npc>
Hope you get how to do it now? :)
 
Back
Top