Results 1 to 5 of 5

Thread: Need help with my arrow equiper

  1. #1
    Join Date
    Jun 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with my arrow equiper

    well, so far in my script, this is what i have...

    Program Arrows;

    {.Include SRL/SRL.Scar}


    Function EquipArrows:
    var
    (GameTab: Integer)
    Begin
    GameTab(4: Integer): Boolean;
    If(FindColor(dx, dy, 4079171, 554, 367, 731, 535))Then
    Begin
    wait(20);
    Mouse(Dx, Dy, 5, 5, True);
    Else
    End;

    Begin
    setup;
    EquipArrows;
    End.


    For some reason, i cant get the GameTab to work, it just says "Line 7: [Error] (12650:1): Unknown type 'GameTab' in script"

  2. #2
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    well its kinda obvious u cant put gametab(4:integer):boolean like that....just put gametab(4) and also u dont have to define gametab as a variable


    SCAR Code:
    Program Arrows;

    {.Include SRL/SRL.Scar}

    var
    dx,dy:integer

    Function EquipArrows:boolean; //define it in the function

    Begin
      GameTab(4);
      If(FindColor(dx, dy, 4079171, 554, 367, 731, 535))Then
      Begin
        Result:=True;
        wait(20);
        Mouse(Dx, Dy, 5, 5, True);
      end else
        begin
      result:=false;
    //rest of failsafe
         end;
    end;

    //rest of script blah

    srry had to kinda rush. if this helped be sure to rep+ haha

  3. #3
    Join Date
    Jun 2007
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, i see now, thank you very much for the help. Im just trying to edit another script so it will equip arrows and run for a longer period of time.

  4. #4
    Join Date
    Dec 2006
    Location
    Boss central
    Posts
    811
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Program Arrows;

    {.Include SRL/SRL.Scar}

     Var
    Dx,Dy:integer;
    procedure EquipArrows;
    Begin
    GameTab(4);
    If(FindColor(dx, dy, 4079171, 554, 367, 731, 535))Then
    wait(20);
    Mouse(dx, Dy, 5, 5, True);
    End;

    Begin
    setupsrl;
    EquipArrows;
    End.

    that should work tho i didnt test but u could use dtm and such for better finding and use this as failsafe which is quiet easy
    Add me on msn if u want more information or pm me on forums

    -hayhay89
    Being A Boss

  5. #5
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Also remember to have random waits in every wait line

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how do you keydown the down arrow
    By i like mauls in forum OSR Help
    Replies: 6
    Last Post: 02-02-2008, 09:28 PM
  2. Arrow Heads..
    By Thick As Blood in forum Construction, Crafting and Fletching
    Replies: 2
    Last Post: 05-27-2007, 02:15 AM
  3. What is the code for the up arrow key?
    By sexynite in forum OSR Help
    Replies: 1
    Last Post: 05-01-2007, 12:48 AM
  4. Arrow Key Names
    By R0b0t1 in forum OSR Help
    Replies: 5
    Last Post: 04-01-2007, 09:35 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
  •