SRL Archive - OSR Help

Progress report for private server


stealth1337

2012-07-04 12:49:32

Hey I was just wondering is it possible to make a progress report like the scripts do for runescape

IE: status like, Kills: Exp: Ect….


I tried using this simple progress report on soulsplit, but it seems not to show or do anything am I missing somthing or does it not work?

procedure Proggy;
begin
Writeln('THE HELLA DANK YAK BOT');
Writeln('********************************');
Writeln('We have killed: ' + IntToStr(kill) + ' yaks!');
Writeln('********************************');
Writeln('SMOKE WEED ER DAY GET BOTS ER DAY');
end;

feedback would be nice

Thanks
Stealth,

Runaway

2012-07-04 12:57:04

I think there are a few tutorial threads on progress reports, but I'll give you a little overview of how they work.

If you want to track kills (attacks would be easier, I think) you need to first declare the var. I'll use "Attacked" in this because that is what I would use.


var
Attacked: Integer;

Then whenever you attack a yak in your script, add "Inc(Attacked)" right afterwards:


if AttackYak then
Inc(Attacked);

The Inc() procedure will add a value of 1 to the var that you use as a parameter. So essentially, every time you successfully find and click a yak, the "Attacked" var will increase by one. To add XP to this, all you have to do is multiply the times attacked by the amount of XP killing a yak gives.


Writeln('We have killed: ' + IntToStr(Attacked) + ' yaks!');
Writeln('We have gained: ' + IntToStr(Attacked * 400) + ' xp!');
{Replace 400 with however much xp you gain}

Hope that helps :)

stealth1337

2012-07-04 15:10:44

Thanks, that helped out a lot!

Stealth,