• 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 buyer error with necklaces

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
921
Location
Chile
TFS 0.3

Hello guys i have a problem with a buyer npc, it doesnt buy a couple of necklaces, in the group is the stone skin amulet, and he throws an error, this one
Code:
[23/5/2017 16:30:36] [Warning - Buyer Knight] NpcSystem:
[23/5/2017 16:30:36] ShopModule.onSell - Item not found on shopItems list

and the npc does have the stone skin amulet in it
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Buyer Knight" script="loot.lua" walkinterval="2000" floorchange="0">
    <health now="150" max="150"/>
    <look typeex="20811"/>
    <parameters>
        <parameter key="module_shop" value="1"/>
        <parameter key="message_greet" value="Hello |PLAYERNAME|. I buy swords, clubs, axes, helmets, boots, legs, shields and armors."/>
        <parameter key="shop_sellable" value="haunted blade,7407,8000;onyx flail,7421,22000;bonebreaker,7428,10000;
        shadow sceptre,7451,10000;dreaded cleaver,7419,15000;swamplair armor,8880,18000;crystalline armor,8878,18000;
        dragon slayer,7402,15000;focus cape,8871,6000;epee,2438,8000;dragonbone staff,7430,3000;royal helmet,2498,40000;
        warrior helmet,2475,6000;crusader helmet,2497,9000;crown helmet,2491,5000;devil helmet,2462,4000;mystic turban,2663,500;
        chain helmet,2458,35;iron helmet,2459,30;steel boots,2645,40000;boots of haste,2195,40000;golden boots,2646,100000;magic plate armor,2472,100000;
        dragon scale mail,2492,60000;demon armor,2494,90000;golden armor,2466,30000;crown armor,2487,12000;knight armor,2476,5000;blue robe,2656,15000;
        lady armor,2500,2500;plate armor,2463,400;brass armor,2465,200;chain armor,2464,100;golden legs,2470,80000;crown legs,2488,15000;knight legs,2477,6000;
        plate legs,2647,500;brass legs,2478,100;mastermind shield,2514,80000;demon shield,2520,40000;blessed shield,2523,150000;great shield,2522,100000;
        vampire shield,2534,25000;medusa shield,2536,8000;amazon shield,2537,4000;crown shield,2519,5000;tower shield,2528,4000;guardian shield,2515,200;
        beholder shield,2518,1500;dwarven shield,2525,100;magic longsword,2390,150000;warlord sword,2408,100000;magic sword,2400,90000;
        giant sword,2393,10000;bright sword,2407,6000;ice rapier,2396,4000;fire sword,2392,3000;serpent sword,2409,1500;spike sword,2383,800;
        two handed sword,2377,400;broad sword,2413,70;short sword,2406,30;sword,2376,25;dragon lance,2414,10000;stonecutter axe,2431,90000;
        guardian halberd,2427,7500;fire axe,2432,10000;knight axe,2430,2000;double axe,2387,200;halberd,2381,200;battle axe,2378,100;hatchet,2388,20;
        war hammer,2391,6000;thunder hammer,2421,90000;skull staff,2436,6000;dragon hammer,2434,2000;clerical mace,2423,200;battle hammer,2417,60;mace,2398,30;
        small emerald,2149,250;small ruby,2147,250;small amethyst,2150,250;small sapphire,2146,250;talon,2151,320;small diamond,2145,450;
        black pearl,2144,280;death ring,6300,2000;mind stone,2178,170;soul orb,5944,100;blue gem,2158,10000;gold ingot,9971,5000;
        orichalcum pearl,5022,80;red gem,2156,10000;scarab coin,2159,500;small topaz,9970,400;violet gem,2153,10000;yellow gem,2154,10000;
        white pearl,2143,320;green gem,2155,10000;corrupted flag,11326,700;hydra head,11199,600;spiked iron ball,11325,100;
        lizard scale,5881,300;sacred tree amulet,10219,3000;zaoan halberd,11323,1000;demonic essence,6500,1500;life crystal,2177,500;
        terra amulet,7887,1500;lightning pendant,7889,1500;stone skin amulet,2197,2000;wedding ring,2121,1000;red piece of cloth,5911,1000;
        blue piece of cloth,5912,1000;brown piece of cloth,5913,1000;green piece of cloth,5910,1000;white piece of cloth,5909,1000;
        yellow piece of cloth,5914,1000;demon horn,5954,5000;deathstrike snippet,18430,8000;crystalline sword,18450,40000;shiny stone,11227,500;
        titan axe,7413,35000;esfera de una estrella,21422,1000000;esfera de dos estrellas,21423,1000000;esfera de tres estrellas,21424,1000000;
        esfera de cuatro estrellas,21425,1000000;esfera de cinco estrellas,21426,1000000;esfera de seis estrellas,21427,1000000;esfera de siete estrellas,21428,1000000;
        steel shield,2509,80;crossbow,2455,400;burst arrow,2546,15;assassin star,7368,140;ancient shield,2532,3000;vile axe,7388,150000;butchers axe,7412,50000;
        orb,2176,750;power ring,2166,50;stealth ring,2165,1500;gold ring,2179,10000;draken boots,12646,60000;zaoan sword,11307,30000;
        ornamented axe,7411,250000;demonrage sword,7382,50000;zaoan shoes,11303,7000;sapphire amulet,2138,1000;hydra egg,4850,700;red dragon scale,5882,500;
        red dragon leather,5948,500;piece of draconian steel,5889,4000;red dragon claw,10020,150000;scarf,2661,700;"/>
    </parameters>
</npc>

plz help :C
 
I think there is a limit of items you can insert on the sellable shop of an npc. Try removing a few items and see if it works
 
I think there is a limit of items you can insert on the sellable shop of an npc. Try removing a few items and see if it works
i dont think is that because i have that error before than having so many items, i have been actually adding more and more items and the only problem is with some necklaces like stone skin amulet
 
i dont think is that because i have that error before than having so many items, i have been actually adding more and more items and the only problem is with some necklaces like stone skin amulet
check if the stone skin amulet has been used. npc's only buy loot that has full charges on them
 
use "look" on the stone skin amulet and check if the id corresponds, sometimes the ID is duplicated. It is probably not that but it is worth a try haha
pWQwON.png


2197 wich is there in the script file :C
 
change the charges in items.xml to 5, I think that will do it since 100 charges is not the default value haha
oh it already had 5 charges for default, that one was created by the gm >.<
but in items xml it has 5
77vMoLt.png
 
Im just guessing cus when you look for that function at github you can find the missing statements
ok i just tried what you said and at least now i see the stone skin amulet in the npc window but i can't sell it, i get this
Code:
[24/5/2017 11:35:10] [Warning - Buyer Knight] NpcSystem:
[24/5/2017 11:35:10] ShopModule.onSell - Item not found on shopItems list
 
Back
Top