SRL Archive - SRL Archives

ShopScreen is broken !


Floor66

2008-12-11 02:46:57

Hey guys,

Since the 09/10 update, SRL's ShopScreen is broken.
JaGeX has moved something by 1px again ;p
Not-working:


{*******************************************************************************
function ShopScreen: Boolean;
By: masquerader
Description: Returns true if a shop interface is opened.
*******************************************************************************}

function ShopScreen: Boolean;
begin
Result := (GetColor(248, 303) = 2070783);
end;

Fixed:


{*******************************************************************************
function ShopScreen: Boolean;
By: masquerader
Description: Returns true if a shop interface is opened.
*******************************************************************************}

function ShopScreen: Boolean;
begin
Result := (GetColor(249, 303) = 2070783); // They moved the text 1px
end;

Just wanted to make note ^^

ZephyrsFury

2008-12-11 04:22:52

Nice, I'll add this to the dev svn. Thanks for pointing it out and fixing it.

Wizzup?

2008-12-11 05:51:15

From: ZephyrsFury
Nice, I'll add this to the dev svn. Thanks for pointing it out and fixing it.


You might aswell want to use FindTextIn? (FindColors + TPAInTPA).
It might be a bit slower, but it will be broken less fast. (Like BankScreen)

ZephyrsFury

2008-12-11 07:08:38

From: Wizzup?
You might aswell want to use FindTextIn? (FindColors + TPAInTPA).
It might be a bit slower, but it will be broken less fast. (Like BankScreen)


Lol ok. FindTextTpa it is.