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.2K
Warn on Specific Creature Appear #45
Alerts when a creature with [B] in the name appears.
425b | 14 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
local warnCreature = macro(100000, 'Warn Boss', function() end)
local creatureName = "[B]"
onCreatureAppear(function(creature)
    if warnCreature:isOn() and creature:isMonster() then
        if creature:getName():find(creatureName, 1, true) then
            playSound("/sounds/Creature_Detected.ogg")
            return true
        end
    end
end)

-- Can use full creature names.
-- local creatureName = "Giant Spider"
--
364b | 11 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
local creatureName = "Giant Spider"
warnBoss = macro(500, 'Warn Boss', function()
    for _, spec in ipairs(getSpectators()) do
        if not spec:isPlayer() then
            if spec:getName():find(creatureName, 1, true) then
                playSound("/sounds/Creature_Detected.ogg")
                return true
            end
        end
    end
end)

01 Jul 2021
Ads