Graal Forums

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

ShadowDarkstar 03-06-2003 07:41 PM

command?
 
I know on GK(2k2) people can make boats and houses
But how does it generate the random level?
Is it a command we don't know about or something, or is it just for GK?

If someone knows it, plz post it
I would like to experiment ^_^

Knuckles 03-06-2003 08:04 PM

Generate a random level? I'm not sure what your talking about; 'cause I never actually played 2k1. Just sat on it and talked and worked on Frolic. But, I'm pretty sure the map is like an array, like:

Level_Letter-#.graal

So make an array of letters, then tokenize it, and generate a random #, and letter.

NPC Code:

setstring this.letter = #t(int(rand(0,arraylen(lettersarray))));
this.randnum = int(rand(0,maxnum)))



Then use those in the setlevel part.

ShadowDarkstar 03-06-2003 08:28 PM

Quote:

Originally posted by Knuckles
Generate a random level? I'm not sure what your talking about; 'cause I never actually played 2k1. Just sat on it and talked and worked on Frolic. But, I'm pretty sure the map is like an array, like:

Level_Letter-#.graal

So make an array of letters, then tokenize it, and generate a random #, and letter.

NPC Code:

setstring this.letter = #t(int(rand(0,arraylen(lettersarray))));
this.randnum = int(rand(0,maxnum)))



Then use those in the setlevel part.

not 2k1(GMB), 2k2(GK) =/
dunno
maybe they have a ton of levels already uploaded and its a random level number
im sure they would have to add the number to a certain string to make sure it doesnt generate the same number twice

osrs 03-06-2003 08:30 PM

i heard they have new commands just for 2k2. :)

Knuckles 03-06-2003 10:46 PM

Quote:

Originally posted by ShadowDarkstar

not 2k1(GMB), 2k2(GK) =/
dunno
maybe they have a ton of levels already uploaded and its a random level number
im sure they would have to add the number to a certain string to make sure it doesnt generate the same number twice

Even so, you can still try my way.

Falados 03-07-2003 12:09 AM

its a special command, copylevel I think it is or something... It would be nice to have deletelevel though... although that might be bad =\

Knuckles 03-07-2003 12:35 AM

Quote:

Originally posted by Falados
its a special command, copylevel I think it is or something... It would be nice to have deletelevel though... although that might be bad =\
O_O I see. YOU mean for the dugeons?
I get it now, I thought you just wanted to warp someone to a random level. Heh.

RTelvecho 03-07-2003 12:38 AM

last time i checked copylevel worked on an npc server..

Python523 03-07-2003 01:38 AM

Quote:

Originally posted by Falados
its a special command, copylevel I think it is or something... It would be nice to have deletelevel though... although that might be bad =\
that does exist... o.O

tlf288 03-07-2003 01:49 AM

Quote:

Originally posted by Python523

that does exist... o.O

Enlighten us on how it works then, oh great one :asleep:

ShadowDarkstar 03-07-2003 02:16 AM

oo
 
thx guys ^_^
i think i'll start experimenting with it right away
see how it works and all :D

ShadowDarkstar 03-07-2003 02:25 AM

oops =X
 
x.x
i found out it only works on GK =(
>.<
i dun think its right GK has special commands that only work for that server other than the rpg window, that i can understand =/

Python523 03-07-2003 02:36 AM

Re: oops =X
 
Quote:

Originally posted by ShadowDarkstar
x.x
i found out it only works on GK =(
>.<
i dun think its right GK has special commands that only work for that server other than the rpg window, that i can understand =/

because gk has something called a mudlib which no other server has
and copylevel works on every server with an npcserver

Knuckles 03-07-2003 02:55 AM

Re: Re: oops =X
 
Quote:

Originally posted by Python523

because gk has something called a mudlib which no other server has
and copylevel works on every server with an npcserver

... I almost knew that :o ...

ShadowDarkstar 03-07-2003 11:00 PM

Re: Re: oops =X
 
Quote:

Originally posted by Python523

because gk has something called a mudlib which no other server has
and copylevel works on every server with an npcserver

then how does copylevel work?

Python523 03-08-2003 12:03 AM

you people need to learn how to learn things without having every little detail handed to you

copylevel levelname,path/newlevelname;
copylevel test.nw,test/test2.nw;
makes test2.nw in
levels/test/

you cannot copy a level into the folder the level is already in so if
test.nw
was in levels/
copylevel test.nw,test2.nw
will not work

alarid0 03-08-2003 12:28 AM

Well you say they can't do anything without it being handed to them, eh? How do you you expect them to learn if they have NO base knowledge of the command? They just found out about it, and they can't test it because it only works on g2k2; how you expect them to learn about it? There is no document that gives the commands and how to use them yet, so other then asking what can they do? Anyways, isn't that what this forum is for?

tlf288 03-08-2003 12:47 AM

Quote:

Originally posted by alarid0
Well you say they can't do anything without it being handed to them, eh? How do you you expect them to learn if they have NO base knowledge of the command? They just found out about it, and they can't test it because it only works on g2k2; how you expect them to learn about it? There is no document that gives the commands and how to use them yet, so other then asking what can they do? Anyways, isn't that what this forum is for?
It is called expierementing. Not everything is going to be handed to you in life. Get used to it.

alarid0 03-08-2003 01:01 AM

How can you experiment with something that only works on G2k2? Unless everyone has access to g2k2 system and MUDlib they can't experiment with anything.

tlf288 03-08-2003 01:44 AM

He and I were clearly talking about copylevel :\

Python523 03-08-2003 02:02 AM

Quote:

Originally posted by alarid0
How can you experiment with something that only works on G2k2? Unless everyone has access to g2k2 system and MUDlib they can't experiment with anything.
I already MENTIONED on a PREVIOUS post in THIS thread that copylevel WORKS on any server with an npcserver x.x

im trying not to be mean but i hate it when people don't listen


All times are GMT +2. The time now is 02:00 PM.

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