Results 1 to 11 of 11

Thread: [RSPS] Fighter bot

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

    Question [RSPS] Fighter bot

    I want to create a fighter bot that checks if npc is dead and attacks new npc
    how can i make that?

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Does this RSPS have an XP bar like this?


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

    Default

    Yep but it doesn't count it good because i already got it 99 and now it's glitching
    Last edited by xX4m4zingXx; 03-16-2014 at 07:36 PM.

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by xX4m4zingXx View Post
    Yep
    Is the server called soulsplit?

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

    Default

    read my edit. and no. it's an pi. aggroth i believe

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by xX4m4zingXx View Post
    read my edit. and no. it's an pi. aggroth i believe
    So does it have a XP bar on the mainscreen or not?

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

    Default

    yes it does but it's glitchy but it does

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by xX4m4zingXx View Post
    yes it does but it's glitchy but it does
    You can count the number of colors in the XP bar, and check if that number changed. If it did not, then you can assume you're no longer in combat and thus killed a monster

    Simba Code:
    function differentCount(time:integer): Boolean;
    var
      _white_count:integer;
    begin
      _white_count := countColorTolerance(16777215, 410, 110, 508, 123, 5);
      wait(time);
      result := (_white_count <> countColorTolerance(16777215, 410, 110, 508, 123, 5));
    end;

    function inCombat:boolean;
    begin
      result := differentCount(3300);
    end;

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

    Default

    oh yeh that's a good one, but what do all that numbers mean because i got an xp bar but it's other colors

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

    Default

    Bump

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

    Default

    Ok, i now got this code
    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.
    but it doesn't attack again after it killed the monster
    can you help me?

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
  •