SRL Archive - RS has been updated.

Deposit and bankscreen broken


blabla7

2012-01-14 07:48:42

While executing the following code while in the runescape bank:

if BankScreen then writeln('bankscreen worked');
if not BankScreen then writeln('bankscreen failed');

it kept failing.
i made my own bankscreen, just grabbing a brown pixel which only appears in the bankscreen and then modified deposit with to check my bankscreen function instead of the old broken one. it seemed that the deposit function was broken aswell. it only right clicked the items and then selected nothing ( even though the deposit options were found), might be because of
WaitOptionMulti
.

I think the fonts of all might have been changed. This would explain why the text
Bank
is not found in the Bankscreen and the waitoptionmulti does not function anymore.

Brandon

2012-01-14 10:39:30

Bankscreen does work -___- check your graphic settings..

Font has changed but it's changed back to the "OLD" font.. so it does not affect anything.

Difference: ChooseOption detected "Hartwin" in my zombie script..
After Update: ChooseOption detected "haWmin in my zombie script..

Had to change it to "alk-to Har" etc.. It was found instantly..

ChooseOption and WaitOption use the same fonts just incase your going to say that it's different.. It's not.

The bank text has been the same for ages! Since it's the old font and all. Plus banking is working for me right now :S

blabla7

2012-01-14 11:43:13

From: ggzz
Bankscreen does work -___- check your graphic settings..

Font has changed but it's changed back to the "OLD" font.. so it does not affect anything.

Difference: ChooseOption detected "Hartwin" in my zombie script..
After Update: ChooseOption detected "haWmin in my zombie script..

Had to change it to "alk-to Har" etc.. It was found instantly..

ChooseOption and WaitOption use the same fonts just incase your going to say that it's different.. It's not.

The bank text has been the same for ages! Since it's the old font and all. Plus banking is working for me right now :S



are you kidding me?
i'll check my graphics, but I'm fairly sure they are allright.
thanks for your input!

EDIT:
bankscreen still not working for me. neither is deposit. i have the latest srl and simba.
all my settings are on lowest and brightness is the highest is can be.

P1nky

2012-01-14 12:16:33

From: ggzz
Bankscreen does work -___- check your graphic settings..

Font has changed but it's changed back to the "OLD" font.. so it does not affect anything.

Difference: ChooseOption detected "Hartwin" in my zombie script..
After Update: ChooseOption detected "haWmin in my zombie script..

Had to change it to "alk-to Har" etc.. It was found instantly..

ChooseOption and WaitOption use the same fonts just incase your going to say that it's different.. It's not.

The bank text has been the same for ages! Since it's the old font and all. Plus banking is working for me right now :S


ChooseOption is still broken for me ever since the update of Fonts, ChooseOption('ight'); won't work for me:/
any suggestions?

blabla7

2012-01-14 12:21:31

I reinstalled srl and simba and everything seems to be working for me now.

However, I am getting errors using this code:

SetAngle¶

procedure SetAngle(Angle: Integer);

Sets the mainscreen at highestlowest angle, dependant on constant passed.

Note

by Raymond, edit by NaumanAkhlaQ

Example:

// make the camera the highest!
SetAngle(True);


That comes directelly from
http://docs.wizzup.org/srl-5/mapwalk.html?highlight=setangle

However, when trying:
SetAngle(true);
I am getting:
[Error] (17:17): Type mismatch at line 16

Any help please?

Shuttleu

2012-01-14 12:26:05

change it to
SetAngle(SRL_ANGLE_HIGH);

~shut

VillaVuFTW

2012-01-14 12:26:10

The docs for setangle might not be updated

for SetAngle(true);

change to SetAngle(SRL_ANGLE_HIGH);

EDIT: Damn you shuttle.. Got here before me.. Whatever ;)

blabla7

2012-01-14 12:33:44

From: VillaVuFTW
The docs for setangle might not be updated

for SetAngle(true);

change to SetAngle(SRL_ANGLE_HIGH);

EDIT: Damn you shuttle.. Got here before me.. Whatever ;)


thanks a bunch.

Can you help me out with this error too please?

MouseItem(I,true);  
Returns [Error] (94:26): Type mismatch at line 93

It used to work… And that aswell is stated in the wiki which does not seem updated:p

VillaVuFTW

2012-01-14 12:36:46

Show me the whole lot of the function with the MouseItem.. or send me your script in PM in Simba Code

Shuttleu

2012-01-14 12:38:16

MouseItem(I,1);

~shut

blabla7

2012-01-14 12:47:46

From: Shuttleu
MouseItem(I,1);

~shut


Thanks a bunch!

Brandon

2012-01-15 01:53:28

From: blabla7
are you kidding me?
i'll check my graphics, but I'm fairly sure they are allright.
thanks for your input!

EDIT:
bankscreen still not working for me. neither is deposit. i have the latest srl and simba.
all my settings are on lowest and brightness is the highest is can be.



I've just fixed this over teamviewer for someone on SRL.. Your correct.. ChooseOption Is Broken.. Not sure why my own banking works as it uses that.. :S

But for him it didn't so I edited the bank include and put:


function OpenBankNPC: Boolean;
var
NPCBox :TBox;
Colors, NPCArray :TPointArray;
ATPA: T2DPointArray;
MSNPC, NPCPoint :TPoint;
CTS, C, II, I :Integer;
begin
Result := False;
Result := (BankScreen) or (PinScreen);
If Result then
Exit;
NPCArray := GetMinimapDots('NPC');
If Length(NPCArray) < 1 then
Exit;
SortTPAFrom(NPCArray, Point(MMCX, MMCY));
for I := 0 to High(NPCArray) do
begin
NPCPoint := MMToMS(NPCArray[I])
If NPCPoint = Point(-1, -1) then
Continue;
with NPCPoint do
NPCBox := IntToBox(Max(X - 40, MSX1), Max(Y - 40, MSY1), Min(X + 40, MSX2), Min(Y + 40, MSY2));
If PixelShift(NPCBox, 200) > 500 then
Continue;

CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.13, 1.52);
FindColorsTolerance(Colors, 6067652, NPCBox.X1, NPCBox.Y1, NPCBox.X2, NPCBox.Y2, 13);
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
ATPA := TPAToATPAEx(Colors, 15, 20);
SortATPASize(ATPA, True);

for II := 0 to High(ATPA) do
begin
MSNPC := MiddleTPA(ATPA[II]);
MMouse(MSNPC.X, MSNPC.Y, 3, 3);
If WaitUpTextMulti(['ooth', 'Use','Bank', 'anker', 'ank', 'ooth'], 200) then
begin
//ClickMouse2(False);

wait(randomRange(500, 1000));

if Bankscreen then exit;
if isUptextMultiCustom(['Use','Bank', 'anker', 'ank', 'ooth']) then
begin
ClickMouse2(true);
repeat
wait(500);
ClickToContinue;
until((ClickToContinue = False) and FindNPCChatText('access my bank', ClickLeft) or BankScreen);
end;
//If WaitOptionMulti(['ank B', 'quick'], 600) then
MarkTime(c);
Repeat
Wait(RandomRange(50, 100));
Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
If Result then
Exit;
end;
end;
end;
end;

Works 100% at VWB and any bank that uses NPC's.. It uses ClickToContinue until it finds access bank text.. then it clicks that.. Bank at the bank screen.. It's the only way I can think of atm other than getting someone to fix chooseoption..