Jump to content
  • 0
Sign in to follow this  
delber

I need get identifiedDisplayName from iteminfo.lua

Question

I need to get the identifiedDisplayName field from iteminfo.lua, because the name of the equipment in item_db_equip.yml is in another language.

I tried to:

getiteminfo(2301, ITEMINFO_NAME);

and

getiteminfo(2301, NAME);

and

getiteminfo(2301, ITEMINFO_ITENTIFIEDDISPLAYNAME);

and

getiteminfo(2301, ITEMINFO_DISPLAYNAME);

and

getiteminfo(2301, DISPLAYNAME);

and

getiteminfo(2301, ITEMNAME);

 

But nothing hehehe or maybe it’s not possible xD

Sorry for my bad english.

Thanks

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 5/24/2021 at 2:47 AM, delber said:

I need to get the identifiedDisplayName field from iteminfo.lua, because the name of the equipment in item_db_equip.yml is in another language.

I tried to:

getiteminfo(2301, ITEMINFO_NAME);

and

getiteminfo(2301, NAME);

and

getiteminfo(2301, ITEMINFO_ITENTIFIEDDISPLAYNAME);

and

getiteminfo(2301, ITEMINFO_DISPLAYNAME);

and

getiteminfo(2301, DISPLAYNAME);

and

getiteminfo(2301, ITEMNAME);

 

But nothing hehehe or maybe it’s not possible xD

Sorry for my bad english.

Thanks

 

You seem to be using rathena as herc don't have item_db_equip.yml

But if you are using herc and what you want is to match your item_db.conf with itemInfo.lua name, try @Dastgir tools.

https://github.com/dastgirp/Scripts/tree/master/Lua/multi-tools

 

Quote

Using CopyDisplayName:

Changes item_db.conf name from idnumitemdisplaynametable.txt/iteminfo.lua/lub
1)Copy item_db.conf,idnumitemdisplaynametable.txt or iteminfo.lua/lub to "CopyDisplayName" Folder
2)Just run the "copyname.bat" and input some details.

Credits: Dastgir

 

With regards to the getitemifo:

*getiteminfo(<item ID>, <type>)
*getiteminfo("<item name>", <type>)
*setiteminfo(<item ID>, <type>, <value>)

This function will look up the item with the specified ID number in the
database and return the info set by TYPE argument.
It will return -1 if there is no such item.

Valid types are:

	ITEMINFO_ID                      - Item ID (getiteminfo() only!)
	ITEMINFO_AEGISNAME               - Unique name to reference the item (getiteminfo() only!)
	ITEMINFO_NAME                    - Display name (getiteminfo() only!)

 

Or you can use: (this is from doc/sample/getiteminfo.txt)

	.@value = 2301;

	// This line uses an INTERNAL function of your client to show item name by its ID!
	// ^nItemID^XXXX -> Item Name
	mesf("Item ID: %d ^nItemID^%d", .@value, .@value);

 

Edited by Samuel

Share this post


Link to post
Share on other sites
  • 0

Thanks for the answer Samuel.

 

This will help me. Little by little I’m learning.

I have Hercules and rathena too 😁

 

I’ll do a test here.

Edited by delber
I forgot to tell you I’m take a test.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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