Jump to content
  • 0

hide players name in pvp zones.




I am not sure if this is the right section but i wanted to ask how can i hide the players name in pvp zones(pvp events or something

similar)so there wont be help with friends allies etc. im talking about interlude server. thx for help

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
--- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java	(revision 19)
+++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java	(working copy)
@@ -20,6 +20,7 @@
import net.sf.l2j.gameserver.model.Location;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.itemcontainer.Inventory;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
import net.sf.l2j.gameserver.skills.AbnormalEffect;

public class CharInfo extends L2GameServerPacket
@@ -67,7 +68,10 @@
-		writeS(_activeChar.getName());
+		if (_activeChar.isInsideZone(ZoneId.PVP))
+			writeS("Random Player");
+		else
+			writeS(_activeChar.getName());
		writeD(_activeChar.getAppearance().getSex() ? 1 : 0);


Coded on aCis.


In case that you want to do it only in selected zones just create a new zone type.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock