View Single Post
  #85  
Old 08-03-2002, 02:49 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
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.
__________________
Reply With Quote