Results 1 to 2 of 2

Thread: ClickMouse if not found color?

  1. #1
    Join Date
    Nov 2011
    Location
    Netherlands
    Posts
    156
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default ClickMouse if not found color?

    Hello all!

    I'm trying to make a BattleScape (RSPS) bot.
    Its working out pretty well!

    This is my first attempt to SRL/Simba.

    But now i have a problem.

    I made a thieving bot, but how do i make it reconise if there is no food?

    i tried:


    SCAR Code:
    procedure GetHP;
    begin

    if (FindColor(x,y,Shark,556,256,724,451))  then
     begin
      MoveMouse(x,y+random(3));
       Wait(randomrange(500, 700));
      ClickMouse(x,y,mouse_Left);
       Wait(randomrange(300, 450));

        MoveMouse(642,183); //Move to BackPack
        Wait(randomrange(20, 30));
      ClickMouse(642,183,1); //Click BackPack

       if not (FindColor(x,y,Shark,556,256,724,451)) then

    exit;

       end;
       end;
    end;
         end;

  2. #2
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Check if there is the color of the food being eaten inside of a box for each inventory spot. Or just check if the color is anywhere in the inventory.

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
  •