Results 1 to 4 of 4

Thread: Im sure this is a little error... If, Else etc + Auto colour?

  1. #1
    Join Date
    Jan 2007
    Location
    Hamilton, New Zealand
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Im sure this is a little error... If, Else etc + Auto colour?

    Here is the code I am using -

    SCAR Code:
    Procedure WalkToRuneShop;
    Begin
    RuneShopColour := 3361881;
    if (FindSymbol(x, y, 'magic shop')) then
    begin
      Mouse(x, y, 5, 5, True);
      Writeln('Found the magic shop symbol. Walking there now.');
    end else
    RadialWalk( RuneShopColour , 153, 200, 70, 0, 1);
    Writeln('Walking to the rune room now.');
    end;

    Im having a few problems. The first is that I cant seem to format the if else part right.
    That there is the whole procedure and as you can see, after else there is only one end. I want it so that else can execute a new block of statments, e.g. RadialWalk( RuneShopColour , 153, 200, 70, 0, 1) & Writeln('Walking to the rune room now.').
    At the moment, after the symbol is found, it still prints "Walking to rune room now".

    Second of all, is there any tolerance for Radial Walk? Each time rs logs in the colour changes, or a auto colour feature might also be help full.

    Any help appreciated

  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Like this?
    SCAR Code:
    Procedure WalkToRuneShop;
    Begin
      RuneShopColour := 3361881;
      if (FindSymbol(x, y, 'magic shop')) then
      begin
        Mouse(x, y, 5, 5, True);
        Writeln('Found the magic shop symbol. Walking there now.');
      end else
      begin;
        RadialWalk( RuneShopColour , 153, 200, 70, 0, 1);
        Writeln('Walking to the rune room now.');
      end;
    end;

    You must tell scar what part you want to do after the 'else' statement.
    If you don't use begin & end. It will only do 1 line after the else statement.
    When you indicate the part by begin & end. It does everything between begin & end x)
    Verrekte Koekwous

  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    RadialWalk with tolerance: RadialWalkEx. Check it in the includes...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Jan 2007
    Location
    Hamilton, New Zealand
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help everyone. Decided just to use a blind click instead of radial walk for such a short distance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. symbol auto colour
    By poolikemax in forum OSR Help
    Replies: 5
    Last Post: 12-23-2008, 03:28 PM
  2. RadialWalk colour?
    By StrikerX in forum OSR Help
    Replies: 8
    Last Post: 04-22-2008, 10:47 PM
  3. Get colour mouse is over?
    By Bigfish58 in forum OSR Help
    Replies: 3
    Last Post: 10-23-2006, 09:02 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
  •