sta9 Posted July 11, 2013 Posted July 11, 2013 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 Quote
0 N1nj4Styl3 Posted July 11, 2013 Posted July 11, 2013 you can make the zone whenever someone gets inside to have his name changed into the name of your server for example :p Quote
0 sta9 Posted July 11, 2013 Author Posted July 11, 2013 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? :-\ Quote
0 Devlin Posted July 11, 2013 Posted July 11, 2013 ### 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. Quote
Question
sta9
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.