View Full Version : MarkTime
TheGodfather
03-13-2007, 03:57 AM
Okay, recently I've been trying to get up some failsafes for my script, but marktime isn't working out for me, and it's getting a bit upsetting.. Im just wondering if anyone has a WONDERFUL way of explaining the functions...
Begin MarkTime(myvar) Repeat
Blabla;
Until(TimeFromMark(myvar)= myvar2)))
That's how i understand it.... Please Correct me if I'm wrong...
Pentti
03-13-2007, 12:41 PM
Okay, recently I've been trying to get up some failsafes for my script, but marktime isn't working out for me, and it's getting a bit upsetting.. Im just wondering if anyone has a WONDERFUL way of explaining the functions...
Begin MarkTime(myvar) Repeat
Blabla;
Until(TimeFromMark(myvar)= myvar2)))
That's how i understand it.... Please Correct me if I'm wrong...
I would rather put "is same or bigger as" with this: ">="
Until(TimeFromMark(myvar)>= myvar2)))
And do you also knew that, timefrommark returns as milliseconds?
Jason2gs
03-13-2007, 09:41 PM
procedure RandomRClickEvery(mins: Integer);
begin
if ((TimeFromMark(RandomClickMark) / 1000) / 60 >= mins) then
begin
MarkTime(RandomClickMark);
RandomRClick;
end;
end;
This is one of the AntiBans. It will RandomRClick every X minutes (you declare that in the procedure).
It's really simple to do something like that for pretty much anything. Lemme explain.
procedure RandomRClickEvery(mins: Integer);
That names the procedure, and declares "mins" as an integer.
You're going to be using this a lot in SCAR, so just remember how the following is set up.
if ((TimeFromMark(RandomClickMark) / 1000) / 60 >= mins) then
RandomClickMark, you can name that anything, but just calling it "Mark" is easy to remember. (Plus, if I'm not mistaken, you have to declare what you name it as a variable. "Mark" is already a variable in SRL.)
The next part will divide the time by 1000 MS, making the time come out in Seconds.
The next number, 60, will make the script count in minutes. (60 seconds in a minute.) If you were to put a higher number in it, like 3600, it would count in hours. Tis a bit confusing, but don't worry about it too much.
The next step is to tell SCAR what it should do every X minutes.
begin
MarkTime(RandomClickMark);
RandomRClick;
end;
First: MarkTime(RandomClickMark, remember, you can name that anything you want). Next: Telling SCAR what to do. In this case, the procedure "RandomRClick."
Thanks for reading,
Mike. ;)
almost
03-14-2007, 02:11 PM
If you say myvar = myvar2 it will only stop if they are the exact same number, and that probably won't happen when it checks.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.