Jump to content
  • 0

Remove Shownpclevel From Mob


Question

Posted

Hello,

 

I would like to ask if is there a way to remove the ''ShowNpcLevel'' from a mob. I want from Knoriks for example to keep their Title without showing its level above its name . Is there a way to do that?

 

Thanks!

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

Find the config responsible for that inside your source and make an exception for X id.

In AbstractNpcInfo.java

 

if (Config.SHOW_NPC_LVL && (_npc instanceof L2MonsterInstance) && ((L2Attackable) _npc).canShowLevelInTitle())

            {

                String t = "Lv " + cha.getLevel() + (cha.isAggressive() ? "*" : "");

                if (_title != null)

                {

                    t += " " + _title;

                }

                

                _title = t;

            }

 

How to make an exception?

Edited by Malossi
  • 0
Posted (edited)
... && npc.getId() != X

or inside the method

if (npc.getId() == X)
   continue;

Something like that.

Edited by SweeTs
  • 0
Posted

Looks like this but i dont know how to except the Mob ID

 

if (Config.SHOW_NPC_LVL && (_npc instanceof L2MonsterInstance) && ((L2Attackable) _npc).canShowLevelInTitle())
            {
                String t = "Lv " + cha.getLevel() + (cha.isAggressive() ? "*" : "");
                if (_title != null)
                {
                    t += " " + _title;
                }
                
                if (_npc.getId() == 22857)
                       continue;
                
                _title = t;
            }

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..