Yes, I usually do format my code but I was in quite a hurry while typing that. Anyway, thanks for the help.
P.S: One last question, instead of using a getRandom itself. How could I use something along it's lines but in a list. Such as...
[1]Possible Item = "CopperOre"
[2]Possible Item = "IronOre"
[3]Possible Item = "GoldOre"
function giverandomitem(%client)
{
//GetRandomItemFromList
%client.quantity[" PossibleItem "] += getRandom(1,10);
}