AnnieRuru 957 Posted November 26, 2015 (edited) 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.6script Display Item name just as the client version 2 onward has color code for display inside npc dialog 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 $@cardprefix$[\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 2.6 - script - fix a bug when you have only 1 card inserted, it shows Triple <blank>, now the blank slot no longer calculate - fix a bug for missing line getiteminfo(ITEMINFO_SUBTYPE) when having identify flag off Edited September 21, 2020 by AnnieRuru 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted January 30, 2019 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 Quote Share this post Link to post Share on other sites
bWolfie 138 Posted January 30, 2019 yea some of my pets got broken Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted September 21, 2020 prontera,152,188,5 script test getitemname2 1_F_MARIA,{ setarray .@a, 1101, 5, 0, 0, 4003, 4003; mes callfunc("getitemname2", .@a[0], 1, .@a[1], 0, .@a[2], .@a[3], .@a[4], .@a[5]); mes callfunc("F_ITEML", .@a[0], .@a[1], .@a[2], .@a[3], .@a[4], .@a[5]); close; } I'm not sure needs to even needs to update this script or not, because <ITEML> function can do exact same thing ... but the colorize message box seems very tempting .... meh ... 2.6 - script - fix a bug when you have only 1 card inserted, it shows Triple <blank>, now the blank slot no longer calculate - fix a bug for missing line getiteminfo(ITEMINFO_SUBTYPE) when having identify flag off Quote Share this post Link to post Share on other sites