Jump to content
  • 0

hide players name in pvp zones.


Question

Posted

hello,

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

3 answers to this question

Recommended Posts

  • 0
Posted

you can make the zone whenever someone gets inside to have his name changed into the name of your server for example :p

yeah like this, how is this possible? :-\

  • 0
Posted

### 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 @@
		writeD(_z);
		writeD(_heading);
		writeD(_activeChar.getObjectId());
-		writeS(_activeChar.getName());
+		if (_activeChar.isInsideZone(ZoneId.PVP))
+			writeS("Random Player");
+		else
+			writeS(_activeChar.getName());
		writeD(_activeChar.getRace().ordinal());
		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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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..