OrangeText Alert
#48
alerts player when keyword is found as OrangeText.
Your orangetext may have a different mode. uncomment the warn if you need to find the mode id.
Your orangetext may have a different mode. uncomment the warn if you need to find the mode id.
local orangeText = "utani hur"
onTalk(function(name, level, mode, text, channelId, pos)
-- warn(mode .. ':'.. text)
if mode ~= 34 or player:getName() == name then return end
if text:find(orangeText, 1, true) then
playSound("/sounds/Creature_Detected.ogg")
return
end
end)
- remove | + add
local tArray= {"utani hur", "Meh", "test"}
onTalk(function(name, level, mode, text, channelId, pos)
if mode ~= 34 or player:getName() == name then return end
for key, val in pairs(tArray) do
if text:find(val, 1, true) then
playSound("/sounds/Creature_Detected.ogg")
return
end
end
end)
- remove | + add
25 Jul 2021