Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
1.3K
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.
File: single | 283b | 9 lines.
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)
File: array | 318b | 10 lines.
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)

25 Jul 2021
Ads