Page 3 of 3 FirstFirst 123
Results 51 to 52 of 52

Thread: i got an problem with my mouse

  1. #51
    Join Date
    May 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    ok now i got this code
    Simba Code:
    program GhostKilling;
    {$i srl/srl.simba}
    procedure AttackMonster;
    var
     HealthBar, X, Y: Integer;
    begin
      HealthBar := DTMFromString('mrAAAAHic42BABaZQLAPFZkDMDMRsSGrYkPhguQkMDEJCQjjxfwb8gJEAhgEAlDEEEA==');
      repeat
        If FindDtm(HealthBar, X, Y, MSX1, MSY1, MSX2, MSY2) then
          Begin
            Wait(300)
          end
        Else
        begin
        if findcolortolerance(x, y, 11119020, MSX1, MSY1, MSX2, MSY2, 10) then
          Begin
            MMouse(x, y, 5, 5);
            wait(randomrange(200, 500));
            ClickMouse2(mouse_Left)
          end;
        End;
      until False;
      FreeDTM(HealthBar);
    end;

    begin
    setupsrl;
    AttackMonster;
    end.

    but now i want that it not just keeps clicking i want that it click one time like that this lines:
    Simba Code:
    MMouse(x, y, 5, 5);
            wait(randomrange(200, 500));
            ClickMouse2(mouse_Left)
    just click once because if it clicks on an monster it keeps clicking and clicking and than
    it clicks on other monsters and then my man is gonna walk away and... that takes houres


    Can you help me?

  2. #52
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Wait after the click not before it, do it like,

    MMouse();
    ClickMouse();
    Wait(4000);

    Then you can check if in combat after that


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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