SRL Archive - News and General

FFlag Fix.


Tniffoc

2009-05-28 00:05:10

After the runescape update, FFlag was broken. This is an ALPHA fix. It works with the flag colors that are currently there. If this color turns out to not be static, I"ll go and change it to an autocolor. AFAIK, it is static though. Anyway.. here is the fix.

{*******************************************************************************
function FFlag(Dist: Integer): Boolean;
By: Wizzup? / WT-Fakawi / ZephyrsFury recent fix by Tniffoc
Description: Waits until Flag is within "Distance" distance.
*******************************************************************************}

function FFlag(Dist: Integer): Boolean;
var
Tx, Ty, M, D1, D2: Integer;
begin
Result := False;
M := GetSystemTime;
while (FindColor(Tx, Ty, 9764763, MMX1, MMY1, MMX2, MMY2)) do
begin
D1 := Distance(Tx + 1, Ty + 15, MMCX, MMCY);
if (D1 <= Dist) then
begin
Result := True;
Exit;
end;
Wait(100);
if (GetColor(6, 6) <> 16777215) then
if (GetSystemTime - M > 5000) then
begin
if (D1 = D2) then Exit;
D2 := D1;
M := GetSystemTime;
end;
if (Random(20) = 0) then IdleTime(500, 1000, 0.01);
if SRL_Procs[SRL_AntiBan] <> nil then
SRL_Procs[SRL_AntiBan]();
end;
Wait(RandomRange(200, 400));
end;

NCDS

2009-05-28 00:29:08

I'm pretty sure it was fixed already..?

It work's fine for me..

Shuttleu

2009-05-28 00:34:36

how was it broken?

~shut

Pietz0r

2009-05-28 00:35:43

the flag colors have been changed… thats why.

noidea

2009-05-28 00:51:16

From: NCDS
I'm pretty sure it was fixed already..?

It work's fine for me..


No, I just made some stuff, to hopefully try and get it into the Flag stuff. Alot more than FFlag is broken (Flag wise).

Pietz0r

2009-05-28 00:53:02

And this doent work either btw I tried XD

Shuttleu

2009-05-28 02:31:38

your using that greenish colour from the flag

~shut

Blumblebee

2009-05-28 02:33:44

thank god i thought it was just me and i was like fuuuck my scripts ruined.

Rasta

2009-05-28 03:45:23

Won't work because static is messed up due to the flag changing color

Tniffoc

2009-05-28 16:47:59

Hmm.. I'm going to try to autocolor the green color. an update will be released later.

Shuttleu

2009-05-28 16:54:44

the green color is static

~shut

Tniffoc

2009-05-28 17:06:49

Oh. That's not a good thing. Why is it messing up for people then? I tested it when I created it!

marpis

2009-05-28 20:59:07

i think this should be done using bitmap or dtm. it would be so small that it wouldnt be slow at all.. neither would it eat ram

PriSoner

2009-05-28 21:19:13

This has already been fixed. FlagChat.scar Fix and it's working perfectly for me with SCAR 3.20d

It has also been updated in the OpenDeveloper SRL so you may just wish to use that.