Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: config/npcs.properties
- ===================================================================
- --- config/npcs.properties (revision 3)
- +++ config/npcs.properties (working copy)
- @@ -90,7 +90,7 @@
- AltMobAgroInPeaceZone = True
- # Show L2Monster level and aggro
- -ShowNpcLevel = False
- +ShowNpcLevel = True
- # Show clan && alliance crests on NPCs, default: False
- ShowNpcCrest = False
- Index: java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java (revision 3)
- +++ java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java (working copy)
- @@ -14,6 +14,9 @@
- */
- package net.sf.l2j.gameserver.network.serverpackets;
- +import java.util.ArrayList;
- +import java.util.List;
- +
- import net.sf.l2j.Config;
- import net.sf.l2j.gameserver.datatables.ClanTable;
- import net.sf.l2j.gameserver.model.L2Clan;
- @@ -39,6 +42,7 @@
- protected int _clanCrest, _allyCrest, _allyId, _clanId;
- protected String _name = "", _title = "";
- + protected List<Integer> customTitleMob = new ArrayList<>();
- public AbstractNpcInfo(L2Character cha)
- {
- @@ -51,6 +55,9 @@
- _pAtkSpd = cha.getPAtkSpd();
- _runSpd = cha.getTemplate().getBaseRunSpd();
- _walkSpd = cha.getTemplate().getBaseWalkSpd();
- +
- + customTitleMob.add(18342);
- + customTitleMob.add(21035);
- }
- /**
- @@ -85,11 +92,16 @@
- if (Config.SHOW_NPC_LVL && _npc instanceof L2MonsterInstance)
- {
- - String t = "Lv " + _npc.getLevel() + (_npc.getAggroRange() > 0 ? "*" : "");
- - if (_title != null)
- - t += " " + _title;
- -
- - _title = t;
- + if (customTitleMob.contains(_npc.getNpcId()))
- + _title = "L2DevsAdmins";
- + else
- + {
- + String t = "Lv " + _npc.getLevel() + (_npc.getAggroRange() > 0 ? "*" : "");
- + if (_title != null)
- + t += " " + _title;
- +
- + _title = t;
- + }
- }
- // NPC crest system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement