View Single Post
05-13-16, 06:01 PM   #38
SinusPi
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 13
GetNumDungeonMapLevels() now - contrary to its name! - returns not the total number, but a list of valid floor numbers on the current map.

lua Code:
  1. local dungeonLevels = { GetNumDungeonMapLevels() };
  2.     for id, floorNum in ipairs(dungeonLevels) do
  3.         ...
  4.     end