View Full Version : OpenBankQuiet('feb')
NewToAutoing
06-01-2007, 09:39 PM
I've been getting a problem with it that kind of messes up my script. Basicallly, if my character isn't within 1 square of the booth it moves the mouse to the open door by the bank (kind of hard to explain) I think it has something to do with the highest angle view of the booth looks similar to the view of the bank doors. Is there anything i can do to fix this, or another procedure/function for opening the bank that doesn't do this?
Edit: Tried OpenBankGlass, seems like it works better. If anyone suggest i use something else though, please let me know.
Smartzkid
06-01-2007, 09:47 PM
I assume that you're using HighestAngle?
Two suggestions:
-Try using LowestAngle;
-Try using MakeCompass('S');
(both before you use openbanksilent)
WT-Fakawi
06-01-2007, 10:20 PM
Try: OpenBank3.
NewToAutoing
06-02-2007, 03:49 AM
I think LowestAngle is broken for me..Cause it either does nothing or it makes it the lowest angle and then straight back to the highest angle..But Openbank3 works so i'll use that, thanks!
PwNZoRNooB
06-02-2007, 05:26 AM
Maybe you should delete the HighestAngle from the script so that it just puts LowestAngle? :)
me_ntal
06-02-2007, 05:30 AM
Your going to regret that name,
Look at the other banking procedures in bank.scar, Open 3 as suggested works well. Also you could use a bitmap
Wizzup?
06-02-2007, 06:54 AM
I've been getting a problem with it that kind of messes up my script. Basicallly, if my character isn't within 1 square of the booth it moves the mouse to the open door by the bank (kind of hard to explain) I think it has something to do with the highest angle view of the booth looks similar to the view of the bank doors. Is there anything i can do to fix this, or another procedure/function for opening the bank that doesn't do this?
Edit: Tried OpenBankGlass, seems like it works better. If anyone suggest i use something else though, please let me know.
Glass ftw.. :)
I'm updating it to work even faster.. :)
Wizzup?
06-02-2007, 08:24 AM
wizzup, can your miner possibly go any faster...lol
Well the essence minuer uses OpenBankGlass too.
NewToAutoing
06-02-2007, 08:31 AM
If you mean my screenname, then yeah i already regret it :p I guess it'll be fun to laugh at later though
I switched to OpenBank3 but OpenBankGlass works good too so now i don't know which to use, lol. As of now my script has OpenBank3 in it though, dunno if i should switch it or not.
PwNZoRNooB
06-04-2007, 08:43 PM
OpenBankGlass didn't work for me in the new varrock because of the candles, so I made a option to choose where my auto superheater smelts the ores (h) :D
WT-Fakawi
06-04-2007, 09:14 PM
I adjusted OpenBankQuiet('feb'). It works better and faster since the "slice" is a portion of the window now. see below.
We are all experiencing the same kind of trouble. Our conclusion is that is related to UpText, somehow IsTextInAreaEx (the heart of all OCR) isnt properly functioning. At least....sometimes it does, sometimes it doesnt.
We have a few hypothesis on the UpText-issue...
- Its a DIVI thing. But Freddy1990 hasnt touched any of the OCR related functions, so unlikely
- Its a wider Horizontal Spread. Unconfirmed, but possible explanation why all objectfinders work 50% atm.
- Its a vertical shift. Unconfirmed too.
- These changes happen around the time Varrock was updated. Nobody has noticed anything unusual.
Its puzzling.... We need some answers here :)
function OpenBankQuiet(WhichBank: string): Boolean;
var
TheCounter, dx, dy, tol, Mark2, Mark3: Integer;
acc, accthres: Extended;
begin
case WhichBank of
'feb': TheCounter := BitmapFromString(1, 10, '6C583296897A948779948779736' +
'C63A59E968C7F6F9686749B8A7685663E');
// fally east
{ 'feb': TheCounter := BitmapFromString(1, 43, '252323554227644D' +
'2D6E55337B5F3A7B5F3A6E5A336E5A3396897994877892867 7928' +
'677756D6383786A8D7F6F9586719C8B7687683F8C6D42896E 4D80' +
'68498068497D65487D65487A63467A6346776145776145755 F437' +
'55F436E5533715735775C38775C387762388F6F43816A3B7E 683A' +
'816A3B9276547E683A846C3D746036');
} // fally west
'fwb': TheCounter := BitmapFromString(1, 29, '98887381' +
'633B87683F7D6548836A4A7D65487D65487A63467A63467A6 3467' +
'76145776145755F43755F436B52316B52316E553371573577 5C38' +
'A1835C9F815B8C6D428C6D428C6D428C6D427B643A7B643A7 4603' +
'68B866F');
// varrock west
'vwb': TheCounter := BitmapFromString(30, 1, 'z78DA333530B' +
'130B1304521413484044218DB05C6868A1A98184144CC0C4D 5C8C' +
'8C9149134B6333034B9C24C24C98692011430C930DA1A48BB 1235' +
'0171209001C2C2544');
// varrock east
'veb': TheCounter := BitmapFromString(30, 1, 'z78DA6DC' +
'E5D0A80300C03E02BCDD92EE9E3DCF0FE4732EC077D90908F 5228' +
'9460E689AEDC0C35D13E068DCEAA6E5DDB34E7E2D6524C1D9 6B7E' +
'5B0D0DCCCFF1CF70945095C92CBAE56E6F1C972C4DEE04645 7B00' +
'D4FB2728');
// draynor and this works too for alkharid
'akb', 'db', 'eb': TheCounter := BitmapFromString(34, 1, 'z78DA658E4B0' +
'E80300844AF34FCB45DAA70FF2B89B40B12339997F0C980BA 5C98' +
'06837A7AE828CE74551F77FF51CBCD1FC5D90136961428281 6E59' +
'683EF94207AF2BA55C9948672BFB2FB7D5A1F6E8A10D0C927 4552' +
'39FD022AE92A73');
end;
MarkTime(Mark3);
tol := 1;
accthres := 0.6;
repeat
if IsUpTextMulti('ank', 'Bo', 'ot') then
begin
GetMousePos(dx, dy);
Mouse(dx, dy, 0, 0, False);
if ChooseOption(dx, dy, 'uickly') then
begin
MarkTime(Mark2);
repeat
Wait(10);
if TimeFromMark(Mark2) > 20000 then
begin
WriteLn('couldnt find the bank. Exiting');
Break;
FreeBitmap(TheCounter);
Exit;
end;
until BankScreen;
FreeBitmap(TheCounter);
Exit;
end;
end;
FindDeformedBitmapToleranceIn(TheCounter, dx, dy, MSX1 + 50, MSY1 + 50, MSX2
- 50, MSY2 - 50, tol, 4, True, acc);
if (acc >= accthres) then
begin
MMouse(dx, dy, 0, 0);
if IsUpTextMulti('ank', 'Bo', 'ot') then
begin
GetMousePos(dx, dy);
Mouse(dx, dy, 0, 0, False);
if ChooseOption(dx, dy, 'uickly') then
begin
MarkTime(Mark2);
repeat
Wait(10);
if TimeFromMark(Mark2) > 20000 then
begin
WriteLn('couldnt find the bank. Exiting');
FreeBitmap(TheCounter);
Exit;
end;
until BankScreen;
end;
Result := True;
FreeBitmap(TheCounter);
Exit;
end;
end;
Wait(100);
FindNormalRandoms;
tol := tol + 4;
if tol >= 20 then
begin
tol := 1;
accthres := accthres - 0.1;
if accthres < 0.2 then
begin
WriteLn('couldnt find the bank. Exiting');
FreeBitmap(TheCounter);
Exit;
end;
end;
until TimeFromMark(Mark3) > 60000;
FreeBitmap(TheCounter);
end;
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.