Quote:
Originally posted by DragonX2
There is no probability I don't believe.
It's just random, if it happens, it happens.
|
Yes there is, because there is a 99% chance that the staff set i to random etc etc and designated diamond/gold/iron/coal to each one, like this.
NPC Code:
i = random(0,100);
if (i<1) "diamond laying script";
else if (i<33) "iron laying script";
else if (i<66) "gold laying script";
else if (i<100) "coal laying script";
In the above case (Which is probably not accurate), the chances of a diamond appearing after a rock breaks is 1 in 100 breaking of rocks.