Graal Forums

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

fireball_dolphonia 10-07-2001 06:06 AM

Flute
 
i really need the script can some one let me have it please?:confused: :( :(:(:(:(:(:(:(

AlexH 10-07-2001 06:15 AM

no
make it yourself

AlexH 10-07-2001 06:16 AM

it is really a VERY simple script

SSRobgeta 10-07-2001 07:20 AM

Quote:

Originally posted by AlexH
it is really a VERY simple script
I know and you don't NEED it

AlexH 10-07-2001 07:23 AM

yes
you WANT it probally for a suxy server that will copy everything from other servers
noting original

Python523 10-07-2001 07:26 AM

easy
 
just use the keydown command
if (keydown(keyhere)) figure the rest out your self

Knightoffrost 10-07-2001 10:07 AM

[ Delph Inc. ]

It's one of the simplest scripts I've come across yet.
All you have to do is make a gani...or not even that of the player holding an intrument then just add in the keydown commands:

if (weaponfired) {
setani intrument_play,;
disabledefmovement;
}
if (strequals(#m,intrument_play)) {
if (keydown(6)) enabledefmovement;
if (keydown(5)) {
if (keydown(0)) play sound1.wav;
elseif (keydown(1)) player sound2.wav;
elseif (keydown(2)) player sound3.wav;
elseif (keydown(3)) player sound4.wav;
} else {
if (keydown(0)) play sound5.wav;
elseif (keydown(1)) player sound6.wav;
elseif (keydown(2)) player sound7.wav;
elseif (keydown(3)) player sound8.wav;
}
}

I only did that because you have dolphonia in your account name (My old server ;))

LinksReturn 10-07-2001 07:54 PM

:megaeek: Even I can make that, and i sux0rs at npc scripting

btedji 10-08-2001 12:33 AM

Quote:

Originally posted by Kaimetsu


You could make that a little shorter, and wouldn't it be clientside-only if you use the play command?

why doesnt this work?

if(playerchats&&strequals(#c,play))
{
play bomb.wav;
}

Python523 10-08-2001 01:09 AM

Quote:

Originally posted by btedji


why doesnt this work?

if(playerchats&&strequals(#c,play))
{
play bomb.wav;
}

That should work... Make sure the sound files are in the same folder as the level, that might be the problem

entravial 10-08-2001 01:17 AM

~AlphaFlame~

Here's a short instrument script...

if (playertouchsme){
toweapons Flute;
}
if (weaponfired){
this.mode=1-this.mode;
timeout=.05;
}
if (timeout && this.mode=1){
freezeplayer .05;
for (i=0;i<4;i++){
if (keydown(i) && !keydown(5)){play flute#v(i+1).wav;}
if (keydown(i) && keydown(5)){play flute#v(i+5).wav;}
}
if (keydown(6))this.mode=1-this.mode;
timeout=.05;
}

Just make sure the flute wavs are numbered 1-8... like flute1, flute2, etc.

btedji 10-08-2001 01:34 AM

Quote:

Originally posted by Kaimetsu


And will freezeplayer work with keydowns?

you could just use disabledefmovement

Knightoffrost 10-08-2001 02:22 PM

Quote:

Originally posted by Kaimetsu


You could make that a little shorter...

[ Delph Inc. ]

I would have made it shorter...I only did it that way so the simple minded...sorry...newbies could understand.

joseyisleet 10-08-2001 05:14 PM

Ok, I made a simple Ocarina (only thing that needs to be changed is the name/sound/gani). It works more or less the same way Graal 2001's does.


// NPC made by Josey Hunt
if (playertouchsme) {
toweapons Flute;
}
if (weaponfired) {
disabledefmovement;
setani ocarina1,;
timeout=.05;
}
if (timeout&&!strequals(#m,ocarina1)){timeout=0;}
if (timeout&&strequals(#m,ocarina1)) {
while (keydown(0)&&!keydown(5)) {play ocarina1.wav;sleep .1;}
while (keydown(1)&&!keydown(5)) {play ocarina2.wav;sleep .1;}
while (keydown(2)&&!keydown(5)) {play ocarina3.wav;sleep .1;}
while (keydown(3)&&!keydown(5)) {play ocarina4.wav;sleep .1;}
while (keydown(0)&&keydown(5)) {play ocarina5.wav;sleep .1;}
while (keydown(1)&&keydown(5)) {play ocarina6.wav;sleep .1;}
while (keydown(2)&&keydown(5)) {play ocarina7.wav;sleep .1;}
while (keydown(3)&&keydown(5)) {play ocarina8.wav;sleep .1;}
if (keydown(6)) {enabledefmovement;setani idle,;}
if (!keydown(7)) {timeout=.05;}
}

btedji 10-08-2001 07:14 PM

goto zorg online and look at their ocarina

Xaviar 10-09-2001 02:00 AM

Quote:

Originally posted by AlexH
it is really a VERY simple script
Why did you need 2 posts for that?

Link188 10-10-2001 02:46 AM

:megaeek: Even i can make that, and i SUCK at scripting! ^_^

SSRobgeta 10-10-2001 02:47 AM

Quote:

Originally posted by Link188
:megaeek: Even i can make that, and i SUCK at scripting! ^_^
Don't lie

entravial 10-10-2001 05:22 AM

~AlphaFlame~

I wonder if Kaimetsu will ever take up somebody kinda like a student...

joseyisleet 10-10-2001 01:11 PM

Quote:

Originally posted by Kaimetsu


No, it works nothing like their's. Use ganis.

No **** it does use ganis... Are you literally blind and can't read the script or are your eyes closed and you just wish to sound smart?


if (weaponfired) {
disabledefmovement;
setani ocarina1,; <wtf is that eh?
timeout=.05;
}
if (timeout&&!strequals(#m,ocarina1<--o0o and that)){timeout=0;}
if (timeout&&strequals(#m,ocarina1)<o0o one more)

So next time look before you let your mouth over-load.

btedji 10-10-2001 07:19 PM

Quote:

Originally posted by joseyisleet


No **** it does use ganis... Are you literally blind and can't read the script or are your eyes closed and you just wish to sound smart?


if (weaponfired) {
disabledefmovement;
setani ocarina1,; <wtf is that eh?
timeout=.05;
}
if (timeout&&!strequals(#m,ocarina1<--o0o and that)){timeout=0;}
if (timeout&&strequals(#m,ocarina1)<o0o one more)

So next time look before you let your mouth over-load.

#m=animation of player
setani=changing animation of player

btedji 10-10-2001 09:27 PM

Quote:

Originally posted by Kaimetsu


To wit: Don't use the play command, stupid guy. Use the sound functions IN GANIS.

now theres a good idea


All times are GMT +2. The time now is 02:59 PM.

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