No categories assigned

LUA:GetZoneName

LUA Functions: GetZoneName()

Gets the name of the given zone


Syntax

var = GetZoneName(param1)


Parameters

Required - param1 (Zone)
param1 is the zone who's name we want to get


Usage

function hailed(NPC, Spawn)
    local zone = GetZone(Spawn)
    Say(NPC, "You are in " .. GetZoneName(zone))
end

The NPC will respond with the name of the zone the player is currently in

Notes

Returns a string