Results 1 to 14 of 14

Thread: how do i use this?

  1. #1
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how do i use this?

    Code:
    function FindMainScreenHits(Bar: Integer): Integer;
    var
       TIA: TIntegerArray;
    begin
      TIA := GetHitsIn(MSCX, MSCY, MSX1, MSY1, MSX2, MSY2);
      try
        Result := TIA[bar];
      except
        Result := -1;
      end;
    end;
    when i try add it as function its gives :
    Code:
    [Error] (121:10): Duplicate identifier 'FINDMAINSCREENHITS' at line 120
    Compiling failed.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Is that from inside SRL?
    If so just do FindMainScreenHitsIn(1) tonged your players hits I think.

    You dont need that actual chunk of code in your script, just the line above.
    I think .

    Why not just use getmmlevel? That will tell you how many hits left by reading your HP by the minimap.

  3. #3
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes is :P but what does (1) do in the code?

    well didint find getmmlevel from inside srl :O i just looked fighting.scar/.simba time to test this : P btw anyideas how to make bot wait till npc is dead and the loot shows up?

  4. #4
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by sibeliina View Post
    yes is :P but what does (1) do in the code?
    Simba Code:
    Bar: Integer

  5. #5
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok tried to add it but now it gives error : l

    tried it like this:
    Code:
    procedure Guardkiller;
    var x, y: integer;
    begin
     if FindObj(x, y, 'ttack', Guardcolor, 10) then
     writeln('moi');
      FindMainScreenHitsIn(1);
      begin
        Mouse(x, y, 2, 2, false);
        ChooseOption('ttack');  
    
    
    end;
    
    end;
    and it gives error like this :
    Code:
    [Error] (73:3): Unknown identifier 'FindMainScreenHitsIn' at line 72
    Compiling failed.

    damn this is hard lol

  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    My GUESS is that the function finds all health bars on the main screen, sorts them outwards from mscx, mscy and puts them into a TPA, so either 0 or 1 would be your health bar.

  7. #7
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    My GUESS is that the function finds all health bars on the main screen, sorts them outwards from mscx, mscy and puts them into a TPA, so either 0 or 1 would be your health bar.
    so i need to change 1 to 0`?

    still gives:

    [Error] (76:5): Unknown identifier 'FindMainScreenHitsIn' at line 75
    Compiling failed.

    :L

  8. #8
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by sibeliina View Post
    so i need to change 1 to 0`?

    still gives:

    [Error] (76:5): Unknown identifier 'FindMainScreenHitsIn' at line 75
    Compiling failed.

    :L
    Where is the function located at in SRL?

  9. #9
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its located
    C:\Simba\Includes\SRL\SRL\skill\fighting.simba
    Last edited by sibeliina; 01-06-2012 at 09:02 PM.

  10. #10
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by sibeliina View Post
    its located
    C:\Simba\Includes\SRL\SRL\skill
    That isn\t included in srl by default. You have to include that file at the top of you script.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  11. #11
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Simba Code:
    {$i SRL\SRL\Skill\fighting.simba}
    Here you go Mate.

  12. #12
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    u put it like this:

    Code:
    program new;
    {$Define Smart}
    {$i srl/srl.scar}
    {C:\Simba\Includes\SRL\SRL\skill\fighting.simba}
    still same error


    Quote Originally Posted by P1nky View Post
    Simba Code:
    {$i SRL\SRL\Skill\fighting.simba}
    Here you go Mate.
    didint help : L

  13. #13
    Join Date
    Dec 2011
    Location
    Kosovo
    Posts
    831
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    {$Define Smart}
    {$i srl/srl.simba}
    {C:\Simba\Includes\SRL\SRL\skill\fighting.simba}

    All now should be like .simba
    Try that

  14. #14
    Join Date
    Nov 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by begginer View Post
    {$Define Smart}
    {$i srl/srl.simba}
    {C:\Simba\Includes\SRL\SRL\skill\fighting.simba}

    All now should be like .simba
    Try that
    lol still same error <.<

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
  •