SRL Archive - Jr. Member General Help and Discussion

I think DepositBox.isopen is broken


Element17

2014-07-06 13:44:26

I run this


if (depositBox.isOpen()) then
writeln('It''s open!');


and it never prints to the debug box.

however this does print


function statDepositBox(): boolean;
var
x, y: integer;
b, b1: TBox;
TPA, TPA1: TPointArray;
begin
if not isLoggedIn() then
exit;
//b := IntToBox(168, 68, 420, 78);
b1 := IntToBox(455, 65, 467, 78);
if findColorsTolerance(x, y, TPA, 395622, b1, 5, colorSetting(2, 0.18, 1.06)) then // red box top left
//findColorsTolerance(x, y, TPA1, 628150, b, 14, colorSetting(2, 0.03, 0.68)) then //yellow text
begin
//writeln('Found both colors!');
writeln('DepositBox is open');
end;
end;

Depositbox is open

I guessing the colors need to be updated

The Mayor

2014-07-06 16:31:12

From: Element17
I run this


if (depositBox.isOpen()) then
writeln('It''s open!');


and it never prints to the debug box.

however this does print


function statDepositBox(): boolean;
var
x, y: integer;
b, b1: TBox;
TPA, TPA1: TPointArray;
begin
if not isLoggedIn() then
exit;
//b := IntToBox(168, 68, 420, 78);
b1 := IntToBox(455, 65, 467, 78);
if findColorsTolerance(x, y, TPA, 395622, b1, 5, colorSetting(2, 0.18, 1.06)) then // red box top left
//findColorsTolerance(x, y, TPA1, 628150, b, 14, colorSetting(2, 0.03, 0.68)) then //yellow text
begin
//writeln('Found both colors!');
writeln('DepositBox is open');
end;
end;

Depositbox is open

I guessing the colors need to be updated


On phone so I'll just post link. See my post half way down
https://villavu.com/forum/showthread.php?t=109236

CRASH_OVERRIDE

2014-07-07 04:52:06

I asked about this before here: https://villavu.com/forum/showthread.php?t=109236&highlight=

You asked Olly to update it Mayor, i don't think he did.

The Mayor

2014-07-07 06:31:09

From: CRASH_OVERRIDE
I asked about this before here: https://villavu.com/forum/showthread.php?t=109236&highlight=

You asked Olly to update it Mayor, i don't think he did.


Have you updated your SRL in the last 8 hours? :p

CRASH_OVERRIDE

2014-07-07 07:53:14

Yeah :) I haven't tried this since then though haha nice!.

Element17

2014-07-07 13:14:45

Hey I updated SRL but it still doesn't see that the deposit box is open.

CRASH_OVERRIDE

2014-07-08 02:47:30

^ yeah, tried it last night same thing.

I am currently using Mayors "mayorObjectFinder" function which works well.

Element17

2014-07-08 03:15:30

Yeah. I'm guessing the coords may still be off? I am going to play with it tonight. Yeah I have a ghetto fix for right now. Just would be less lines of code.

The Mayor

2014-07-08 06:34:39

Really? I've tested it like 5 times on both openGL and DirectX and it works… something weird with that deposit box screen. You sure you have updated your SRL6 and got old school layout?

E:



Ashaman88

2014-07-08 09:43:15

It may be his interfaces are moved slightly… since all the other interfaces are dynamic that would be the only pop-up one that would be affected. I'll try and get around to putting in a dynamic one tonight

Element17

2014-07-08 14:19:27

From: The Mayor
Really? I've tested it like 5 times on both openGL and DirectX and it works… something weird with that deposit box screen. You sure you have updated your SRL6 and got old school layout?

E:




Yeah I just doubled checked that I have the correct settings. I updated my include this morning and now it works!!Thanks you guys!