Results 1 to 3 of 3

Thread: Help!

  1. #1
    Join Date
    May 2012
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help!

    Can anyone help me out with a script I'm editing?

    I've recently began using this: http://villavu.com/forum/showthread.php?t=82223 and found a couple of bugs, some of which I fixed.

    Basically there's two problems I have left.
    One is failing to find the lava pit, but it worked before and just sometimes randomly can't find it.

    The second problem is what I'm trying to fix. When the bot tries to find the log balance, sometimes it bugs and the debug box spams "Found log balance" and just stops, and doesn't cross log balance. I tried fixing it by update colors (did that for whole script) and picked a part on the balance where the uptext was there and the color was noticeably darker than the rest, which seemed to fix it for awhile but now it keeps clicking the ground near the screen where it tells yo how deep in the wildy you are next to the skull. That sometimes randomly happens, and then sometimes it can't even find it when the log is in plain view! I thought of another solution, but idk how to do it. Would shifting the compass to the left help, since it would make the log appear bigger and take less of a chance of finding the ground?

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    What method (TPA's, DTM's) are you using to find the log?

  3. #3
    Join Date
    May 2012
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here's the code
    Simba Code:
    Function LogBalance:Boolean;
    Var
      WalkToLadder:TPointArray;
    begin
      If Not LoggedIn Then Exit;
      If FindNormalRandoms Then Exit;
      CurrentStatus := 'Log balance';
      SmartProggy;
      HP := HPPercent;
      [SIZE="7"][COLOR="Red"]ClickNorth(SRL_ANGLE_LOW)
      Wait(4000+Random(100));[/COLOR][/SIZE]
      If LogBalanceColor(x, y) Then
      begin
        HumanMouse(x, y, 0, 0, False);
        If OptionsExist(['cross'], False) Then
          ChooseOption('cross')
        else
        begin
          ChooseOption('ancel');
          LogBalance;
        end;
        Writeln('Crossing the log balance.');
        Wait(5000+Random(500));
        repeat
          Wait(1000+Random(25));
        until(BlackHoleColor(x, y) or DungeonColor(x, y));
        If DungeonColor(x, y) Then
        begin
          Writeln('Failed to cross the log balance.');
          SPS_Setup(RUNESCAPE_OTHER,['wilderness_dungeons']);
          WalkToLadder := [Point(162, 186), Point(171, 156)];
          SPS_WalkPath(WalkToLadder);
          repeat
            Wait(50+Random(25));
          until(Not IsMoving);
          Eat;
          If LadderColor(x, y) Then
            HumanMouse(x, y, 0, 0, True);
            repeat
              Wait(50+Random(25));
            until(LavaBroadColor(x, y));
            If WalkToLogBalance Then
            begin
              repeat
                Wait(50+Random(25));
              until(Not IsMoving);
              LogBalance;
            end;
        end;
        TotalExp := TotalExp + 20;
        Result := True;
      end
      else
      begin
        Writeln('Could not find the log balance. Logging out.');
        Logout;
      end;
    end;

    What I added is in red

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •