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.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock