I need get identifiedDisplayName from iteminfo.lua

delber

New member
Messages
4
Points
0
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

 
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

 

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)

Code:
	.@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);
 
Last edited by a moderator:
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.

 
Last edited by a moderator:
Back
Top