hi, this is one function from npc/lib/npcsystem/modules.lua
i want to see filename what have this error.
now print looks like that:
Parameter 'keyword_reply3' missing. Skipping...
i want to change it to:
Parameter 'keyword_reply3' missing in Rashid.xml. Skipping...
can someone rewrite this function?
rep++
PHP:
function KeywordModule:parseKeywords(data)
local n = 1
for keys in string.gmatch(data, '[^;]+') do
local i = 1
local keywords = {}
for temp in string.gmatch(keys, '[^,]+') do
table.insert(keywords, temp)
i = i + 1
end
if(i ~= 1) then
local reply = NpcSystem.getParameter('keyword_reply' .. n)
if(reply ~= nil) then
self:addKeyword(keywords, reply)
else
print('[Warning] NpcSystem:', 'Parameter \'' .. 'keyword_reply' .. n .. '\' missing. Skipping...')
end
else
print('[Warning] NpcSystem:', 'No keywords found for keyword set #' .. n .. '. Skipping...')
end
n = n + 1
end
end
PHP:
print('[Warning] NpcSystem:', 'Parameter \'' .. 'keyword_reply' .. n .. '\' missing. Skipping...')
now print looks like that:
Parameter 'keyword_reply3' missing. Skipping...
i want to change it to:
Parameter 'keyword_reply3' missing in Rashid.xml. Skipping...
can someone rewrite this function?
rep++