Jump to content
  • 0

Getting item name by client


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 1
Posted (edited)

@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

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