SRL Archive - RS3 Outdated / Broken Scripts

My Trade Procedure, Function


Ransom

2006-11-19 19:01:14

While making my player to player merchant i was dismayed at the lack of procedures and functions. So i made 2 of my own to share with the world.


{Function FindTheTrade
By: Ransom
Description:
Returns True if purple trade color
is in the chat window}

Function FindTheTrade : Boolean;
var xx, yy : integer;
begin
if (FindColor(xx,yy,8388736,20,355,425,430) = True) Then
result := True;
end;

and

{Procedure OpenTrade;
By: Ransom
Description
Opens Trade by clicking trade chat
in chat window}

Procedure OpenTrade;
var cx, cy : integer;
begin
if (FindColor(cx,cy,8388736,20,355,425,430) = True) Then
begin
Wait(500);
CMouse(cx+10,cy+3,0,0,True);
Wait(500);
end;
end;


Hope they provide useful!

Ransom

Wrycu

2006-11-19 19:09:17

I probably wont use it, but im sure this will be very usefull to someone.

Infantry001

2006-11-19 19:14:16

this is already in SRL\SRL\misc\trade.scar, but good effort

Ransom

2006-11-19 19:23:14

From: Infintry001
this is already in SRL\SRL\misc\trade.scar, but good effort


Nah the ones there don't work very well. The trade chat must be in the last line (nearly impossble in busy situations) and there is no function like mine …. but good effort. Don't Patronize me

masquerader

2006-11-19 19:47:47

have you tried turning chat to hide?

Ransom

2006-11-19 19:50:59

yes…
didn't like it…
thats why i made these…

lelle

2006-11-25 11:55:30

What does this script actually do? can someone exlpain?

roM3

2006-12-14 16:18:45

From: lelle
What does this script actually do? can someone exlpain?


If u find trade in ur chat window…it'll click for u…:D..to make trading with the one who offer u something…

looneytoon

2007-01-13 13:08:18

this is an old post i know… just wanted to let you know this is exactly what i was looking for, and do you mind if i use it in my new script. ill give you credits