Jump to content
  • 0

NPC Name


dev951

Question

Hello dear MX users, please help me to solve this problem. In the game, for example: the name of the nooblesse raid boss is: "Flame of Splendor Barakiel" and is 26 characters long, but on my server the name of the raid is "Flame of Splendor Barak". Please tell me now, how can I change the limit number of characters? Thanks!

https://ibb.co/3WfvkFc

Edited by dev951
Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
24 minutes ago, dev951 said:

Read carefully! I asked the question which file should be edited? İ have source

You didn't mention that you have a source code. Anyway, probably NpcParser.java 

Link to comment
Share on other sites

  • 0
14 minutes ago, Zake said:

You didn't mention that you have a source code. Anyway, probably NpcParser.java 

Yes sir, I forgot to mention. I'll check what you said right away

14 minutes ago, Zake said:

You didn't mention that you have a source code. Anyway, probably NpcParser.java 

Please check it:  https://pastebin.com/202aCBAt

Edited by dev951
Link to comment
Share on other sites

  • 0
1 hour ago, dev951 said:

Yes sir, I forgot to mention. I'll check what you said right away

Please check it:  https://pastebin.com/202aCBAt

There is no restriction in this file. I can think of 2 things, 1) It's handled in NpcInfo.java and returns a substring of the name if it's more than x characters. 2) In your system folder/npcname-e.dat the name is not fully written.

Link to comment
Share on other sites

  • 0
1 hour ago, Zake said:

There is no restriction in this file. I can think of 2 things, 1) It's handled in NpcInfo.java and returns a substring of the name if it's more than x characters. 2) In your system folder/npcname-e.dat the name is not fully written.

Name fully written in .dat file.

Link to comment
Share on other sites

  • 0
29 minutes ago, dev951 said:

I can't see any restriction there too. You can start debugging a bit. While parsing data on NpcParser try to print in console the name for barakiel.

 

set.set("npcId", npcId);
set.set("displayId", templateId);
set.set("name", name);

 

after this part paste this

if (npcId == 1234) //barakiel id here
                info(name);

 

and NpcHolder.java method addTemplate

 

public void addTemplate(NpcTemplate template)
    {
        if (template.getNpcId() == 1234) // barakiel id here too
            info(template.getName());
        
        _npcs.put(template.npcId, template);
    }

 

Let me know about results

Link to comment
Share on other sites

  • 0
14 hours ago, Zake said:

I can't see any restriction there too. You can start debugging a bit. While parsing data on NpcParser try to print in console the name for barakiel.

 

set.set("npcId", npcId);
set.set("displayId", templateId);
set.set("name", name);

 

after this part paste this

if (npcId == 1234) //barakiel id here
                info(name);

 

and NpcHolder.java method addTemplate

 

public void addTemplate(NpcTemplate template)
    {
        if (template.getNpcId() == 1234) // barakiel id here too
            info(template.getName());
        
        _npcs.put(template.npcId, template);
    }

 

Let me know about results

I don't understand nothing, can u connect my pc with "AnyDesk" or "TeamViewer"  to check it?

Link to comment
Share on other sites

  • 0
26 minutes ago, dev951 said:

I don't understand nothing, can u connect my pc with "AnyDesk" or "TeamViewer"  to check it?

Private support (anydesk/teamviewer) is against the rules for this board ( Read rule 6 ). You can always create a marketplace request. 

 

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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