Im using tfs 0.3.6pl1 and im getting this error while trying to buy vial of oil..
Anybody knows whats the problem?
heres the line with the vial:
2006 = vial id
20 = price
11 = fluid type
Code:
[06/01/2010 14:11:43] [Error - Npc interface]
[06/01/2010 14:11:43] (Unknown script file)
[06/01/2010 14:11:43] Description:
[06/01/2010 14:11:43] data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[06/01/2010 14:11:43] stack traceback:
[06/01/2010 14:11:43] [C]: in function 'error'
[06/01/2010 14:11:43] data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[06/01/2010 14:11:43] data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[06/01/2010 14:11:43] data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[06/01/2010 14:11:43] data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>
Anybody knows whats the problem?
heres the line with the vial:
Code:
shopModule:addBuyableItem({'vial of oil'}, [COLOR="Red"]2006[/COLOR], [COLOR="Red"]20[/COLOR], [COLOR="Red"]11[/COLOR],'vial of oil')
2006 = vial id
20 = price
11 = fluid type
Last edited: