![]() |
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 |
Re: Hidden Script Commands
Quote:
|
pretty good
|
already knew about 1 and 3, 2 sounds interesting.
|
umm
The password 1 doesnt work
|
he said its serverside o_O
|
o0
forgots
|
The password scripts work. I've seen it in action and even the script. It's awesome. :)
|
why would there even be hidden commands?
|
Not hidden, more like undocumented. Although I don't know why, seeing as how we always manage to figure them out anyhow.
|
they're undocumented because stefan is too lazy to do otherwise
|
Quote:
|
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
|
Quote:
(Btw I'd love to see you try and script XD that will be a thing you woulnd't wanna miss ) :D |
Quote:
As for Jagen, interesting stuff. :) |
Quote:
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! |
Quote:
|
Quote:
|
odam my post was edited and not by me!!!
sorry 4 the naughty words i get carried away, most likly rabid ;p |
Oh allright, he's not too LAZY, he's too BUSY.
|
ok now can anyone tell meh how to use addguildmember removeguildmember pleeezze.
|
addguildmember guild,account,nick;
removeguildmember guild,account; removeguild guild; |
I think all the guild commands were well known.... Just undocumented.
|
the person above me asked what they were fal. i just forgot the quote
|
ah, You know we should make some kind of npc server document or something.
|
Quote:
|
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 |
Quote:
|
Quote:
SOME and do you know how the command drawovertrees can be used? |
Quote:
i really wish to know :( |
Re: Hidden Script Commands
Quote:
Quote:
|
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....)
|
Quote:
im confused loriel said that in old graal versions it had the same effect of drawaslight command:confused: |
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.