Results 1 to 14 of 14

Thread: Radialwalk help please

  1. #1
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Radialwalk help please

    1.) Is it possible to radialwalk without a specific color? Other people use raodcolor and stuff, but there is no raod where i am and lots of different colors, so can i tell it to just to walk that general direction without choosing any color?

    2.) Should i add a wait, flag, FFlag(4), or anything in between radialwalks so it can start the next one once the first one is done?

    3.) Isn't there a way to follow a path on the minimap because where i am, there is a path thats the same color. Isnt it called xmapwalk or something, if so, how do i use it or is there a tut.

    4.) Does a DTM have to be the same direction as when it was made?(ex. lets say i made a bitmap of a bank booth while i was facing north but now im facing east, will the DTM still find the bankbooth?


    Thanks a million of you know any of these.

  2. #2
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    2. No, I think Radial Walk has this "auto-flag" thing, it will do the next Radial Walk after the person has gone a certain distance towards the flag.
    Huehuehuehuehue

  3. #3
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok ty, that is what i was thinkign but i wasn't 100% sure. I need the 3 other questions answered now.

  4. #4
    Join Date
    Sep 2006
    Location
    West U.S.
    Posts
    2,172
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    1. i think you can try to stick in something like 'N' or 'S' although its just my guess.

    2.there's already an auto-flag

    3.its in there somewhere... i think instead of using a color to walk... just stick in fallyroadcolor or something like that

    4.better ask yohojo for that. although he did say that making DTM for objects in the MS is an incredibly hard task, so i guess its possible but its going to be difficult

    They are sisters...
    Runescape Classic

  5. #5
    ronny.m.p Guest

    Default

    Go to DTM.scar in the core folder and there should be a procedure about searching for a rotated dtm.

  6. #6
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, ty both of you.

    EDIT: yay 200 posts

  7. #7
    ronny.m.p Guest

    Default

    sorry i was mistaken the command is built into scar. Here is the syntax:

    FindDTMRotated(DTM:LongInv;var x:LongInt;var y:LongInt;x1:LongInt;y1:LongInt;x2:LongInt;y2:Long Int;StartAngle:Extended;EndAngle:Extended;AngleSte p:Extended;var Angle:Extended):boolean;
    I had to type that myself cus its not in the scar functions list!?!

  8. #8
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool thanks, now im tryign to find a way to walk without using a specific color. There must be a way to use radialwalk without a color or a way to walk in a general direction

  9. #9
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have a procedure called DirectionWalk you might be interested. You type in either 'n','ne','e','se', etc. and it will walk in that direction! If you want, i will post it in the new functions section.

  10. #10
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thats exactly what i want!!! Ive been trying things like EstimateDist, RunWhere, and RunTo but none of them so what I want. Ide love soemthing that walks the directions i tell it to.

    EDIT: when you say "new functions section", you mean the utilities section in free scripts, right?

  11. #11
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o right new functions is for SRL members only... here ill put it out now:

    SCAR Code:
    {*******************************************************************************
    procedure DirectionWalk(dir : string; radius, FFlagbreak : integer);
    By: Infantry001
    Description: Walks in a direction specified by user. Arguments for dir are - 'n',
    'ne','e','se', etc. Radius is how far out to walk, and FFlagbreak is how far you
    are from flag before exiting the procedure.
    *******************************************************************************}

    function RandomBetween(Number1,Number2 : integer) : integer;
    var
      i : integer;
    begin
      i := Round(Abs(Number1 - Number2)) + 1;
      if Number1 < Number2 then
        result := Number1 + Random(i)
      else
        result := Number1 - Random(i);
    end;

    procedure DirectionWalk(dir : string; radius, FFlagbreak : integer);
    var
      iX,iY : integer;
      Tradius,rad1,rad2,FRad : integer;
    begin
      TRadius := radius + random(6) - random(6);
      Case Lowercase(dir) of
      'n' : begin
              Rad1 := 340;
              Rad2 := 380;
            end;
      'ne' : begin
              Rad1 := 25;
              Rad2 := 65;
            end;
      'e' : begin
              Rad1 := 70;
              Rad2 := 110;
            end;
      'se' : begin
              Rad1 := 115;
              Rad2 := 155;
            end;
      's' : begin
              Rad1 := 160;
              Rad2 := 200;
            end;
      'sw' : begin
              Rad1 := 205;
              Rad2 := 245;
            end;
      'w' : begin
              Rad1 := 250;
              Rad2 := 290;
            end;
      'nw' : begin
              Rad1 := 295;
              Rad2 := 335;
            end;
      end;
      FRad := RandomBetween(Rad1,Rad2);
      iX := Round(TRadius * Sine(FRad)) + 646;
      iY := Round(-TRadius * Cose(FRad)) + 84;
      Mouse(iX,iY,5,5,true);
      FFlag(FFlagBreak);
    end;

  12. #12
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awsome, that looks confusing to make lol

    EDIT: there must be less complex way to run north, isnt there though because that looks so confusing for what it is.

  13. #13
    Join Date
    Jan 2007
    Location
    Not here
    Posts
    1,604
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    why don't u just use makecompass 'N' then do a really small start radial and end radial? then say you did like RadialWalk( {TheColor} , 0, 3, 60, {Xmod}, {Ymod});
    that should walk pretty much north....or u could use that with roadwalk...
    Sleeping...

  14. #14
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is there a way to just radial walk without usign a color because about half the radial walks i need in my scripts are differetn colors and the other half are a road. I just need a simple way to run north, east, and south.....

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
  •