• 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!

Solved Problem with selling stackable items

Skylinx

Game Programmer
Joined
Nov 26, 2008
Messages
399
Reaction score
14
Location
TORONTO, CANADA
Hey, TFS 0.3.6 (8.6) I'm getting a problem.

When I try to sell stackable items (lets say potion flasks or gems) for ANY npc it says "you do not have this object". But I am able to sell them in singles.

Anyone know a solution?

Thank you.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Hanna" script="data/npc/scripts/hanna.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="136" head="113" body="65" legs="0" feet="96" addons="2"/>
    <voices>
        <voice text="Gems and jewellery! Best prices in town!" interval2="100" margin="1" yell="no"/>
    </voices>
    <parameters>
        <parameter key="message_greet" value="Oh, please come in, |PLAYERNAME|. What do you need? Have a look at my wonderful offers in gems and jewellery."/>
        <parameter key="message_farewell" value="Good bye."/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="job;" />
        <parameter key="keyword_reply1" value="I am a jeweler. Maybe you want to have a look at my wonderful offers." />
      
        <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="
            black pearl,2144,560;
            bronze goblet,5807,2000;
            golden amulet,2130,6600;
            golden goblet,5805,5000;
            ruby necklace,2133,3560;
            silver goblet,5806,3000;
            small amethyst,2150,400;
            small sapphire,2146,500;
            white pearl,2143,320;
            small diamond,2145,600;
            small ruby,2147,500;
            wedding ring,2121,990;
            small emerald,2149,500" />
        <parameter key="shop_sellable" value="
            black pearl,2144,280;
            giant shimmering pearl,7633,3000;
            giant shimmering pearl,7632,3000;
            small amethyst,2150,200;
            small sapphire,2146,250;
            white pearl,2143,160;
            small ruby,2147,250;
            small emerald,2149,250" />
        </parameters>
</npc>
 
Tested with TFS 0.3.6
POfSZwsx.png


Are you sure you added it correct? You can rename your old modules then add the new one.
 
copy and pasted it. also with a restart.

but the buy part does work.

oh. and if the gems are not stacked. it sells them
 
Last edited by a moderator:
You can also try to use the whole 0.3.6 npcsystem, with the modules I posted already added, incase you added it wrong.
http://www.speedy*****malware.localhost/pF9ee/lib.rar
 
replaced and now works. thanks!

well now i see this on start up.

Code:
[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter(s) missing for item:
[23/06/2014 21:43:34]    Beastslayer Axe
[23/06/2014 21:43:34] 1500

[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter(s) missing for item:
[23/06/2014 21:43:34]    Beastslayer Axe
[23/06/2014 21:43:34] 1500

[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter 'keyword_reply3' missing. Skipping...
[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter 'keyword_reply4' missing. Skipping...
[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter(s) missing for item:
[23/06/2014 21:43:34]    Beastslayer Axe
[23/06/2014 21:43:34] 1500

[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter(s) missing for item:
[23/06/2014 21:43:34]    Beastslayer Axe
[23/06/2014 21:43:34] 1500

[23/06/2014 21:43:34] [Warning] NpcSystem:
[23/06/2014 21:43:34] Parameter(s) missing for item:
[23/06/2014 21:43:34]    Beastslayer Axe
[23/06/2014 21:43:34] 1500
 
Last edited by a moderator:
Back
Top