Jump to content
  • 0

NPC Name not showing - broadcastNpcSay


protoftw

Question

Does anyone know why this problem occurs?

hmm.png
 

broadcastPacket(new NpcSay(getObjectId(), Say2.ALL, getNpcId(), "Goodbye Traveler!"));
broadcastNpcSay("Goodbye Traveler!");
this.broadcastPacket(new NpcSay(this.getObjectId(), 0, this.getNpcId(),"Hello World!"));

I've checked client side too. Edit npcname-e.dat but still nothing. I thought it might be that.

 

	<npc id="50024" name="Mystery Prize" title="Explore Me!">
		<set name="usingServerSideName" val="true"/>
		<set name="usingServerSideTitle" val="true"/>

 

Edited by protoftw
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

This issue occurs due to missing client support for your custom ID.

It's usually not recommended for NPCs but you can have a try with CreatureSay packet. You'll also avoid modifying client this way, since it accepts character name directly, instead of ID.

 

If you still prefer doing it with NpcSay, try adding a new record for it in npcgrp.dat too (npmname would definitely not be enough).

Edited by DnR
  • Thanks 1
Link to comment
Share on other sites

  • 0
16 minutes ago, DnR said:

This issue occurs due to missing client support for your custom ID.

It's usually not recommended for NPCs but you can have a try with CreatureSay packet. You'll also avoid modifying client this way, since it accepts character name directly, instead of ID.

 

If you still prefer doing it with NpcSay, try adding a new record for it in npcgrp.dat too (npmname would definitely not be enough).

ah because i had many custom npc's added manually i thought i had this ID too and i didn't even bother to check npcgrp.. Although i really appreciate you for taking the time to help me.

You made me see the only thing that i couldnt see :D

 

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.

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