Results 1 to 4 of 4

Thread: [RSPS] Make bot repeat

  1. #1
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Lightbulb [RSPS] Make bot repeat

    I want to make this bot repeat attacking when my xpbar doesn't change
    i got this code already
    Code:
    Program AttachMonster;
    {$I RSPS/srlRSPS.Simba}
    function differentCount(time:integer): Boolean;
    var
    _white_count:integer;
    begin
      _white_count := countColorTolerance(16646143, 429, 80, 516, 95, 5);
      Wait(time);
      result := (_white_count <> countColorTolerance(16646143, 429, 80, 516, 95, 5));
    end;
    
    function inCombat:boolean;
    begin
      result := differentCount(3300);
    end;
    
    Procedure AttackMonster
    var
      X,Y:Integer;
    begin
      if FindColorTolerance (X, Y, 10337744, 44, 91, 556, 425, 2) then
      begin
      MouseSpeed := 15;
      Mouse(x, y);
      end
    else
      begin
      writeln('Couldnt find any monsters')
      end;
    end;
    begin
    AttackMonster;
    end.

  2. #2
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    Bump

  3. #3
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Simba Code:
    begin
      while (not inCombat()) do
       AttackMonster();
    end.

  4. #4
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    i added that but now i get this error.
    http://villavu.com/forum/showthread....45#post1290045
    *Fixed
    Last edited by xX4m4zingXx; 03-30-2014 at 12:07 AM.

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
  •