PDA

View Full Version : [Tut]SCAR Clone[Tut]



Monster Hack
01-23-2007, 12:25 AM
If you like SCAR but don't understand Delphi/Pascal, then this is the tutorial for you.
This Tutorial will show you the basics of The Ms Script Control in VB6

1. Intro and The Basics

First Start a new Project in Visual Basics

Now, Press Ctrl + T. Doing this will bring up your project's components.
Look for "Microsoft Script Control 1.0"
http://img166.imageshack.us/img166/9624/sccompjn4.th.png (http://img166.imageshack.us/my.php?image=sccompjn4.png)

Now you will have a little icon like so http://img182.imageshack.us/img182/715/sctz9.png.

2. Running the 'Scripts'

Ok, now add a the script control on to your project. Name it "SC"
Now add a button and a textbox.

Your Project should now look like this:
http://img80.imageshack.us/img80/4341/project1vs0.th.png (http://img80.imageshack.us/my.php?image=project1vs0.png)

Double Click on your Button and add this code to it.

SC.AddCode Text1.Text

* SC = Script Control.
* AddCode = Allows you to use this code
* Text1 = The Textbox we added earlier

Now you can do little things like MsgBox.
Simple Visual Basic Coding.

Example, Write this in your textbox > run > Click the Button

MsgBox "This is the Start of your Script Engine" Congratulations! You can now run 'scripts' from your engine

3. A Little Deeper
Wish to continue? Move on to something like SunMacro?
Must have a little exp. to continue:

Easiest way to control a script, and most likely the only way, is using a Class Module to use the functions.

So now add this:

Public cScript As New clscScript
> Add a Class Module into your Project.
Write your Functions/Subs in your new Class Module.

Now update your 'run' (The Button) codes:

SC.Reset
SC.AllowUI = True
SC.TimeOut = NoTimeout
SC.AddObject "cscript", cScript, True
SC.AddCode Text1.Text
SC.Run "Main" You have added Your Class Module into your Engine.
As well as Subs.

Run:

Sub Main()
MsgBox "MoHaxRules! I just leech."
End Sub
Congratulations! You are now ready to make your own Rip off of SCAR
Do it and DIE.

-Monster Hack

Mithril Fish
01-23-2007, 03:13 AM
[quote]Congratulations! You are now ready to make your own Rip off of SCAR
Do it and DIE.[/qoute]
nice use of pictures, i dont think it would be very easy to make a ripoff of scar... lol but good tut :)

Monster Hack
01-23-2007, 06:59 AM
Trust me, it easy enough to start one.
I am currently running a fairly successful one.
Not all the functions or features, but it hasn't had the time SCAR has ;)

-Mh

HolyServant
01-23-2007, 07:58 PM
Its not that hard to create "your own scar". No doubt it will not be as good, but the basic functions like moving and clicking the mouse and finding colors & BMPs are relatively easy to code in VB. Creating your own scripting language, however, is quite hard.

You could probably completely re-create scar in perl, and create your own scripting language. Ive thought about attempting it, but havent had the time. When I do, ill def. post it here.

YoHoJo
01-23-2007, 09:34 PM
Pfft i doubt you can make your own scar.
But since you say you are running a prety nice one, why dont you show us?
OR at least some pics of it

petrock6
01-23-2007, 10:40 PM
Hmmm....(Combines pascal and VB6 and calls it PB1 and makes trillions)

Monster Hack
01-24-2007, 12:25 AM
Its not that hard to create "your own scar". No doubt it will not be as good, but the basic functions like moving and clicking the mouse and finding colors & BMPs are relatively easy to code in VB. Creating your own scripting language, however, is quite hard.

You could probably completely re-create scar in perl, and create your own scripting language. Ive thought about attempting it, but havent had the time. When I do, ill def. post it here.

Try adding findbitmapinstring to VBScript. Thats fun there... Reconvert, debug + find.

Why use Perl?

SCAR does not run on its own language, but more of a Delphi VBScript to put it.
Meaning it runs like Delphi/Pascal, but with Kait's functions added.

yohojo8: Way to be nice. No need to be doubtful or jerky about it.

www.SunMacro.net
Thats the incredibly old and out of date version. 1.13 is not yet released due to the fact that not all of my features are finished.

-Mh

YoHoJo
01-24-2007, 03:08 AM
well i wanst being rude.. and im not nice though
im just saying its not easy to make scar...
you can just click some buttons and BAM scar?

meh i dont trust random .exe's sry
source plox?

Monster Hack
01-24-2007, 05:16 AM
You really think I'm going to give my source codes?
Ask Freddy, it's clean. Ask anyone on Cruels.net, Rs-R, JAGHaX and even Sythe.
Anyone important that is...

I never said "click some buttons and BAM scar", I said thats the basics of reading VBScript which can lead to a SCAR-like program.

-Mh

Boreas
01-24-2007, 05:18 AM
k if a dev says the exe is clean its ok

Monster Hack
01-24-2007, 05:24 AM
I'm sure Freddy can vouch for me. :D

-Mh

Freddy1990
01-25-2007, 08:12 PM
Hmm, i made a scriptable cheat once in vb which used vbscript...
FScript it was called :)

Freddy1990
01-25-2007, 08:13 PM
Hmm, i made a scriptable cheat once in vb which used vbscript...
FScript it was called :)

Monster Hack
01-26-2007, 01:30 AM
I actually still have that installed on my old PC :D
CodeSense Ftw eh?
:D
-Mh

GoF
01-30-2007, 03:19 PM
I dont this is exactly a SCAR clone :p But something like that.

Monster Hack
02-04-2007, 06:32 AM
I dont this is exactly a SCAR clone :p But something like that.

Its the basics, if you know the 'expert' part you can EASILY create your own SCAR-Type clone.

-Mh

dufferz
02-15-2007, 03:08 PM
i agree, but this is the basis of a new scar client.. if some one um 'stole' kaits source coz they could make an extremely good , gui pretty and user friendly client pretty easily.. :) im a vb noob so i cant :D

SonOfSheep
02-19-2007, 10:55 PM
Playing around with this type of stuff is fun, i once asked kait for the source to the first version of scar. He said after 2.0 came out. Never got it but i dont care. I once made a program in VB that loaded a DLL written in VB and it was like a script. Super-Duper Easy scripting. Except it wasnt very practical. If i can dig it out of my mounds of source code backup disks i havent loaded onto my new computer yet i can post it.


yes yes i used to be a VB noob once too. Then i discovered c#.

VB is pretty easy, and a great first language (it was my first real one, HTML is more of like a make it pretty not make ti do stuff language)
by the way, for anybody who has become somewhat proficient in VB or java, try c# i love it, almost as easy as VB but with some more bells n whistles. Heres a simple comparison:

VB - Create an instance of your favorite System.Weapons.Gun object, set the properties to aim at foot, and fire.

C# - Use some simple pre-built addins and mess with some code make a nice shiny gun with extreme autoaim foot-lockon capability and rapid fire action. Press go.

Although with the whole .NET thing a program in vb looks like:

If this = that then
ShootEmUp
end if

C# is like

if(this==that)
{
ShootEmUp();
}

ruler
02-25-2007, 12:08 PM
iBot was started in c# . UBI was to be its java's side, java ended up being the entire things for many reason.

Monster Hack
02-25-2007, 11:27 PM
I don't use C# that often.
I rarely release what I write in any C language.(Non-Rs Cheating).
Glad someone is putting it to work.

-Mh

ruler
02-27-2007, 11:15 PM
I don't use C# that often.
I rarely release what I write in any C language.(Non-Rs Cheating).
Glad someone is putting it to work.

-Mh
really for a bot that has no java connections like scar, c# would be perfect.

Monster Hack
03-04-2007, 10:42 PM
Yeah, but I would rather not have to make a simpler version of scripting for it.
Most people wouldn't want to learn to use it.

-Mh

duther
04-23-2007, 04:14 PM
The main problem for making a scar clone are the bitmap search functions. The algorithm to find a deformed and rotated bitmap for example, is probably kinda complex. Would be interesting to know where he got the functions from.

Monster Hack
04-24-2007, 12:55 AM
He most likely wrote them.
I have friends who have written proper FindRotatedBitmap and FindDeformedBitmap functions.
Using GetDIBits, so it's rather fast.

-Mh