# TLO:LastSpawn

## Description

Information about the spawns that have occurred since you entered the zone. When you enter a zone you dont know the spawn order of anything already there, just anything that spawns while you are in the zone.

The useful thing about ${LastSpawn\[-1]} is just being able to get the first spawn in the list which you might use in conjunction with other spawn members to go through the entire spawn list in a loop.

## Forms

|                                                                                                                 |                                            |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md) **LastSpawn\[n]**          | The nth latest spawn (chronological order) |
| [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md) **LastSpawn\[**-n\*\*]\*\* | The nth oldest spawn (chronological order) |

## Access to Types

* [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md) **spawn**

## Examples

`/echo ${LastSpawn[10].ID}`

Echos the spawnID of the 10th mob to spawn in the zone

`/echo ${LastSpawn[-10]}`

Echos the name of the 10th to last spawn in the zone

## See Also

* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)
* [spawn](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)


---

# 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/data-types-and-top-level-objects/top-level-objects/tlo-lastspawn.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.
