Issue information

Issue ID
#4682
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Jan 1, 2011 13:29
Last Post
Hercules Elf Bot
Jan 1, 2011 13:29
Confirmation
N/A

Hercules Elf Bot - Jan 1, 2011 13:29

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

Since revision 14623, the script command delitem2 doesn't work and it always returns the "failed to delete" error message in the map-server.



This was tested with the identify npc script :

CODE
function    script    F_Magnifier    {
getinventorylist;
for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {
if ( @inventorylist_identify[.@i] == 1 ) continue;
delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[.@i],1;
}
delitem 611,1;
}
else itemskill "MC_IDENTIFY",1;
end;
}


And I also tested the delitem2 line for specific items and they were never deleted.

(Is the delitem2 command bugged or is it used differently now?)


*The command delitem2 was working fine before that revision*

This post has been edited by Spiritual_Kid: Jan 1 2011, 05:29 AM