SRL Archive - SRL Archives

Deposit box stuff (somethin not seen before)


phantombmx

2006-04-26 03:23:09

i noticed no one ever made somethin for the deposit boxes in banks but i see people use the deposit boxes all the time.. im not sure if all banks have it but hey heres the code.. it could be used for a more human-like banking without involving a pin.. its 3 differents procs/funcs there.. one to see if the deposit screen is open.. one to open it.. one to close it.. things can be added to this whole setup by adding a depositboxall; or somethin like that.. i find it to possibly be useful..
function DepositScreen:Boolean;
var DepositBox :Integer;
begin
DepositBox := BitmapFromString(20, 2, 'z78DA7373B3B43074330' +
'003134B1303631308E90616C72491D590A9DEC2D8D5D8D80DC35E' +
'645D0648009769E4A90700E17034B7');
if(FindBitmapIn(DepositBox, x, y, 260, 30, 315, 50))then
Result:=True
FreeBitmap(DepositBox)
end;

procedure OpenDeposit;
var p :Integer;
begin
if(DepositScreen)then Exit;
MarkTime(p)
if(FindColorTolerance(x, y, 538442, 5, 5, 513, 336, 2))then
begin
MMouse(x, y, 2, 2)
if(Option2('Deposit'))or
(IsUpText('Deposit'))then
begin
Mouse(x, y, 2, 2, false)
ChooseOption(x, y, 'Deposit')
repeat
Wait(1)
until(DepositScreen)or(TimeFromMark(p)>=20000)
end;
end;
end;

procedure CloseDepositbox;
begin
if(DepositScreen)then
Mouse(374, 37, 20, 5, true)
end;

WT-Fakawi

2006-04-26 04:16:40

Nice nice….

Good to see you are so active PhantomBMX!

Maybe try using IsUpTextMulti of FindObjMulti?

IsUpTextMulti('Dep','posi','osit') makes it quicker to find even in white falador :)

Or implement it into OpenBank. Could be redone in combination with 'Bank Banker' too :)

phantombmx

2006-04-26 04:41:00

sure, ill look into adding all that.. uhh the color i chose was a brownish color that was unique.. may move the mouse to a players boots if the light is hittin it weird, but it wont click them.. i can give a test report if you want of how well it does..?

im so active cuz i got nothin to do all day.. im starting to feel like ben prolly did.. nothin to do so you think think think.. jeez he's smart ;)

im tryin to fill in the gaps that srl really hasn't filled.. like some gametab things im lookin into.. this.. umm anything else i notice that isnt in there.. im tryin to submit quite a few things before even applying for dev :rolleyes: