Results 1 to 2 of 2

Thread: Walking and Teleporting

  1. #1
    Join Date
    Dec 2011
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Walking and Teleporting

    I'm having a couple problems here.

    First off, walking. It walks, yet it always gets ahead of itself. It seems to jump right to other walk paths before finishing the first one.

    Simba Code:
    procedure falToDrag;
    Var
      x, y : Integer;
    begin
      MakeCompass('n');
      falToShortP := [Point(3598, 3176), Point(3593, 3227)];
      if SPS_WalkPath(falToShortP) then
      begin
        Writeln('Attempting to use shortcut');
        if FindColorSpiralTolerance(x, y, shortColor, MSX1, MSY1, MSX2, MSY2, 2) then
        begin
           MMouse(x, y, 3, 3);
           if(isUpText('rumbling')) then
           begin
             Mouse(x, y, 3, 3, True);
             wait(500 + random(700));
             shortToCaveP := [Point(3564, 3229), Point(3541, 3180), Point(3509, 3160), Point(3487, 3145), Point(3446, 3110), Point(3425, 3084), Point(3410, 3069), Point(3395, 3076), Point(3377, 3069)];
             if SPS_WalkPath(shortToCaveP) then
             begin
                if FindColorSpiralTolerance(x, y, caveColor, MSX1, MSY1, MSX2, MSY2, 2) then
                begin
                  MMouse(x, y, 3, 3);
                  if(isUpText('adder')) then
                  begin
                    Mouse(x, y, 3, 3, True);
                    wait(500 + random(700));
                  end;
               end;
             end;
           end;
        end;
      end;
    end;

    It starts searching for the shortcut before it's even half way to the first point.

    And now, teleporting. I've tried multiple DTMs, I just can't get it to find the Falador Teleport.

    Simba Code:
    procedure tele;
    Var
      teleDTM, x, y : Integer;
    begin
      teleDTM := DTMFromString('mbQAAAHicY2VgYPjCzMDwEIhPA7EwC1AAiFOZGBgqgDgGiKOAuAyIHeVjGWR4VRh0+PWB2ADMlmPABIxYMBgAADtYByw=');
      GameTab(tab_Magic);
      Writeln('Searching for teleport');
      if FindDTM(teleDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
        Writeln('Found that shit');
        MMouse(x, y, 3, 3);
         if(isUpText('alador')) then
         begin
           Mouse(x, y, 0, 0, True);
           wait(300 + random(200));
           falToBank;
         end;
      FreeDTM(teleDTM);
    end;
    It'll end up just sitting at the Magic tab for quite awhile before RuneScape kicks me.

  2. #2
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok for the walking part you need a wait method after the path. It doesn't wait thats why out goes ahead of itself. And for the teleport try using a bitmap. They are basically the same thing as DTM. I used a bitmap for my teleport and it works fine.

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
  •