Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> SCAR scripting, The basics
Info for guide
You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Total Votes: 32
Guests cannot vote 
post Sep 20 2008, 10:56 AM
Post #1

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






X-=SCAR Scripting guide by MistiKmaN=-X
A word
Trust me, this is WAY easier than you think! When I setout to learn this, I thought man this will take ages, but it took me about an hour to learn the basics! That's all! But I would say that you should read over my guide at least twice just to make sure you know and understand. Because sometimes, you may think that you've learnt it but it only goes into your temporary memory in your brain, not your permanent. So yes either read it a couple of tmies first OR a better, more effective way is to read it once a day for about three days or so.
What is SCAR?
SCAR scripting language is a language used to simulate keystrokes, mouse clicks and mouse movements. the difference between SCAR and many other languages that simulate these, is that SCAR has other commands that can change what it does depending on what might be on the screen, what the time is or whatever you set it to. Now this is MY understanding of SCAR so far. Well onto learning.
Comments
One of the most basic things in SCAR, is comments. Comments are parts of the scripts where they do nothing, they're just added in for learners or reades of the script to know what a certain thing does, information about the script etc. There are two ways to define a script in SCAR the first is the double slash. "//", without the quotation marks of course. At the beginning of each line that you want to add a comment you must add the double slash. 'Tis quite annoying to remember sometimes. The second way to call for a comment are the weird parenthesis things. "{" and "}" The first weird parenthesis thing, "{" tells SCAR that you are commencing a comment. The second, "}" telling SCAR that the comment has ended. In my opinion the second is better.
The Program Name
You don't need a program name, but if you're planning on making somehting epic, I suggest you do make one. The program name should be one of the first things in your script theoretically. To add a program name simply write this in your script,
CODE
Program NameHere;
The semi-colon is needed. For those of you that don't know a semi-colon is ";". Spell the name of your script in one word, Letters and Numbers only. You cannot add commas or dots.
Variables
Ok, don't give up now! It really is simple, trust me. A variable is like a storage unit, it can store numbers, values, figures, integers, characters or sentences for later use. To declare a variable this is the code;
CODE
{Welcome to MistiScript Version 1.0}
Program MistiScript;
Var   //This tells SCAR that you want some variables to be remembered.
x,y: integer;   //You wouyld like to use variables x and y as integers.
ShoutOut: String   //You're now telling SCAR to use ShoutOut as a string.

As a general rule x and y will be set aside for the horizontal and vertical co-ordinates of the mouse. x being horizontal, y being vertical. Remember from my HTML programming guide? Horizontal is across, vertical is up and down.
Constants
A constant is a variable that never changes. It stays constant throughout the whole script. All you gotta do is set values for it, and this is how you do it.
CODE
{Welcome to MistiScript Version 1.0}
Program MistiScript;
Const   //The declaration of a constant.
Times = 10;   //And that's the value!
Var   //This tells SCAR that you want some variables to be remembered.
x,y: integer;   //You wouyld like to use variables x and y as integers.
ShoutOut: String   //You're now telling SCAR to use ShoutOut as a string.

Make sure you learn how to use variables and ocnstants, they are crucial for making good scripts.
Basic Procedures
Procedures are what scripts are built up of. A procedure is a set of "instructions" that performs a specific task that can be called upon, that and makes your script neat and tidy. A procedure is a mixture of functions. To write a procedure. We start out with the procedure name. This is used just like "program name".
CODE
Procedure ProcedureNameHere;

Spell the procedure name with one word only letters and numbers, just as Program name.
Beginning and End
After the procedure name you MUST tell SCAR where the procedure begins. To set the limits of the procedure you use "begin" and end;".
CODE
procedure MistiScript
begin
   //The set of actions of the procedure are put here in the body.
end;

Well already you are fairly close to writing you very own script! I told you it wasn't hard. In the main part of the script there is a main begin and main end. that will be explained later, though.
OK I'M GONNA STOP HERE I'LL WRITE MORE THOUGH WITHIN THE NEXT TWO DAYS IF I HAVEN'T JUST PM ME DO NOT VOTE IN THE POLL UNTIL I HAVE FINISHED WRITING THE GUIDE!!!


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Sep 20 2008, 10:56 AM
Post #

Elite Membership


To get the most out of MmorpGuides.com, please view the following information.












Already a Member?

With an Elite Membership you can. . .

  • Reach the highest levels in no time
  • Have one of the most powerful characters in your game
  • Become a valuable member of your clan or guild
  • Become part of a caring and helpful community of gamers

Elite Members enjoy. . .

  • 1,660+ Cheats - tons of working, high quality cheats
  • 1,550+ Guides - We have one of the most comprehensive collections of guides on the net
  • 539+ Bots and macros - Level up quickly, even while you sleep!
  • A chance to win free prizes such as an amazing Playstation 3! And free gold and powerleveling!

No risk, only huge benefits!

  • Your investment can pay for itself in days!
  • Earn gold that you can trade for real money
  • Sell your high level items and characters for a profit!
  • Get tons of expensive guides and cheats in one spot for one small price

Money Back Guarantee!

Not 100% satisfied? We have a 24 hour, money-back guarantee! Contact us for a prompt and courteous refund!

Upgrade to an Elite Membership now!

Not A Member?

Join today and get access to all these great features!

  • Access to newly submitted cheats and guides
  • Download newly submitted bots and macros
  • Chat about your favorite game
  • Submit working content for a FREE Elite Membership!
  • And lots more!
Register Today!
Go to the top of the page
 
Quote Post
post Nov 5 2008, 10:49 AM
Post #2

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Alright, time to complete this guide I was making. :) Sorry it took so long. Lol.

Repeat and Until
Ok, this is something you're going to need to learn for scripting. So take a stretch and rest your eyes before reading this. Oh and your brain too I suppose. Now this is so simple, though. Just do this:
CODE
repeat
//Here is where all the code that you want to performed should be entered
until(false)  // you can set a limit for the repeats. how many repeats, when to stop repeating etc.

Until(false) Will create a never ending loop if you haven't already figured that out. Ok, now this is a little anonying study this:
CODE
program TheRepeater;
var
c: integer;

//This is where the main part of the script starts
begin
c:=0;        // this sets the value of the integer c to 0
repeat       // begin a repeat
//Here is where all the code that you want to performed should be entered
c:=c+1;     // This is the crucial part. It simply just does an addition. "Whatever c equals, add +1 to it
until(c>5)  // The script will now repeat your code, until the variable c is higher than 5.
end.        // As we discussed, the end in the main part of the script must have a punctuation mark at the end
Now as you can see, the Until statement is different. It's alright because this change is quite simple. It's just tleling you it will repeat until C is higher than 5. ">" meaning higher than. and as I'm sure you would have guessed, "<" is less than. Now I know this ain't gonna be too useful because I know you all want it to repeat until somehting happens, eh? Well I'm going to show you how... Sorta...
Now hitting F1 in SCAR will help you with this. So do it! Now this is what my code for this seciton is:
CODE
begin
repeat      
//Here is where all the code that you want to performed should be entered
until(findbitmap(mybitmap,x,y))  
end.

Alright, explanation. The repeated action will repeat until it finds a picture of something in co-ordinates x and y. Particvularly useful for say Fishing and Mining in RuneScape.
Alright, I'll continue this again sometime but alot sooner. :)


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Nov 6 2008, 12:58 AM
Post #3

xXK3MiK4LXx



In Training
**

Group: Members
Posts: 41
Joined: 4-November 08
Member No.: 767,020







nice thorough tutorial....good job i need a sample html script though.....ty..
Go to the top of the page
 
+Quote Post
post Nov 6 2008, 03:05 AM
Post #4

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738








But if you want a sample HTML script then right click on any website and click view source. Itg will come up with a notepad with HTML script of the website in it. :)


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Nov 6 2008, 07:32 AM
Post #5

plagued venom



Master
*******

Group: Members
Posts: 221
Joined: 29-October 08
From: United Kingdom
Member No.: 762,957






but its still good because alot of people wouldnt of known about that website
Go to the top of the page
 
+Quote Post
post Nov 6 2008, 01:32 PM
Post #6

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






It is most definitely NOT! the exact same on there. And there was also absoloutely no copy and pasting.
It was just the site I learnt off, so I wanted to make one just like it. Without all that sick, sexual stuff on there. :S


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Nov 24 2008, 08:15 PM
Post #7

plagued venom



Master
*******

Group: Members
Posts: 221
Joined: 29-October 08
From: United Kingdom
Member No.: 762,957






lol i was jokin weve seen quite alot of each other in various places on this website, but there is somthing i didnt get about SCAR, when you do stuff like a variable does there need to be a space var // or var// im not sure can u pot back plz, and if yes how many spaces are needed
Go to the top of the page
 
+Quote Post
post Dec 17 2008, 09:02 PM
Post #8

mast3rdoom



In Training
**

Group: Members
Posts: 11
Joined: 9-July 07
Member No.: 363,617






Nice tutorial.

But what do we make the program in? Notepad? What do we save it as? .exe?
Go to the top of the page
 
+Quote Post
post Jan 12 2009, 03:54 PM
Post #9

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






You need to download SCAR...

And you make the scripts in there...


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Jan 31 2009, 01:34 AM
Post #10

9413321223



Newbie
*

Group: Members
Posts: 2
Joined: 30-January 09
Member No.: 827,506






how do i use this thing dang
Go to the top of the page
 
+Quote Post
post Feb 12 2009, 01:47 AM
Post #11

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






What do you mean?


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Feb 12 2009, 03:17 PM
Post #12

Scaper123



Advanced
****

Group: Members
Posts: 67
Joined: 19-October 08
Member No.: 757,226






not a bad guide it could have some improvement in explaining the variables better like integer returns a value bollean returns true or false etc

7/10


--------------------
Go to the top of the page
 
+Quote Post
post Mar 11 2009, 02:31 AM
Post #13

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Hehe, I explained that in my Java guide. grin.gif


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Apr 7 2009, 01:10 PM
Post #14

zeusofgods



In Training
**

Group: Members
Posts: 31
Joined: 2-April 09
Member No.: 874,662






QUOTE(mistikman @ Mar 10 2009, 09:31 PM) *
Hehe, I explained that in my Java guide. grin.gif


i dont get it i mean yeah i get that this is scar or whatever but what all can this be used for can you use it to cheat on games?
Go to the top of the page
 
+Quote Post
post Apr 8 2009, 04:31 AM
Post #15

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Yeah you can use it to automate on RuneScape 2.


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Nov 8 2009, 05:11 AM
Post #16

hotshot1237



Newbie
*

Group: Members
Posts: 1
Joined: 8-November 09
Member No.: 1,039,816






I'm sorry i am 100% new to this. I dont know what all these variables and constants mean. I am a blonde so i have been told i am dumb i know i am but i am having trouble. I am just trying to make a simple mining macro. So Far I Have:

1. Procedure MineRocks;
2. Begin
3.//times=10;
4.Var 5/10
5.end


Thats it exactly to the last "/". It says lots of different things that sound really smart. which means i dont know them. So if you could please help me out.


This post has been edited by hotshot1237: Nov 8 2009, 05:17 AM
Go to the top of the page
 
+Quote Post
post Nov 14 2009, 04:24 AM
Post #17

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Copy and Paste what it says on here.


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 21st March 2010 - 07:01 PM