SRL Archive - SRL Stats

How to use SRL Stats


Sir R. M8gic1an

2010-12-26 22:21:35

Register for SRL Stats:
http://stats.villavu.com/register

Add a Script to SRL Stats / Manage your Scripts:
http://stats.villavu.com/manage/scripts

How to Add SRL Stats to your script:
http://villavu.com/forum/showthread.php?t=60084

How to make Signatures for your script:
http://villavu.com/forum/showthread.php?t=61088

3Garrett3

2010-12-26 22:38:37

YES! I was just about to go through everyone from SRL on my MSN and ask them to guide me through this. Having these all grouped together = sex.

Frement

2010-12-26 23:49:41

To "How to make Signatures for your script" you should add my tutorial, just made it ;)

Tutorial: http://villavu.com/forum/showthread.php?t=61088

Wizzup?

2011-01-01 07:33:14

To be honest there should just be service for the signatures. I can add it if no one else does. I was hoping for someone to make it.

Nava2

2011-01-01 12:54:55

I started looking into Image manipulation with python. Basically, the thought was to implement it as a service from the SRL stats system.

It could be external and use the JSON output supplied, but might as well cut out the middle man.

I looked up Python libraries for image maniplation, I found: PIL (http://www.pythonware.com/products/pil/index.htm).

The necessary modules to use would be: ImageDraw (http://www.pythonware.com/library/pil/handbook/imagedraw.htm), ImageFont (http://www.pythonware.com/library/pil/handbook/imagefont.htm)

The library supports transparent drawing, thus we could bring back the old leveling system pretty easily, but I just need images and the choice of approach.

I was thinking of starting on this as a general setup so that either could be implemented, the issue for me is that I do not have a server to test this on. Nor do I have any idea how python handles pages when they are loaded.. aka when you load the image, how to execute the python.

TomTuff

2011-01-24 21:54:04

It seems as though the link on how to add SRL Stats to a script doesn't work. Is there a more updated revision?

KingKong

2011-01-24 22:00:20

Step1: Include stats.simba

Step2: Add SetupSRLStats(scriptid, stats_username, stats_password);

Step3: Do stats_IncVariable(variablename, amount[0]);
stats_IncVariable('Total EXP Gained', amount[1]);(each line = diff variable)
stats_Commit(do this if time from previous commit is >5mins);

Edit: Reset the amount to zero after each commit.


Thats it!

Coh3n

2011-01-25 00:51:45

From: KongKing


Edit: Reset the amount to zero after each commit.


Thats it!

I'm pretty sure that's done automatically.

TomTuff

2011-01-25 01:07:21

From: Coh3n
I'm pretty sure that's done automatically.


if you use a different system for storing info, it might not. For example, if you use a local TIntegerArray, then it will not be. I am 100% certain of this because in stats_IncreaseVar(which: string; Amount: Integer;), Amount Isn't a var.

Coh3n

2011-01-25 01:17:09

From: TomTuff
if you use a different system for storing info, it might not. For example, if you use a local TIntegerArray, then it will not be. I am 100% certain of this because in stats_IncreaseVar(which: string; Amount: Integer;), Amount Isn't a var.

The stats system already stores all the variables you're using in a temporary array, then commits all of them when you call stats_Commit. It them resets this temporary array back to 0.

But yes, if you're using your own array then you have to reset it. It's just not required to use your own array.

kakhoja303

2012-02-10 12:17:10

anybotting websites that actually works?

exilednoob

2012-02-10 13:14:15

informative it is

Lisida19

2012-02-16 20:40:51

how do you use this bot?
sorry, im kinda new in this forum ,and i dont know where i can add the scripts…

fretje12

2012-02-16 21:24:39

nice tutorial, rep