Jump to content
  • 0

Remove Shownpclevel From Mob


Malossi

Question

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!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
... && npc.getId() != X

or inside the method

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

Something like that.

Edited by SweeTs
Link to comment
Share on other sites

  • 0

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;
            }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...