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

TFS 1.X+ Problem with npc / fresh copy

adif1

New Member
Joined
Mar 20, 2010
Messages
47
Reaction score
0
Hello all i have small problem with npc.. i dont understand why

under is some error log, ( Aldo if he writes something to him, for example 1234)


LOGS

i have msgcontains in /npc/lib/npc
Lua:
function msgcontains(message, keyword)
    local message, keyword = message:lower(), keyword:lower()
    if message == keyword then
        return true
    end

    return message:find(keyword) and not message:find('(%w+)' .. keyword)
end

voice - VoiceMoudle in npc/lib/npcsystem/custommodules.lua

ALDO XML



Thanx!
 
the error comes from here, if a line isnt working next lines wont eve trigger.

data/npc/lib/npcsystem/customModules.lua:3: attempt to index global 'Storage' (a nil value)

place your customModules file here instead
 
you are calling a global storage variable called Storage.postman.Rank

['postman'] = {price = 10, storage = Storage.postman.Rank, value = 3},

in here, u can replace Storage.postman.Rank for an actual number but normally tibia servers store this storage values inside a lib file.
this lib files are inside the data/lib folder
try cheeking out if you have a lib for storages where it hold all that data inside a table.
usually is inside data/lib/core
 
you are calling a global storage variable called Storage.postman.Rank

['postman'] = {price = 10, storage = Storage.postman.Rank, value = 3},

in here, u can replace Storage.postman.Rank for an actual number but normally tibia servers store this storage values inside a lib file.
this lib files are inside the data/lib folder
try cheeking out if you have a lib for storages where it hold all that data inside a table.
usually is inside data/lib/core
Thanx! its work

If I don't use some functions like rookgaardHints, can I safely remove them? Is it okay if it's not used?

travelDiscounts I don't know if I use it, should I keep it or delete it?

I would like something clean datapack without crap because I don't know which direction to go
 
Thanx! its work

If I don't use some functions like rookgaardHints, can I safely remove them? Is it okay if it's not used?

travelDiscounts I don't know if I use it, should I keep it or delete it?

I would like something clean datapack without crap because I don't know which direction to go
yes you can safely remove everything that you don't use, but make sure to remove every other code related to it
 
Back
Top