Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mining (https://forums.graalonline.com/forums/showthread.php?t=7277)

ownerofbabylon 07-15-2001 01:15 AM

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?

entravial 07-15-2001 07:47 AM

first of all don't copy

second of all it's very obvious

third of all too many servers have mining


ownerofbabylon 07-15-2001 10:50 AM

hmm

Poogle 07-17-2001 04:11 AM

Quote:

Originally posted by entravial
first of all don't copy

second of all it's very obvious

third of all too many servers have mining


Do you mean like 1 to many has it? Cuse I have not seen anymore then Graal2001. Anyway the script is in newfeatures2001.txt READ IT -_-

entravial 07-17-2001 01:59 PM

just look in the pw forum.

you look at everyones pw, they all have mining, you look at everyone's pw website, they all have mining!

SkooL 07-17-2001 02:17 PM

Quote:

Originally posted by Poogle
Do you mean like 1 to many has it? Cuse I have not seen anymore then Graal2001.
Valikorlia has it also.

07-17-2001 03:10 PM

Valikorlia had mining for ever...It was one of the only ways to get a level 3 sword.

Silver Knight 07-17-2001 11:42 PM

NPC Code:

if (weaponfired) {this.result=random(1,100)
if (this.result<=20 && this.result>=10) {
message Iron Found;
}
else if (this.result<=50) {
message Nothing Found;
}
if (this.result<=10) {message You should not have mining on your server, try something original;player.trysomethingelse++}


Something like that.

ownerofbabylon 07-18-2001 01:59 PM

heh, alright i got the point. One thing though. Valikorlia is ****. I go on there and all these script errors dont allow me to get past like 4 levels. And it is on Xone but that one sucks. The one on 2001 is the best.

SkooL 07-18-2001 02:07 PM

Quote:

Originally posted by ownerofbabylon
Valikorlia is ****. I go on there and all these script errors dont allow me to get past like 4 levels.
Their scripts a messed up because of the NPC Server.

ownerofbabylon 07-18-2001 02:09 PM

Yea im might be a great server but im screwed on it =\ im stuck in this room with a 7 line script problem.

SkooL 07-18-2001 02:10 PM

Quote:

Originally posted by ownerofbabylon
Yea im might be a great server but im screwed on it =\ im stuck in this room with a 7 line script problem.
Try 'unstick me'.

ownerofbabylon 07-18-2001 02:18 PM

I cant type and the admins people are mean =(

SkooL 07-18-2001 02:26 PM

Quote:

Originally posted by ownerofbabylon
I cant type and the admins people are mean =(
You can't type?

entravial 07-18-2001 02:30 PM

maybe it's called jail

ownerofbabylon 07-18-2001 02:58 PM

No its not jail, i just freeze after a second and cant type or anything

SkooL 07-18-2001 03:01 PM

Quote:

Originally posted by ownerofbabylon
No its not jail, i just freeze after a second and cant type or anything
Maybe the jail was scripted to overload your computer and make it freeze.

ownerofbabylon 07-18-2001 03:04 PM

:eek: ur right!!!

SkooL 07-18-2001 03:06 PM

Quote:

Originally posted by ownerofbabylon
:eek: ur right!!!
Yes, I am always right.

ownerofbabylon 07-19-2001 11:32 PM

Are you my mommy?

SkooL 07-19-2001 11:34 PM

Quote:

Originally posted by ownerofbabylon
Are you my mommy?
Uhh...no, I am not.

ownerofbabylon 07-19-2001 11:38 PM

o ok :(

SkooL 07-19-2001 11:43 PM

Quote:

Originally posted by ownerofbabylon
o ok :(
Make a thread in the Not Graal forum asking who your mom is :)

ownerofbabylon 07-19-2001 11:44 PM

ok :D

entravial 07-20-2001 01:23 PM

Mithica had something like that,

but i lagged out of it.


ownerofbabylon 07-20-2001 03:15 PM

lol, yea talk about a high quality server.

foxstar70 07-20-2001 09:16 PM

i am your mommy lol

SkooL 07-20-2001 10:47 PM

Quote:

Originally posted by foxstar70
i am your mommy lol
Go debate it in the 'Are you?' thread on Not Graal forums :)

ownerofbabylon 07-21-2001 12:16 AM

YAY!!! I found my mommy!!!

Poogle 07-21-2001 12:40 PM

o_O mining script is easy I have already made it for Lost Islands becuse the script was in newfeatures2001.txt but i had to change a bunch of it.


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

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