• 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+ in function 'addSellableItem' //in function 'addBuyableItem'

Solution
show this line:
data/npc/scripts/Ishina.lua >>> LINE 13
Thanks i solved the issue a file called configuration.lua was missing it cointained things like this:
Lua:
--Guard Swears!
swear = {"fuck", "idiot", "asshole", "ass", "fag", "stupid", "tyrant", "shit", "lunatic"}

-----------------
----Item Ids-----
-----------------
----------EQUIPMENT----------
Cftribalmask = 3967
Cleatherhelmet = 2461
Cfcrown = 2128
Cfsteelhelmet = 2457
Cfchainhelmet = 2458
Cfironhelmet = 2459
Cfbrasshelmet = 2460
Cfleatherhelmet = 2461
Cfdevilhelmet = 2462
Lua:
shopModule:addSellableItem({'white pearl'},                     Cfwhitepearl, 160)
sorry there you go:
Lua:
Lua Script Error: [Npc interface]
data/npc/scripts/Omur.lua
data/npc/lib/npcsystem/modules.lua:916: attempt to index local 'it' (a nil value)
stack traceback:
        data/npc/lib/npcsystem/modules.lua:916: in function 'addBuyableItem'
        data/npc/scripts/Omur.lua:13: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Omur.lua


Lua Script Error: [Npc interface]
data/npc/scripts/Ishina.lua
data/npc/lib/npcsystem/modules.lua:1016: attempt to index local 'it' (a nil value)
stack traceback:
        data/npc/lib/npcsystem/modules.lua:1016: in function 'addSellableItem'
        data/npc/scripts/Ishina.lua:13: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Ishina.lua
 
sorry there you go:
Lua:
Lua Script Error: [Npc interface]
data/npc/scripts/Omur.lua
data/npc/lib/npcsystem/modules.lua:916: attempt to index local 'it' (a nil value)
stack traceback:
        data/npc/lib/npcsystem/modules.lua:916: in function 'addBuyableItem'
        data/npc/scripts/Omur.lua:13: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Omur.lua


Lua Script Error: [Npc interface]
data/npc/scripts/Ishina.lua
data/npc/lib/npcsystem/modules.lua:1016: attempt to index local 'it' (a nil value)
stack traceback:
        data/npc/lib/npcsystem/modules.lua:1016: in function 'addSellableItem'
        data/npc/scripts/Ishina.lua:13: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Ishina.lua
show this line:
data/npc/scripts/Ishina.lua >>> LINE 13
 
show this line:
data/npc/scripts/Ishina.lua >>> LINE 13
Thanks i solved the issue a file called configuration.lua was missing it cointained things like this:
Lua:
--Guard Swears!
swear = {"fuck", "idiot", "asshole", "ass", "fag", "stupid", "tyrant", "shit", "lunatic"}

-----------------
----Item Ids-----
-----------------
----------EQUIPMENT----------
Cftribalmask = 3967
Cleatherhelmet = 2461
Cfcrown = 2128
Cfsteelhelmet = 2457
Cfchainhelmet = 2458
Cfironhelmet = 2459
Cfbrasshelmet = 2460
Cfleatherhelmet = 2461
Cfdevilhelmet = 2462
Lua:
shopModule:addSellableItem({'white pearl'},                     Cfwhitepearl, 160)
 
Solution
Back
Top