• 0
Sign in to follow this  
OppaiDragon

Adding a Name to an item - NPC instead of CHARACTER

Question

Any idea as to how to add a name on an item using another name instead of the character?

For instance my character's name is character1, but I want the produced item to be named as character2, which is the name of the NPC that produced that item.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Docs says that name must be existing character but give it a try:

getnameditem(<item id>,"<name to inscribe>"|<char id>);

And for the npc name use:

strnpcinfo(1) ;

Edited by Sehrentos
Fix typo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this