Jump to content
  • 0

Name template


jim100

Question

6 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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 :)

Link to comment
Share on other sites

  • 0

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 )

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • I guess if you want to learn the whole process, your best bet is to start with a classic client (like salvation? also must be easy to modify so that you don't get stuck behind paywalls) and check how the network communication is implemented. L2jmobius has a lot of sources that use classic clients.
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt  
    • WTS Gold bars reborn interlude x10   discord : xeenthekeen
    • Guys, if you'd let me be the bearer of bad news, No amount of "break from server development" can justify your complete lack of idea how things work. If it was this easy, you should've been seeing 90% of the servers of the popular old versions, such as IL and HF, running on the newest client. For this task, you would need a lot of time - think at least 2 months, if you can code, have access to all the necessary tools for client development, and you have a relatively good idea of how server<->client communication works. f you don't, then you either find yourself a well-paying job and find someone who would do it for you or you put the idea aside (for no less than 1-2 years) and start reading and learning asap. Let me give you a little preview/breakdown of what some of the work includes. The work can be split into two parts - SERVER side and CLIENT side.  The server and the client communicate through packets. Each of these packets has a defined structure. Both, the server and the client MUST know this structure and MUST use the same structure, otherwise they won't be able to "understand" each other. - The server side predominantly includes the alteration of existing packet structure and the creation (from zero) of missing packets that the client requires. Then you also have to take these changes into account and alter the existing features of your server to match the changes. A good example for this is SKILL ENCHANTING. On older chronicles, the enchant level is determined by the LEVEL value of the skill and on the new clients, it has been taken out into a separate value. What this means is that you would have to figure out a way to adapt the old system to the new requirements. - Now that we mentioned the client, you would also need to edit a bunch of files, such as Interface, UTX, UNR, as well as DAT files, including those related to ITEMS, SKILLS, QUESTS, NPCS, and AUGMENTATION STATS and DESCRIPTIONS, etc. For some of those, you would also have to figure out how to check for missing entries and how to parse data from the older client to the new. The best example, again, would be the SKILLS. On the latest clients, the skill enchanting was limited to only +20. As such, even if there were some matching skills between the two different client versions, you would still need to add the missing 10 levels to +30. And once you complete all of that, you start testing and fixing bugs and sh1t. And once you have fixed all of that, you can start adding new features from the new client, because otherwise it would be one big mess and a waste of time and/or money.
  • Topics

×
×
  • Create New...