Malossi Posted December 9, 2015 Posted December 9, 2015 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!
0 DONALD TRUMP 2016 Posted December 9, 2015 Posted December 9, 2015 if (Config.SHOW_NPC_LVL && (_npc instanceof L2MonsterInstance) && ((L2Attackable) _npc).canShowLevelInTitle() && npc.getId() != 22857) ?
0 SweeTs Posted December 9, 2015 Posted December 9, 2015 Find the config responsible for that inside your source and make an exception for X id.
0 Malossi Posted December 9, 2015 Author Posted December 9, 2015 (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 December 9, 2015 by Malossi
0 SweeTs Posted December 9, 2015 Posted December 9, 2015 (edited) ... && npc.getId() != X or inside the method if (npc.getId() == X) continue; Something like that. Edited December 9, 2015 by SweeTs
0 Malossi Posted December 9, 2015 Author Posted December 9, 2015 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; }
Question
Malossi
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