SRL Archive - OSR Help

Script Stats Editing Help


YoHoJo

2012-01-30 19:25:55

Shouldn't this set the variable to whatever value I want them?
Shouldn't I just be able to run this one and BAM in a few minutes the stats page will update?

Program ChocolateCutter;
//{$DEFINE SMART}
{$i SRL\SRL.simba}



Const
SRLStats_Username = 'asdf'; // Your SRL Stats Username
SRLStats_Password = 'asdf'; // Your SRL Stats Password
BuyPrice= 226; //Price you bought bars at
SellPrice= 327; //Price you plan to sell dust at




var
Profit: Integer;

Begin


SetUpSRL;

if (SRLStats_Username = '') then
SetupSRLStats(637, 'Anonymous', 'anon1337')
else
SetupSRLStats(637, SRLStats_Username, SRLStats_Password);

Profit:= (SellPrice-BuyPrice);

stats_SetVariable('Loads Done', 91);
stats_SetVariable('Profit Made', 2546 * Profit);
stats_SetVariable('Chocolate Dust (Created)', 2546);

stats_Commit;


End.

Coh3n

2012-01-30 20:47:49

No, because otherwise people could set the variable to whatever they want. In other words, they could make fake stats.