Difference between revisions of "LUA:GetZoneName"

(Created page with "= LUA Functions: GetZoneName() = Gets the name of the given zone ==== Syntax ==== var = GetZoneName(param1) ==== Parameters ==== ; Required - ''param1'' (Zone) : ''param1'' i...")
 
(No difference)

Latest revision as of 19:47, 11 September 2013

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