Results 1 to 18 of 18

Thread: simple fighter..(fix it plox) rep ++

  1. #1
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default simple fighter..(fix it plox) rep ++

    ok so i need someone to fix this...
    program Killer;
    {.Include srl/srl.scar}
    const
    MonsterColor = 660604; // Use Simba or SCAR to pick the color from screen
    FightTime = 10000; // Milliseconds to wait after attacking
    UpTextColor = 320482;

    var
    Failed: Integer;

    function AttackMonster: Boolean;
    var
    X, Y: integer;
    begin
    if FindColorSpiralTolerance(X, Y, MonsterColor, 0, 0, 200, 200, 10); // Main-screen cordinates to (0, 0, 200, 200)
    begin
    MoveMouse(X, Y);
    Wait(100);
    if (CountColorTolerance(UpTextColor, 0, 0, 100, 20, 15) > 20) then
    begin
    ClickMouse(X, Y, True);
    Wait(FightTime);
    Result := True;
    end;
    end else Wait(500);
    end;

    begin
    repeat
    if (not AttackMonster) then
    Inc(Failed);
    until(Failed > 99);
    end.
    the error is..
    Line 15: [Error] (21106:68): 'THEN' expected in script
    Never Play Runescape Only Macro On It!!!!!

  2. #2
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    where on earth do you get all these old, outdated scripts?

  3. #3
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    lol i want it for a private server.. can you fix it?
    Never Play Runescape Only Macro On It!!!!!

  4. #4
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Which private server? What version of runescape does it play? And i really don't have time, also what's the point of botting on a private server when you can just type like /spawn item 1234 etc. to get free stuff and the likes?

    E:
    Simba Code:
    program Killer;
    {.Include srl/srl.scar}
    const
      MonsterColor = 660604; // Use Simba or SCAR to pick the color from screen
      FightTime = 10000; // Milliseconds to wait after attacking
      UpTextColor = 320482;

    var
      Failed: Integer;

    function AttackMonster: Boolean;
    var
      X, Y: integer;
    begin
      if FindColorSpiralTolerance(X, Y, MonsterColor, 0, 0, 200, 200, 10) then // Main-screen cordinates to (0, 0, 200, 200)
      begin
        MMouse(X,Y,2,2);
        Wait(100);
      end;
      if (CountColorTolerance(UpTextColor, 0, 0, 100, 20, 15) > 20) then
      begin
        Mouse(X,Y,2,2,True);
        Wait(FightTime);
        Result := True;
      end else Wait(500);
    end;

    begin
      repeat
        if (not AttackMonster) then
        Inc(Failed);
      until(Failed > 99);
    end.
    Last edited by TomTuff; 09-26-2010 at 12:53 AM.

  5. #5
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    i really only want a bot that just clicks a color thats all i want...
    Never Play Runescape Only Macro On It!!!!!

  6. #6
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    OP is a faggot, fix your own problems.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  7. #7
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    sorry im dumb but whats text color? cus its not even movin the mouse atm
    Never Play Runescape Only Macro On It!!!!!

  8. #8
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    uptext is the text that appears in the top left when you mouse over different things. i'm assuming uptext color would be the color that text, which is set in the constants.

  9. #9
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    well... it just stands in 1 place
    Never Play Runescape Only Macro On It!!!!!

  10. #10
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    i just took out the uptext part and it still does nothing
    Never Play Runescape Only Macro On It!!!!!

  11. #11
    Join Date
    Sep 2010
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would suggest reading the tutorial island area, learning how to script, then applying your own fixes, or better yet writing your own simple fighter. It will definitely be beneficial for you in the long run, and it's pretty fun too

  12. #12
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    Quote Originally Posted by Inspirations View Post
    I would suggest reading the tutorial island area, learning how to script, then applying your own fixes, or better yet writing your own simple fighter. It will definitely be beneficial for you in the long run, and it's pretty fun too
    Nicely said.. We are a learning community. If you wat to learn how to do it we can help. Only you know what you want it to actually do. No matter what you tell us it'll never be like you want because we made it in our way.

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  13. #13
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    every tutorial isnt helping for non rs scripts..
    Never Play Runescape Only Macro On It!!!!!

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

    Default

    Quote Originally Posted by rs cheata View Post
    every tutorial isnt helping for non rs scripts..
    use this one, its not for RS scripts, its he one that got me started and explains nearly everything you need to know (except logic) for a private server

    ~shut

  15. #15
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    use what one? lol no link
    Never Play Runescape Only Macro On It!!!!!

  16. #16
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    SCAR Code:
    program ColorClicker;

    //SETUP
    const
      COLORTOCLICK = 0;
      TOLERANCE = 0;
      X1 = 0;
      Y1 = 0;
      X2 = 0;
      Y2 = 0;
    //END OF SETUP

    var
      x, y: Integer;

    begin
      Wait(50);
      repeat
        Wait(50);
        if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
        begin
          ClickMouse(x, y, True);
          Wait(2000);
        end;
      until(false);
    end;

  17. #17
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by rs cheata View Post
    every tutorial isnt helping for non rs scripts..
    tutorials here are based on RuneScape, since that was what the include this forum discusses/develops was made for. However, the same concept can be applied to any game.

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

    Default

    Quote Originally Posted by antti mies View Post
    SCAR Code:
    program ColorClicker;

    //SETUP
    const
      COLORTOCLICK = 0;
      TOLERANCE = 0;
      X1 = 0;
      Y1 = 0;
      X2 = 0;
      Y2 = 0;
    //END OF SETUP

    var
      x, y: Integer;

    begin
      Wait(50);
      repeat
        Wait(50);
        if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
        begin
          ClickMouse(x, y, True);
          Wait(2000);
        end;
      until(false);
    end;
    That would only work in SCAR
    If you use Simba, then try this:
    Simba Code:
    program ColorClicker;

    //SETUP
    const
      COLORTOCLICK = 0;
      TOLERANCE = 0;
      X1 = 0;
      Y1 = 0;
      X2 = 0;
      Y2 = 0;
    //END OF SETUP

    var
      x, y: Integer;

    begin
      Wait(50);
      repeat
        Wait(50);
        if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
        begin
          MoveMouse(x, y);
          ClickMouse(x, y, True);
          Wait(2000);
        end;
      until(false);
    end;

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
  •