GHI_GetZoneLevel

Pilus edited this page Aug 11, 2015 · 1 revision
Clone this wiki locally

Syntax:

GHI_GetZoneLevel(zoneName)

Arguments:

GHI_GetZoneLevel has 1 optional argument.

zoneName
''String''
The name of the zone you are trying determine the level range for. If unspecified it will use the current zone.

Returns:

lvlMin
''Number''
The lowest suggested questing level of the specified zone.
lvlMax
''Number''
The highest suggested questing level of the specified zone.

Example:

local zoneName = GetRealZoneText()

local lvlMin, lvlMax = GHI_GetZoneLevel(zoneName)

print(zoneName,"Level: "..lvlMin.." - "..lvlMax)

This script will print the zone name and level range to your chat log.