• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Error buying/selling to NPCs

Sentinel3

New Member
Joined
Oct 16, 2014
Messages
180
Reaction score
0
Hi guys! I got this error when I tryed to buy/sell something to NPCs (everyone)
I have TFS 1.0, the last version.

Error in console:

Lua Script Error: [Npc interface]
(Unknown scriptfile)
data/npc/lib/npcsystem/modules.lua:981: attempt to call global 'doPlayerRemoveItem' (a nil value)
stack traceback:
[C]: in function 'doPlayerRemoveItem'
data/npc/lib/npcsystem/modules.lua:981: in function 'callbackOnSell'
data/npc/lib/npcsystem/npchandler.lua:264: in function 'processModuleCallback'
data/npc/lib/npcsystem/npchandler.lua:455: in function 'onSell'
data/npc/lib/npcsystem/modules.lua:1027: in function <data/npc/lib/npcsystem/modules.lua:1027>

Well if someone can help me I will very gratefull! ;)
Thank you!
 
If you don't have compat.lua you can add it in the same folder as global.lua and add this to global.lua at the top.
Code:
dofile('data/compat.lua')
 

Similar threads

Back
Top