Results 1 to 8 of 8

Thread: Help with walking, please :)

  1. #1
    Join Date
    May 2007
    Posts
    663
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with walking, please :)

    Here is the DDTM:

    SCAR Code:
    procedure LoadBurnSiteDDTM;
    var
      BSMainPoint: TDTMPointDef;
      BSSubPoints: array[0..5] of TDTMPointDef;
      BSTDTM: TDTM;
    begin
      BSMainPoint.x := 628;
      BSMainPoint.y := 86;
      BSMainPoint.areasize := 1
      BSMainPoint.areashape := 0;
      BSMainPoint.color := 1795933;
      BSMainPoint.tolerance := 255;

      BSSubPoints[0].x := 626;
      BSSubPoints[0].y := 74;
      BSSubPoints[0].areasize := 1;
      BSSubPoints[0].areashape := 0;
      BSSubPoints[0].color := 15594479;
      BSSubPoints[0].tolerance := 0;

      BSSubPoints[1].x := 647;
      BSSubPoints[1].y := 98;
      BSSubPoints[1].areasize := 1;
      BSSubPoints[1].areashape := 0;
      BSSubPoints[1].color := 15594479;
      BSSubPoints[1].tolerance := 0;
     
      BSSubPoints[2].x := 643;
      BSSubPoints[2].y := 83;
      BSSubPoints[2].areasize := 1;
      BSSubPoints[2].areashape := 0;
      BSSubPoints[2].color := 15594479;
      BSSubPoints[2].tolerance := 0;
     
      BSSubPoints[3].x := 625;
      BSSubPoints[3].y := 82;
      BSSubPoints[3].areasize := 1;
      BSSubPoints[3].areashape := 0;
      BSSubPoints[3].color := 15594479;
      BSSubPoints[3].tolerance := 0;
     
      BSSubPoints[4].x := 625;
      BSSubPoints[4].y := 84;
      BSSubPoints[4].areasize := 1;
      BSSubPoints[4].areashape := 0;
      BSSubPoints[4].color := 15594479;
      BSSubPoints[4].tolerance := 0;
     
      BSSubPoints[5].x := 651;
      BSSubPoints[5].y := 124;
      BSSubPoints[5].areasize := 1;
      BSSubPoints[5].areashape := 0;
      BSSubPoints[5].color := 15594479;
      BSSubPoints[5].tolerance := 0;

      BSTDTM.MainPoint  :=  BSMainPoint;
      BSTDTM.SubPoints  :=  BSSubPoints;
      BurnSiteDTM  :=  AddDTM(BSTDTM);
    end;

    Here is the walking procedure:

    SCAR Code:
    procedure WalkToBurnSite;
    begin
      if not(LoggedIn)then exit;
      FindNormalRandoms;
      RadialRoadWalk(findVarrockRoadColor, 265, 275, 40, -1, 0);
      Flag;
      if DTMRotated(BurnSiteDTM, x, y, MMX1, MMY1, MMX2, MMY2)then
      begin
        Mouse(x, y, 5, 5, true);
        Wait(200 + Random(210));
      end;
    end;

    No issues with the RadialRoadWalk - it takes me right where I want to be. It's the DTMRotated that isn't working

    I have a feeling my coordinates may be off .. I was having a hard time figuring them out

    Thanks!! Been beating my head for about 3 hours now.

  2. #2
    Join Date
    Dec 2006
    Location
    UK!!
    Posts
    910
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    re-make the DDTM? or change the tol, areasize

    ~Spaz

  3. #3
    Join Date
    May 2007
    Posts
    663
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okies .. I tried re-making it. It worked GREAT the first time .. now it works like ass

    SCAR Code:
    procedure LoadBurnSiteDDTM;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..5] of TDTMPointDef;
      MasterTDTM: TDTM;
      BurnSiteDDTM: integer;
    begin
      dtmMainPoint.x := 39;
      dtmMainPoint.y := 75;
      dtmMainPoint.AreaSize := 1;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 1795933;
      dtmMainPoint.Tolerance := 255;

      dtmSubPoints[0].x := 20;
      dtmSubPoints[0].y := 64;
      dtmSubPoints[0].AreaSize := 1;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 2441069;
      dtmSubPoints[0].Tolerance := 20;

      dtmSubPoints[1].x := 24;
      dtmSubPoints[1].y := 89;
      dtmSubPoints[1].AreaSize := 1;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 2441069;
      dtmSubPoints[1].Tolerance := 20;

      dtmSubPoints[2].x := 24;
      dtmSubPoints[2].y := 106;
      dtmSubPoints[2].AreaSize := 1;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 2441069;
      dtmSubPoints[2].Tolerance := 20;

      dtmSubPoints[3].x := 59;
      dtmSubPoints[3].y := 102;
      dtmSubPoints[3].AreaSize := 1;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 1133959;
      dtmSubPoints[3].Tolerance := 20;

      dtmSubPoints[4].x := 55;
      dtmSubPoints[4].y := 119;
      dtmSubPoints[4].AreaSize := 1;
      dtmSubPoints[4].AreaShape := 0;
      dtmSubPoints[4].Color := 1133959;
      dtmSubPoints[4].Tolerance := 20;

      dtmSubPoints[5].x := 47;
      dtmSubPoints[5].y := 70;
      dtmSubPoints[5].AreaSize := 1;
      dtmSubPoints[5].AreaShape := 0;
      dtmSubPoints[5].Color := 15594479;
      dtmSubPoints[5].Tolerance := 20;

      MasterTDTM.MainPoint := dtmMainPoint;
      MasterTDTM.SubPoints := dtmSubPoints;
      BurnSiteDDTM := AddDTM(MasterTDTM);
    end;

    SCAR Code:
    procedure WalkToBurnSite;
    begin
      if not(LoggedIn)then exit;
      FindNormalRandoms;
      RadialRoadWalk(findVarrockRoadColor, 265, 275, 40, -1, 0);
      Wait(2000 + Random(210));
      if DTMRotated(BurnSiteDDTM, x, y, MMX1, MMY1, MMX2, MMY2)then
      begin
        Mouse(x, y, 1, 1, True);
        Wait(2000 + Random(210));
      end;
      FreeDTM(BurnSiteDDTM);
    end;

    Anyone see any glaring errors??

    EDIT: Jeezus .. I've been doing this the hard way - I just found Nielsie's DDTM Editor. I will play some more with this.

  4. #4
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    RadialWalk/RadialRoadWalk has flag included in it. And why not use SRL symbol finder thing?

  5. #5
    Join Date
    May 2007
    Posts
    663
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ah thanks for that didn't know.

    Symbol won't work for this, unfortunately

  6. #6
    Join Date
    Mar 2007
    Location
    Ohio
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  7. #7
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well the thing about working badly after that..it's called autocolor. map colors change every time you log in, so that is most likely your problem

    EDIT: also, you free the BurnsiteDTM each time you walk, so make sure you recall it somewhere else in your script before walking there again
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  8. #8
    Join Date
    May 2007
    Posts
    663
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay guys .. I am fully retarded and can't figure this out Here is what I have:

    SCAR Code:
    procedure WalkToBurnSite;
    begin
      if not(LoggedIn)then exit;
      FindNormalRandoms;
      Grass := BitmapFromString(6, 6, 'beNpLkkpKl4ajuGQpIMIvkpwkB' +
           'UTkiAAAwlAfxQ==');
      RadialRoadWalk(FindVarrockRoadColor, 250, 275, 40, -1, 0);
      FFlag(Random(3));
      RadialWalk(AutoColorThis(Grass, 15, MMX1, MMY1, MMX2, MMY2), 230, 240, 41, -1, 1);
      FFlag(Random(3));
    end;

    Here is what I am trying to do: walk out of Edgeville bank and then over to where I want to start burning logs. Now it won't even walk to the road I'm not looking to be spoon fed the answer, but if someone could point me right .. I would appreciate it!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. walking help?
    By Rubix in forum OSR Help
    Replies: 0
    Last Post: 07-15-2008, 02:35 AM
  2. Walking
    By imskate182 in forum OSR Help
    Replies: 4
    Last Post: 12-20-2007, 05:18 AM
  3. Map walking
    By boberman in forum OSR Help
    Replies: 1
    Last Post: 12-06-2007, 12:48 AM
  4. help with walking
    By Jake_453 in forum OSR Help
    Replies: 7
    Last Post: 05-15-2007, 12:49 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
  •