pwnaz0r
2007-10-11 02:03:59
S.M.A.R.T. Setup & Run Tutorial
Written by pwnaz0r and Dark_Sniper
Contents:
- Introduction to S.M.A.R.T.
- Setting up S.M.A.R.T.
- Using S.M.A.R.T(Smart Setup in script);
- S.M.A.R.T. Functions
- Multiple S.M.A.R.T.'s
- S.M.A.R.T. Bugs
- Picture Diagram
- FAQ
Introduction to S.M.A.R.T.
S.M.A.R.T. stands for Scar Minimizing Autoing Resource Thing. It was created by Benland100 for SCAR. It does not take control of your mouse, it uses its own mouse which appears red on the SMART screen. To open it, you simply call the function SmartSetup(WorldPrefix: string;HighDetail: boolean; Signed: boolean): boolean; as you cannot open it by yourself. To run SCAR Scripts with S.M.A.R.T., you must have the SMART client locked, where you can't click anything.
Setting up S.M.A.R.T.
Requirements:
- You will need Java 1.6 or higher.
- You will need SCAR.
- You will need Winrar.
- Download the S.M.A.R.T. file.
- Extract the S.M.A.R.T file into the "Plugins" folder in SCAR. Make sure to have the plugin highlighted. [LEFT]
- Now Download Smart.scar(it will be posted on the page where you downloaded SMART) and paste the Smart.scar to the misc folder.
- You are all done with installing it. Now you just need to know how to use it in SCAR. Read on to find out.
[/LEFT]
Using S.M.A.R.T(Smart Setup in script);
Before you use S.M.A.R.T. you must call the procedure
ScarScript:By Drunkenoldma [LEFT]procedure SmartSetup(server: String; hidetail, signed: Boolean); [/LEFT]
Here is a procedure SmartKidz made so you wouldn't have to find the world's prefix.
ScarScript:By Drunkenoldma [LEFT]procedure SmartSetupEx(worldnumber: integer; hiDetail, signed: boolean); var prefix: string; begin prefix := ReadINI('World' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SCSS\worlds.ini'); if(prefix = '')then begin writeln('Invalid world number or corrupted world list. Please review your settings'); TerminateScript; end; SmartSetup(prefix, hiDetail, signed); end; [/LEFT]
I would open it up first, waiting for it to load. Use this to open it up.
note: SmartSetup (regular SmartSetup) MUST HAVE WORLD PERFIX NOT WORLD NUMBER!
ScarScript:By Drunkenoldma [LEFT]begin SmartSetup('at6', false, false); TerminateScript; end; [/LEFT]
You also have to set the DC. Use this with SCAR 3.12.
ScarScript:By Drunkenoldma [LEFT] SmartSetup('at6', false, false); while not(SmartReady) do Wait(100); SetTargetDC(SmartGetDC); [/LEFT]
Lastly, you must always include you Smart include before you include the SRL include.
do:
ScarScript:By Drunkenoldma [LEFT]{.include SRL/SRL/Misc/Smart.scar} {.include SRL/SRL.scar} [/LEFT]
not
ScarScript:By Drunkenoldma [LEFT]{.include SRL/SRL.scar} {.include SRL/SRL/Misc/Smart.scar} [/LEFT]
S.M.A.R.T. Functions
ScarScript:By Drunkenoldma [LEFT]procedure SmartWindMouse(x, y: Integer); procedure SmartDragMouse(x, y: Integer); procedure SmartClickMouse(x, y: Integer; left: Boolean); function SmartGetColor(x, y: integer): integer; function SmartFindColor(var x, y: integer; color, sx, sy, ex, ey: integer): boolean; function SmartFindColorTolerance(var x, y: integer; color, sx, sy, ex, ey, tol: integer): boolean; function SmartFindColorSpiral(var x, y: integer; color, sx, sy, ex, ey: integer): boolean; function SmartFindColorSpiralTolerance(var x, y: integer; color, sx, sy, ex, ey, tol: integer): boolean; function SmartFindBitmap(hdc: integer; var x, y: integer): boolean; function SmartFindBitmapIn(hdc: integer; var x, y: integer; sx, sy, ex, ey: integer): boolean; function SmartFindBitmapToleranceIn(hdc: integer; var x, y: integer; sx, sy, ex, ey, tol: integer): boolean; [/LEFT]
Multiple S.M.A.R.T.'s
To run multiple S.M.A.R.T's, you will need to copy multiple SCAR's on your hard drive. Just go to you SCAR folder and copy it. You then get a S.M.A.R.T. client opened up in the first one, downsize it, and open up the second one. Now run the first script and keep it downsized. Now run the other script and keep it downsized. This should take around 50% of your RAM, therefore giving you plenty of memory to do other stuff.
S.M.A.R.T. Bugs
First error:
Could not initialize SMART.
Error Code [16711422]
This one isn't too hard to handle.
Open Regedit.
Go to HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
Add a string in there named 'BrowserJavaVersion'.
It's value should be: '1.6.0_02'
It should now add to the list which also holds the string 'currentversion' and 'installstatus'.
Second: 'MSVCR71.dll was NOT found.'
http://www.advancedinstaller.com/for...pic.php?t=1801
Just copy'ing the file does it. (MSVCR71.dll)
From your java installdir/bin/*here*
To C:/Windows/system32/*here*
Fifth: Failed when compiling
Line 1: [Error] (16634:11): Duplicate identifier 'MOVEMOUSE' in script C:\Program Files\SCAR 3.12_3\includes\Smart.scar
You need include Smart.scar before anything else.
Picture Diagram

A. If it is blocking then you cannot click on the client. if it is not blocking you are allowed to client on the client. leave blocked while autoing.
FAQ
Q. Is S.M.A.R.T. detecable?
A. No it is not detectable.
Q. I having an error that I can't find a fix for.
A. Post it and we will take it under consideration if its a problem or not.
Q. How many S.M.A.R.T.s can I run at one time?
A. Depends on your computer … but we do not recommend over 6.
Q. I just installed SMART but it wont run. What do I do?
A. After installing SMART, you will need to restart SCAR.
Q. SMART is losing focus what do I do?
A. Make sure you have the client blocked, the latest java, the latest version of scar (at the time of this post it is Scar 3.12 c)