Nutaharion
New Member
Hi,
I have a few selfmade NPC and I have problem with interraction with NPC. I need to stay at least 1 or 2 squares if I want to talk with him. If I'm farther then 2 squares NPC do not want to talk. The worst thing is that I don't know how to repair that.
Let's for example take one of NPC.
There is his code:
*interaction tange not working ^,^
I know that's different way of making NPC than usually TFS have but I used to it ;-p
I'm thinking that I need something in NPC system but what? NPC system is the same as TFS 0.3.6 is having.
Any ideas?
I have a few selfmade NPC and I have problem with interraction with NPC. I need to stay at least 1 or 2 squares if I want to talk with him. If I'm farther then 2 squares NPC do not want to talk. The worst thing is that I don't know how to repair that.
Let's for example take one of NPC.
There is his code:
Code:
<?xml version="1.0"?>
<npc name="Captain Seal" walkinterval="3000" floorchange="0">
<health now="100" max="100"/>
<look type="146" head="20" body="74" legs="11" feet="4" />
<interaction range="5" idletime="45" defaultpublic="0">
<interact keywords="hi" focus="1">
<!--These are the alternative keywords-->
<keywords>hello</keywords>
<response>
<action name="script">
<![CDATA[
selfSay("Hi "..getCreatureName(cid)..". I'm a captain and I can travel with you to {free area}.", cid)
]]>
</action>
</response>
</interact>
<interact keywords="free;area">
<response text="Do you want travel to free area?">
<action name="script">
_state.topic = 1
</action>
</response>
</interact>
<interact keywords="yes" topic="1">
<response text="Let's go!">
<action name="script">
<![CDATA[
pos = {x=990, y=1138, z=6}
doTeleportThing(cid, pos)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
]]>
</action>
<action name="idle" value="1"/>
</response>
</interact>
<interact keywords="bye" focus="0">
<keywords>farewell</keywords>
<response text="Have a nice day |NAME|."/>
</interact>
<interact event="onPlayerLeave" focus="0">
<response text="Have a nice day |NAME|."/>
</interact>
</interaction>
</npc>
I know that's different way of making NPC than usually TFS have but I used to it ;-p
I'm thinking that I need something in NPC system but what? NPC system is the same as TFS 0.3.6 is having.
Any ideas?
Last edited: