
Originally Posted by
Sandstorm
If not Radialwalk(54256, 0, 90, 70, -1, -1) then
If not Radialwalk(21346, 0, 80, 70, -1, -1) then
If not Radialwalk(92345, 0, 70, 70, -1, -1) then
If not Radialwalk(23455, 0, 60, 70, -1, -1) then
logout
else
Dothisstuff;
~Sandstorm
that won't work because the else will only work for the last if.
there's a few ways to do it.
SCAR Code:
procedure walkthis;
var Found: boolean;
begin
Found := true;
If not Radialwalk(21346, 0, 80, 70, -1, -1) then
If not Radialwalk(92345, 0, 70, 70, -1, -1) then
If not Radialwalk(23455, 0, 60, 70, -1, -1) then
begin
LogOut;
Found := False;
end;
if Found then
begin
...
end;
end;
or you can use exit (depending on what you might have after / before)
SCAR Code:
procedure walkthis;
begin
If not Radialwalk(21346, 0, 80, 70, -1, -1) then
If not Radialwalk(92345, 0, 70, 70, -1, -1) then
If not Radialwalk(23455, 0, 60, 70, -1, -1) then
begin
LogOut;
exit;
end;
//the rest comes here
end;
~RM