# Spawn Search

All [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md) and [Data Types](/macroquest/data-types-and-top-level-objects/data-types.md) that support searching for spawns, can take the following options:

|                         |                                                                                                                                           |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **alert #**             | Any spawns on the alert list #                                                                                                            |
| **aura**                | Auras                                                                                                                                     |
| **body** *bodytype*     | Spawns with the specified *bodytype*                                                                                                      |
| **chest**               | Chests                                                                                                                                    |
| **class** *classname*   | Spawns with this class name (long name)                                                                                                   |
| **corpse**              | Corpses                                                                                                                                   |
| **dps**                 | Returns Wizards, Rangers and Rogues                                                                                                       |
| **fellowship**          | includes toons in your fellowship that is in zone                                                                                         |
| **gm**                  | GMs and Guides                                                                                                                            |
| **group**               | Group members                                                                                                                             |
| **guildname** *name*    | Members of *name* guild                                                                                                                   |
| **guildname**           | Members of your own guild                                                                                                                 |
| **healer**              | Returns Druids and Clerics                                                                                                                |
| **id #**                | Spawn with ID #                                                                                                                           |
| **invis**               | Invisible spawns                                                                                                                          |
| **knight**              | Returns Paladins and Shadow Knights                                                                                                       |
| **lfg**                 | All spawns Looking For Group                                                                                                              |
| **light** *lightsource* | Spawns with the specified *lightsource*                                                                                                   |
| **loc #x #y \[#z]**     | Spawn at the specified loc, Z is optional, if Z is not supplied it will use your current Z. (note: you must use radius with this keyword) |
| **los**                 | Spawns in Line of Sight (from your point of view)                                                                                         |
| **mercenary**           | Spawn which is a mercenary                                                                                                                |
| **merchant**            | NPC Merchants                                                                                                                             |
| **name**                | Spawn with this name                                                                                                                      |
| **named**               | "Named" spawns (spawns whose names start with a #, or whose name does not start with "a" or "an")                                         |
| **nearalert #**         | Spawns close to alert list #                                                                                                              |
| **next**                | Next spawn matching the search criteria                                                                                                   |
| **noalert #**           | Spawns not on the alert list #                                                                                                            |
| **noguild**             | Spawns with no guild tag                                                                                                                  |
| **notid #**             | Spawns not matching ID #                                                                                                                  |
| **npc**                 | Non-Player Characters                                                                                                                     |
| **npccorpse**           | Non-Player Characters Corpses                                                                                                             |
| **npcpet**              | Pets Owned by Non-Player Characters                                                                                                       |
| **pc**                  | Player Characters (default)                                                                                                               |
| **pccorpse**            | Player corpses                                                                                                                            |
| **pcpet**               | Pets Owned by Player Characters                                                                                                           |
| **pet**                 | Pets                                                                                                                                      |
| **prev**                | Previous spawn matching the search criteria                                                                                               |
| **race** *racename*     | Spawns with the race *racename*                                                                                                           |
| **radius #**            | Within the radius #                                                                                                                       |
| **range low# high#**    | Within the level range #(low) and #(high)                                                                                                 |
| **slower**              | Returns Shamans, Enchanters and Beastlords                                                                                                |
| **tank**                | Returns Paladins, Shadow Knights and Warriors                                                                                             |
| **targetable**          | Spawns that can be targeted                                                                                                               |
| **timer**               | Timer spawns                                                                                                                              |
| **trap**                | Traps                                                                                                                                     |
| **tribute**             | Tribute Masters                                                                                                                           |
| **trigger**             | Triggers                                                                                                                                  |
| **untargettable**       | Untargettable spawns                                                                                                                      |
| **zradius #**           | Spawns within the specified Z-Axis radius                                                                                                 |
| ***Anything Else***     | Anything not matched above is considered a **name**                                                                                       |

## See Also

* [Data Types](/macroquest/data-types-and-top-level-objects/data-types.md)
* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [DataType:spawn](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)
* [TLO:Spawn](/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-spawn.md)
* [TLO:SpawnCount](/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-spawncount.md)
* [TLO:NearestSpawn](/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-nearestspawn.md)
* [TLO:LastSpawn](/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-lastspawn.md)
* Complete list of searchables as of 30 march 2020

`"pc"`\
`"npc"`\
`"mount"`\
`"pet"`\
`"pcpet"`\
`"npcpet"`\
`"xtarhater"`\
`"nopet"`\
`"corpse"`\
`"npccorpse"`\
`"pccorpse"`\
`"trigger"`\
`"untargetable"`\
`"trap"`\
`"chest"`\
`"timer"`\
`"aura"`\
`"object"`\
`"banner"`\
`"campfire"`\
`"mercenary"`\
`"flyer"`\
`"any"`\
`"next"`\
`"prev"`\
`"lfg"`\
`"gm"`\
`"group"`\
`"fellowship"`\
`"nogroup"`\
`"raid"`\
`"noguild"`\
`"trader"`\
`"named"`\
`"merchant"`\
`"banker"`\
`"tribute"`\
`"knight"`\
`"tank"`\
`"healer"`\
`"dps"`\
`"slower"`\
`"los"`\
`"targetable"`\
\`\`\`\`"range" MinLevel MaxLevel`` "loc"`````KnownLocation``` `xLoc` `yLoc` ``````zLoc````` `````"id"`````` `bSpawnID` ``````SpawnID````` `"radius"` `````"body"`````` ``BodyType\`\`\`\`\`\`\`\`\`\`\` "class"\`\`\`"race"\`\`\
`[[ "light"`\
`Light, Lights[Light] ]]`\
`"guild"`\
`"guildname"`\
`"alert"`\
`"noalert"`\
`"notnearalert"`\
`"nearalert"`\
`"zradius"`\
`"notid"`\
`"nopcnear"`\
`"playerstate"`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/general-information/spawn-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
