Results 1 to 5 of 5

Thread: [FIXED] FindAxe Updated!

  1. #1
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default [FIXED] FindAxe Updated!

    hey, i've been workin on a woodcutter for sometime now and noticed that some of the DTM's of FindAxe were outdated. So i updated it and used SRL_GetBitmaps instead so that if it needs an update it's just changing it in the bitmaps file.

    it now also works for black axe.

    SCAR Code:
    Function FindAxe:boolean;
    var
       InvAxe, WieldAxe, Ix, Iy: Integer;
    begin
      if not LoggedIn then exit;
      srl_LoadBitmaps([47, 48, 49, 50, 51, 52, 53]);

      GameTab(5);
      for WieldAxe := 0 to 6 do
        if FindBitmapToleranceIn(srl_GetBitmap(53-WieldAxe),Ix, Iy, 566, 285, 606, 327, 10) then
          break;

      GameTab(4)
      for InvAxe := 0 to 6 do
        if FindBitmapToleranceIn(srl_GetBitmap(53-InvAxe), Ix, Iy, MIX1, MIY1, MIX2, MIY2, 10) then
          break;

      if(InvAxe = 7)and(WieldAxe = 7)then
      begin
        Result := False;
        Writeln('No axe was found.');
        srl_FreeBitmaps;
        Exit;
      end;

      if((InvAxe - WieldAxe) < 0)then
        EquipAxe := False
      else
        EquipAxe := True;

      case Min(WieldAxe, InvAxe) of
        0: WriteLn('Using Rune axe');
        1: WriteLn('Using Addy axe');
        2: WriteLn('Using Mith axe');
        3: WriteLn('Using Black axe');
        4: WriteLn('Using Steel axe');
        5: WriteLn('Using Iron axe');
        6: WriteLn('Using Bronze axe');
      end;

      Result := True;
      srl_FreeBitmaps;
    end;



    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice! They're starting to get loads of things to include for REV#15,, I just hope this gets enough attention to get included. But, as usual, if this will be included the devs will edit this function and put their name(s) on it and remove your. But, still, nice work. I love contributors like you, keep it up!

    Edit: Yes, of course I saw that. I'm just saying davs will 'update' this EVEN more (just a slight bit), then put their own name on it.

  3. #3
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    oh, don't get the wrong impression. this is not something i made, this is already in srl. i just updated it.

    but thanks

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Added to SRL.
    Administrator's Warning:


  5. #5
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default


    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindAxe
    By Kyle Undefined in forum OSR Help
    Replies: 12
    Last Post: 11-27-2008, 05:06 PM
  2. Fixed SetChat for updated RS
    By Narcle in forum Research & Development Lounge
    Replies: 9
    Last Post: 11-06-2007, 04:45 PM

Posting Permissions

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