• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

NPC shop issue

christiandb

Member
Joined
Feb 5, 2008
Messages
2,469
Reaction score
5
Location
010
I'm trying to make a npc called Gorn sell vials of oil. Here's the code of the npc:

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?
 
It's because of reverseFluidMap, try looking at the vial sprite in the trade window.
It's possible to fix with some ugly hacks in NpcSystem and/or source.
 
The picture in the trade window really shows a vial of oil. Could you provide me those "hacks"? I have that error at so many items, it's getting annoying.
 
I have to try, I've never seen this error :S

EDIT
The only error that I have it is that the vial is of beer - not oil.

(TFS 0.3.6 user)
 
Last edited:
Back
Top