View Single Post
  #31  
Old 07-20-2002, 06:21 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote