Results 1 to 4 of 4

Thread: SRL findaxe function

  1. #1
    Join Date
    Mar 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SRL findaxe function

    Hi everyone,

    im currently making a little draynor willowcutter, and im trying to get the srl function 'findaxe' working, I got the following:
    SCAR Code:
    program DraynorWillowerXL;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Woodcutting.scar}

    var
    x, y:     integer;
    EquipAxe: boolean;

    procedure CheckAxe;
    begin
    if (EquipAxe) then
       begin
          writeln('Axe is found, script will continue!')
       end
    end;

    now when i run the script (axe in inventory AND one wielded) I do not get my "axe found" message...anyone who's able to help me?

    Quipeace

  2. #2
    Join Date
    Jan 2008
    Location
    UK
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try FindAxe instead.. i.e.

    SCAR Code:
    program DraynorWillowerXL;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Woodcutting.scar}
     
    var
    x, y:     integer;
    EquipAxe: boolean;
     
    procedure CheckAxe;
    begin
    if FindAxe then
       begin
          writeln('Axe is found, script will continue!')
       end
    end;

    EquipAxe is just a boolean variable which you can set to true or false.
    For the Ultimate Monk Fisher: Ultra Monkfish n Bank Click Here


  3. #3
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    EquipAxe is set in FindAxe. So after FindAxe you know if the axe is equiped or not.
    Hup Holland Hup!

  4. #4
    Join Date
    Mar 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the help guys, script is almost finished now =)

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. FindAxe always False, doesn't even try
    By stein3 in forum OSR Help
    Replies: 10
    Last Post: 12-29-2007, 09:04 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
  •