SRL Archive - S.M.A.R.T.

[Plugin] Scar Deletes Random.dat for you! (only compatable with SMART, sorta)


deathbyvirus

2008-07-31 00:59:36

Well, I don't really contribute much and recently I've found it very annoying to delete that pesky file, so I was making a small console app in Delphi when i realized

"Hey! Why not have Scar do this! But how? … Plugins!"

And then my next though had to ruin everything

"But if someone is running a script and this is called as the first thing, Runescape will be running, and random.dat will be in use by it so it will not be able to delete it"

But then I thought more…

"The only way that would work is if they had Runescape closed when it was called, but then they'd have to use OpenWebPage or something and it'd be too complicated"

And then it clicked, SMART is the way to go.

So to use this, simply download and unzip/extract the files, read the Info file, and place the dll in your scar plugins folder. To use it in your script, *BEFORE* SMARTSetUp(Ex) is called, put

DeleteRandomDat; 

And thats all, DeleteRandomDat returns a integer value with the following meanings:

DeleteRandomDat: integer;
Return Values & Meanings
0 : Successful deletion
1 : File does not exists (already deleted)
2 : File is in use by Runescape (find it, close it)

For some reason scar sometimes holds onto it after a script is finished, so if you're trying to run it and you keep getting a return of 2, simply restart scar (sometimes Scar still runs after exiting, so use windows most used button combination (Alt + Ctrl + Delete…) and find it in the processes, and end that sucker).

I don't know how helpful this is or isn't, but I'll see how it goes, I haven't played RS in almost a year and just getting back into it again, and haven't been with Scar and SRL in almost 2 years :(

Rep ++ if good :(h):

Freddy1990

2008-07-31 05:12:53

Hmm, asking for rep is lame

deathbyvirus

2008-07-31 12:48:50

kk, but is it usefull? I wasn't really sure

soccnut

2008-09-02 20:45:35

U can get SMART to use unsigned applet so i believe theres no point in deleting the file if u are using unsigned

Knoot

2008-09-03 02:32:27

Ehm okay, but what does exactly "randoms.dat" does?