Results 1 to 24 of 24

Thread: [Tut]SCAR Clone[Tut]

  1. #1
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Tut]SCAR Clone[Tut]

    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"


    Now you will have a little icon like so .

    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:


    Double Click on your Button and add this code to it.
    Code:
    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
    Code:
    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:
    Code:
    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:
    Code:
    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:
    Code:
    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

  2. #2
    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [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

  3. #3
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  4. #4
    Join Date
    Jan 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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

  6. #6
    Join Date
    Dec 2006
    Posts
    65
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmmm....(Combines pascal and VB6 and calls it PB1 and makes trillions)

  7. #7
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by HolyServant View Post
    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

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    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?

  9. #9
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  10. #10
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    k if a dev says the exe is clean its ok

  11. #11
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm sure Freddy can vouch for me.

    -Mh

  12. #12
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Hmm, i made a scriptable cheat once in vb which used vbscript...
    FScript it was called

  13. #13
    Join Date
    Feb 2006
    Location
    Belgium
    Posts
    3,137
    Mentioned
    3 Post(s)
    Quoted
    5 Post(s)

    Default

    Hmm, i made a scriptable cheat once in vb which used vbscript...
    FScript it was called

  14. #14
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I actually still have that installed on my old PC
    CodeSense Ftw eh?

    -Mh

  15. #15
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I dont this is exactly a SCAR clone But something like that.

  16. #16
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by GoF View Post
    I dont this is exactly a SCAR clone But something like that.
    Its the basics, if you know the 'expert' part you can EASILY create your own SCAR-Type clone.

    -Mh

  17. #17
    Join Date
    Feb 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  18. #18
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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();
    }

  19. #19
    Join Date
    Feb 2006
    Posts
    411
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    iBot was started in c# . UBI was to be its java's side, java ended up being the entire things for many reason.
    www.rscheata.net
    Home of iBot on neXus: a multi-client, minimizable, Hyrid, Color, Reflection, scriptable, multi-threaded Java Bot.

  20. #20
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  21. #21
    Join Date
    Feb 2006
    Posts
    411
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Monster Hack View Post
    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.
    www.rscheata.net
    Home of iBot on neXus: a multi-client, minimizable, Hyrid, Color, Reflection, scriptable, multi-threaded Java Bot.

  22. #22
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  23. #23
    Join Date
    Jan 2007
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  24. #24
    Join Date
    Nov 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    He most likely wrote them.
    I have friends who have written proper FindRotatedBitmap and FindDeformedBitmap functions.
    Using GetDIBits, so it's rather fast.

    -Mh

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 09-22-2008, 12:32 PM
  2. [Scar IDE] How to set jEDIT to edit scar files corectly!
    By LordGregGreg in forum Outdated Tutorials
    Replies: 16
    Last Post: 06-23-2007, 01:19 AM
  3. SCAR Divi 3.01 DONT associate .scar files!!!
    By chimpy in forum News and General
    Replies: 1
    Last Post: 04-21-2007, 08:49 PM
  4. Replies: 28
    Last Post: 06-22-2006, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •