I'm making a Music System, this is what I have so far:
Code:
if (c.absX >= 3205 && c.absX <= 3216 && c.absY >= 3209 && c.absY <= 3229) {
c.outStream.createFrame(74);//Lumbridge
c.outStream.writeWordBigEndian(76);
How can I make it so it plays specific .midi files that I place in the cache:
Code:
if (c.absX >= 3205 && c.absX <= 3216 && c.absY >= 3209 && c.absY <= 3229) {
c.outStream.createFrame(74);//Lumbridge
c.outStream.playMidi(./cache/midi/Harmony.midi);
That's just an example, but I hope you understand what I am trying to say. I've tried everything. And I am in need of some help.
-Thanks.