SRL Archive - OSR Help

Total newb Identifier expected error


ALoneCactus

2015-01-11 02:59:58

Hey guys and girls, i'm working on my first script and i've completed it. I'm in the proofreading/error fixing stage and i've encountered a problem that my eyes cant seem to fix.

My appologies if this is a rookie error!

[PHP]procedure BankPotato;

begin
if not LoggedIn() then
exit;
if not R_BlindWalk(point(3092, 3245)) then
begin
TerminateScript;
end;
if FindObjCustom(x, y, ['ooth'], [4541265, 4742251, 1391697, 206648] , 5) then
begin
MMouse(x, y, 5, 5);
if (IsUpTextMultiCustom(['ooth'])) then
ClickMouse2(mouse_left);
wait(randomrange(750, 2000));
DepositAll;
until(InvCount=0);
end;
end;
[/PHP]

Only part i've been struggling with is banking. :P
Thanks for your time!! :duh:

Frement

2015-01-11 03:02:47

Missing a begin after IsUpTextMultiCustom() then?

Also, are you the next Wetish?

ALoneCactus

2015-01-11 03:07:56

No luck, i thought maybe i missed a bracket of sorts but i'm completely dumbfounded :(

I'm afraid i have no idea what that is!

The Mayor

2015-01-11 03:09:06

It will be the until without a repeat


procedure BankPotato();
begin
if not LoggedIn() then
exit();

if not R_BlindWalk(point(3092, 3245)) then
terminateScript();

repeat
if findObjCustom(x, y, ['ooth'], [4541265, 4742251, 1391697, 206648], 5) then
begin
MMouse(x, y, 5, 5);
if (IsUpTextMultiCustom(['ooth'])) then
begin
ClickMouse2(mouse_left);
wait(randomrange(750, 2000));
DepositAll();
end;
end;
until InvCount = 0;
end;

ALoneCactus

2015-01-11 03:17:22

Re read what you posted mayor, got it working. :)

Thanks a bunch!

Hoodz

2015-01-11 04:15:04

From: ALoneCactus
Re read what you posted mayor, got it working. :)

Thanks a bunch!


Be careful with infite loops there.

ALoneCactus

2015-01-13 02:44:58

I ended up re doing it as i couldn't stand it anyways haha, thanks hoodz for the caution.