Results 1 to 2 of 2

Thread: Script Stats Editing Help

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default Script Stats Editing Help

    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?

    Simba Code:
    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.

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •