Warn on Specific Creature Appear
#45
Alerts when a creature with [B] in the name appears.
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"
--
- remove | + add
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)
- remove | + add
01 Jul 2021