Recent Topics

Ads

[Help] Looking for area.name

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
foghladha
Posts: 86
Contact:

[Help] Looking for area.name

Post#1 » Thu Jan 11, 2018 10:25 pm

Greetings Everyone,
Back in the old days I created a mod that used the following line:

Code: Select all

local areaName = GameData.Player.area.name
To retrieve the area that the player was standing in. So if I was in Spites Reach it would print Spites Reach. Since loading my old mod up on Return of Reckoning the area.name no longer works. Is there a new property I should be using instead?
Foghladha
Founder & Activities Director
Gaiscioch Social Gaming Community
Discord | Twitch | YouTube | Twitter

Ads
User avatar
sullemunk
Addon Developer
Posts: 1213

Re: [Help] Looking for area.name

Post#2 » Thu Jan 11, 2018 10:45 pm

foghladha wrote:Greetings Everyone,
Back in the old days I created a mod that used the following line:

Code: Select all

local areaName = GameData.Player.area.name
To retrieve the area that the player was standing in. So if I was in Spites Reach it would print Spites Reach. Since loading my old mod up on Return of Reckoning the area.name no longer works. Is there a new property I should be using instead?
might be a server packet thingy, since the string for area name is empty;
but you can use

Code: Select all

local areaName = towstring(GetZoneName(GameData.Player.zone))
instead to grab the name of the current zone instead
Image
Image Ethreal   Image Corque   Image Urgiz   Image Loxley   Image Chilli   Image Maduza

Who is online

Users browsing this forum: No registered users and 29 guests