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

TFS 1.X+ Npc module onSell error

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
177
Location
Sweden
Anyone aware of whats causing this error?
TFS 1.4
Error:
Lua:
Lua Script Error: [Npc interface]
(Unknown scriptfile)
data/npc/lib/npcsystem/modules.lua:1023: [ShopModule.onSell] items[itemid] == nil
stack traceback:
        [C]: at 0x7ff623fb7720
        [C]: in function 'error'
        data/npc/lib/npcsystem/modules.lua:1023: in function 'callbackOnSell'
        data/npc/lib/npcsystem/npchandler.lua:264: in function 'processModuleCallback'
        data/npc/lib/npcsystem/npchandler.lua:469: in function 'onSell'
        data/npc/lib/npcsystem/modules.lua:1087: in function <data/npc/lib/npcsystem/modules.lua:1087>

Specific item causing the issue(on sell):
XML:
demonbone amulet,14333,10000;
Npc script causing it:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Hans [Loot whore]" script="default.lua" walkinterval="1000" speed="220" floorchange="0">
    <health now="100" max="100" />
    <look type="908" head="39" body="80" legs="39" feet="80" addons="3" />
    <parameters>
        <parameter key="module_shop" value="1" />
        <parameter key="shop_sellable" value="beetroot,8845,20;bedger fur,11216,500;four-leaf clover,15546,300;acorn,11213,3000;pelvis bone,12437,2500;fish tail,5951,4500;seeds,7732,100;
        turtle shell,5899,5000;fleshy bone,13830,5000;half-digested piece of meat,11200,1500;striped fur,11210,2200;iron ore,5880,6500;dwarven beard,5900,1500;piece of crocodile leather,11196,2000;
        crocodile boots,3982,20000;crocodile steak,11429,5000;sewing kit,21452,6000;elvish talisman,10552,1000;elven poetry book,4855,8000;elvish bow,7438,20000;cyclops toe,10574,1500;giant eye,4630,5000;
        cyclops trophy,7398,8000;bear doll,3954,6000;giant ape's fur,4843,400;kongra's shoulderpad,12427,5000;gemmed lamp,2344,6000;djinns hat,32935,3500;silky fur,11209,5000;wyvern talisman,10561,1000;
        wyvern wing,5894,6000;skull,2229,300;ragnir helmet,7462,3000;ron the ripper's sabre,6101,16000;pirate tapestry,5616,3000;rum flask,5553,3000;pirate's hat,6099,15000;dragon claw,10020,6000;
        dragon's tail,12413,800;green dragon leather,5877,2500;green dragon scale,5920,4000;bog slime,10557,300;boggy dreads,10584,1200;misguided scarf,34886,8000;crit potion,35055,25000;
        light blue egg,24808,1200;light pink egg,34809,2000;dark orange egg,34810,1500;dark purple egg,34811,8800;red dragon leather,5948,600;red dragon scale,5882,2000;dragon lord claw,5919,8000;
        dragon lord trophy,7399,30000;flask of warrior's sweat,5885,1000;piece of warrior armor,12438,3800;broken gladiator shield,10573,8200;sword hilt,2350,32000;behemoth claw,5930,3800;
        perfect behemoth fang,5893,9100;behemoth trophy,7396,40000;half-eaten brain,10587,1000;scythe leg,11229,18000;pulverized ore,18427,2200;vein of ore,18429,11000;icicle,4848,400;humongous chunk,18433,700;
        hideous chunk,18434,700;mucus plug,9130,3000;glowing mushroom,18391,11000;mushroom pie,18397,4000;cobra tongue,10551,9000;wyrm scale,10582,900;hydra tounge,7250,500;hydra head,11199,700;sample of venorean spice,9675,8000;
        hydra egg,4850,13000;frosty heart,10578,600;frost charm,7289,8000;memory stone,4852,3500;soul stone,5809,2500;mago mechanic core,10167,3000;shamanic talisman,24840,6000;mutated rat tail,10585,1000;gooey mass,15572,400;
        gooey substance,15462,4000;slime heart,23565,1000;slime gobbler,13601,15000;bottle of glooth vine,23516,500;glooth steak,23517,5000;glooth capsule,24183,14000;foxtail,15545,3000;werebadger skull,24711,1000;
        werebadger claws,24707,3800;werebadger trophy,24757,11000;werewolf fur,11234,1600;werewolf fangs,24708,5200;werewolf helmet,24718,18000;wereboar hooves,24710,2000;wereboar tusks,24709,6800;wereboar trophy,24758,20000;
        werebear fur,24713,2400;werebear skull,24712,7700;werebear trophy,24759,24000;;demon horn,5954,2000;demon trophy,7393,60000;metal jaw,23564,800;minotaur leather,5878,500;mooh'tah shell,23573,2000;demonbone amulet,14333,10000;
        execowtioner mask,23572,5000;cowbell,23575,8000;moohtant horn,23571,12000;minotaur trophy,7401,34000;grim key,26389,80000;twin sun charm,11261,2000;spark reaving potion,26466,12000;phoenix charm,11258,2800;blazing bone,18425,15000;
        giant pacifier,23570,150000" />
        <parameter key="message_greet" value="Schh not that loud, they arent after you are they? ... good hmm do you got any interesting EQ to sell me |PLAYERNAME|?"/>
        <parameter key="message_farewell" value="Farewell, |PLAYERNAME|, if i only had that key."/>
        <parameter key="message_walkaway" value="Farewell, |PLAYERNAME|, if i only had that key." />   
    </parameters>
</npc>
 
Back
Top