SRL Archive - RuneScape News and General

Squeal of Fortune X-ing?


Joe

2012-04-15 12:10:51

I was wondering if the SRL developers were considering a procedure that X-es out the Squeal of fortune button.. it couldn't be extremely hard and I was wondering whether or not it was smart for me to pursue this task myself. The squeal of fortune button gets in front of things in the script and may be beneficial to the community to be out of the way…

Neros

2012-04-15 12:13:53

im sure this has already been done, and people just need to implement it, seen it in a few scripts.

Cerylin

2012-04-15 12:14:27

From: JOEbot
I was wondering if the SRL developers were considering a procedure that X-es out the Squeal of fortune button.. it couldn't be extremely hard and I was wondering whether or not it was smart for me to pursue this task myself. The squeal of fortune button gets in front of things in the script and may be beneficial to the community to be out of the way…


It always closes it for me :s, but if you just close it yourself when you log in then it won't come back until you log out.

Joe

2012-04-15 12:26:28

From: Neros
im sure this has already been done, and people just need to implement it, seen it in a few scripts.


I don't mean like MSI.. but a SRL general command to close the SOF

SailorJerry

2012-04-15 12:28:43

There already is one, I've used multiple scripts with it

Total

2012-04-15 12:32:45

Yeah I'm pretty sure it's included in FindNormalRandoms because it does it in my scripts without including anything specific.

Le Jingle

2012-04-15 12:35:27

There is, look under simba > includes > srl > srl > core > antiban. You can't miss it.

Ezio Auditore da Firenze

2012-04-15 12:40:56

From: JOEbot
I was wondering if the SRL developers were considering a procedure that X-es out the Squeal of fortune button.. it couldn't be extremely hard and I was wondering whether or not it was smart for me to pursue this task myself. The squeal of fortune button gets in front of things in the script and may be beneficial to the community to be out of the way…


function ExitSquealOfFortune(): boolean;
var
w, h, x, y, xs, ys, xe, ye, tmpCTS: integer;
begin
if (SRL_ExitedSquealOfFortune) then
exit;

tmpCTS := getColorToleranceSpeed();
setColorToleranceSpeed(1);

getClientDimensions(w, h);

// green color of the goblin thing
if (findColorTolerance(x, y, 7457955, 1, 1, w - 1, h - 1, 15)) then
begin
// to avoid out of bounds warnings
xs := x;

ys := (y - 30);
if (ys < 0) then
ys := 1;

xe := (x + 100);
if (xe > w) then
xe := (w - 1);

ye := (y + 30);
if (ye > h) then
ye := (h - 1);

// gold color in the X
if (findColorTolerance(x, y, 4770302, xs, ys, xe, ye, 15)) then
begin
mouse(x, y, 3, 3, mouse_Move);

if (waitUptext('elect', 300)) then
begin
getMousePos(x, y);
mouse(x, y, 0, 0, mouse_Left);
result := true;
SRL_ExitedSquealOfFortune := true;
end;
end;
end;

setColorToleranceSpeed(tmpCTS);
end;

Taken from: C:\Simba\Includes\SRL\srl\core\antiban

Credits to Coh3n.

Joe

2012-04-15 13:22:09

From: Jonnothe1337
function ExitSquealOfFortune(): boolean;
var
w, h, x, y, xs, ys, xe, ye, tmpCTS: integer;
begin
if (SRL_ExitedSquealOfFortune) then
exit;

tmpCTS := getColorToleranceSpeed();
setColorToleranceSpeed(1);

getClientDimensions(w, h);

// green color of the goblin thing
if (findColorTolerance(x, y, 7457955, 1, 1, w - 1, h - 1, 15)) then
begin
// to avoid out of bounds warnings
xs := x;

ys := (y - 30);
if (ys < 0) then
ys := 1;

xe := (x + 100);
if (xe > w) then
xe := (w - 1);

ye := (y + 30);
if (ye > h) then
ye := (h - 1);

// gold color in the X
if (findColorTolerance(x, y, 4770302, xs, ys, xe, ye, 15)) then
begin
mouse(x, y, 3, 3, mouse_Move);

if (waitUptext('elect', 300)) then
begin
getMousePos(x, y);
mouse(x, y, 0, 0, mouse_Left);
result := true;
SRL_ExitedSquealOfFortune := true;
end;
end;
end;

setColorToleranceSpeed(tmpCTS);
end;

Taken from: C:\Simba\Includes\SRL\srl\core\antiban

Credits to Coh3n.


Thanks everyone.. I guess I will not be pursuing this :(
PS. I did look in the includes, guess I musta missed it..

Andres

2012-04-15 20:26:20

Every script I've used has done this automatically.