Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-04-2002, 01:11 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #2  
Old 07-04-2002, 01:13 AM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
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.
__________________

I stole Spanky's gold!
Reply With Quote
  #3  
Old 07-04-2002, 01:13 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
pretty good
Reply With Quote
  #4  
Old 07-04-2002, 01:34 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
already knew about 1 and 3, 2 sounds interesting.
__________________

subliminal message: 1+1=3
Reply With Quote
  #5  
Old 07-05-2002, 03:33 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
umm

The password 1 doesnt work
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #6  
Old 07-05-2002, 03:48 AM
Dustey4Ever Dustey4Ever is offline
Registered User
Join Date: Apr 2002
Posts: 348
Dustey4Ever is on a distinguished road
Send a message via AIM to Dustey4Ever
he said its serverside o_O
__________________
Dustey, Rob Getashu, Van?
Van- I use this acct because mine dun work.....
Rob- Same
Reply With Quote
  #7  
Old 07-05-2002, 03:59 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
o0

forgots
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #8  
Old 07-05-2002, 09:30 PM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
The password scripts work. I've seen it in action and even the script. It's awesome.
__________________

I stole Spanky's gold!
Reply With Quote
  #9  
Old 07-08-2002, 11:38 AM
Glory Glory is offline
Banned
Glory's Avatar
Join Date: Mar 2002
Location: Sunnydale
Posts: 1,365
Glory is on a distinguished road
Send a message via AIM to Glory
why would there even be hidden commands?
Reply With Quote
  #10  
Old 07-08-2002, 11:51 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Not hidden, more like undocumented. Although I don't know why, seeing as how we always manage to figure them out anyhow.
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 07-08-2002, 09:46 PM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
they're undocumented because stefan is too lazy to do otherwise
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
  #12  
Old 07-08-2002, 11:22 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #13  
Old 07-09-2002, 01:59 AM
magicbud3344 magicbud3344 is offline
Banned
Join Date: Mar 2002
Location: mEEP
Posts: 0
magicbud3344 is on a distinguished road
Send a message via AIM to 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
Reply With Quote
  #14  
Old 07-09-2002, 07:32 AM
Artificial_Sweetener Artificial_Sweetener is offline
Registered User
Artificial_Sweetener's Avatar
Join Date: Mar 2002
Posts: 758
Artificial_Sweetener is on a distinguished road
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 )
__________________
OOC: Scarlett (Head Auctioneer)
IC: Queen Arianna Durime of (Inra)
Reply With Quote
  #15  
Old 07-09-2002, 11:15 AM
archaonTCN archaonTCN is offline
Registered User
Join Date: Oct 2001
Posts: 239
archaonTCN is on a distinguished road
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 )
Shut up.

As for Jagen, interesting stuff.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:41 AM.


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