Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:43 AM.


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