Jump to content
  • 0

How to display player name in a mes during a talk with an NPC


Question

Posted

Hello!

I'd like to know how I can display the player name during a talk with an NPC, for instance:

 

Quote

mes "^FF9900[Teleport Guy]^000000";
mes "What's up playername, all good?";

 

And it shows: What's up Althezier, all good?

 

Thanks!

2 answers to this question

Recommended Posts

  • 1
Posted
6 minutes ago, Althezier said:

Hello!

I'd like to know how I can display the player name during a talk with an NPC, for instance:

 

 

And it shows: What's up Althezier, all good?

 

Thanks!

You would do something like

mes "What's up "+strcharinfo(0)+", all good?";

 

  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...