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