Hello.
maroundfloor(optional number range, optional number floorDiff, optional string names) [number]: Returns the amount of monsters on the floor difference found in the range and list.
getcreatures(string filter) [table]: (p, m, n, f and s) - You can combine all as you like
p: The creature has to be player.
m: The creature has to be monster.
n: The creature has to be npc.
f: The creature must be on the same floor as you.
s: The creature must be on the same floor as you and visible on screen.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
local Monsters = { 'Demon', 'Rat', 'Goblin' }
if maroundfloor(7, 1, table.unpack(Monsters)) > 0 then
-- do something
end