Results 1 to 3 of 3

Thread: Axe Finder :(

  1. #1
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Axe Finder :(

    My axe finder doesn't find the axe. What's wrong??

    SCAR Code:
    function DoWeHaveAxe : boolean;
    begin
      Axe := DTMFromString('78DA63B465606010674001DD9982609A11CA6' +
           '7F40612820C688011558D0F90E022A0C61348701250634F843956' +
           '404282801A4B20A144400DC8EF32F8D50000C67E03C4');
      DragonAxe := DTMFromString('78DA631464606090634001B61616609A11CA6' +
           '7140512420C688011558D3290E025A0461548881350C30D245409' +
           'A89102125CF8D50000127301D5');
      If (FindDTM(Axe, x, y, MIX1, MIY1, MIX2, MIY2)) or (FindDTM(DragonAxe, x, y, MIX1, MIY1, MIX2, MIY2)) then
      Result := True;
    end;

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Are you trying to find the axe in your inventory or the bank? That only finds in inventory.

    Edit: Also that DTM might be mssed up.

    You could try using mine . Just make sure you credit me! Or not, it dosen't matter xD.


    SCAR Code:
    {*******************************************************************************
    function FindAxe : Boolean;
    By: Da 0wner
    Description: Finds an axe in player's inventory. Returns true if found, false if not found.
    *******************************************************************************}


    Function FindAxe : Boolean;

    Var
    AxeDTM, DragonAxeDTM, x, y:integer;

    Begin

    AxeDTM := DTMFromString('78DA63DCCDC4C0A0CBC8800C5A530419FE036' +
           '990E87F20603C0954A380AA06220B2381F476A01A4B026AF601D5' +
           'C8135003B24B03BF1A006E6A0AA2');

    DragonAxeDTM := DTMFromString('78DA631464606090634001B61616609A11CA6' +
           '7140512420C688011558D3290E025A0461548881350C30D245409' +
           'A89102125CF8D50000127301D5');

      If (FindDTM(axedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) or (FindDTM(dragonaxedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) then
      Begin
        Result := True;
      End;

      If not (FindDTM(axedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) or (FindDTM(dragonaxedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) then
      Begin
     Result := False;
     End;
    End;

  3. #3
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Are you trying to find the axe in your inventory or the bank? That only finds in inventory.

    Edit: Also that DTM might be mssed up.

    You could try using mine . Just make sure you credit me! Or not, it dosen't matter xD.


    SCAR Code:
    {*******************************************************************************
    function FindAxe : Boolean;
    By: Da 0wner
    Description: Finds an axe in player's inventory. Returns true if found, false if not found.
    *******************************************************************************}


    Function FindAxe : Boolean;

    Var
    AxeDTM, DragonAxeDTM, x, y:integer;

    Begin

    AxeDTM := DTMFromString('78DA63DCCDC4C0A0CBC8800C5A530419FE036' +
           '990E87F20603C0954A380AA06220B2381F476A01A4B026AF601D5' +
           'C8135003B24B03BF1A006E6A0AA2');

    DragonAxeDTM := DTMFromString('78DA631464606090634001B61616609A11CA6' +
           '7140512420C688011558D3290E025A0461548881350C30D245409' +
           'A89102125CF8D50000127301D5');

      If (FindDTM(axedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) or (FindDTM(dragonaxedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) then
      Begin
        Result := True;
      End;

      If not (FindDTM(axedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) or (FindDTM(dragonaxedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) then
      Begin
     Result := False;
     End;
    End;
    Could be shorter:
    SCAR Code:
    {*******************************************************************************
    function FindAxe : Boolean;
    By: Da 0wner
    Description: Finds an axe in player's inventory. Returns true if found, false if not found.
    *******************************************************************************}

    Function FindAxe : Boolean;
    Var
    AxeDTM, DragonAxeDTM, x, y:integer;
    Begin
      AxeDTM := DTMFromString('78DA63DCCDC4C0A0CBC8800C5A530419FE036' +
           '990E87F20603C0954A380AA06220B2381F476A01A4B026AF601D5' +
           'C8135003B24B03BF1A006E6A0AA2');
      DragonAxeDTM := DTMFromString('78DA631464606090634001B61616609A11CA6' +
            '7140512420C688011558D3290E025A0461548881350C30D245409' +
           'A89102125CF8D50000127301D5');
      result:=FindDTM(axedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) or (FindDTM(dragonaxedtm, x, y,  MIX1,MIY1,MIX2,MIY2)) then
    End;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating a pick head finder, and gas finder
    By Tom_Gower in forum OSR Help
    Replies: 7
    Last Post: 11-07-2008, 07:06 AM
  2. My Ent Finder
    By skilld u in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 04:13 PM
  3. need ent finder help
    By poolikemax in forum OSR Help
    Replies: 9
    Last Post: 02-07-2008, 09:20 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
  •