• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Npc Script not working

Clorens

New Member
Joined
Oct 5, 2011
Messages
89
Reaction score
0
So I put togheter an own npc which obviously doesn't work getting this error

Error:
[05/04/2013 16:21:03] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/prison guard.xml).
[05/04/2013 16:21:03] Info: failed to load external entity "data/npc/prison guard.xml"

And the script
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Prison Guard" script="default.lua" walkinterval="2000" floorchange="0">
	<health now="150" max="150"/>
	<look type="132" head="115" body="125" legs="125" feet="114" corpse="2212"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="message_greet" value="Hello |PLAYERNAME|. Welcome to the Enigma prison, I'm the prison guard but also a local sellsman, please browse through my offers!"/>
		<parameter key="shop_buyable" value="brown bread,2691,8;egg,2695,8;bright sword,2407,20000;great shield,2522,2000000"/>
	</parameters>
</npc>

Nvm I solved it apperently the xml file has to be named the same thing as the name inside the script lol...

SOLVED
 
Back
Top