aggrowatch
A compact MacroQuest
Lua script that displays a real-time count of nearby NPC mobs grouped into three distance bands, with color-coded threat indicators and progress bars.
What it does
Every 250 ms, aggrowatch queries
SpawnCount for live NPCs (excluding pets) at three radii and breaks the results into exclusive rings so the numbers don't double-count:
| Band | Radius | Colour |
|---|
| Melee | ≤ 14 units | Green → Orange → Red |
| Close | 15 – 40 units | Yellow → Orange |
| Mid | 41 – 100 units | Blue |
Each band shows:
- A text line with the exact count
- A horizontal progress bar scaled against the total mid-range count
A summary line at the bottom shows the total NPC count within 100 units.
Melee colour thresholds
| Count | Colour |
|---|
| 0 | Green |
| 1 – 2 | Orange |
| 3+ | Red |
Commands
| Command | Effect |
|---|
/lua run aggrowatch | Start the script |
/aggrowatch | Toggle the window on/off |
The window is AlwaysAutoResize and can be dragged anywhere on screen. Closing the window via the X button stops the toggle but leaves the script running — use /aggrowatch to bring it back.
Notes
- Only counts NPC spawns with
nopet — player characters, pets, and mercenaries are excluded.
- Counts are exclusive per ring (melee count does not include mobs already counted in close or mid).
- The script exits cleanly when the Character Select screen is detected.