Issue information

Issue ID
#2277
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Sep 26, 2008 13:16
Last Post
Hercules Elf Bot
Sep 26, 2008 13:16
Confirmation
N/A

Hercules Elf Bot - Sep 26, 2008 13:16

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

Hi,

The command getinventorylist doesn't reset the array.

Example:
CODE
getinventorylist;
message strcharinfo(0), "You have "+getarraysize(@inventorylist_id)+" items !";
sleep2 1000;
clearitem; // <--- DELETE ALL ITEMS !
sleep2  100;
getinventorylist;
message strcharinfo(0), "You have "+getarraysize(@inventorylist_id)+" items !";
end;


In this example, the num in the array aren't reset and show the same message
(so we need to cleararray :
@inventorylist_id
@inventorylist_amount,
@inventorylist_equip
@inventorylist_refine
@inventorylist_identify
@inventorylist_attribute
@inventorylist_card1
@inventorylist_card2
@inventorylist_card3
@inventorylist_card4
@inventorylist_count
when we use getinventorylist.)

I suggest to clear array automatically when using the command getinventorylist.

Best regards.

This post has been edited by KeyWorld: Sep 26 2008, 06:17 AM