View Single Post
11/06/21, 11:45 AM   #1
@DeadSoon
AddOn Author - Click to view addons
Join Date: Sep 2018
Posts: 22
mapIndex of the zone "Fargrave" is nil

A small bug that can potentially be easily fixed:

The mapIndex of the zone "Fargrave" is nil.

This returns nil ...
Lua Code:
  1. GetMapIndexByZoneId(1282)

1282 is the zoneId of "Fargrave". When the character is in the zone, the ID could also be retrieved via:
Lua Code:
  1. local playersZoneIndex = GetUnitZoneIndex("player")
  2. local playersZoneId = GetZoneId(playersZoneIndex)
  Reply With Quote