Recommended Posts

another lame script that has been around for a very long time ...
just a function to show the item name exactly like on the client side

Download: 2.5
script

Display Item name just as the client
post-8685-0-21969200-1359952786.jpg

version 2 onward has color code for display inside npc dialog
post-8685-0-09178800-1359952802.jpg

 

original topic from eathena and rathena ...

 

 

to faster get the prefix name for hercules process
open kro/data/cardprefixnametable.txt, use notepad++, find with regular expression

([0-9]+)#([][&0-9a-z_'.()]*)#

replace with

	[email protected]$[\1] = "\2";

 

Spoiler

1.0 getitemname2_1.0.txt
--- initial release

2.0 getitemname2_2.0.txt
--- reduce gotocount in checking item type, card name, card amount, and crafted info
------ priority item types, eg: etc items is conditioned 1st, carded equipment next, signed equipment conditioned last
------ in carded equipment check, priority equipment with only 1 type of card each, 4 same cards conditioned last
------ in signed item check, priority etc items that has no star crumb or elemental
--- change VS into Very Strong, it was copy pasted from my itemlist script lol
--- added a temporal array for a more detailed item info
--- fix a bug that carded etc items show card name

2.1 getitemname2_2.1.txt
--- reduce gotocount by using Keyworld's <- lol !! method
--- make unidentified items shows the name as accurate as possible, though may not 100% be correct
--- fix bug [3] should show star crumb level but it showed weapon element instead

2.2 getitemname2_2.2.txt
--- update to fit latest renewal client item names

2.3 getitemname2_2.3.txt
--- update all variables to fit latest rathena revision, and renewal client item names
--- fix enchantment not showing properly
--- optimized card counting with *countstr
--- utilizing *freeloop instead of Keyworld's <- lol !! method
--- TODO: useless unidentified updates ....

2.4 - script
- made in 2015
--- no longer use setd on card prefix, use array as pointers

2.5 - script
- made in Jan 2019
--- hercules has update item ID smallint(6) field into int(11), and signed item need to rewrite
--- finally update unidentified items, simply using regular expression replace
--- card counting no longer count with strings

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

2.5 - script
--- hercules has update item ID smallint(6) field into int(11), and signed item need to rewrite
--- finally update unidentified items, simply using regular expression replace
--- card counting no longer count with strings

 

although I doubt Hercules item ID upgrade, has broke some server's pet ID,
https://github.com/HerculesWS/Hercules/pull/2359

Share this post


Link to post
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
Reply to this topic...

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

Loading...
Sign in to follow this