Then you have to try this one.
NOTE: can't check if code is correct right now...
setarray .@item_id, 501,502,503,504,505,506,507,508,509,510; for (@i=0; @i< 5; @i++) { set @ind, rand(0,getarraysize(@item_id)); getitem .@item_id[@ind], 1; deletearray @item_id[@ind],1; }
Corrected Script:
prontera,137,203,4 script TEST 834,{
setarray @item_id, 501,502,503,504,505,506,507,508,509,510;
for (@i=0; @i< 5; @i++)
{
set @ind, rand(0, getarraysize(@item_id) - 1);
getitem @item_id[@ind], 1;
deletearray @item_id[@ind],1;
}
}