Results 1 to 5 of 5

Thread: I am Making a chickenkiller

  1. #1
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I am Making a chickenkiller

    But it doesn't click the chicken... instead it just sits there as if it isn't even running!
    SCAR Code:
    program ChickenKiller;

    {.include srl/srl.scar}


    var x,y: integer;

    Const

    ChickenColor = 2048088;
    TimeToPlay = 600000;//IN MILISECONDS//

    Procedure CheckIfLoggedIn;
     begin
     Writeln('You are running ChickenKiller by wade007')
     wait(1000)
     If(Not(loggedin)) then
     begin
     Writeln('Please login before running script')
     end;
    end;

    Procedure AttackChicken;
     begin

      If (FindColorTolerance(x,y, ChickenColor , 495, 166 , 991, 478,30)) then
       begin
       If IsUptextMulti('cken','hicken','chic')
       then
        begin
        Mouse(x,y,1,1, true)
        end;
       end;
    end;

    procedure Debug;
    begin
    writeln(' Thank you for using my ChickenKiller')
    wait(400)
    Writeln(' It is still in beta, so don''t be too harsh')
    end;

    begin
    SetupSrl;
    ActivateClient;
    MakeCompass('N')
      repeat
      AttackChicken
      Until(false)
    end.
    See what you can do with it!
    Thanks In Advance

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Looking for the color doesn't mean your mouse will move to it. After If (FindColorTolerance(x,y, ChickenColor , 495, 166 , 991, 478,30)) then, put MMouse(x, y, 1, 1), then do the check for the uptext.
    :-)

  3. #3
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, that was obvious! why didn't i see that...
    Thanks for the help!

  4. #4
    Join Date
    Dec 2007
    Location
    Canada
    Posts
    187
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Method had a good point. I didnt notice that. The script looks like it should work fine if you change that.

    ~Insanomano~

  5. #5
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ^^^That was just spam insanomano,^^^ he already helped me, there is no need for that post.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ChickenKiller
    By Fasga in forum First Scripts
    Replies: 15
    Last Post: 02-28-2009, 10:25 AM
  2. I am Making a chickenkiller
    By Wade007 in forum OSR Help
    Replies: 5
    Last Post: 12-23-2007, 04:01 AM

Posting Permissions

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