Thread: Mining
View Single Post
  #1  
Old 07-15-2001, 01:15 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Mining

Well, I am trying to do a mining script and its comming out pretty well. I know how to make it find random things but I can only do two random things. Here is what I have.


if (weaponfired) {this.result=random(1,100)
if (this.result<=20) {
message Iron Found;
}
else if (this.result<=50) {
message Nothing Found;
}

I just did that out of my head but I think thats right. How would I make it so it countinued on? So I could have more than just Iron and nothing?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote