Hercules Wiki
Brought to you by:
bgamez23
This function returns the number of values that are contained inside the
specified array. Notice that zeros and empty strings at the end of this array
are not counted towards this number.
[Setarray] @array[0], 100, 200, 300, 400, 500, 600;
[Set] @arraysize, [Getarraysize](@array);
This will make @arraysize == 6. But if you try this:
[Setarray] @array[0], 100, 200, 300, 400, 500, 600, 0;
[Set] @arraysize, [Getarraysize](@array);
@arraysize will still equal 6, even though you've set 7 values.
Wiki: Copyarray
Wiki: Deletearray
Wiki: Getinventorylist
Wiki: Getmobdrops