SRL Archive - OSR Intermediate Scripting Tutorials

Uploading proggy to SRL stats


soccnut

2008-07-07 11:18:31

I have just written my own nooby autominer but i have run into a problem.

How do i make my autominer upload the time ran and randoms encountered onto SRL stats?

Does it mean that once i have the line SetupSRL,it will automatically update stats for my script.

Do i still need to add anything else and do i need to register my script first?

Thanks in advance

Scaper

2008-07-07 11:56:29

you register yoy script for and get a SRL stat number example "702"

then put in main loop or Setup like this

Begin
//mainloop
scriptID := 702;
//Mainloop
end.


[LEFT]

[LEFT]
[/LEFT]

[/LEFT]

sirlaughsalot

2008-07-07 15:47:36

and you have to have SendRandomsReport and SrlId and SRLPassword declared… but you cannot directly declare them like in constants so you have to do something like

SRLID:=SRLStatsID;
SRLPassword:=SRLStatsPass;
and have

SRLStatsID='0000';
SRLStatsPass='password';
=)

Scaper

2008-07-07 18:58:54

From: sirlaughsalot
and you have to have SendRandomsReport and SrlId and SRLPassword declared… but you cannot directly declare them like in constants so you have to do something like
ScarScript:By Drunkenoldma [LEFT] SRLID:=SRLStatsID; SRLPassword:=SRLStatsPass; [/LEFT]

and have
ScarScript:By Drunkenoldma [LEFT]SRLStatsID='0000'; SRLStatsPass='password'; [/LEFT]

=)


basicaly its like this

Const
SRLstatsID = '1234';
SRLStatsPass='12345678';

//rest of script


//main loop
begin
SetUpSRL;
//blah
//blah
SRLId:= SRLStatsID;
SRLPassword:=SRLStatsPass;
//mehh
//mehh
scriptID=000;
//blah
//blah
end.

ZephyrsFury

2008-07-07 22:08:39

First of all you've posted in the wrong section. Use the Scripting Help section next time :)

Heres a link to a tutorial by The_Rs_Monkey:
http://www.villavu.com/forum/showthread.php?t=11113

soccnut

2008-07-08 08:45:11

ok thx for your assistance..Greatly appreciate it, now i know why my proggies do not work..

Sry for posting in wrong section, will look out more in future before posting