Mauzim
Member
- Joined
- Jan 3, 2011
- Messages
- 568
- Reaction score
- 9
Hello i use otx 2.9 npc lib and there i have problem in npc.lua
i wanna change all msg to msg:lower in msgcontains
i have
function msgcontains(message, keyword)
local message, keyword = message:lower(), keyword:lower()
local msg = msg:lower()
if message == keyword then
return true
end
return message:find(keyword) and not message:find('(%w+)' .. keyword)
end
and deleted msgcontains = doMessageCheck
function in npc.lua but after reload it npc still reply just to small letters if i delete msgcontains function full too reply only to small letters where can be solution of this because i try find msgcontains everywhere in source too. help me please
i wanna change all msg to msg:lower in msgcontains
i have
function msgcontains(message, keyword)
local message, keyword = message:lower(), keyword:lower()
local msg = msg:lower()
if message == keyword then
return true
end
return message:find(keyword) and not message:find('(%w+)' .. keyword)
end
and deleted msgcontains = doMessageCheck
function in npc.lua but after reload it npc still reply just to small letters if i delete msgcontains function full too reply only to small letters where can be solution of this because i try find msgcontains everywhere in source too. help me please