Jump to content
  • 0

Name template


Question

6 answers to this question

Recommended Posts

  • 0
Posted

You should go from your database inside Characters table . then find your character and there is your name edit it save and exit if u restart ur character u will have ur new name ;) good luck

  • 0
Posted

or if u want people to be able to have certaine text types in there name u will need to edit ur configs, there is an option in them that lets u change what letters and or numbers people can use when making a new character.

  • 0
Posted

You can also add that in the chathandlers :

 

player.sendPacket(new CreatureSay(activeChar.getObjectId(), chatType.getId(),"[GM]" + activeChar.getName(), text));

  • 0
Posted

What packet are u using?Simply if u are using Oneo write command //admin go at Game,write at Quickbox the name and press set name.U are ready :)

  • 0
Posted

If I understand right, he wants to add a tag [GM] or [Admin] before his GM's names.

 

I don't know if it is in the chat window or in the name on the head of his characters. Assuming it's in the chat and not in the characters's head name...

 

For L2J Free, in the "all" channel :

1) open all the java files located in http://l2jfree.com:8080/l2j-free/browser/trunk/L2_GameServer_IL/src/main/java/net/sf/l2j/gameserver/handler/chathandlers/ChatAll.java

 

2) search near the end of files

public void useChatHandler(L2PcInstance activeChar, String target, SystemChatChannelId chatType, String text)

{

CreatureSay cs = new CreatureSay(activeChar.getObjectId(), chatType.getId(), activeChar.getName(), text);

for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())

{

if (player != null && activeChar.isInsideRadius(player, 1250, false, true)

&& !(Config.REGION_CHAT_ALSO_BLOCKED && BlockList.isBlocked(player, activeChar)))

{

player.sendPacket(cs);

}

}

activeChar.sendPacket(cs);

}

3) replace for

public void useChatHandler(L2PcInstance activeChar, String target, SystemChatChannelId chatType, String text)

{

CreatureSay cs = new CreatureSay(activeChar.getObjectId(), chatType.getId(), activeChar.getName(), text);

for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())

{

if (player != null && activeChar.isInsideRadius(player, 1250, false, true)

&& !(Config.REGION_CHAT_ALSO_BLOCKED && BlockList.isBlocked(player, activeChar)))

{

if (activeChar.isGM())

{

player.sendPacket(new CreatureSay(activeChar.getObjectId(), chatType.getId(),"[GM]" + activeChar.getName(), text));

}

player.sendPacket(cs);

}

}

activeChar.sendPacket(cs);

}

 

Do the same for other channels, adding next code before the last activeChar.sendPacket(cs);

            if (activeChar.isGM())

            {

               player.sendPacket(new CreatureSay(activeChar.getObjectId(), chatType.getId(),"[GM]" + activeChar.getName(), text));

            }

 

With that, all your GM or Admin will not have to change their name but when they will speak, it will display [GM] before their name in all the modified chat windows.

 

For Oneo, I don't know, they are late on the sync and they didn't change the chat system for the most flexible chathandler one.

 

Enjoy.

 

( PS : btw, i hope you know how to compile and all this sort of thing, if not, forget the idea of hosting a server )

Guest
This topic is now closed to further replies.


  • Posts

    • I will have a special offer until April 19. If you are interested, don’t hesitate to send me a message.
    • ⚔️ LINEAGE II KHADIA ⚔️ Interlude PTS (L2OFF) • Mid Rate PvP • Custom Endgame Experience 🔥 NOT JUST ANOTHER SERVER — A REAL BATTLEFIELD 🔥 Welcome to L2Khadia, where classic Interlude meets competitive PvP and custom progression. No fake numbers, no empty promises — only action, economy, war and long-term gameplay. ━━━━━━━━━━━━━━━━━━━━━━ 📊 SERVER RATES EXP: x100 SP: x150 Adena: x300 Spoil: x15 ━━━━━━━━━━━━━━━━━━━━━━ ⚔️ WHY KHADIA? ✔ Original Interlude Mechanics & Formulas ✔ Mid Rate PvP Balance ✔ Real Clan Wars / Sieges / Olympiad ✔ Stable & Fair Economy ✔ Active Staff Team ✔ Long-Term Project Vision ━━━━━━━━━━━━━━━━━━━━━━ 🗡️ KHADIA CUSTOM CONTENT 🔥 Khadia Weapons – Unique power & visuals 🛡 Khadia Armor – Raid Boss drops & crafting 🧥 Khadia Cloaks – Endgame progression items 💎 Designed for competitive PvP ━━━━━━━━━━━━━━━━━━━━━━ 🎁 REWARD SYSTEMS 🏆 PvP / PK Reward System 📦 Daily PvP Reward Package 👑 Raid Package from Boss Extract Rewards 🗳 Vote Reward System 📈 Rankings: PvP / PK / Clans / Castles ━━━━━━━━━━━━━━━━━━━━━━ 💎 VIP FEATURES ✔ VIP Buff Coin ✔ Nick / Title Colors ✔ Special VIP Chat ( ^ Key ) ✔ Exclusive VIP Benefits ━━━━━━━━━━━━━━━━━━━━━━ 🎮 QUALITY OF LIFE ✔ Auto Loot for Farm ✔ Auto Loot Disabled for Raid Boss ✔ Offline Shop System ✔ Remote Buff Coin ✔ RaidBoss Status NPC ✔ PvP / PK Ranking NPC ━━━━━━━━━━━━━━━━━━━━━━ 🌍 FARM ZONES • Elven Fortress [80] – Medium • Cave of Trials [80+] – Party Hard • Monastery of Silence [80] – Medium • PvP Zones Around Raid Bosses ━━━━━━━━━━━━━━━━━━━━━━ 🏰 CLAN & SIEGE SYSTEM ✔ Full Interlude Clan System ✔ Max Clan Level 8 + Clan Skills ✔ Max 3 Clans per Alliance ✔ No Kick / Leave Penalty ✔ Weekly Castle Sieges ━━━━━━━━━━━━━━━━━━━━━━ 🚀 JOIN NOW – START YOUR LEGEND 🚀 🌐 Website: www.l2khadia.com 💬 Discord: https://discord.gg/DnZrgWn77n ━━━━━━━━━━━━━━━━━━━━━━ No Pay To Win • Fair Gameplay • Real PvP • Custom Endgame Content       We Wish you the best game ! 
    • First of all, he doesn’t even know English. He needs to learn it first.
    • Which copies are you talking about? Hahaha, stop crying, everyone knows you're a copy-paste, you can't even program "hello world".
  • Topics

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