Brotein
02-12-2014, 08:11 PM
Having an issue with my progress report when SMART is reloaded during 6 hour reset. My script will reset the initial xp values and the timerunning remains at 6+ hours. My current progress report looks like this...
XpCount := chatBox.getXP - StartXp;
SecondS := round((getTimeRunning/1000));
XpHour := round((3600 * XpCount) / (SecondS));
Right before the reset
[06:00:19]: -- *************Progress Report***************
[06:00:19]: -- Total Time Running: 6 Hours, 19 Seconds
[06:00:20]: -- Xp Gained: 466049
[06:00:20]: -- Xp per Hour: 77603
[06:00:20]: -- *******************************************
After reset
[06:07:51]: ---- *************Progress Report***************
[06:07:51]: ---- Total Time Running: 6 Hours, 7 Minutes and 51 Seconds
[06:07:51]: ---- Xp Gained: 1745
[06:07:51]: ---- Xp per Hour: 285
[06:07:51]: ---- *******************************************
I set my StartXp in the login loop, but I am wondering do all these variables stay intact on a reset? So I can add code to my login loop like...
if not isLoggedIn then
begin
...
StartXp := chatBox.getXP;
//Making this up, don't know if such a function exists
if simbaReset then
StoredXp := XpCount;
end;
And then add StoredXp to our XpCount in the progress report procedure...
XpCount := chatBox.getXP - StartXp + StoredXp;
I would like accurate information past 6 hours since this bot can run for many more hours than that. So is there a way to check for the 6hour reset, if so what is the function? Or is there a better way to solve this for the 6 hour mark?
XpCount := chatBox.getXP - StartXp;
SecondS := round((getTimeRunning/1000));
XpHour := round((3600 * XpCount) / (SecondS));
Right before the reset
[06:00:19]: -- *************Progress Report***************
[06:00:19]: -- Total Time Running: 6 Hours, 19 Seconds
[06:00:20]: -- Xp Gained: 466049
[06:00:20]: -- Xp per Hour: 77603
[06:00:20]: -- *******************************************
After reset
[06:07:51]: ---- *************Progress Report***************
[06:07:51]: ---- Total Time Running: 6 Hours, 7 Minutes and 51 Seconds
[06:07:51]: ---- Xp Gained: 1745
[06:07:51]: ---- Xp per Hour: 285
[06:07:51]: ---- *******************************************
I set my StartXp in the login loop, but I am wondering do all these variables stay intact on a reset? So I can add code to my login loop like...
if not isLoggedIn then
begin
...
StartXp := chatBox.getXP;
//Making this up, don't know if such a function exists
if simbaReset then
StoredXp := XpCount;
end;
And then add StoredXp to our XpCount in the progress report procedure...
XpCount := chatBox.getXP - StartXp + StoredXp;
I would like accurate information past 6 hours since this bot can run for many more hours than that. So is there a way to check for the 6hour reset, if so what is the function? Or is there a better way to solve this for the 6 hour mark?