The NPC of POH.
--Hi
--Demon Oak
--Yes
--Demon Oak
--Hallowed Axe
--Yes
Demon Oak-quest script: http://otland.net/f81/demon-oak-quest-12280/#post126089
Code:
<?xml version="1.0"?>
<npc name="Cripchamblor" 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="demon;oak" storageId="21545" storageValue="0" storageComp="less">
<response text="Did you defeat the demon oak?">
<interact keywords="yes">
<response text="Go defeat the demon oak.">
<action name="storage" key="21545" 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-->
<!-- Buy item(s) interaction, see merchant glut for a real seller/buyer npc-->
<interact keywords="|AMOUNT|;hallowed;axe">
<keywords>hallowed;axe</keywords>
<response text="Do you want to buy a Hallowed Axe from me?">
<action name="topic" value="3"/>
<action name="item" value="8293"/>
<action name="price" value="1000"/>
<action name="amount" value="|AMOUNT|"/>
</response>
</interact>
<interact keywords="yes" topic="3">
<response param="lowmoney" text="Please bring you enough with money."/>
<response text="Here you are. You can now defeat the demon oak with this axe.">
<action name="buy" value="|PRICE|"/>
</response>
</interact>
<!-- End of buy item(s) interaction-->
</interaction>
</npc>
--Hi
--Demon Oak
--Yes
--Demon Oak
--Hallowed Axe
--Yes
Demon Oak-quest script: http://otland.net/f81/demon-oak-quest-12280/#post126089
Last edited: