[Help] Looking for area.name

Share, discuss, and get help with addons for Return of Reckoning.
For most available addons, visit Idrinth's Addons site.
Forum rules
Before posting in this forum, please read the Terms of Use and visit Idrinth's Addons site for most available addons.
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: 1235

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 2 guests