Issue information

Issue ID
#3517
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Aug 22, 2009 10:01
Last Post
Hercules Elf Bot
Mar 5, 2012 15:54
Confirmation
N/A

Hercules Elf Bot - Aug 22, 2009 10:01

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

'Piano Key' item obtained through this quest can be sold, traded, dropped, stored, etc... (Is it supposed to be like this?) When passing by the piano's side (triggering the ontouch label of NPC '#Piano') without taking the Piano Keys obtained in the quest with you the following executes:
QUOTE
if (nif_esc == 11) {
set nif_esc,12;
delitem 7184,6; //Piano_Keyboard
mes "^3355FFYou took the keys you've found";
mes "and inserted them into";
mes "each empty space.^000000";
next;
mes "^3355FFBut then you realize";
mes "that you're missing the last";
mes "key for the space on the far";
mes "left of the keyboard...^000000";
close;
}

Quest progress tracking variable is set to 12, so the quest can be continued, however, delitem fails to delete the items (since you have dropped, sold, stored or traded them), interrupting the script and showing an error in the console. Also, the dialog never pops up because of this. I don't know if this quest is supposed to be completed even if you don't have the Piano Keys, but I'm sure that something is wrong there. I have changed it to this for now:
QUOTE
-delitem 7184,6; //Piano_Keyboard
+delitem 7184,countitem(7184); //Piano_Keyboard