![]() |
Flute
i really need the script can some one let me have it please?:confused: :( :(:(:(:(:(:(:(
|
no
make it yourself |
it is really a VERY simple script
|
Quote:
|
yes
you WANT it probally for a suxy server that will copy everything from other servers noting original |
easy
just use the keydown command
if (keydown(keyhere)) figure the rest out your self |
[ 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 ;)) |
:megaeek: Even I can make that, and i sux0rs at npc scripting
|
Quote:
if(playerchats&&strequals(#c,play)) { play bomb.wav; } |
Quote:
|
~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. |
Quote:
|
Quote:
I would have made it shorter...I only did it that way so the simple minded...sorry...newbies could understand. |
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;} } |
goto zorg online and look at their ocarina
|
Quote:
|
:megaeek: Even i can make that, and i SUCK at scripting! ^_^
|
Quote:
|
~AlphaFlame~
I wonder if Kaimetsu will ever take up somebody kinda like a student... |
Quote:
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. |
Quote:
setani=changing animation of player |
Quote:
|
| 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.