SRL Archive - OSR Help

Banking


AideniRS

2012-04-06 10:33:38

Alright so, Im brand new to this and I really dont know much but anyway..

I had banking working last time I was testing things and now when ever I try to run/test something the mouse goes to the left ish side of the screen and stops, and thats all it does when I try to make it find the bank booth, any help?

program BankTesting;
{$i srl/srl.simba}
{$i sps/sps.simba}


Procedure BankAndWithdraw;
Var
x, y: integer;
Begin
SetUpSRL;
if FindObj(x, y, 'ank', 3625827, 15) then
Mouse(x, y, 2, 2, true);
Wait(3000);
withdrawex(1, 0, 25, ['essence', 'pure']);

end;


begin
SetupSRL;
ActivateClient;
BankAndWithdraw;
end.

Flight

2012-04-06 10:47:13

Have you tried simply using some of SRL's pre-made banking functions? You can explore and see what's available in Includes > SRL > srl > core > bank.simba.

AideniRS

2012-04-06 10:52:56

From: Flight
Have you tried simply using some of SRL's pre-made banking functions? You can explore and see what's available in Includes > SRL > srl > core > bank.simba.
Yeah, its at lunar bank, I dont think any of them worked but I could be doing something wrong.

lilcmp1

2012-04-06 10:59:22

From: AideniRS
Yeah, its at lunar bank, I dont think any of them worked but I could be doing something wrong.



Well there is no preset functions for moon bank but you could try openbanknpc. I think the method you are using works just fine though but I would use FindObjEx() so you can use a string of colors and set a window to look in. When banking at moon bank I have about 6 colors it can look for.