Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   no D weapon script help! (https://forums.graalonline.com/forums/showthread.php?t=17959)

Bortlad 11-27-2001 06:45 AM

no D weapon script help!
 
does anyone know the script for no NPC weapons but can still use a sword in the level
im told there is one but i dont know it...
so help

Faheria_GP2 11-27-2001 08:35 AM

//NPC MADE BY UR MOM
functionhere();

Poogle 11-27-2001 08:52 AM

Re: no D weapon script help!
 
Quote:

Originally posted by Bortlad
does anyone know the script for no NPC weapons but can still use a sword in the level
im told there is one but i dont know it...
so help

I think the disableweaponselect; or something does that Im not sure if not do disableweapons and if keydown S key setani sword,;

Andor_NPC-Admin1 11-27-2001 01:05 PM

This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}

nyghtGT 11-27-2001 02:03 PM

Quote:

Originally posted by Andor_NPC-Admin1
This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}

OMG ! its pixie !

grim_squeaker_x 11-27-2001 07:39 PM

There is no actual in-built Graal script for that, although when disableweapons is properly used in combination with a weapon which checks keydown and does hitobjects it could easily be made.

Poogle 11-27-2001 08:32 PM

Quote:

Originally posted by Andor_NPC-Admin1
This would make the player use no NPC weapons

if(playerenters) {
toweapons blah;
disableselectedweapons;
}
if(weaponfired)
say2 HAHA!;
if(playerleaves&&isweapon) {
enableselectedweapons;
destroy;
}

missing a { and a }

LiquidIce00 11-28-2001 03:10 AM

what pixie said would only work on npc server, and only with databased npc's . playerleaves is p2p only.
if you want to disable the screen just use
disableselectweapons;
if you want to disable then use of weapons in a level do

timeout=.1;
if (playerenters&&!isweapon) { toweapons *swordonly; }
if (timeout&&isweapon) {
if (!strequals(#w,*swordonly)) { disableweapons; }
else { enableweapons; }
if (!strequals(#L,yourlevel.graal)) { destroy; }
}

if (!strequals(#L,yourlevel.graal)) { destroy; }

remember to plug in ur level to both places.

and Poogles , much like Delphi you dont need brackets when you have single line of command.

Bortlad 11-28-2001 06:12 AM

Thanks it works great!

Andor_NPC-Admin1 11-28-2001 06:50 AM

Ohh yea, no NPC server commands =P
Me forgetting meh old scripting ways b/c of too much NPC server =P

Quote:

Originally posted by nyghtGT

OMG ! its pixie !

Hi Nyght!!!~!

mikepg 11-28-2001 07:23 AM

1 thing
 
I just want to add a comment to help you guys out.

disableselectweapons; does not prevent the player from selecting weapons, it just disables the 'q' button. if you have that set, you can hold 's' and press 'd' to change weapons (which is also good for switching on the run from pkers and such).

;)

Aknts 11-28-2001 08:31 AM

...

Metal-Slug 11-28-2001 08:56 AM

Quote:

Originally posted by Aknts
...
hehehehe, ankts knows it :)

Aknts 11-28-2001 09:00 AM

_.-:'Spanky':-._

LiquidIce00 11-29-2001 03:28 AM

Re: 1 thing
 
Quote:

Originally posted by mikepg
I just want to add a comment to help you guys out.

disableselectweapons; does not prevent the player from selecting weapons, it just disables the 'q' button. if you have that set, you can hold 's' and press 'd' to change weapons (which is also good for switching on the run from pkers and such).

;)

yes, it was mainly designed to make your own weapon system I believe =)

mikepg 11-29-2001 03:31 AM

yeah
 
thats what i thought too, so you could have an alternate use for the Q button. I just wanted to clear that up for the people that were saying use disableselectweapons; thinking that would work.

Andor_NPC-Admin1 11-29-2001 12:30 PM

making your own weapons menu stinx b/c when u can't pause when u go into the menu :D

LiquidIce00 11-30-2001 04:28 AM

Quote:

Originally posted by Andor_NPC-Admin1
making your own weapons menu stinx b/c when u can't pause when u go into the menu :D
uh?
yes u could. . if u just did a disabledefmovement when it went into the menu..

mikepg 11-30-2001 04:32 AM

or
 
if you used a say 2 command.

Andor_NPC-Admin1 11-30-2001 06:25 AM

4 realz?
disabledefmovement makes u pause?


All times are GMT +2. The time now is 12:31 AM.

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