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

danio4don

AlatharStudio
Joined
Jun 15, 2012
Messages
320
Reaction score
47
Location
Poland
Hello. when I want to buy a label from npc, something pops up in the console


Lua:
Lua Script Error: [Npc interface]
(Unknown scriptfile)
data/npc/lib/npcsystem/modules.lua:981: attempt to call method 'getTotalMoney' (a nil value)
stack traceback:
        [C]: in function 'getTotalMoney'
        data/npc/lib/npcsystem/modules.lua:981: in function 'callbackOnBuy'
        data/npc/lib/npcsystem/npchandler.lua:268: in function 'processModuleCallback'
        data/npc/lib/npcsystem/npchandler.lua:480: in function 'onBuy'
        data/npc/lib/npcsystem/modules.lua:1089: in function <data/npc/lib/npcsystem/modules.lua:1089>



I will be grateful for your help. Regards Daniel
 

Attachments

Evil Puncker

I know nothing
TFS Developer
Joined
May 30, 2009
Messages
8,111
Solutions
218
Reaction score
4,025
Solution
OP
OP
danio4don

danio4don

AlatharStudio
Joined
Jun 15, 2012
Messages
320
Reaction score
47
Location
Poland
I don't have this line in modules

Lua:
elseif not player:removeMoney(parameters.cost) then
Post automatically merged:

I've already fixed everything. I copied the entire modules file from the official tfs
 
Last edited:

Similar threads

Top