Skip to content

NPC Name

Featured Replies

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

  • Author
10 minutes ago, GastOne said:

From source you can change it!

which file? p.s Lucera project

  • Author

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

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 

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

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.

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

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

  • Author
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?

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. 

 

  • Vision locked this topic
  • Maxtor unlocked this topic

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.