[TUT] Basic ColorPicking Tutorial [/TUT]

Discussion in 'Code Snippets and Tutorials' started by SuBLiME, Apr 17, 2008.

  1. SuBLiME

    SuBLiME Level I

    Joined:
    Apr 17, 2008
    Messages:
    60
    Likes Received:
    0
    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.
    [​IMG]

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


    [​IMG]

    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
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Pick the color of a essence in your inv</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
    Then you'd move the crosshairs/mouse over to the essence and click.

    [​IMG]

    4. A set of #'s like

    Color Picked: 16777215 at (498, 309)

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

    [​IMG]

    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
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">const</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
    Under that there should be code like
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">const</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">rockcolor=123213;//color of the rock</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
    or something else. 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
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">procedure setup;</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">begin</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">rockcolor:=123213//color of the rock</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">end;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
    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

    DISCLAIMER:
    Yes, this guide WAS made by me years ago.
     
  2. chelsea1

    chelsea1 Level IV

    Joined:
    Nov 26, 2006
    Messages:
    2,538
    Likes Received:
    31
    Location:
    London
    if you stole the guide from him how did you make it yourself?
     
  3. SuBLiME

    SuBLiME Level I

    Joined:
    Apr 17, 2008
    Messages:
    60
    Likes Received:
    0
    Read my signature :) or my introduction.
     
  4. chelsea1

    chelsea1 Level IV

    Joined:
    Nov 26, 2006
    Messages:
    2,538
    Likes Received:
    31
    Location:
    London
    ok, although i think it would have been easy just to say you are him on another forum rather than you "stole it from him"