SRL Archive - RS3 Help

SRL-6 Scripting Timers?


Enigmatic

2015-02-15 12:33:19

So I need some help with timers for my new script idea which is in fact a fighting script to let you some mobs endlessly if you have some certain items but in the long run gets you about 300k/xp and hour.

So I need a timer to show how long I've been fighting and then reset when I run to a spot on the map and back.
So pretty much this is what I have at the moment.

procedure timeStamp();
var
fightTimer: TTimeMarker;
begin

end;

So what I want is:
If fightTimer >= 300000 (5 minutes) then
runToSpot //my code here
runToOtherSpot //my code here
reset fightTimer;

Any ideas script masters?

Camel

2015-02-15 12:48:18


fightTimer.start();

repeat
//do fighting stuff

if fightTimer.getTime() > 300000 then
begin
WalkToA;
WalkToB;
fightTimer.start(); // .start resets it
end;

until something


Enigmatic

2015-02-15 13:03:09

From: Camel

fightTimer.start();

repeat
//do fighting stuff

if fightTimer.getTime() > 300000 then
begin
WalkToA;
WalkToB;
fightTimer.start(); // .start resets it
end;

until something


Thanks a ton, would rep if I could.