No categories assigned

LUA:GetZoneName

Revision as of 19:47, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetZoneName() = Gets the name of the given zone ==== Syntax ==== var = GetZoneName(param1) ==== Parameters ==== ; Required - ''param1'' (Zone) : ''param1'' i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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