[Retail] Max lvl still displayed. #1448


Closed
  • DarkLimpan created this issue Sep 23, 2024

    I have hit level 80 with several characters now, and I'm still seeing my level 80 (and others) text in my party frame, while in dungeons. Shouldn't the level text of players be hidden at max level?

     

    [Imgur](https://imgur.com/VVbFG6G)

  • DarkLimpan edited description Sep 23, 2024
  • nebula169 closed issue Jun 18, 2025
  • nebula169 posted a comment Jun 18, 2025

    No, but you could create your own text to conditionally show it

  • DarkLimpan posted a comment Jun 20, 2025

    Hello Nebula.

    I'm sorry, I should have mentioned this in the original message.

    I do have a custom lua text for displaying the level of players in the party (a friend made it and I've used it since 2008 or so). This used to work until the TWW pre-patch, and I don't understand why it no longer works as intended.

     

    https://imgur.com/xAfTs6L

     

    The Events dropdown list only has those 3 things marked, "UNIT_AURA", "UNIT_CLASSIFICATION_CHANGED" and "UNIT_LEVEL".

     

    The code in the spoiler button:

     

    },
    ["Lua:Level"] = {
    ["events"] = {
    ["UNIT_LEVEL"] = true,
    ["UNIT_CLASSIFICATION_CHANGED"] = true,
    ["UNIT_AURA"] = true,
    },
    ["exists"] = true,
    ["code"] = "if Level(unit) ~= MAX_PLAYER_LEVEL then\n return Level(unit)\nend",
    ["location"] = "right",
    ["attach_to"] = "BlankSpace;Name",
    },

     

  • nebula169 posted a comment Jun 20, 2025

    I don't think that constant exists anymore (MAX_PLAYER_LEVEL), you can hard code it or use something like GetMaxLevelForLatestExpansion()

  • DarkLimpan posted a comment Jun 21, 2025

    Thank you.

     

    I replaced MAX_PLAYER_LEVEL with GetMaxLevelForLatestExpansion() in that custom code and it now seems to work, at least in follower dungeons.


    Edited Jun 21, 2025

To post a comment, please login or register a new account.