Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hidden Script Commands (https://forums.graalonline.com/forums/showthread.php?t=32862)

Python523 07-04-2002 01:11 AM

Hidden Script Commands
 
I've felt kindof guilty about keeping these commands to myself, they are pretty cool:

Hidden Command #1:
getnearestplayer(x,y);
serverside command, gets the index of the closest player to the specified index, the index can then be used like
near=getnearestplayer(x+1,y+2.5);
with(players[near]){
//stuff here;
}

Hidden Command #2:
encryption :), serverside
setstring this.password,#E(password);
its a 1 way encryption, I think stefan told me it has an 8 character limit
how to check if a password matches:
if (passwordmatches(#s(this.password),#c))
somethin like that, here's an example of using both:
if(created){
setstring this.password,#E(Stefan);
}
if(playerchats&&passwordmatches(#s(this.password), #c)){
say2 Works;
}

Hidden Command #3:
getflagkeys(string)
clientside
if you have asdf1, asdf4, and asdf102 set, getflagkeys(asdf) would give you an array of 1,4,102
asdf = getflagkeys(blah);
if i had blah1,blah2, and blah3 set, it would make asdf :
asdf={1,2,3};
it stores numberical data only in a var array basically

Those are some of the hidden commands I think noone else knows of/heard of

draygin 07-04-2002 01:13 AM

Re: Hidden Script Commands
 
Quote:

Originally posted by Python523
I've felt kindof guilty about keeping these commands to myself, they are pretty cool:

Hidden Command #1:
getnearestplayer(x,y);
serverside command, gets the index of the closest player to the specified index, the index can then be used like
near=getnearestplayer(x+1,y+2.5);
with(players[near]){
//stuff here;
}

Hidden Command #2:
encryption :), serverside
setstring this.password,#E(password);
its a 1 way encryption, I think stefan told me it has an 8 character limit
how to check if a password matches:
if (passwordmatches(#s(this.password),#c))
somethin like that, here's an example of using both:
if(created){
setstring this.password,#E(Stefan);
}
if(playerchats&&passwordmatches(#s(this.password), #c)){
say2 Works;
}

Hidden Command #3:
getflagkeys(string)
clientside
if you have asdf1, asdf4, and asdf102 set, getflagkeys(asdf) would give you an array of 1,4,102
asdf = getflagkeys(blah);
if i had blah1,blah2, and blah3 set, it would make asdf :
asdf={1,2,3};
it stores numberical data only in a var array basically

Those are some of the hidden commands I think noone else knows of/heard of

Shadow knight has the password one on eclipse at the moment since some one gave out an RC password for it.

LilNiglet 07-04-2002 01:13 AM

pretty good

Falcor 07-04-2002 01:34 AM

already knew about 1 and 3, 2 sounds interesting.

Legondary_MyTH 07-05-2002 03:33 AM

umm
 
The password 1 doesnt work

Dustey4Ever 07-05-2002 03:48 AM

he said its serverside o_O

Legondary_MyTH 07-05-2002 03:59 AM

o0
 
forgots

draygin 07-05-2002 09:30 PM

The password scripts work. I've seen it in action and even the script. It's awesome. :)

Glory 07-08-2002 11:38 AM

why would there even be hidden commands?

Falcor 07-08-2002 11:51 AM

Not hidden, more like undocumented. Although I don't know why, seeing as how we always manage to figure them out anyhow.

jeff335 07-08-2002 09:46 PM

they're undocumented because stefan is too lazy to do otherwise

Falcor 07-08-2002 11:22 PM

Quote:

Originally posted by jeff335
they're undocumented because stefan is too lazy to do otherwise
Yes Indeed, you can just call anyone lazy can't you. :rolleyes:

magicbud3344 07-09-2002 01:59 AM

can someone explane what the scripts do? i am retarted when it comes to scrioting i just was looking around and i came here but now i am interested what do the scripts up top do :O

Artificial_Sweetener 07-09-2002 07:32 AM

Quote:

Originally posted by magicbud3344
can someone explane what the scripts do? i am retarted when it comes to scrioting i just was looking around and i came here but now i am interested what do the scripts up top do :O
You're just retarted in general.

(Btw I'd love to see you try and script XD that will be a thing you woulnd't wanna miss )
:D

archaonTCN 07-09-2002 11:15 AM

Quote:

Originally posted by Artificial_Sweetener

You're just retarted in general.

(Btw I'd love to see you try and script XD that will be a thing you woulnd't wanna miss )
:D

Shut up.

As for Jagen, interesting stuff. :)

magicbud3344 07-09-2002 11:43 AM

Quote:

Originally posted by Artificial_Sweetener

You're just retarted in general.

(Btw I'd love to see you try and script XD that will be a thing you woulnd't wanna miss )
:D


hey buddy, **** you :)
i am just not a scripter, i can somewhat make levels and GFX but i don't know the first thing about scripting, that doesn't make me retarded that just makes me..........GIVE ME YOUR SHOES!

Poogle 07-10-2002 05:09 AM

Quote:

Originally posted by jeff335
they're undocumented because stefan is too lazy to do otherwise
If Stefans lazy how did Graal ever come up?

Artificial_Sweetener 07-10-2002 01:13 PM

Quote:

Originally posted by magicbud3344



hey buddy, **** you :)
i am just not a scripter, i can somewhat make levels and GFX but i don't know the first thing about scripting, that doesn't make me retarded that just makes me..........GIVE ME YOUR SHOES!

Did I say you were a scriptor in the first place? I said I'd love to see you TRY and script. I never said you were retarded for not knowing how to script.. I said your Just Retarded. ;)

magicbud3344 07-10-2002 01:40 PM

odam my post was edited and not by me!!!
sorry 4 the naughty words i get carried away, most likly rabid ;p

jeff335 07-11-2002 08:29 PM

Oh allright, he's not too LAZY, he's too BUSY.

bigkow44 07-11-2002 10:40 PM

ok now can anyone tell meh how to use addguildmember removeguildmember pleeezze.

Python523 07-18-2002 06:35 AM

addguildmember guild,account,nick;
removeguildmember guild,account;
removeguild guild;

Falcor 07-18-2002 07:42 AM

I think all the guild commands were well known.... Just undocumented.

Python523 07-18-2002 07:49 AM

the person above me asked what they were fal. i just forgot the quote

Falcor 07-19-2002 10:07 AM

ah, You know we should make some kind of npc server document or something.

Torankusu 07-19-2002 10:35 AM

Quote:

Originally posted by Falcor
ah, You know we should make some kind of npc server document or something.
yes, please. :(

Sparker3000 07-20-2002 12:46 AM

I know more hidden commands, they arent all that great but here are them
updateterrain; probably same as updateboard;
setbacktile2 1,2,3,4,5; unknown; to be used as setbacktile2 1,2,3,4,5;
removetiledefs; if there is a tiledef script in action, this disables it;
spyfire 2,2; use=shoot flame like horse; params effect length of explosion;
resetfocus; use=undo setfocus feature.
playerfreezetime 1; use=freeze player disired amount of time. Bigger param, longer freeze in seconds.
playerattachid=filename; use=var. describiing the attachID id
playerattachtype=?; use=unknown
playerz=filename; use=unknown;
drawovertrees; use=unknown, probably draws over trees, but, what doesnt?
freezeplayer2; use=freeze player permanently untill undone.
unfreezeplayer; use=unfreezeplayer
---------
Message Codes/Variables
---------
#C5 = Player outline
Layers can be anything >0
Showimg indexes can be anything >0

Python523 07-20-2002 12:52 AM

Quote:

Originally posted by Sparker3000
I know more hidden commands, they arent all that great but here are them
updateterrain; probably same as updateboard;
setbacktile2 1,2,3,4,5; unknown; to be used as setbacktile2 1,2,3,4,5;
removetiledefs; if there is a tiledef script in action, this disables it;
spyfire 2,2; use=shoot flame like horse; params effect length of explosion;
resetfocus; use=undo setfocus feature.
playerfreezetime 1; use=freeze player disired amount of time. Bigger param, longer freeze in seconds.
playerattachid=filename; use=var. describiing the attachID id
playerattachtype=?; use=unknown
playerz=filename; use=unknown;
drawovertrees; use=unknown, probably draws over trees, but, what doesnt?
freezeplayer2; use=freeze player permanently untill undone.
unfreezeplayer; use=unfreezeplayer
---------
Message Codes/Variables
---------
#C5 = Player outline
Layers can be anything >0
Showimg indexes can be anything >0

you do relize that some of these are either in the newfeatures or commands.rtf...

Sparker3000 07-20-2002 12:55 AM

Quote:

Originally posted by Python523

you do relize that some of these are either in the newfeatures or commands.rtf...

yes.
SOME
and do you know how the command drawovertrees can be used?

Sparker3000 07-20-2002 01:01 AM

Quote:

Originally posted by Kaimetsu


Not anything.

but do you know what the command drawovertrees does?
i really wish to know :(

Saga2001 07-20-2002 06:21 AM

Re: Hidden Script Commands
 
Quote:

Originally posted by Python523
I've felt kindof guilty about keeping these commands to myself, they are pretty cool:

Hidden Command #1:
getnearestplayer(x,y);
serverside command, gets the index of the closest player to the specified index, the index can then be used like
near=getnearestplayer(x+1,y+2.5);
with(players[near]){
//stuff here;
}

Hidden Command #2:
encryption :), serverside
setstring this.password,#E(password);
its a 1 way encryption, I think stefan told me it has an 8 character limit
how to check if a password matches:
if (passwordmatches(#s(this.password),#c))
somethin like that, here's an example of using both:
if(created){
setstring this.password,#E(Stefan);
}
if(playerchats&&passwordmatches(#s(this.password), #c)){
say2 Works;
}

Hidden Command #3:
getflagkeys(string)
clientside
if you have asdf1, asdf4, and asdf102 set, getflagkeys(asdf) would give you an array of 1,4,102
asdf = getflagkeys(blah);
if i had blah1,blah2, and blah3 set, it would make asdf :
asdf={1,2,3};
it stores numberical data only in a var array basically

Those are some of the hidden commands I think noone else knows of/heard of

*proud of you for not being selfish but is still angry because he should actually be the moderater of this forum*
Quote:

Originally posted by Sparker3000
but do you know what the command drawovertrees does?
i really wish to know

It was actually something having to do with NewWorld I believe. An obviously un-needed command, just no real reason to remove it.

Falcor 07-20-2002 07:24 AM

Draw over trees will draw over the "Drawover" tiles. These are special tiles that NW uses to draw tiles over the player w/ the regular tileset. (although im pretty sure you can do it with the normal graal, if only I knew how....)

Sparker3000 07-20-2002 10:20 AM

Quote:

Originally posted by Falcor
Draw over trees will draw over the "Drawover" tiles. These are special tiles that NW uses to draw tiles over the player w/ the regular tileset. (although im pretty sure you can do it with the normal graal, if only I knew how....)
???
im confused
loriel said that in old graal versions it had the same effect of drawaslight command:confused:

Falcor 07-22-2002 02:04 AM

So i guess the drawover tiles are on the same level as the drawoverplayer npcs?


All times are GMT +2. The time now is 08:25 AM.

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