TLO:NearestSpawn

From the wonderful RedGuides Wiki

Used to find spawns nearest you

This TLO is added by MacroQuest

Forms

Type Member Description
spawn NearestSpawn[#] The #th nearest spawn
NearestSpawn[search] The nearest spawn matching this search string (see Spawn search)
NearestSpawn[#,search] The #th nearest spawn matching this search string (see Spawn search)

Access to Types

Type Description
spawn A type for spawns

Examples

  • Finds the npc containing orc pawn in its name that is within 100 of you.

/echo ${NearestSpawn[npc radius 100 "orc pawn"]}

  • Finds the closest spawn to you (${NearestSpawn[1]} will always match yourself).

/echo ${NearestSpawn[2]}

See also