RISK
2012-02-25 12:44:54
I'm not sure if I'm just using it wrong or what, but my script does not send stats to SRL stats. I have it on the final report for now, so here's the procedure:
Am I doing it wrong?
Thanks for any help, I really appreciate it!
procedure FinalReport;
var
compsDone, startTickets, curTickets, gained, expGained: Integer;
timeRan: string;
begin
if (not(ENABLE_DEBUG_MODE)) then
ClearDebug;
compsDone := (competitionsDone);
timeRan := (MSToTime(GetTimeRunning, Time_Bare));
startTickets := (startingTickets);
curTickets := (TicketAmount);
gained := (curTickets - startTickets);
expGained := (Gained * 5);
stats_IncVariable('Ranged EXP (Gained)', expGained);
stats_IncVariable('Total EXP Gained', expGained);
if (stats_Commit) then
Write('We have committed stats to SRL stats!');
WriteLn('__________________________');
WriteLn('');
WriteLn(' RISK''s Range Guilder');
WriteLn(' Script version: ' + SCRIPT_VERSION);
WriteLn(' Time ran: ' + timeRan);
WriteLn(' Competitions done: ' + ToStr(compsDone));
WriteLn(' Tickets gained: ' + ToStr(gained));
WriteLn(' EXP gained: ' + ToStr(expGained));
WriteLn('__________________________');
WriteLn('');
WriteLn('Thanks for using my script!');
WriteLn('If you have encountered an error, please enable debug mode in the script setup and rerun the script.');
WriteLn('Thank you!');
end; Am I doing it wrong?
Thanks for any help, I really appreciate it!
