1 2 3 4 5 6 7 | getinventorylist; for( set .@itemnum, 0; .@itemnum < @inventorylist_count; set .@itemnum, .@itemnum + 1 ) { if ( @inventorylist_identify[.@itemnum] != 1 ) { delitem2 @inventorylist_id[.@itemnum],1,0,0,0,0,0,0,0; getitem @inventorylist_id[.@itemnum],1; } } |