SRL Archive - SRL Archives

100% Fast Working GE Functions


NCDS

2009-03-25 19:47:10

So far all I did was:


{*******************************************************************************
function GEScreen : Boolean;
by: NCDS
Description: Finds Grand Exchange Screen. Returns true if Found.
*******************************************************************************}

{*******************************************************************************
function OpenGE : Boolean;
by: NCDS
Description: Opens Grand Exhange. Return's True if Opened.
*******************************************************************************}

{*******************************************************************************
function CloseGE : Boolean;
by: NCDS
Description: Closes Grand Exchange Window. Returns True if Closed.
*******************************************************************************}


They all work 100% and seem to be working extremely fast.

Cazax

2009-03-25 19:55:19

Grand Exchange functions should be in Misc folder, since they are exclusively used in some cases. Post the functions, I can't see them :p

NCDS

2009-03-25 20:02:38

oops sry I forgot to upload them :p

All fixed now.

Smarter Child

2009-03-25 20:28:25

Lol, nice functions, did you use SCAR Assistant?

Cazax

2009-03-25 21:16:49

Suggestions:

- GEScreen: Wouldn't a GetColor be faster? There must be a static pixel somewhere in the screen.
- CloseGE:
end else
MarkTime(T);
There is no need to continue the function if there is not GE screen open, since it's closed.

NCDS

2009-03-25 21:59:32

From: Cazax
Suggestions:

- GEScreen: Wouldn't a GetColor be faster? There must be a static pixel somewhere in the screen.
- CloseGE:
end else
MarkTime(T);
There is no need to continue the function if there is not GE screen open, since it's closed.

Get Color may be Faster, I just used a Text TPA because thats what is used in Bank.scar. It works instantly anyways.

The MarkTime(T); stuff is in there to handle people who deal with a bit of Lag.


From: Da 0wner

{*******************************************************************************
function CloseGE : Boolean;
by: NCDS
Description: Closes Grand Exchange Window. Returns True if Closed.
*******************************************************************************}
function CloseGE : Boolean;
begin
if not GEScreen then exit;
Mouse(485, 41, 8, 9, True);
Wait(200);
result := (not GEScreen);
end;

??


…No?

Tniffoc

2009-03-25 23:21:51

In CloseGE, I would change the clicking from Mouse to MouseBox. Would be a ton less bannable.

NCDS

2009-03-25 23:47:25

I have never really experimented with MouseBox, but I will check that out right now and change it.

EDT: Fixed!