Yes, i found this function at footballjds script and so i give credit to him. So i know there are problems to people with this Function and i'm thinking what's wrong with it. Everyone seems to get 0WalkBack Failed Error| Fatel = True
And Error 0Opening Bank Error| Fatel = True. Here is link to both of his fletching scripts that have the same function in them.
Stringer = http://www.villavu.com/forum/showthread.php?t=23779
Fletcher = http://www.villavu.com/forum/showthread.php?t=25093
Here is the function:
SCAR Code:
function OpenPCBank : boolean;
var
DTM, x, y, time : integer;
angle : extended;
begin
MakeCompass('n');
DTM := DTMFromString('78DA63B4606460B8CB8002EA8AC3184480342' +
'394CF680F64DDC1ADE63F1030C60059FF207222503587574B3288' +
'2199030058350BF7');
MarkTime(time);
if not findDTMRotated(DTM, x, y, 224, 162, 452, 278, radians(30), Radians(30), 0.05, angle)then
begin
Writeln('blah');
Writeln(IntToStr(TimeFromMark(time)));
FreeDTM(DTM);
EXIT;
end;
FreeDTM(DTM);
Writeln(IntToStr(TimeFromMark(time)));
MMouse(x, y, 3, 4);
wait(50);
if not(IsUpTextMultiCustom(['ooth', 'ank', 'k bo', 'se Ba'])) then EXIT;
Mouse(x, y, 4, 4, False);
wait(350 + random(250));
ChooseOption('quickly');
wait(400);
FFlag(0);
wait(500 + random(240));
Result := BankScreen;
MMouse(MSCX, MSCY, 120, 120);
end;
So whats wrong in it? So when the error occurs, the cursor doesn't even go on the bank booth, but searches somewhere around a Stool at PC bank.
P.S The error might be in some other part in the script, but i think it's with this function.