Here's a little Reflection Downloader i wrote:
Program New;
const
rvthisversion = 158;
{*******************************************************************************
Include Updater.scar
By: Shady?
Description: Updates Reflection
*******************************************************************************}
Var
rvdownload,rvdownload2: TStringArray;
rvdownloaded,rvdownloaded2: Array[0..13] Of String;
RvIHI, RvFiles: Integer;
Rvcurrentver, Rvcurrentversion, rvupdaterscar, rvreflectionscar: string;
Procedure RvDownloadFiles;
Begin
For RvIHI := 0 To High(RvDownload) Do
Begin
RvDownloaded[Rvihi] := GetPage('http://scarreflection.googlecode.com/svn/trunk/' + RvDownload[Rvihi]);
WriteLn(Rvdownload[Rvihi]);
End;
For RvIHI := 0 To High(RvDownload2) Do
Begin
RvDownloaded2[Rvihi] := GetPage('http://scarreflection.googlecode.com/svn/trunk/AntiRandoms/' + RvDownload2[Rvihi]);
WriteLn(Rvdownload2[Rvihi]);
End;
rvReflectionscar := GetPage('http://scarreflection.googlecode.com/svn/trunk/Reflection.Scar');
Writeln('Reflection.Scar');
rvReflectionscar := rvReflectionscar + chr(13) + '{.Include SRL\SRL\Reflection\updater.Scar}';
rvupdaterscar := GetPage('http://timer.mgatesphoto.com/uploader/ifile/Updater.scar');
Writeln('Updater.Scar');
Delete(rvupdaterscar,1,26);
Insert('const' + chr(13) + 'rvthisversion = ' + Rvcurrentversion + ';' + chr(13),rvupdaterscar,0);
End;
Procedure RvInstall;
Begin
For RvIhi := 0 To High(RvDownload) Do
Begin
RvFiles := RewriteFile(AppPath + '\Includes\SRL\SRL\Reflection\' + RvDownload[Rvihi], False);
WriteFileString(RvFiles, RvDownloaded[Rvihi]);
CloseFile(RvFiles);
End;
For RvIhi := 0 To High(RvDownload2) Do
Begin
RvFiles := RewriteFile(AppPath + '\Includes\SRL\SRL\Reflection\AntiRandoms\' + RvDownload2[Rvihi], False);
WriteFileString(RvFiles, RvDownloaded2[Rvihi]);
CloseFile(RvFiles);
End;
RvFiles := RewriteFile(AppPath + '\Includes\SRL\SRL\Reflection\Reflection.scar', False);
WriteFileString(RvFiles, RvReflectionscar);
CloseFile(RvFiles);
RvFiles := RewriteFile(AppPath + '\Includes\SRL\SRL\Reflection\Updater.scar', False);
WriteFileString(RvFiles, RvUpdaterscar);
CloseFile(RvFiles);
End;
Procedure RvUpdateReflection;
begin
RvDownload := ['Changelog.txt', 'Characters.Scar', 'Core.scar','GameTab.scar',
'Hooks.Scar', 'Objects.Scar', 'Inventory.scar',
'MMWalk.scar', 'Interfaces.scar','GroundItems.scar','Login.scar','Bank.scar','Chat.scar'];
RvDownload2 := ['AntiRandoms.scar', 'Box.scar', 'Demon.scar',
'Frog.scar', 'Mime.scar', 'Molly.scar','Pinball.scar','Pillory.scar','Forester.scar']
Rvcurrentversion := GetPage('http://scarreflection.googlecode.com/svn/trunk/');
// Rvcurrentversion := GetPage('http://timer.mgatesphoto.com/uploader/ifile/Updater.scar');
//Rvcurrentversion := Between('rvupdaterversion = ', ';', Rvupdaterver);
Rvcurrentversion := Between('evision ', ': /trunk', Rvcurrentversion);
WriteLn('Our current version is: '+inttostr(Rvthisversion)+' and the latest version is: '+Rvcurrentversion);
If (Rvthisversion = strtoint(Rvcurrentversion)) then
begin
WriteLn('We got the latest Reflection !');
exit;
end else
begin
RvDownloadFiles;
RvInstall;
WriteLn('Latest Reflection Downloaded, please restart the script!');
TerminateScript;
end;
end;
Begin
RvUpdateReflection;
End.
Run it and it will download the latest reflection to you. Anyways, i think reflection itself is still outdated due to Runescape updates.