Laimonas171
08-29-2009, 07:39 PM
Can anyone show good and easy tut about progress reports. or show simple how to do. I quick understood it. don't need very intermediate example.
code for exampe.
program FM;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/skill/Firemaking.scar}
{.include SRL/SRL/misc/Reports.scar}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := 'Yxxxx'; //Username
Players[0].Pass := 'ssss'; //Password
Players[0].Nick := 'xxxx'; //sern
Players[0].Active := true; //leave it
Players[0].BoxRewards := ['XP', 'ostume', 'oins', 're']; //reward from randoms
end;
Procedure forExampleBankFind;
var x, y: integer;
begin
if FindSymbol(x, y, 'bank') then
begin
Mouse(X, Y, 5, 5, True);
FFlag(0)
end;
end;
Procedure Proggy;
begin
ClearDebug;
WriteLn('Bank symbols finds: ' + bankfinds); // or something like that.
WriteLn('Worked for: ' + Hours + ':' + Minutes + ':' + Seconds + '.')
end;
Procedure MainLoop;
begin
ForexampleBankFind;
Proggy;
end;
Begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
ClearDebug;
MainLoop;
end.
code for exampe.
program FM;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
{.include SRL/SRL/skill/Firemaking.scar}
{.include SRL/SRL/misc/Reports.scar}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := 'Yxxxx'; //Username
Players[0].Pass := 'ssss'; //Password
Players[0].Nick := 'xxxx'; //sern
Players[0].Active := true; //leave it
Players[0].BoxRewards := ['XP', 'ostume', 'oins', 're']; //reward from randoms
end;
Procedure forExampleBankFind;
var x, y: integer;
begin
if FindSymbol(x, y, 'bank') then
begin
Mouse(X, Y, 5, 5, True);
FFlag(0)
end;
end;
Procedure Proggy;
begin
ClearDebug;
WriteLn('Bank symbols finds: ' + bankfinds); // or something like that.
WriteLn('Worked for: ' + Hours + ':' + Minutes + ':' + Seconds + '.')
end;
Procedure MainLoop;
begin
ForexampleBankFind;
Proggy;
end;
Begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
ClearDebug;
MainLoop;
end.