if Bashmatic.enemies.group then -- grouped by areas local area = GetRoomAreaName(GetRoomArea(GetPlayerRoom())) or nil if area == nil then cecho("\nBashmatic: We got an invalid area.\nWe Got: " .. area .. "") return end if not table.contains(Bashmatic.enemies.targets, area) then cecho("\nBashmatic: No enemies added from the area " .. area .. "") return end local size = table.size(Bashmatic.enemies.targets.area) if size == 0 then cecho("\nBashmatic: No enemies added from the area " .. area .. "") return end if size <= 15 then -- fits on one page displayAreaTargetList(area, 1, size, nil, nil) else -- paginator local pages = math.floor(size/15)+1 displayAreaTargetList(area, 1, 15, 1, pages) end else -- not grouped by area local size = table.size(Bashmatic.enemies.targets) if size == 0 then cecho("\nBashmatic: No enemies added.") return end if size <= 15 then -- fits on one page displayTargetList(1, size, nil, nil) else -- paginator local pages = math.floor(size/15)+1 displayTargetList(1, 15, 1, pages) end end