Jump to content
  • 0

Getting item name by client


lShinel

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  02/18/20
  • Last Seen:  

As the title, i want to get the item name by client, if u have an iteminfo which apple is named "gorgeouuus appple" it will display like that
I've seen the code some months before but forgot how to do it, and didnt find anymore, hope someone can help me

Edited by lShinel
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  02/18/20
  • Last Seen:  

@Edit

found it in doc sample

leaving an example here if someone wants to use it.

set .@value,512; //your item id
mes "Item: ^nItemID^" + .@value; //Returns name from itemInfo.lua
[512] = {
		unidentifiedDisplayName = "Applee",
		unidentifiedResourceName = "»ç°ú",
		unidentifiedDescriptionName = { "" },
		identifiedDisplayName = "Fu*** beautiful apple", //<<--------- returns this name
		identifiedResourceName = "»ç°ú",
		identifiedDescriptionName = {
			"A round, edible fruit that, when eaten once a day, keeps the doctor away.",
			"________________________",
			"^0000CCType:^000000 Restaurative",
			"^0000CCHeal:^000000 16 ~ 22 HP",
			"^0000CCWeight:^000000 2"
		},
		slotCount = 0,
		ClassNum = 0,
		costume = false
	},

 

Edited by lShinel
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  05/27/20
  • Last Seen:  

can you elaborate your question more?

Edited by Freecz
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...