Results 1 to 8 of 8

Thread: Mapwalking...

  1. #1
    Join Date
    Sep 2007
    Location
    Finland > Tampere
    Posts
    61
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Mapwalking...

    I'm making willow chopper/lighter...
    How can i make it to walk in to spot where i want? It have to go correct spot, so there is enought space to light all logs. Witch function would be the best.
    SCAR Code:
    procedure walktolightingspot;
    begin
    if(invfull)then
    begin
    if (FindColorSpiralTolerance(x, y, Grasscolor, MMX1, MMY1, MMX2, MMY2, 5))then
      Mouse(x, y, 0, 0,true);
    end;
    thats what i made but its pretty bad and its not working..

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make a DDTM, or use a TPointArray(TPA) to find the spot.
    I suggest using the: AutoColorAid V2 to do the autocoloring. To find it go to the SCAR Folder -> Scripting tools.

    -The_Shermanator
    Current Project: All In 1 Falador Script - 20% DONE

  3. #3
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    The Shermanator's ideas are better and more efficient, but if your not yet that experienced then try looking through the SRL manual and see if you can get a RadialWalk to work. There is about a million different ones. But definately use Shermanators ideas if your able.

  4. #4
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if it needs to go to a specific spot use reflection. it'll walk to the same tile every time if you don't use randomness.


  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    If he uses radial walking, then it could go anywhere in the set radius.

    Also, same tile every time = look like a bot
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    If he uses radial walking, then it could go anywhere in the set radius.
    That should be a good thing, if you go to the same exact spot everytime it will look bot like aswell. So, if you use radial walk, keep the radius small it will go to the same general location everytime but not the same exact location everytime.
    right?

  7. #7
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    use case's then e.g.
    SCAR Code:
    Case Random(3) Of
    0 : Begin
          setlength(....);
          result[..] := point(......);
          walktotile(....);
        End;
    1 : Begin
          setlength(....);
          result[..] := point(......);
          walktotile(....);
        End;
    2 : Begin
          setlength(....);
          result[..] := point(......);
          walktotile(....);
        End;
      End;
    of u wanna use radialwalk then just replace stuff between begin and end after
    Case Random(3) Of

  8. #8
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    You wouldnt need case for radial walk as I wouldnt go to exact spot everytime anyways, but that is a good idea if you want to use reflection.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapWalking help
    By tim46 in forum OSR Help
    Replies: 4
    Last Post: 06-09-2007, 03:47 PM

Posting Permissions

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