SRL Archive - OSR Help

SMART Client By Default plays startup music


OMGWTFISTHIS

2013-03-05 19:41:27

How do you change it from blaring the old log-in screen music? I'm not sure if there is some sort of settings within a Jagex folder to set this, or if I can set it inside SMART - but I'm tired of clicking a script to run and it playing across my entire house with my speaker system. :|

Ian

2013-03-05 19:43:11

In the windows sound settings you can mute SMART

Justin

2013-03-05 20:49:05


(*
SetAudioOff
~~~~~~~~~~~

.. code-block:: pascal

function SetAudioOff(): boolean;

Turns offs the music on the login screen.
Should default turn off, upon loading old school RS.

.. note::

by Ashaman88/Le Jingle

Example:

.. code-block:: pascal

SetAudioOff;

*)

function SetAudioOff(): boolean;
var
c : integer;
begin
c := CountColor(65536, 725, 463, 760, 498);
// 346 = Turned Off Already
// 284 = Turned On...

result := inrange(c, 340, 350);
if result then
exit
else
Mouse(742, 481, 10, 10, mouse_left);
end;

Just call
SetAudioOff;
after you have
SetupSRL;

OMGWTFISTHIS

2013-03-05 23:20:47

Thanks guys, it worked! :D

Now I don't have to play the glorious music. My keyboard's toggle switch for audio on and off is broken, and so is the volume settings - what an annoyance. xD