SRL Archive - OSR Help

Help with banking


Success

2014-07-21 07:06:44

Hey everyone! So I'm trying to use the Warrior Guild Bank using reflection banking. Any help please?
Here's my code:
procedure BankThings;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);

If OpenBank('wgb', true, true) then
begin
Wait(2000);
DepositAll;
Wait(1000);
Withdraw(0, 0, 1);
Wait(1000);
Withdraw(0, 1, 1);
Wait(1000);
CloseBank;
Wait(2000);
end;
end;

Everytime I run the script I get this error:
Reflection succesfully setup!
** Warning in OpenBankQuiet: Unknown bank: wgb **
** Warning in OpenBankQuiet: Unknown bank: wgb **

Turpinator

2014-07-21 09:13:06

From: Success
Warrior Guild Bank using reflection banking.


Reflection has no banking in it, youre using srl-osr.

OpenBank() which calls OpenBankQuiet() does not support wgb.
It does also call OpenBankFast() which supports wgb. it would be suggested to use that or a openBankNPC type function.

warn·ing
?wôrniNG
noun
a statement or event that indicates a possible or impending danger, problem, or other unpleasant situation.
"a warning about heavy thunderstorms"
synonyms: example, deterrent, lesson, caution, exemplar, message, moral More
cautionary advice.
"a word of warning—don't park illegally"
synonyms: caution, advisory, notification, information;

er·ror
?er?r
noun
a mistake.
"spelling errors"
synonyms: mistake, inaccuracy, miscalculation, blunder, oversight; More
the state or condition of being wrong in conduct or judgment.
"the money had been paid in error"
synonyms: wrongly, by mistake, mistakenly, incorrectly;


See the difference?

Success

2014-07-27 14:35:50

From: Turpinator
Reflection has no banking in it, youre using srl-osr.

OpenBank() which calls OpenBankQuiet() does not support wgb.
It does also call OpenBankFast() which supports wgb. it would be suggested to use that or a openBankNPC type function.




See the difference?


Thanks for replying so quickly! But I tried to use openBanknpc and openBankFast and they didn't seem to work to well for this bank or npc. I was looking at it and it seems to search by color of the bank npc, this one isn't the right blue or grey which it searches for. So I just used a simple FindObjCustom. Though this works, the functions "DepositAll" and "Withdraw" aren't working either. Is this because reflection isn't working with banking or what?

Turpinator

2014-07-27 19:07:13

works fine.
  for i := 0 to random(12) do
withdraw(random(8), random(6), random(3) + 1);
depositAll;

reflection doesnt work with banking because it doesnt have banking.