View Single Post
  #86  
Old 08-03-2002, 03:04 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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.
Haha I bet that is the script. Darn I have 20 more rocks to go before I hit 100.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote