Issue information

Issue ID
#2156
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Sep 1, 2008 10:04
Last Post
Hercules Elf Bot
Mar 5, 2012 9:04
Confirmation
N/A

Hercules Elf Bot - Sep 1, 2008 10:04

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2156

(originally posted in this topic)

The equip refiner npc currently uses the "getequipname" function to build the list of items to upgrade.
QUOTE
*getequipname(<equpment slot>)
This function will return the name of the item equipped in the specified equipment slot on the invoking character.
mes "So you are wearing a "+getequipname(1)+" on your head";


This function has a defect - it embeds the equip position into the return value. This is something inherited from jAthena.
The code should be changed so that it just returns the name of the item at that position, leaving it to the calling script to label the individual equip positions.

PS: getequipname(pos) <=> getitemname(getequipid(pos))... this function seems to exist only for convenience purposes.