SRL Archive - OSR Outdated Tutorials

Color Picking Tutorial


Sdcit

2006-02-16 18:46:17

Yes, another color picking Tutorial



NOTE: This tutorial starts at the point in which you have gotten scar

Introduction: In this tutorial we will cover:

1. How to pick colors
2. How to put colors into a setup

What are colors


Colors you see are what Scar detects things as. Each color on the computer has its very own code like 0=black. Scar uses this color to find objects

How to get a color


To get a color, you must use something called a color picker which shall be later described


Getting a color


1.

The above image is the tool bar that should be in scar.



That is the legendary color picker, one of the basics of all scripts. *Orchestral music plays*


2. To find a color, you must click the color picker. To do so, you move your mouse over to the button, then take your left hand, place it over your right pointer finger, and push down.

After doing so, the whole screen should freeze except the mouse.

3. You should see your mouse has magically transformed into crosshairs with a quote like tag protruding from it. Move that over to the color on the item you wish to pick. For example, if the script said

Pick the color of a essence in your inv

Then you'd move the crosshairs/mouse over to the essence and click.


4. A set of #'s like

Color Picked: 16777215 at (498, 309)

should appear in the debug box as shown in the picture below


THat is the Debug box.

Drag your mouse over the 16777215 (that is the color, in this example) and hit
ctrl+c.

5.
Setting up



There are 2 types of setups, one in the const and one as a procedure

const setting


const

Under that their should be things like

const
rockcolor=123213;//color of the rock

or something. Highlight whatever is after the = sign and hit ctrl+v. The color of the object should be put their.

Procedure setup


Some scripts require the colors to be put in a procedure like

procedure setup;
begin
rockcolor:=123213//color of the rock
end;

or something. Highlight whatever is after the := sign and hit ctrl+v. The color of the object should be put their.



Other stuff:


1. Color is automatically copied to ctrl+c

Common terms used in color picking

Here are some common terms used in color picking that I have seen. If you notice others just tell me
MM- Minimap

MS- Mainscreen

Inv- Inventory

Credits:

Sdcit- I stole the guide from him

Jagex_fagex- Added MS, inv

BraK

2006-03-11 21:47:30

when they have find mmbankcolor in script how does they exactly work???

Jagex_Fagex

2006-03-12 04:04:01

ms - main screen

Great newbie tut!

Bam Bam

2006-03-12 10:27:52

you don't have to copy it out of the debug box it gets copied to clipboard automaticly

Sdcit

2006-03-12 14:42:06

From: jagex_fagex
ms - main screen

Great newbie tut!


thanks i added it

Phlame

2006-03-16 21:07:39

quite brief, but to the point, very well done i say.

papetowe

2006-03-17 00:20:49

Thanks!

Great help for people like me who have never laid eyes on scar.

Jagex_Fagex

2006-04-28 05:10:52

inv - inventory ??

The Un-Named

2006-04-28 22:10:30

From: Bam Bam
you don't have to copy it out of the debug box it gets copied to clipboard automaticly


Omg. :O

Never knew that!

Sdcit

2006-04-28 22:31:07

thanks, but i knew that :p. I just forgot to edit it. Oh well. no need i guess

wuggles

2007-12-03 17:49:53

good tutorial for newbies

KingNoob

2007-12-04 22:46:17

From: Bam Bam
you don't have to copy it out of the debug box it gets copied to clipboard automaticly


Really? Thats cool I never knew that

its_k-wood

2007-12-05 19:58:14

this is a short tut but it really gets right down to what u really need to know. Thanks for the great tut and u should be seeing scripts from me very soon

Draeg

2008-12-17 04:56:55

Ty for the Tut!