View Single Post
  #8  
Old 08-03-2002, 03:58 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Quote:
Originally posted by Googi


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.
The chance of a diamond coming is built into the mudlib.
__________________
Eric Kraft
Reply With Quote