Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use
viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Topicus
Posts: 17 Joined: Wed Nov 10, 2010 7:31 pm
Post
by Topicus » Sun Oct 14, 2012 2:16 am
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number : Trunk 5667
L2JDP Revision
Number :
Im trying to change char name ingame to "temporary name" when entering in a custom zone:
To my char the name changes. But to other near chars dont. Im tried this:
Code: Select all
activeChar.setName("Somename");activeChar.broadcastUserInfo();
But nothing =/
Can someone help?
Last edited by
Topicus on Sun Oct 14, 2012 3:23 pm, edited 1 time in total.
UnAfraid
L2j Veteran
Posts: 4199 Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:
Post
by UnAfraid » Sun Oct 14, 2012 12:01 pm
try clear knownlist of all players in yours and then teleport player on his place.
Topicus
Posts: 17 Joined: Wed Nov 10, 2010 7:31 pm
Post
by Topicus » Sun Oct 14, 2012 2:42 pm
Why is needed to teleport char again in same place? There is no "update" knownlist command in l2j? Why activeChar.broadcastTitleInfo(); works for titles, but there is no option for char names? Whats the difference?
im trying, im trying...
Thanks
Edit:
Im tried:
Code: Select all
activeChar.getKnownList().getKnownCharacters().clear();
Nothing too, even teleporting in same place.
Topicus
Posts: 17 Joined: Wed Nov 10, 2010 7:31 pm
Post
by Topicus » Sun Oct 14, 2012 3:11 pm
I did it!
Code: Select all
activeChar.getAppearance().setVisibleName("someshit");activeChar.getAppearance().setVisibleTitle("sameshit");
I did not know these methods... easy.
Another question... How to hide enchant glow in other players, like i did with name and title?
Topicus
Posts: 17 Joined: Wed Nov 10, 2010 7:31 pm
Post
by Topicus » Sun Oct 14, 2012 10:06 pm
Topicus wrote:
Another question... How to hide enchant glow in other players, like i did with name and title?
i'll help myself
Whatever, for future reference:
Code: Select all
Index: E:/workspace/L2J_Server_Trunk_Test/java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java===================================================================--- E:/workspace/L2J_Server_Trunk_Test/java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java (revision 5667)+++ E:/workspace/L2J_Server_Trunk_Test/java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java (working copy)@@ -17,11 +17,13 @@ import com.l2jserver.Config; import com.l2jserver.gameserver.datatables.NpcTable; import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;+import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Decoy; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate; import com.l2jserver.gameserver.model.effects.AbnormalEffect; import com.l2jserver.gameserver.model.itemcontainer.Inventory;+import com.l2jserver.gameserver.model.zone.type.L2SomeZone; public class CharInfo extends L2GameServerPacket {@@ -276,6 +278,7 @@ writeD(_activeChar.getAppearance().getHairColor()); writeD(_activeChar.getAppearance().getFace()); + writeS(gmSeeInvis ? "Invisible" : _activeChar.getAppearance().getVisibleTitle()); if (!_activeChar.isCursedWeaponEquipped())@@ -320,7 +323,14 @@ writeD(_activeChar.getMountNpcId() + 1000000); writeD(_activeChar.getClassId().getId()); writeD(0x00); // ?- writeC(_activeChar.isMounted() || _airShipHelm != 0 ? 0 : _activeChar.getEnchantEffect());+ if (_activeChar.isInsideZone(L2Character.ZONE_SOME) && !L2SomeZone._showEnchant && !_activeChar.isGM())+ {+ writeC(0);+ }else+ {+ writeC(_activeChar.isMounted() || _airShipHelm != 0 ? 0 : _activeChar.getEnchantEffect());+ } writeC(_activeChar.getTeam()); // team circle around feet 1= Blue, 2 = red
Thanks and close-me!
u3games
Posts: 1156 Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:
Post
by u3games » Thu Jan 16, 2014 7:12 pm
Topicus wrote: I did it!
Code: Select all
activeChar.getAppearance().setVisibleName("someshit");activeChar.getAppearance().setVisibleTitle("sameshit");
I did not know these methods... easy.
Another question... How to hide enchant glow in other players, like i did with name and title?
You can hide name and title in an event? in custom files example ...
Sdw
L2j Veteran
Posts: 855 Joined: Mon May 03, 2010 8:38 am
Location: France
Post
by Sdw » Thu Jan 16, 2014 7:42 pm
As long as you have access to the character you can.