Jump to content
  • 0

Adding a Name to an item - NPC instead of CHARACTER


Moooooon-Aisha

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

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