I was creating an npc that sells bread to the player. I would also like to make it so that the player can sell the bread (cheaper) back to the npc, but for some reason, he isnt buying it back.
Here's what I mean:
Here's the npc's XML file:
Thanks in advance to anyone who can fix this.
Here's what I mean:
Here's the npc's XML file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Ben" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="130" head="20" body="39" legs="45" feet="7" addons="0"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="shop_buyable" value="meat,2666,5;ham,2671,8;grape,2681,3;carrot,2684,3;coconut,2678,150;apple,2674,3;cup,3942,2;bread,2689,4;" />
<parameter key="shop_sellable" value="meat,2666,2;ham,2671,3;bread,2689,2;" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="" />
<parameter key="keyword_reply1" value="" />
</parameters>
</npc>
Thanks in advance to anyone who can fix this.
Attachments
-
34shy13.jpg8.2 KB · Views: 2 · VirusTotal