Results 1 to 4 of 4

Thread: Help on AutoFighter

  1. #1
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Help on AutoFighter

    Below is a section of my auto fighter, have i used arrays correctly? or would i be better of using a multi colour call? How do you go about making it loop? and how do i call on the infight function, where?
    SCAR Code:
    Procedure Slaughter
       var
          CC: array [0..3] of integer;
          i, g, Cx, Cy :integer;
         
       Begin
       CC[0]:= 14804196;
       CC[1]:= 2576236;
       CC[2]:= 2708595;
             for g:= 0 to 2 do
             Begin
                if (FindColorTolerance( Cx, Cy, CC[g], 175, 60, 330, 200, Tolerance + i)) then
                   if IsUpText('Cow') then
                      Begin
                        Wait(500);
                        Mouse(Cx,Cy,3,3,True)
                      End;
             End;

       End;

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by me_ntal View Post
    Below is a section of my auto fighter, have i used arrays correctly? or would i be better of using a multi colour call? How do you go about making it loop? and how do i call on the infight function, where?
    SCAR Code:
    Procedure Slaughter
       var
          CC: array [0..3] of integer;
          i, g, Cx, Cy :integer;
         
       Begin
       CC[0]:= 14804196;
       CC[1]:= 2576236;
       CC[2]:= 2708595;
             for g:= 0 to 2 do
             Begin
                if (FindColorTolerance( Cx, Cy, CC[g], 175, 60, 330, 200, Tolerance + i)) then
                   if IsUpText('Cow') then
                      Begin
                        Wait(500);
                        Mouse(Cx,Cy,3,3,True)
                      End;
             End;

       End;
    The arrays are correcy, but your login isn't.

    When you find a color, you first have to move the mouse... you can't check for uptext already.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks, how would i make it work to check if i was in a fight then make it loop?

  4. #4
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    From the srl manual.

    function InFight: Boolean;
    By: WT-Fakawi
    Description:
    Returns as True if in fight.

    procedure OutFight;
    By: XxKanexX
    Description:
    If in Fight waits until out of a fight.

    That answers your first questions

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. THE new autofighter NX
    By HayHay89 in forum News and General
    Replies: 13
    Last Post: 08-10-2008, 03:11 AM
  2. Autofighter
    By mistak in forum OSR Help
    Replies: 5
    Last Post: 05-17-2008, 05:10 PM
  3. autofighter
    By Bonfield in forum RS3 Outdated / Broken Scripts
    Replies: 43
    Last Post: 08-27-2007, 10:04 AM

Posting Permissions

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