I made a old-style NPC, based on Open Tibia.
The NPC should give me 10 crystal coins each time I say "gold" or "money", but when I say this, the NPC give me 225 crystal coins.
How can i solve it? Or can somebody convert it to Jiddo System? Thanks
The NPC should give me 10 crystal coins each time I say "gold" or "money", but when I say this, the NPC give me 225 crystal coins.
How can i solve it? Or can somebody convert it to Jiddo System? Thanks
Lua:
<?xml version="1.0"?>
<npc name="Testserver Assistant" floorchange="0" walkinterval="1000">
<health now="150" max="150"/>
<look type="138" head="115" body="128" legs="85" feet="114"/>
<interaction range="2" idletimeout="30">
<interact keywords="hi" focus="1">
<keywords>hello</keywords>
<response text="Hello |NAME|."/>
</interact>
<interact keywords="bye" focus="0">
<keywords>farewell</keywords>
<response text="Goodbye."/>
</interact>
<interact event="onBusy">
<response text="Just a minute, |NAME|.">
<action name="addqueue" value="|PLAYER|"/>
</response>
</interact>
<interact event="onPlayerLeave" focus="0">
<response text="GoodBye so."/>
</interact>
<interact keywords="money">
<keywords>gold</keywords>
<response text="Here you are.">
<action name="giveitem" value="2160"/>
<action name="amount" value="10" />
</response>
</interact>
</interaction>
</npc>