Results 1 to 8 of 8

Thread: Using BlindWalk - How to look less robotic?

  1. #1
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Smile Using BlindWalk - How to look less robotic?

    Hey there! I currently using blindwalk from the minireflection include. How do I go about making my character walk to the next flag before he reaches the current so my walking looks more human and less robotic? Thanks!

    This is what I currently have.

    Simba Code:
    procedure Walking;
    begin
     Writeln('Point' + ToStr(R_GetTileGlobal));
     blindwalk(Point(2776 + random(1), 3128 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2787 + random(1), 3125 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2797 + random(1), 3120 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2810 + random(1), 3121 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2818 + random(1), 3114 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2819 + random(1), 3104 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2828 + random(1), 3098 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2835 + random(1), 3089 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2843 + random(1), 3081 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2849 + random(1), 3072 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2851 + random(1), 3059 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2852 + random(1), 3044 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2861 + random(1), 3039 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2865 + random(1), 3029 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
     blindwalk(Point(2867 + random(1), 3021 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();

    end;

  2. #2
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Simba Code:
    procedure walking;
    begin
     blindwalk(Point(2867 + random(1), 3021 + random(1)));
     sleep(100 + random(200));
     FindNormalRandoms();
    end;

    it finds automatic a way so you only have to use the last tile.

    if it get stuck always at the same point i suggest to add a blindwalk point at the point where it gets stuck. from there you blindwalk to your last point

  3. #3
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Much appreciated. How do I go about making it click before it reaches the flag? Because as it stands, it's very start stoppy.

  4. #4
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    Much appreciated. How do I go about making it click before it reaches the flag? Because as it stands, it's very start stoppy.
    works good for me. just only use blindwalk once, not for every tile. use instead walkpath([]) if you want to walk with those tiles

  5. #5
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    works good for me. just only use blindwalk once, not for every tile. use instead walkpath([]) if you want to walk with those tiles
    Alright, ill give it a shot. Thanks! By the way.. great job on the reflection include.

  6. #6
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    Alright, ill give it a shot. Thanks! By the way.. great job on the reflection include.
    i didnt made the functions, i just put the most needed functions in a include and an auto updater for the hooks
    i manually update the hooks

  7. #7
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Since in that include blindWalk() basically makes a random TPA between your current location and destination, then passes that TPA to walkPath() then you'd want to modify walkPath() as it handles the actual walking. You'll find some "FFlags()" in there and that's what you will change. FFlag waits until you're within a certain distance from the flag on the MM before clicking the next walking tile. For example:
    Simba Code:
    FFlag(0);
    ^ This will wait until you've arrived exactly at the flag (0 distance);
    Simba Code:
    FFlag(5);
    ^ And this will wait until you've arrived 5 pixels (presumed to be 5 tiles) from the flag, before clicking the next tile in the path.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  8. #8
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Since in that include blindWalk() basically makes a random TPA between your current location and destination, then passes that TPA to walkPath() then you'd want to modify walkPath() as it handles the actual walking. You'll find some "FFlags()" in there and that's what you will change. FFlag waits until you're within a certain distance from the flag on the MM before clicking the next walking tile. For example:
    Simba Code:
    FFlag(0);
    ^ This will wait until you've arrived exactly at the flag (0 distance);
    Simba Code:
    FFlag(5);
    ^ And this will wait until you've arrived 5 pixels (presumed to be 5 tiles) from the flag, before clicking the next tile in the path.
    Thanks, that was a big help!

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
  •