Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.