~AlphaFlame~
If you make an instrument script... for the love of god, don't use if (keydown(1)) and if (keydown(2)) and so on x.x
If you want a nice script... ah hell, here...
NPC Code:
if (playertouchsme){
toweapons ¤ Ocarina;
}
if (weaponfired || keydown(4) && strequals(#w,¤ Ocarina)){
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 ocarina#v(i+1).wav;}
if (keydown(i) && keydown(5)){play ocarina#v(i+5).wav;}
}
timeout=.05;
}
This is, of course, assuming you have the .wav files of ocarina1 through ocarina8... you can modify the instrument, just make sure they all end in a number from 1-8
And to do instruments, I suggest doing something as simple as getting:
a) Good midi sound card
b) Good sound recording program
And then hooking the in/out sound ports together and recording the midi into a .wav
*sits back and waits for Kaimetsu to point something out that he did wrong or not exactly perfect in script*