I'm making a Music System, this is what I have so far:
if (c.absX >= 3205 && c.absX <= 3216 && c.absY >= 3209 && c.absY <= 3229) { c.outStream.createFrame(74);//Lumbridge c.outStream.writeWordBigEndian(76);//76 is the ID of the music.
How can I make it so it loads specific .midi files from the cache:
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)//This asks it to load and play the midi (Not really, it's just the example to help you understand).
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.
How can I make it so it loads the .midi files from the cache and plays them.
-Thanks.