Graal Forums

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

Jman9912-P2P 03-18-2002 03:18 AM

Commands...
 
Well I know there are some kinda "secret commands" like say spyfire, there not exactly secret just new and not listed...well if u kno them can u plz post here lets just make this unknown command thread heh

NPC Code:

Spyfire length,type;

(length- how long the fire is)
(type- type of fire (1-fire 2-forgot lol 3-jolt)



edit:
oh and btw i forgot about set focus i dont kno anything about it really heh just saw it in another post :-P

NPC Code:

setfocus x,y;
resetfocus;


haunter 03-18-2002 04:43 AM

Re: Commands...
 
Quote:

Originally posted by Jman9912-P2P
Well I know there are some kinda "secret commands" like say spyfire, there not exactly secret just new and not listed...well if u kno them can u plz post here lets just make this unknown command thread heh


Bjtedi (or something like that) has a website with a bunch of hidden commands on it... ;O oh! and i know one that's not listed!
well, its a flag...

NPC Code:


playersays(text)




:megaeek:

BARGAD 03-18-2002 10:31 AM

dont forgot

drawovertrees


/CaRnIe

Spanko 03-18-2002 07:06 PM

Re: Re: Commands...
 
Quote:

Originally posted by haunter


Bjtedi (or something like that) has a website with a bunch of hidden commands on it... ;O oh! and i know one that's not listed!
well, its a flag...

NPC Code:


playersays(text)




:megaeek:

Playersays is only not listed because it's not supposed to be used anymore.
Though it isn't the case with some commands/flags

cya 03-20-2002 02:16 AM

What do we use instead of playersays

I have lots of
if (playerchats&&playersays(text)){

what is the new command for that type of thing?

screen_name 03-20-2002 02:29 AM

Quote:

Originally posted by cya
What do we use instead of playersays

I have lots of
if (playerchats&&playersays(text)){

what is the new command for that type of thing?


thats what u are supposed to use

haunter 03-20-2002 06:08 AM

Quote:

Originally posted by BARGAD
dont forgot

drawovertrees


/CaRnIe

Ya, i dunno what that's good for... Don't NPCs usually draw over tiles anyway?

Falcor 03-20-2002 02:20 PM

Over layered tiles they dont, that is where drawovertreese comes into play. New world has tiles which draw over the player. These are probably somwhere inbetween layers 2 and 3. 3 (lights) would draw overtop the trees anyhow (but be uneffected by seteffect, which is bad) so drawovertrees would kinda make the image layer 3, but not really.

atleast, this is my understanding of the command. (lucky guess?)

Saga2001 03-21-2002 07:01 AM

Quote:

Originally posted by Falcor
Over layered tiles they dont, that is where drawovertreese comes into play. New world has tiles which draw over the player. These are probably somwhere inbetween layers 2 and 3. 3 (lights) would draw overtop the trees anyhow (but be uneffected by seteffect, which is bad) so drawovertrees would kinda make the image layer 3, but not really.

atleast, this is my understanding of the command. (lucky guess?)

that sounds about right.

amonrabr 03-21-2002 11:29 AM

Re: Commands...
 
Quote:

Originally posted by Jman9912-P2P
...
NPC Code:

Spyfire length,type;


....
Its the horse when it eats a bomb..
There are these "secret commands" because all the graal system,like the movimments or ride a horse... were made by Graal scripts, this one is not listed probably because It has a problem or a bug if you dont use it in the right place..

mikepg 03-22-2002 06:11 AM

umm
 
There has only been a thread about this 100 times. I posted a nice little list about hidden commands when G2k2 first came out and the 2001 client was made compatable with g2k2.

If you want to see them, just search something like
Hidden Commands


you should get some hits.

Shrimp Okonomiyaki 03-23-2002 12:17 PM

Quote:

Originally posted by Falcor
Over layered tiles they dont, that is where drawovertreese comes into play. New world has tiles which draw over the player. These are probably somwhere inbetween layers 2 and 3. 3 (lights) would draw overtop the trees anyhow (but be uneffected by seteffect, which is bad) so drawovertrees would kinda make the image layer 3, but not really.

atleast, this is my understanding of the command. (lucky guess?)

I thought the drawovertrees command was used to draw the NPC image over all other NPCs in the level.

And another oh so wonderful command not listed :D
var in <var1,var2>
Checks to see if 'var' is in between 'var1' and 'var2'.
like.....
NPC Code:

if (playerx in <12,45>) {


I think its also possible to do it like
var in |var1,var2|

screen_name 03-23-2002 12:24 PM

yeah, that would be the same as use the |'s

Python523 03-23-2002 01:05 PM

Quote:

Originally posted by Shrimp Okonomiyaki

I thought the drawovertrees command was used to draw the NPC image over all other NPCs in the level.

And another oh so wonderful command not listed :D
var in <var1,var2>
Checks to see if 'var' is in between 'var1' and 'var2'.
like.....
NPC Code:

if (playerx in <12,45>) {


I think its also possible to do it like
var in |var1,var2|

I don't think its directly mentioned but in is in the commands.rtf

Shrimp Okonomiyaki 03-23-2002 03:34 PM

Quote:

Originally posted by Python523

I don't think its directly mentioned but in is in the commands.rtf

Musta missed it x.X

haunter 03-24-2002 05:13 AM

Quote:

Originally posted by Shrimp Okonomiyaki

I thought the drawovertrees command was used to draw the NPC image over all other NPCs in the level.

And another oh so wonderful command not listed :D
var in <var1,var2>
Checks to see if 'var' is in between 'var1' and 'var2'.
like.....
NPC Code:

if (playerx in <12,45>) {


I think its also possible to do it like
var in |var1,var2|

So... would that shorten the flags for, say mirriors like...
NPC Code:
 if (playerx<45 && playerx>12) {blaeh;} 

:confused: Scripting confuses me. But it's cool, so i must learn how to use the commands...

Falcor 03-27-2002 10:53 PM

Wish that in supported mutiple checks... Like


if var1,var2 in |start,end|

Oh and ont he topic of the special tag.

|| denotes lessthan/greaterthan or equalto
<> denotes greatherthan/less than

You can also mix and match

if (g in <3,7| )

would be true if variable G was greater than 7 and lessthan or equalto 7

And with that in also supports arrays

if(g in {2,3,4,5,6,7,8})
would be true if G was equal to any of the number in that aray. also works for variable arrays
if(g in this.array)

Admins 03-28-2002 03:26 AM

Quote:

Originally posted by Falcor
if (var1,var2 in |start,end|)
works (its like var1 in |start,end| && var2 in |start,end)|

array1 in array2 should work too

Admins 03-28-2002 03:26 AM

Spyfire is an official command, some commands and
tricks are only mentioned in newfeatures2001.txt
and newfeatures2002.txt

nyghtGT 03-28-2002 04:42 AM

Re: Re: Commands...
 
Quote:

Originally posted by haunter


Bjtedi (or something like that) has a website with a bunch of hidden commands on it... ;O oh! and i know one that's not listed!
well, its a flag...

NPC Code:


playersays(text)




:megaeek:

hidden commands provided by me ....

nyghtGT 03-28-2002 04:42 AM

Quote:

Originally posted by Stefan
Spyfire is an official command, some commands and
tricks are only mentioned in newfeatures2001.txt
and newfeatures2002.txt

your sneaky, ehh ...


All times are GMT +2. The time now is 07:56 PM.

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