Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-18-2002, 03:18 AM
Jman9912-P2P Jman9912-P2P is offline
Registered User
Join Date: Nov 2001
Location: North Carolina!
Posts: 217
Jman9912-P2P is on a distinguished road
Send a message via AIM to Jman9912-P2P Send a message via Yahoo to Jman9912-P2P
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;

__________________
AIM: Jman9912
Email: [email protected]
Reply With Quote
  #2  
Old 03-18-2002, 04:43 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
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)




Reply With Quote
  #3  
Old 03-18-2002, 10:31 AM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
dont forgot

drawovertrees


/CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #4  
Old 03-18-2002, 07:06 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
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)




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

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #5  
Old 03-20-2002, 02:16 AM
cya cya is offline
Registered User
Join Date: Sep 2001
Location: Earth
Posts: 37
cya is on a distinguished road
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?
__________________
cya The Bold *Owner*(Bold Mining Co) BMC Created on 12/11/01

HTML code off. WHY!?!?!?!
Reply With Quote
  #6  
Old 03-20-2002, 02:29 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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
__________________
[signature]insert here[/signature]
Reply With Quote
  #7  
Old 03-20-2002, 06:08 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
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?
Reply With Quote
  #8  
Old 03-20-2002, 02:20 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
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?)
__________________

subliminal message: 1+1=3
Reply With Quote
  #9  
Old 03-21-2002, 07:01 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
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.
__________________

!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
  #10  
Old 03-21-2002, 11:29 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
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..
Reply With Quote
  #11  
Old 03-22-2002, 06:11 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
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.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #12  
Old 03-23-2002, 12:17 PM
Shrimp Okonomiyaki Shrimp Okonomiyaki is offline
Turkey & Giblets
Join Date: Mar 2002
Location: An apartment
Posts: 340
Shrimp Okonomiyaki is on a distinguished road
Send a message via AIM to Shrimp Okonomiyaki
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
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|
__________________
- Shrimp Okonomiyaki
Reply With Quote
  #13  
Old 03-23-2002, 12:24 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
yeah, that would be the same as use the |'s
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 03-23-2002, 01:05 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
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
Reply With Quote
  #15  
Old 03-23-2002, 03:34 PM
Shrimp Okonomiyaki Shrimp Okonomiyaki is offline
Turkey & Giblets
Join Date: Mar 2002
Location: An apartment
Posts: 340
Shrimp Okonomiyaki is on a distinguished road
Send a message via AIM to Shrimp Okonomiyaki
Quote:
Originally posted by Python523

I don't think its directly mentioned but in is in the commands.rtf
Musta missed it x.X
__________________
- Shrimp Okonomiyaki
Reply With Quote
  #16  
Old 03-24-2002, 05:13 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
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
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;} 

Scripting confuses me. But it's cool, so i must learn how to use the commands...
Reply With Quote
  #17  
Old 03-27-2002, 10:53 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
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)
__________________

subliminal message: 1+1=3
Reply With Quote
  #18  
Old 03-28-2002, 03:26 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #19  
Old 03-28-2002, 03:26 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Spyfire is an official command, some commands and
tricks are only mentioned in newfeatures2001.txt
and newfeatures2002.txt
Reply With Quote
  #20  
Old 03-28-2002, 04:42 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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)




hidden commands provided by me ....
Reply With Quote
  #21  
Old 03-28-2002, 04:42 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
Reply


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 08:26 PM.


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