// Returns a random argument.
// -- callfunc "F_Rand",arg0,arg1,...
// Example:
// // You can use it to pick a random number from a list:
// set @itemIDfromList, callfunc("F_Rand",1129,1222,1163,1357,1360,1522,1811,1410);
//////////////////////////////////////////////////////////////////////////////////
function script F_Rand {
return getarg(rand(getargcount()));
}
Please help to customize this function.
I want to be able to set the amount and percent of each piece, Example :- ItemID , Percent , Amount
callfunc("F_Rand",1129,100,10,1222,90,5,1163,80,20,1357,70,8);