I keep getting this error everytime I try to sell something to an NPC
Here's the: data/npc/lib/npcsystem/modules.lua:1229
Here's the: data/npc/lib/npcsystem/npchandler.lua:265
Here's the: data/npc/lib/npcsystem/npchandler.lua:265
Here's the: data/npc/lib/npcsystem/modules.lua:1296
[07/04/2014 17:15:02] [Error - Npc interface]
[07/04/2014 17:15:02] (Unknown script file)
[07/04/2014 17:15:02] Description:
[07/04/2014 17:15:02] data/npc/lib/npcsystem/modules.lua:1229: bad argument #2 to 'error' (number expected, got string)
[07/04/2014 17:15:02] stack traceback:
[07/04/2014 17:15:02] [C]: in function 'error'
[07/04/2014 17:15:02] data/npc/lib/npcsystem/modules.lua:1229: in function 'callbackOnSell'
[07/04/2014 17:15:02] data/npc/lib/npcsystem/npchandler.lua:265: in function 'processModuleCallback'
[07/04/2014 17:15:02] data/npc/lib/npcsystem/npchandler.lua:450: in function 'onSell'
[07/04/2014 17:15:02] data/npc/lib/npcsystem/modules.lua:1296: in function <data/npc/lib/npcsystem/modules.lua:1295>
Here's the: data/npc/lib/npcsystem/modules.lua:1229
if(shopItem == nil) then
error("[ShopModule.onBuy]", "Item not found on shopItems list")
return false
end
if(shopItem.buy == -1) then
error("[ShopModule.onSell]", "Attempt to purchase an item which only sellable")
return false
end
Here's the: data/npc/lib/npcsystem/npchandler.lua:265
tmpRet = module:callbackOnBuy(unpack(arg))
elseif(id == CALLBACK_ONSELL and module.callbackOnSell ~= nil) then
tmpRet = module:callbackOnSell(unpack(arg))
Here's the: data/npc/lib/npcsystem/npchandler.lua:265
if(selfrocessModuleCallback(CALLBACK_ONSELL, cid, itemid, subType, amount, ignoreCap, inBackpacks)) then
Here's the: data/npc/lib/npcsystem/modules.lua:1296
endfunction(cid, itemid, subType, amount, ignoreCap, inBackpacks)
module.npcHandlernSell(cid, itemid, subType, amount, ignoreCap, inBackpacks)