Results 1 to 4 of 4

Thread: Need Help on RadialWalk

  1. #1
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Need Help on RadialWalk

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var i, x, y: integer;
    ColorArray:array of integer;
    begin
      i:=2;
      SetArrayLength(ColorArray,i);
      ColorArray[0] := 2382951;
      ColorArray[1] := 2514794;
      SetupSRL;
      ActivateClient;
      Wait(1000);
        repeat
          RadialWalk(ColorArray,180,300,56,-1,-1);
          until(FindSymbol(x, y, 'bank'));
            Mouse(x,y,x,y,true);
    end.

    Line 14: [Error] (14695:40): Type mismatch in script

    Can someone help me? I want for this to search for both of these colors.

    Cut em2 it
    Formerly known as Cut em2 it

  2. #2
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    you get a type mismatch because your trying to pass an array as an integer arguement. Theres is no real way to do what your trying to do unless you write a custom radialwalk, or run radialwalk twice.

    but what i suggest, look into RadialWalkEx and use a tolerance

  3. #3
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by munk View Post
    you get a type mismatch because your trying to pass an array as an integer arguement. Theres is no real way to do what your trying to do unless you write a custom radialwalk, or run radialwalk twice.

    but what i suggest, look into RadialWalkEx and use a tolerance
    Thanks! I'll look in to this.
    Formerly known as Cut em2 it

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    var i, x, y: integer;
    ColorArray:array of integer;
    begin
      i:=2;
      SetArrayLength(ColorArray,i);
      ColorArray[0] := 2382951;
      ColorArray[1] := 2514794;
      SetupSRL;
      ActivateClient;
      Wait(1000);
        repeat
          for i:= 0 to 1 do
          begin
          RadialWalk(ColorArray[i],180,300,56,-1,-1);
          end;
          until(FindSymbol(x, y, 'bank'));
            Mouse(x,y,x,y,true);
    end.

    You could do it like that. Dunno what your trying to do tho.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. RadialWalk?
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-19-2008, 09:25 AM
  2. RadialWalk Help
    By Esteban in forum OSR Help
    Replies: 12
    Last Post: 06-13-2007, 02:33 AM
  3. Replies: 3
    Last Post: 06-11-2007, 08:40 PM
  4. Help W/ RadialWalk
    By IEatJ00erBaybees in forum OSR Help
    Replies: 6
    Last Post: 05-29-2007, 01:51 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
  •