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