Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   new (graal2002) hiden commands (https://forums.graalonline.com/forums/showthread.php?t=20367)

mikepg 01-05-2002 02:13 AM

new (graal2002) hiden commands
 
this is what i dug up so far. They might not all be graal2002 commands, but they are new commands that are not in commands.rtf and not in newfeatures2001.txt

this is what ive found so far, and ill try to explain each

----
setcursor <filename>
setcursor2 <filename>
setshootparams
groundheights[x]=x
waterheight=x (0-normal x>0 - playerswims on land)
selectedsword=x
tiletype(x,x)=x
getz(x,x)=x
getflagkeys(x)=x
savelog
npcs[i].z=x
players[i].z=x
playermaxhp=x
playerhp=x
playerz=x
setfocus x,y (finally works!)
resetfocus
setz x,x,x,x,x,x,x,x (must have 8 params)
----
setcursor(2) doesnt seem to work, but i think it changes the look of your mouse

setshootparams i have no idea, probably for arrows going up and down the z line

groundheight[x]=x; this sets the ground height. Im not sure how it works, and what should go in place of the x's.

waterheight=x; this sets the level's waterheight i guess. when x<=0 its seems normal. anymore than that, and youre swimming in nonblocked tiles.

selectedsword=x; im not sure you're supposed to use it like this, but i cannot figure out what its used for.

tiletype(x,x)=x; i think this goes along with addtiledefs image,,0 or however it works. Probably can be altered from 0 to 1

getz(x,x)=x; not sure, but i think it changes the z on the coordinates (x,x) to the height of the 3rd x

getflagkeys(x)=x; This is probably meant to be an if(clause) kinda thing. Im not sure though.

savelog; this is a command. I looks like it saves a log ;) maybe its the alt+0 log....

npcs[i].z=x; sets the z for the i'th npc

players[i].z=x; same as npcs except for player

playermaxhp=x; works the same as playerfullhearts

playerhp=x; works the same as playerhearts

playerz=x; works the same as players[i].z=x;

setfocus x,y; Not a new command, but it just works now. Centers the player's view on x,y without moving the player

resetfocus; changes the player's view back to normal

setz x,x,x,x,x,x,x,x; not quite sure what all the params are for, or any of the for that matter. There MUST be 8, no more, no less.


Thats all i got. if any of these are defined somewhere, or were in an old topic, feel free to scold me. if you know what these commands do and how to use them, please post in reply. If you want to praise me and say thanx, go ahead. If you want to yell at me and call me a n00b, the choice is yours.


Well, i hope these prove usefull to you all.

laterz

Thak2 01-05-2002 04:25 AM

Will those work offline?

PhenomX 01-05-2002 04:35 AM

Yes, please, do tell us. I would like to know that, I have been otying aroujnd with them and I get nothing. Do they work offline?

Faheria_LAT1 01-05-2002 04:44 AM

set hp thing is from G2K2, it's their personal Heart system built in the game :p

Python523 01-05-2002 04:45 AM

Quote:

Originally posted by PhenomX
Yes, please, do tell us. I would like to know that, I have been otying aroujnd with them and I get nothing. Do they work offline?
Some of those commands are there for the '3d' effect of graal 2002, so unless you have the right type of image, it might not work, one of my friends says setfocus works, I need to try some of those commands out myself, some of them probably only work with the NPC Server

Saga2001 01-05-2002 04:56 AM

i don't understand?
 
how do you figure out hidden commands and how little of a life must you have, cause maybe i should do it.

Poogle 01-05-2002 05:03 AM

Re: i don't understand?
 
Quote:

Originally posted by Saga2001
how do you figure out hidden commands and how little of a life must you have, cause maybe i should do it.
Stefan?

Saga2001 01-05-2002 05:06 AM

Re: Re: i don't understand?
 
Quote:

Originally posted by Poogle
Stefan?

wait wait wait, you mean that he doesn't put it in the newfeatures, or commands.rtf (not that he ever adds anything to that) and he decides to randomly tell one person a lot of them? sounds a bit fishy.

Slaktmaster 01-05-2002 05:09 AM

By HEX editing the Graal exe.

Saga2001 01-05-2002 05:57 AM

Quote:

Originally posted by Slaktmaster
By HEX editing the Graal exe.
yeah that would work...

mikepg 01-05-2002 07:44 AM

yeah, hex
 
yeah, i just opened graal up with notepad, searched for triggeraction, and it took me to the command section. I do it every so often. Every single command that i listed works offline, one way or another. There is some debugging of the params and yes, maybe certain images that are needed.

setfocus does work, and its awsome :). Its great for things like sitting down in a spar arena, so you can watch the fight without missing some of it (if you dont play in full screen), ect.

I dont know if this is all of them, but this is all that i picked out. I saw a few more, but i kept getting errors, so i never wrote them down.

Man, a g2k2 server is hard to script, not saying that im making one, I'm just toying around with the images and the commands and tiledefs.

kyle0654 01-05-2002 08:22 AM

*knows what each and every one of those do, and knows what you're missing*

setfocus shouldn't work...

BlKnight 01-05-2002 08:32 AM

Quote:

Originally posted by kyle0654
*knows what each and every one of those do, and knows what you're missing*

setfocus shouldn't work...

Please please please be lying. lol...I have been waiting for something to offcenter the view to make little movies for the longest time. *off to test setfocus right now*

BlKnight 01-05-2002 08:35 AM

YES!!!!!!! Mwahaha. Get ready for INCREDIBLE movies in Murasamune! setfocus works!!

mikepg 01-05-2002 08:53 AM

Quote:

Originally posted by kyle0654
*knows what each and every one of those do, and knows what you're missing*

setfocus shouldn't work...

would you be so kind as to enlighten us kyle? Its no fun if you keep all the commands to yourself. You should share the knowlegde! Keeping tricks and tips to yourself is one thing ;)

Which ones did i miss?
And could you explain them for us?

If you dont want to fine, its your call.

kyle0654 01-05-2002 09:02 AM

No, I can't explain them, because they're g2k2/nw only. Setfocus is probably just a bug, and will most likely be taken back out in a newer version.

mikepg 01-05-2002 09:04 AM

...
 
why would it be taken out? It works perfectly. Can you imagine all of the scripting that would have to be redone in effect of that being taken OUT? I would hope its not taken out, because that command is very useful.

BlKnight 01-05-2002 01:18 PM

Quote:

Originally posted by kyle0654
No, I can't explain them, because they're g2k2/nw only. Setfocus is probably just a bug, and will most likely be taken back out in a newer version.
I doubt it...I'm not trying to cause an arguement, so don't take it that way, but anyway Stefan needs g2k2 and g2k1 to work within the smae EXE. Meaning, g2k2 needs setfocus I'm sure, and it needs to stay in so it works with g2k2. Besides, why would you degrade a program? It needs to be upgraded, not degraded.

kyle0654 01-05-2002 01:50 PM

Quote:

Originally posted by BlKnight


I doubt it...I'm not trying to cause an arguement, so don't take it that way, but anyway Stefan needs g2k2 and g2k1 to work within the smae EXE. Meaning, g2k2 needs setfocus I'm sure, and it needs to stay in so it works with g2k2. Besides, why would you degrade a program? It needs to be upgraded, not degraded.

So there are larger, more meaningful updates.

BlKnight 01-05-2002 03:20 PM

Quote:

Originally posted by kyle0654

So there are larger, more meaningful updates.


Oh...OH...I get it...;)

PhenomX 01-06-2002 12:39 AM

:grr: Well I dont! Tell us every aspect of these programming/scripting codes brfore I take a triggeraction and ram it up your...your.... HARD DRIVE!


All times are GMT +2. The time now is 02:34 AM.

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