Frozenfire216
2012-08-29 17:15:32
Ok, so I have a question. How do you repeat a procedure every 5 minutes?
This code is not for Runescape, its for a different MMORPG.
My attacking and looting procedures work great, I don't need help on those, but in this game there are certain buffs your character can apply. These buffs are timed for 5 minutes. I have a procedure that applies these buffs and it works, but I need it repeated every 5 minutes.
The second issue is what should I use for a termination procedure so that whenever I hold down the "Delete" key, it terminates the script. Also, where should I use this procedure so i can terminate at ANYTIME?
Here's the code I have so far..
Any help at all is appreciated! Thanks!
This code is not for Runescape, its for a different MMORPG.
My attacking and looting procedures work great, I don't need help on those, but in this game there are certain buffs your character can apply. These buffs are timed for 5 minutes. I have a procedure that applies these buffs and it works, but I need it repeated every 5 minutes.
The second issue is what should I use for a termination procedure so that whenever I hold down the "Delete" key, it terminates the script. Also, where should I use this procedure so i can terminate at ANYTIME?
Here's the code I have so far..
program Mob_Farmer;
{$i srl/srl.simba}
const
//various constants here
var
//various variables here
Procedure Terminate;
begin
//Script Termination Procedure, the second issue i need help with.
end;
Procedure Rebuff;
Begin
//this is the procedure I need repeated every 5 mins
end;
Procedure WaitScreen;
begin
//waits till I switch to client screen;
end;
Procedure Attack;
begin
//attack procedure
end;
Procedure Loot;
//loot procedure
end;
begin
SetUpSRL;
WaitScreen;
count:=0;
repeat
Attack;
Loot;
wait(50);
inc(count);
Writeln(intToStr(count)+ ' Mobs killed');
until (count=35000);
end. Any help at all is appreciated! Thanks!