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

DannyA

New Member
Joined
Jan 27, 2021
Messages
12
Reaction score
0
Hello,
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Sam.lua
data/npc/scripts/Sam.lua:11: attempt to index global 'VoiceModule' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/npc/scripts/Sam.lua:11: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Sam.lua
cannot open data/npc/scripts/data/npc/scripts/seller.lua: No such file or directory
how do i fix that



[9:38 PM]
how do i fix that
 
Hello,
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Sam.lua
data/npc/scripts/Sam.lua:11: attempt to index global 'VoiceModule' (a nil value)
stack traceback:
        [C]: in function '__index'
        data/npc/scripts/Sam.lua:11: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Sam.lua
cannot open data/npc/scripts/data/npc/scripts/seller.lua: No such file or directory
how do i fix that



[9:38 PM]
how do i fix that
Not sure about the voiceModule.. Would need to see the actual npc script..

but the second part..

change inside the .xml file
XML:
script="data/npc/scripts/seller.lua"
to
XML:
script="seller.lua"
 
Lua Script Error: [Npc interface]
data/npc/scripts/Captain Bluebear.lua
data/npc/scripts/Captain Bluebear.lua:15: attempt to call method 'titleCase' (a nil value)
stack traceback:
[C]: in function 'titleCase'
data/npc/scripts/Captain Bluebear.lua:15: in function 'addTravelKeyword'
data/npc/scripts/Captain Bluebear.lua:20: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Captain Bluebear.lua
Not sure about the voiceModule.. Would need to see the actual npc script..

but the second part..

change inside the .xml file
XML:
script="data/npc/scripts/seller.lua"
to
XML:
script="seller.lua"
What about this one :O how do i fix that
 
Lua Script Error: [Npc interface]
data/npc/scripts/Captain Bluebear.lua
data/npc/scripts/Captain Bluebear.lua:15: attempt to call method 'titleCase' (a nil value)
stack traceback:
[C]: in function 'titleCase'
data/npc/scripts/Captain Bluebear.lua:15: in function 'addTravelKeyword'
data/npc/scripts/Captain Bluebear.lua:20: in main chunk
[Warning - NpcScript::NpcScript] Can not load script: Captain Bluebear.lua

What about this one :O how do i fix that
VoiceModule was fixed by using an updated npc lib.

titleCase...

based on the function name it probably turns
this -> port hope
into this -> Port Hope

But it's definitely a unique function that doesn't exist by default.

We'd need to see the script to help further.
 
Back
Top