Page 1 of 2 12 LastLast
Results 1 to 25 of 27

Thread: What font is this; and how do i make it click the specific color

  1. #1
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What font is this; and how do i make it click the specific color

    The colors I picked (debug)

    Code:
    Color Picked: 85981 at (322, 154)
    Color Picked: 370862 at (159, 162)
    Color Picked: 3095622 at (198, 159)
    Color Picked: 1781557 at (222, 162)
    Color Picked: 5921621 at (288, 161)
    Color Picked: 370862 at (355, 155)
    Color Picked: 5067346 at (162, 184)
    Color Picked: 43264 at (200, 194)
    Color Picked: 5330261 at (231, 193)
    Color Picked: 605562 at (260, 191)
    Color Picked: 407451 at (292, 192)
    Color Picked: 65536 at (322, 194)
    Color Picked: 5462623 at (358, 190)
    Color Picked: 65536 at (169, 225)
    Color Picked: 65536 at (164, 226)
    Color Picked: 8158069 at (171, 225)
    Color Picked: 3095622 at (172, 221)
    Color Picked: 65536 at (193, 229)
    Color Picked: 1781557 at (194, 233)
    Color Picked: 16777215 at (863, 191)
    Color Picked: 5921621 at (230, 227)
    Color Picked: 65536 at (260, 223)
    Color Picked: 65536 at (258, 224)
    Color Picked: 801368 at (258, 235)
    Color Picked: 85981 at (291, 230)
    Color Picked: 801368 at (325, 227)
    Color Picked: 5593690 at (350, 234)
    the image (what font this is)


    how do i make it so if that comes up, make it read the text of the skill, in that one its "hitpoints", and click the following color codes (hitpoints > 3047422)

    What I have so far.


    Code:
    program LexxxxAutoAlcher;
    begin
    
    procedure AntiCheatInterace;
    hitpoints = 3047422;
    attack = 370862;
    strength = 3095622;
    range = 1781557;
    defence = 5921621;
    prayer = 370862;
    agility = 5067346;
    herblore = 43264;
    thieving = 5330261;
    crafting = 605562;
    runecrafting = 407451;
    slayer = 65536;
    farming = 5462623;
    mining = 3095622;
    smithing = 1781557;
    fishing = 5921621;
    cooking = 801368;
    firemaking = 85981;
    woodcutting = 801368;
    fletching = 5593690;
    end;
    
    If FindText(x, y, 'itpoints'
    
    end.

    I looked at tuts, didn't understand half...

    I believe this is right section if not, infract me... :C

  2. #2
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Since your on an older RS, why don't you just assign coordinates to each skill? Or, you could use if GetColor(x, y) = HPColor then ClickMouse

    etc.

  3. #3
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    I think you have to make your own font for this, because i havent seen that in rs2

  4. #4
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    What I'd do is to count the number of orange points ("Hitpoints" text color in this case) and make a case like this:

    Simba Code:
    case CoundColor() of
      0: Skill := SKILL_HP;
      1337: Skill := SKILL_SMITHING;
      9001: Skill := SKILL_SAILING;
    else
      WriteLn('Unable');
      Exit;
    end;

  5. #5
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    What I'd do is to count the number of orange points ("Hitpoints" text color in this case) and make a case like this:

    Simba Code:
    case CoundColor() of
      0: Skill := SKILL_HP;
      1337: Skill := SKILL_SMITHING;
      9001: Skill := SKILL_SAILING;
    else
      WriteLn('Unable');
      Exit;
    end;
    Every skill comes up as a different color. afaik...

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  6. #6
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    It could be the font that i attached, but im not sure.

  7. #7
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    Since your on an older RS, why don't you just assign coordinates to each skill? Or, you could use if GetColor(x, y) = HPColor then ClickMouse

    etc.
    .


    can you help me with this please ?


    Edit:

    just might not work, cause it shows all skills, so how would i do it if it asks to click Hitpoints.. it could click it everytime the interface comes up
    Last edited by iPhone; 07-19-2011 at 01:00 AM.

  8. #8
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by iPhone View Post
    .



    can you help me with this please ?


    Edit:

    just might not work, cause it shows all skills, so how would i do it if it asks to click Hitpoints.. it could click it everytime the interface comes up
    Make a bitmap of a part of the interface and then make your function called screenexists, and this should work:

    Simba Code:
    program new;
    {$i srl\srl.scar}

    procedure clickallskills;
    var
      coords: TPointArray;
      a: Integer;
    begin
      coords:= [Point(1, 1), Point(2, 5), Point(6, 8)];
      for a:= 0 to High(coords) do
      begin
        Mouse(coords[a].x, coords[a].y, 0, 0, True);
        wait(1500 + Random(150));
        if screenexists then
          continue;
        break;
      end;
    end;


    begin
      clickallskills;
    end.

  9. #9
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  10. #10
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    i dont get what the problem is, if the name of each skill is a different color then cant he just search for the color, if they are the same color then why not count the color?

    ~shut
    That is only one part of the solution......

    Here is what he needs to do:
    1)Find out what skill he needs to click
    2)Click it

    or do it my way

  11. #11
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  12. #12
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    what client is it?

    ~shut
    You mean what private server? Im gonna have a stab in the dark and say its CrisisX.

  13. #13
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  14. #14
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    ok, assuming it is CrisisX, any idea what he is doing so i can reproduce it

    ~shut
    That screenshot he posted in the OP is basically the equivalent of a random event for that server(which might or might not be crisisx since ive played it quite a while ago). To reproduce it....i think you just do some skill for a few mins. So if he gets that screen and tells him to click Attack, then he needs to click the attack button. And he's asking for help on how to do it.

  15. #15
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    server is GenerationX Eco

    317

    He just added this for alching so im trying to bot it without the error of that coming up ;l

  16. #16
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  17. #17
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes

    Add me: Ipod or iPhone

    if u have msn or skype here:
    msn: apples-r-ftw-like-u-umm-lol@live.com
    skype: ipod.pker
    Last edited by iPhone; 07-19-2011 at 02:18 PM.

  18. #18
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  19. #19
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try now

  20. #20
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    anyone :l

  21. #21
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    You need to make a dtm of the text. If I can find time I will make this for you tomorrow.
    Working on: Tithe Farmer

  22. #22
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  23. #23
    Join Date
    Jul 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Magic tab > W teleport > Bob

  24. #24
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    To solve this you can make masked bitmaps of each of the letters.. gunna require precise photo editing.. I used to do it for scar a very long time ago.. you make a masked bitmap and loop through it..

    so: for each bitmap u have, u match it with a tolerance to the text on the screen.. MUCH HARDER than the second option below.

    Or u can make a masked bitmap for each of the *words* if the font doesn't change.. if it does u'd have to use a masked deformed bitmap with an certain accuracy range.

    pseudo code:
    if find MaskedHitpointsBitmap then click hitpoints.. etc etc..
    I am Ggzz..
    Hackintosher

  25. #25
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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