Jump to content
  • 0
lShinel

Getting item name by client

Question

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

  • 0

@Edit

found it in doc sample

leaving an example here if someone wants to use it.

set [email protected],512; //your item id
mes "Item: ^nItemID^" + [email protected]; //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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.