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

Help with my quest NPC crashing server

Serginov

Onkonkoronkonk
Joined
Jun 28, 2008
Messages
1,321
Reaction score
18
Location
Sweden - Dalarna
My NPC is crashing my server when i spawn it :/ And i really need it for a quest..
Could someone check what is wrong with the script? This is my first NPC in this NPC system :p

PHP:
<?xml version="1.0"?>
<npc name="Henricus" walkinterval="4000" floorchange="0">
<health now="150" max="150"/>
  <look type="132" head="79" body="0" legs="96" feet="0" addons="0"/>

<interaction range="3" idletime="0" defaultpublic="0">

<interact keywords="hi" focus="1">
<!--These are the alternative keywords-->
<keywords>hello</keywords>

<response text="Greetings, fellow believer |NAME|!"/>
</interact>

<interact keywords="bye" focus="0">
<keywords>farewell</keywords>
<response text="Good bye |NAME|!">
<!--
<action name="script">
doRemoveCreature(getNpcCid());
</action>
-->
</response>
</interact>

<interact event="onPlayerLeave" focus="0">
<response text="Come back when you are ready to fight evil."/>
</interact>

<interact keywords="inquisition" storageId="21899" storageValue="0" storageComp="less">
<response text="Do you want to join the Inquisition?">
<interact keywords="yes">
<response text="So be it. Now you are a member of the inquisition. You might ask me for a mission to raise in my esteem.">
<action name="storage" key="21899" value="1"/>
</response>
</interact>
</response>
</interact>

<interact keywords="mission" storageId="21901" storageValue="1" storageComp="equal">
<response text="I got a mission for you. Do you want to hear about it?">
<interact keywords="yes">
<response text="This will be your first mission. Head to the hero cave outside Edron and kill Ungreez. Then report to me about your mission.">
<action name="storage" key="21901" value="1"/>
</response>
</interact>
</response>
</interact>

<interact keywords="mission" storageId="21902" storageValue="1" storageComp="equal">
<response text="Excellent! You managed to kill Ungreez!">
<action name="storage" key="21902" value="1"/>
</response>
</interact>

<interact keywords="mission" storageId="21903" storageValue="1" storageComp="equal">
<response text="I got a mission for you. Do you want to hear about it?">
<interact keywords="yes">
<response text="This mission are very dangerous and you need to bring a big team. Head to the Demon Forge outside Edron deeper inside the hero cave. You must have touched at least one throne in the Pits of Inferno to pass the door behind the warlock. When you have killed all the 7 minions report back about your mission to me.">
<action name="storage" key="21903" value="1"/>
</response>
</interact>
</response>
</interact>
</interaction>

</npc>

Thanks in advance
 
What server are you using?

Edit:

Tabbed it for you, so others can read it easier

PHP:
<?xml version="1.0"?>
<npc name="Henricus" walkinterval="4000" floorchange="0">
	<health now="150" max="150"/>
	<look type="132" head="79" body="0" legs="96" feet="0" addons="0"/>

	<interaction range="3" idletime="0" defaultpublic="0">

		<interact keywords="hi" focus="1">
		<!--These are the alternative keywords-->
			<keywords>hello</keywords>
				
			<response text="Greetings, fellow believer |NAME|!"/>
		</interact>

		<interact keywords="bye" focus="0">
			<keywords>farewell</keywords>
			<response text="Good bye |NAME|!">
			</response>
		</interact>

		<interact event="onPlayerLeave" focus="0">
			<response text="Come back when you are ready to fight evil."/>
		</interact>

		<interact keywords="inquisition" storageId="21899" storageValue="0" storageComp="less">
			<response text="Do you want to join the Inquisition?">
				<interact keywords="yes">
					<response text="So be it. Now you are a member of the inquisition. You might ask me for a mission to raise in my esteem.">
						<action name="storage" key="21899" value="1"/>
					</response>
				</interact>
			</response>
		</interact>

		<interact keywords="mission" storageId="21901" storageValue="1" storageComp="equal">
			<response text="I got a mission for you. Do you want to hear about it?">
				<interact keywords="yes">
					<response text="This will be your first mission. Head to the hero cave outside Edron and kill Ungreez. Then report to me about your mission.">
						<action name="storage" key="21901" value="1"/>
					</response>
				</interact>
			</response>
		</interact>

		<interact keywords="mission" storageId="21902" storageValue="1" storageComp="equal">
			<response text="Excellent! You managed to kill Ungreez!">
				<action name="storage" key="21902" value="1"/>
			</response>
		</interact>

		<interact keywords="mission" storageId="21903" storageValue="1" storageComp="equal">
			<response text="I got a mission for you. Do you want to hear about it?">
				<interact keywords="yes">
					<response text="This mission are very dangerous and you need to bring a big team. Head to the Demon Forge outside Edron deeper inside the hero cave. You must have touched at least one throne in the Pits of Inferno to pass the door behind the warlock. When you have killed all the 7 minions report back about your mission to me.">
						<action name="storage" key="21903" value="1"/>
					</response>
				</interact>
			</response>
		</interact>
		
		
	</interaction>
</npc>
 
I use TFS 0.3 Alpha 4

I didn't get any crash error, just a bug(?) box with "Send Bug(?)" "Dont send Bug(?)"


Im swe and i don't know how to translate it xd But in swedish: Felrapport ruta där man kan 'skicka felrapport' eller 'skicka inte felrapport'
 
Back
Top