SRL Archive - General

Using scar to delet random.dat?


Main

2008-04-25 19:06:26

We know that jagex keep a encrypted file to record stuff off our session, and every once in a while, our humans have to Manuel delete it.

I am not very good with scar, but is it possible for scar to delete it if its a script that use smart? Like close smart when its on break on switching character? Ask the script user to tell scar the file directory or something, and after its done, just reload smart and continue.(The random.dat can only be deleted when rs is closed.)

Putnam

2008-04-27 04:41:03

heres one i modified from some one.

hope it helps ya

Daniel

2008-04-27 05:25:26

From: putnam11
heres one i modified from some one.

hope it helps ya

Here's a better & quicker version than your one (It's based off your one ;)):

procedure ReWriteMulti(Files: TStringArray; Shared: Boolean);
var
i: Integer;
begin
for i:=0 to High(Files) do
ReWriteFile(Files[i], Shared);
end;

procedure DeleteUID(const Shared: Boolean);
begin
ReWriteMulti(['C:\WINDOWS\.jagex_cache_32\Random.dat', 'C:\WINDOWS\Random.dat', 'C:\Administrator\Random.dat', 'C:\Program'+
' Files\Mozilla Firefox\Random.dat', 'C:\Program Files\Mozilla Firefox 3 BETA 5\Random.dat', 'C:\Program Files'+
'\Internet Explorer\Random.dat', 'C:\RSCache\Random.dat'], Shared);
end;

begin
DeleteUID(True);
end.

Miitchyy

2008-04-28 02:09:36

rs_deleteUID()?

Daniel

2008-04-28 03:14:39

From: Kevin Wolf
rs_deleteUID()?


Since when was there rs_DeleteUID and rs_DeleteUIDEx functions or procedures? I am not up-to-date with all the new things added into SCAR.

Markus

2008-04-28 03:23:37

They have been removed in 3.15.

Daniel

2008-04-30 02:37:31

From: Markus
They have been removed in 3.15.

They're still there >_<