This tut has 2 sections, one for the site-end, and script end.
Site-end:
1) Sign up for an account at http://stats.villavu.com/
2) Go to http://stats.villavu.com/manage/script/new
3) Fill in script name and click Next.
4) You will now get:
> "You just created SCRIPTNAME. You can Manage it here.".
In the URL for "manage", it will have a number at the end. This is your script ID.
5) Go there and add your vars. If they aren't there (it's a bit hard to find what you want, but most common ones are there), you may suggest them at http://villavu.com/forum/showthread.php?t=61070 .
Script-end (the fun part!):
6) Include the Stats (after SRL):
Simba Code:
{$i SRL/SRL/Misc/stats.simba}
7) Add a const for your users to fill their Stats info into:
Simba Code:
const
SRLStats_Username = 'YourUsernameYouSignedUpWith';
SRLStats_Password = 'Password';
8) In your script setup (main program, before the loop), probably best right after SetupSRL;, you will need to add:
Simba Code:
SetupSRLStats(SCRIPT_ID_FROM_ABOVE, SRLStats_Username, SRLStats_Password);
9) Calling "Stats_Commit;" will commit your stats! You should call it every progress report. Note, it will only activate every 5 minutes at most, so you will need to run your script for a few minutes to test it.
10) Now the generic stats:
Simba Code:
stats_IncVariable('Variable Name', Count);
Replace 'Variable name' with the variable you added on the stats.villavu page, and Count with an integer representing how much you want it increased.
Congrats, your script now has stats. Bot it up!