christiandb
Member
Code:
<?xml version="1.0"?>
<npc name="Daniel Steelsoul" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="57" head="20" body="30" legs="40" feet="50" corpse="6080"/>
<interaction range="3" idletime="0" defaultpublic="0">
<interact keywords="hi" focus="1">
<!--These are the alternative keywords-->
<keywords>hello</keywords>
<response text="Hello |NAME|."/>
</interact>
<interact keywords="bye" focus="0">
<keywords>farewell</keywords>
<response text="Good job!">
<!--
<action name="script">
doRemoveCreature(getNpcCid());
</action>
-->
</response>
</interact>
<interact event="onPlayerLeave" focus="0">
<response text="It was a pleasure to help you |NAME|."/>
</interact>
<!--Example of using storage values, storageComp can be less/lessorequal/equal/greater/greaterorequal-->
<!--In this example it checks if the storage value of 5500 is less than 0-->
<!--Another way to write it would be storageValue="-1" storageComp="equal"-->
<!--Basically we check if the storage id of 5500 is -1, ie. not having any value yet.-->
<interact keywords="mission" storageId="1850" storageValue="0" storageComp="less">
<response text="Very good, we need heroes like you to go on a suici.....er....to earn respect of the authorities here AND in addition get a great reward for it. Are you interested in the job?">
<interact keywords="yes">
<response text="Very well, maybe you know that the orcs here in Edron learnt to raise giant spiders. It is going to become a serious threat. The mission is simple: go to the orcs and destroy all spider eggs that are hatched by the giant spider they have managed to catch. The orcs are located in the south of the western part of the island.">
<action name="storage" key="1850" value="1"/>
</response>
</interact>
</response>
</interact>
<interact keywords="demon;oak" storageId="21545" storageValue="1" storageComp="equal">
<response text="You already know my secret, now leave me alone!">
<action name="idle" value="1"/>
</response>
</interact>
<!-->End of example of using storage value-->
</interaction>
</npc>
Anyone knows why it doesn't work?