SRL Archive - RS3 Outdated / Broken Scripts

Just look, cant think of a name.


chuck chuckie

2007-03-24 04:00:20

Well i got an awsome auto talker, but sitting there just pressing the hotkeys is very boring so i get distracted by the TV and miss Trades.

I was wondering if a script could run, and when a trade is offered to me, it trades that

+

(THIS MIGHT NOT BE ABLE TO WORK) A sound is played. Like the second it trades a sound is played on my computer, it can be any sound just whatever file is selected as the hotkey sound.

Is this posible?

Ramage

2007-03-24 04:35:14

Yes it is possible, you can use the built-in procedure:
procedure PlaySound(FileName: string); - play the specified WAV file.
to make one.

I might be able to make one for you once I get some sleep :(

chuck chuckie

2007-03-24 05:19:43

KOOL!! Thanks mate!

chuck chuckie

2007-03-25 05:55:44

anyone else think they can do it?

Abyssal

2007-03-25 18:47:25

Here's a procedure that will trade a person trading you.



{.include SRL\SRL.scar}

procedure ClickTrade;
var
TradeColor, a, b: Integer;
begin
if (FindColorSpiralTolerance(a, b, 8388736, 20, 350, 580, 440, 3)) then
MMouse(a, b, 0, 0);
end;


It should work :o

Ramage

2007-03-26 04:19:45

I forgot all about this >.< Exams kill your brain D: Sorry!
I'll make one now….
program TradeAlerter;
{.include SRL\srl.scar}
{.include SRL\SRL\misc\trade.scar}

// Setup
const
YourMessage = 'Buying Chaos 300gp ea!'; // Message to type
WavName = 'Garfield';

begin
SetupSRL;
ActivateClient;
repeat
Typesend(YourMessage);
wait (350+random(650))
until(AcceptTrade)
PlaySound(WAVName);
Writeln('Come back from TV!')
end.

Is this what you wanted?

It is NOT Tested… I think you should have the WAV file either at the root SCAR directory or where the script is, I have no idea.

PS. Added the WAV file I used in an attachment, my speaker isn't working but I hope it's something good… :/