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.
164
Warn on Specific Creature Appear #45
Alerts when a creature with [B] in the name appears.
425b | 14 lines.
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.
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