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 10-07-2001, 06:06 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Flute

i really need the script can some one let me have it please?
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #2  
Old 10-07-2001, 06:15 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
no
make it yourself
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 10-07-2001, 06:16 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
it is really a VERY simple script
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #4  
Old 10-07-2001, 07:20 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by AlexH
it is really a VERY simple script
I know and you don't NEED it
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #5  
Old 10-07-2001, 07:23 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
yes
you WANT it probally for a suxy server that will copy everything from other servers
noting original
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #6  
Old 10-07-2001, 07:26 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Post easy

just use the keydown command
if (keydown(keyhere)) figure the rest out your self
Reply With Quote
  #7  
Old 10-07-2001, 10:07 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
[ 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 )
__________________
Xerphier Dintch
Featuring

Last edited by Knightoffrost; 10-07-2001 at 10:10 AM..
Reply With Quote
  #8  
Old 10-07-2001, 07:54 PM
LinksReturn LinksReturn is offline
Registered User
Join Date: Sep 2001
Posts: 92
LinksReturn is on a distinguished road
Send a message via AIM to LinksReturn
Even I can make that, and i sux0rs at npc scripting
__________________
-§hakakµ
Head Lat for Andor
Aim: Moe478
E-mail: [email protected]
Reply With Quote
  #9  
Old 10-08-2001, 12:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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;
}
Reply With Quote
  #10  
Old 10-08-2001, 01:09 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #11  
Old 10-08-2001, 01:17 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~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.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #12  
Old 10-08-2001, 01:34 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Kaimetsu


And will freezeplayer work with keydowns?
you could just use disabledefmovement
Reply With Quote
  #13  
Old 10-08-2001, 02:22 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
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.
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #14  
Old 10-08-2001, 05:14 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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;}
}
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #15  
Old 10-08-2001, 07:14 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
goto zorg online and look at their ocarina
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 01:29 PM.


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