Ive seen it in many scripts... Just wondering what the heck it does or records.
I know its got something to do with time...
Thanks for helping :)
Printable View
Ive seen it in many scripts... Just wondering what the heck it does or records.
I know its got something to do with time...
Thanks for helping :)
Get the amount of milliseconds the system has been online for. Used for benchmarking and time outs.
You'll see
out putsCode:var
T: Integer;
begin
T := GetSystemTime;
WriteLn(T);
end.
which is the number of milliseconds the system has been online for at any given time, this number increases 1 per a millisecond, so at any given time in the future it will be X amount greater than before and the difference between the current value and the old value will be the amount of milliseconds that have passed.Code:19962745
Code:var
T: Integer;
begin
T := GetSystemTime;
Wait(1000);
WriteLn(GetSystemTime - T);
end.
Is it refering to the system of runescape or of simba or of smart?
Here's an example of its' use (in English):
I call GetSystemTime.
I then run my wood chopping procedure.
I then call GetSystemTime again and get the difference. I can then see how long it took to cut down those trees and if it has been cutting for more then 10 minutes then I know something is wrong (as it never takes 10 minutes to cut a tree!) and I can log that player out to prevent it from getting banned.
:)
There's also GetTimeRunning: integer; which also results in milliseconds, but this time the time your script has been running.
Simba Code:begin
Wait(1000);
Writeln(GetTimeRunning);
end.
:)
You can turn milliseconds into minutes like this:
1000 = 1 second (just like 1000 millimeters is 1 meter)
60 seconds = 1 minute
--> 1000*60 = 1 minute
--> 1000*60*60 = 1 hour
Ok thanks :). Ill use these tactics. Thanks alot. Btw, I have a lot more questions :)
A little while back, I had a lot of time related questions. If it helps you out at all you can read through this thread.
What other questions do you have?
Edit: Found A Way around the bank thing.
Is there A way I can tell what floor my character is on?
Like 1rst 2nd or 3rd floor of lumby castle?
Right when you login? or when you are script navigating?
login:
- i dunno.
script navigating:
- well, you could add a simple floor counter.
- - it would add and subtract so you know which floor you are on. make floor zero the base, + would be up, and - would be basement.
No, but I wanna do something as a failsafe to make sure I went up the lumby stairs. Ill use symbol finding but its innacurate so ... Untill Somebody else knows a way then Im screwed.
I think this will tell you what level you're on: GetPlaneIndex
Ok thank alot again for your help. Yes that was the correct function. As for now no more questions ... Off To fix my lumbylobcooker