• 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
371
Reaction score
55
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

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:
Back
Top