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

Lua NPC runes seller dont sells

yolfran

Mapper-Chibcha
Joined
Jan 14, 2009
Messages
59
Reaction score
0
Location
Bucaramanga-Colombia!!!
Hello otlanders:

I have a problem with my runes seller,I'm using the NPC that is in the crying damson 0.3.6 ,it works fine,until you wants to buy a rod or a wand ,dont sell it,dont remove the money,nothing,and in the console appear this error

PHP:
[11/05/2010 23:46:47] [Error - Npc interface] 
[11/05/2010 23:46:47] (Unknown script file)
[11/05/2010 23:46:47] Description: 
[11/05/2010 23:46:47] data/npc/lib/npcsystem/modules.lua:1156: bad argument #2 to 'error' (number expected, got string)
[11/05/2010 23:46:47] stack traceback:
[11/05/2010 23:46:47] 	[C]: in function 'error'
[11/05/2010 23:46:47] 	data/npc/lib/npcsystem/modules.lua:1156: in function 'callbackOnBuy'
[11/05/2010 23:46:47] 	data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[11/05/2010 23:46:47] 	data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[11/05/2010 23:46:47] 	data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>

what can I do to solve this??I never modified that libs :S
 
[11/05/2010 23:46:47] data/npc/lib/npcsystem/modules.lua:1156: bad argument #2 to 'error' (number expected, got string)
[11/05/2010 23:46:47] stack traceback:
[11/05/2010 23:46:47] [C]: in function 'error'
when u use the function "error"
u need to put a string then number
like this;
this example will give a Description and a stacktrace back
error("bad argument to #1 table expected got " .. type(something), 2)
 
Back
Top