Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Undocumented Commands (https://forums.graalonline.com/forums/showthread.php?t=3162)

Bravo_NPC-Admin1 05-19-2001 09:57 AM

Undocumented Commands
 
Stefan. I found some undocumented commands that aren't explained anywhere. The first one I can think of at the top of my head is onwall2 and onwater2 (?). What are those and how are they used? Also, if you create an NPC that has:
if (playertouchsme) { toweapons /Test; }

You can touch it many times and each time you will get the Weapon named Test. Is that supposed to happen, or is that a bug? Thanks.

-Boco

MoonAngel 05-19-2001 12:11 PM

i think that the undocummented commands only work with .nw levels like those on G2K1 and since they are undocummented it means Stefan doesnt want them revealed or something like that

FxChiP 05-19-2001 08:10 PM

That's nothing.

Try putting this as your script:
NPC Code:

if (weaponfired) {
spyfire 10,10;
}



Last I checked, it was still undocumented.

How did I find this (and some other) commands? I opened Graal with Notepad. It has every command and built-in flag in there.

You'll even find the bomb/bow script in there.

MoonAngel 05-19-2001 08:49 PM

i did the same ; ) and anyways.. they arent such powerful commands, spyfire is great though =)

Admins 05-19-2001 09:29 PM

I think spyfire was mentioned in the
newfeaturesxxx.txt somewhere

onwall2 and onwater2 are like onwall/onwater,
but for a rectangle

Admins 05-19-2001 09:31 PM

spyfire is not supported on the npcserver yet,
but it will be easy to add it

MoonAngel 05-19-2001 09:33 PM

and could you read my thread on the NPC Scripting forum? its about a problem im having with a showimg npc

TB3 06-06-2001 06:50 AM

Dont help much hehe
 
It would realy be helpfull if u listed the commands and such like
onwall(x,y,width,height) or whatever they were supposed to be so that i wouldnt have to test this stuff so much I myself dont have that much time on graal no more and a list of new commands such as putnpc2 ect and their val and format would be great thanx

Admins 06-11-2001 12:10 AM

You don't have the npcserverdoc.txt?
It doesn't describe putnpc2 and timevar2
yet but everything else should be somehow
explained

slp 06-11-2001 12:34 AM

spi fire lol
 
i remeber last year me and kjl were looking through graal.exe and found that command alonge w/ other ones that we didnt understand

Marco2002 06-12-2001 09:39 PM

Quote:

Stefan. I found some undocumented commands that aren't explained anywhere. The first one I can think of at the top of my head is onwall2 and onwater2 (?). What are those and how are they used? Also, if you create an NPC that has:
if (playertouchsme) { toweapons /Test; }
the toweapons /Weapon is for sub menus in the Weapon menu (with toweapons Bombs/Megabomb you will add the Megabombs into the submenu "Bombs")

btw. does setfocus/resetfocus do anything or will It do anything in the future?

LilbrojX 06-13-2001 07:13 AM

Quote:

Originally posted by Marco2002


the toweapons /Weapon is for sub menus in the Weapon menu (with toweapons Bombs/Megabomb you will add the Megabombs into the submenu "Bombs")

WOAH, I'm confused, how does that work??? I did it, but I can't open another menu for it, or something

Krakken_2001 06-13-2001 11:16 PM

Quote:

Originally posted by Stefan
timevar2
OOOOOOOOOOOOOoooooooooooooooh

General 06-14-2001 12:47 AM

I tried toweapons Bombs/Megabombs, Its not working

BocoC 06-14-2001 05:54 AM

Hmm. Old thread. But...

toweapons /Megabombs;

If you keep on getting the weapon, you will get multiple of it

LilbrojX 06-14-2001 06:08 AM

we all know that, thanks boco, your a genius

JoMomma 06-16-2001 04:21 AM

Quote:

Originally posted by FxChiP
[B]That's nothing.

Try putting this as your script:
NPC Code:

if (weaponfired) {
spyfire 10,10;
}


try 10,3 :D

it's: spyfire length, type;
if type is 3, it'll be a jolt bomb style fire.

FxChiP 06-16-2001 06:51 PM

...

I never played with that...


All times are GMT +2. The time now is 03:11 AM.

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