View Single Post
12-16-23, 10:21 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,897
You need to put code inside code tags (# button abvove the edit box for plain or the blue "Lua" button next to it for pretty).

In your function:
Lua Code:
  1. if (type(nodes[uiMapId][coord].id) == "table") then
  2.     dungeonID = nodes[uiMapId][coord].id[1]
  3. else
  4.     dungeonID = nodes[uiMapId][coord].id
  5. end
  6.  
  7. if (not dungeonID) then return end
if the the table does not contain an id entry (dungeonID is empty) it just exits doing nothing.
Lua Code:
  1. nodes[2095][42789333] = {
  2.     uiMapId = 2022,
  3.     name = L["Exit"],
  4.     type = "Exit",
  5.     showInZone = true,
  6. } -- Ruby Life Pools
does not contain an id entry (it does have a uiMapId entry).
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 12-16-23 at 10:38 AM.
  Reply With Quote