• 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 tfs .6

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
PHP:
[14/01/2010 23:11:55] [Error - Npc interface] 
[14/01/2010 23:11:55] (Unknown script file)
[14/01/2010 23:11:55] Description: 
[14/01/2010 23:11:55] data/npc/lib/npcsystem/modules.lua:1151: bad argument #2 to 'error' (number expected, got string)
[14/01/2010 23:11:55] stack traceback:
[14/01/2010 23:11:55] 	[C]: in function 'error'
[14/01/2010 23:11:55] 	data/npc/lib/npcsystem/modules.lua:1151: in function 'callbackOnBuy'
[14/01/2010 23:11:55] 	data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[14/01/2010 23:11:55] 	data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[14/01/2010 23:11:55] 	data/npc/lib/npcsystem/modules.lua:1292: in function <data/npc/lib/npcsystem/modules.lua:1291>



tfs 3.6


Any ideas?:(


Rep+ ofc ;o
 
In your npc scripts, add for each item:
Code:
shopModule:addSellableItem({"war axe"}, 2454, 9000[B][COLOR="Red"], 1[/COLOR][/B], "war axe")
 
So it will look like this then? It's a rune seller.


Code:
shopModule:addBuyableItem({'Second Manarune'}, 2281, 40000, 0, 1, 'second manarune')


or differently?
 
So it will look like this then? It's a rune seller.


Code:
shopModule:addBuyableItem({'Second Manarune'}, 2281, 40000, 0, 1, 'second manarune')


or differently?
Code:
shopModule:addBuyableItem({'Second Manarune'}, 2281, 40000, 1, 'second manarune')
 
Cheers mate, i thought about it but aswell i thought that it could take charges away on the runes.


Thank anyways :]


Rep asap. :p
 
Back
Top