Can I reset the TimeRunning in a procedure or somewhere in a script?
Because I want it wait until its logged in, and do some other procedure, then just start the time count.
Can I reset the TimeRunning in a procedure or somewhere in a script?
Because I want it wait until its logged in, and do some other procedure, then just start the time count.
as home said
then when you want to know how long it has been since:Simba Code:MarkTime(LoggedIn);Simba Code:TimeFromMark(LoggedIn);
So how do I make it in my progress report? Using InttoStr?
EDIT: I got it to become the time running on my progress report. But I could not get it to become the XP/Hour because I need the time to be divided by 1000.
Last edited by CephaXz; 05-23-2012 at 10:30 PM.
Of the top of my head i believe it would be
Writeln(Timefrommark(Loggedin));
Or something along those lines
Witht the divided by 1000 i think its
Procedure(blabla() / 1000); or something along those lines to :3
TimeFromMark just returns an integer. Do your math on that, then use IntToStr() in your string.
For example:
Simba Code:var
mark, time: Integer;
MarkTime(mark);
//.. do some stuff
Stuff();
time = timeFromMark(mark);
WriteLn('XP per hour: ' + floattoStr(time/1000/3600));
I think that's the right maths.. :P
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
Thanks everyone for the help. I'll try it when I get home, although I don't know what's a float lol
...
Definition: Float is short for floating point and is a fundamental (i.e. built into the compiler) type used to define numbers with fractional parts.
The float type can represent values ranging from approximately 1.5 × 10−45 to 3.4 × 1038 with a precision of 7 digits.
Simply a GOD beast...
My Tutorials
There are currently 1 users browsing this thread. (0 members and 1 guests)