Felipe93
Ghost Member
Hello otland
well im using latest OTHIRE release with legacy-server npcs(which uses or is based on OTHIRE 0.0.3)
it's a console error
the problem is with "titlecase" which is a nil value
here an example of an error with a npc
anyone could tell me with which word should i replace "titlecase" to remove this console error
here is part of the lua script that cotains the word that is causing errors on console
@Peonso any idea men?
pls help >.<
well im using latest OTHIRE release with legacy-server npcs(which uses or is based on OTHIRE 0.0.3)
it's a console error
the problem is with "titlecase" which is a nil value
here an example of an error with a npc
Code:
Lua Script Error: [Npc interface]
data/npc/scripts/Captain Seagull.lua
data/npc/scripts/Captain Seagull.lua:56: attempt to call global 'titleCase' (a nil value)
Warning: [NpcScript::NpcScript] Can not load script. data/npc/scripts/Captain Seagull.lua
anyone could tell me with which word should i replace "titlecase" to remove this console error
here is part of the lua script that cotains the word that is causing errors on console
Lua:
local function addTravelKeyword(keyword, cost, destination, action)
local travelKeyword = keywordHandler:addKeyword({keyword}, StdModule.say, {npcHandler = npcHandler, text = 'Do you seek a passage to ' .. titleCase(keyword) .. ' for |TRAVELCOST|?', cost = cost, discount = 'postman'})
travelKeyword:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 0, cost = cost, discount = 'postman', destination = destination })
travelKeyword:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, text = 'We would like to serve you some time.', reset = true})
@Peonso any idea men?
pls help >.<