christiandb
Member
I'm trying to make a npc called Gorn sell vials of oil. Here's the code of the npc:
The vial does appear in the trade channel but when I try to buy it I get the following console error:
Is there any way to fix this?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Gorn" script="data/npc/scripts/default.lua" walkinterval="1000" floorchange="0">
<health now="100" max="100"/>
<look type="129" head="58" body="68" legs="101" feet="95" addons="0"/>
<parameters>
<parameter key="message_greet" value="Oh, please come in, |PLAYERNAME|. What sort of {goods} do you need?"/>
<parameter key="message_farewell" value="Good bye, |PLAYERNAME|."/>
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="goods;job;" />
<parameter key="keyword_reply1" value="My inventory of general goods and paperware is large, ask me for a {trade} to take a look." />
<parameter key="keyword_reply2" value="I am selling equipment of all kinds. Do you need anything?" />
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="vial,2006,20,11;rust remover,9930,100;book,1971,15;book,1972,15;book,1973,15;bottle,2007,3;bucket,2005,4;backpack,1988,20;bag,1987,5;cup,2013,2;document,1968,12;fishing rod,2580,150;jug,2014,10;machete,2420,40;mug,2012,4;parchment,1969,8;pick,2553,50;plate,2035,6;present,1990,10;rope,2120,50;scroll,1949,5;scythe,2550,50;shovel,2554,50;torch,2050,2;valentine's card,6538,30;watch,6091,20;worm,3976,1;Obsidian knife,5908,1;blessed wooden stake,5942,1" />
<parameter key="shop_sellable" value="" />
</parameters>
</npc>
The vial does appear in the trade channel but when I try to buy it I get the following console error:
Code:
[ShopModule.onBuy] Item not found on ShopItems list
Is there any way to fix this?