Results 1 to 7 of 7

Thread: Compass

  1. #1
    Join Date
    Jul 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Compass

    I'm having a bit of trouble with the compass program. I have it set to align to north, but every time the script runs, it is at a different angle. Is there a way to align the compass to the same angle every time?

    I'm still learning my basics, but here is what I have so far:

    SCAR Code:
    program compass;

    {.include SRL/SRL.scar}

    begin
       Wait(4000)
      SetupSRL;
      Makecompass('w')
       Wait(1000)
      MakeCompass('n');
       Wait(1000)
      MoveMouseSmooth(610,155)
       Wait(1000)
      ClickMouse(610,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(628,155, True)
      MoveMouseSmooth(628,155)
       Wait(10000)
      ClickMouse(660,146, True)
      MoveMouseSmooth(619,115)
       Wait(15000)
      ClickMouse(619,115, True)
    end.

    It's suppose to take me from the Falador bank to the food shop in Port Sarim. But because of that 1-4° shift, It takes me to the general area, between the mining spot south of falador and the crafting guild to the port sarim docks. It's one or two extra click to fix this, but I'd like to get this walking script down so it works the same way everytime.

  2. #2
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use Radial walking, if it is still in existence. And Organize your script! But, I will find a tut for you on radial walking. Its really very easy.

    EDIT: Here it is --> http://www.villavu.com/forum/showthread.php?t=372

    I believe there is a make perfect north function as well. Use the wiki

  3. #3
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There is/was a perfectnorth; procedure. It takes much longer to do, but aligns it with a ~1° room for error.

    I agree, though. Use RadialWalk. Clicking on exactly the same spot each and every time will get you banned really fast. Radialwalk finds a color in a specific direction and clicks that. Much more random and, to be honest, precise than using exact coordinates.

    ~Macro
    Current Project: Catching up. XD. Potentially back for the summer, depending on how things go.

  4. #4
    Join Date
    Jul 2008
    Location
    Wyoming
    Posts
    91
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    just curious how would you make the compass perfect north.

    and Macro please check your PM's

  5. #5
    Join Date
    Jul 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where is the wiki?

    Running some tests using RadialWalk now to replace the constant.

    when using RadialWalk, do I need to use the Wait function between functions, or is that automatic?

    Edited in:

    SCAR Code:
    program compass;



    {.include SRL/SRL.scar}

    begin
      Wait(4000)
      SetupSRL;
      RadialWalk(6322302,240,210,70,-2,-2)
      Wait(2000)
      RadialWalk(6322302,200,100,70,-2,-2)
      Wait(2000)
      RadialWalk(6250599,200,100,70,-2,-2)
      Wait(2000)
      RadialWalk(6250599,200,100,70,-2,-2)
      Wait(2000)
      RadialWalk(6250599,200,100,70,-2,-2)
      Wait(2000)
      RadialWalk(214122,200,50,70,-2,-2)
    end.

    This works. . ish. The problem I'm having now is the color is changing? I have to reset the color's manually everytime I log in, then again every 4-5 runs.

    I'm assuming I can use Findcolor? or is there a better script?
    I'm walking through grass, so I am using the 214122 to find the color of trees to lock onto and walk towards.

  6. #6
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Compass perfect any direction:

    SCAR Code:
    Procedure MakeCompassStraight(Direction: String);
    Var I: Integer;
    begin
      for I:= 1 to 4 do
      begin
        MakeCompass(Lowercase(Direction));
        Wait(RandomRange(10, 550));
      end;
    end;

    Use it like so:

    SCAR Code:
    MakeCompassStraight('n'); //<---- replace the "n" with s, e, w, or n for north

    that should work :P

  7. #7
    Join Date
    Jul 2008
    Location
    Arizona
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Illkillutill View Post
    Compass perfect any direction:

    SCAR Code:
    Procedure MakeCompassStraight(Direction: String);
    Var I: Integer;
    begin
      for I:= 1 to 4 do
      begin
        MakeCompass(Lowercase(Direction));
        Wait(RandomRange(10, 550));
      end;
    end;

    Use it like so:

    SCAR Code:
    MakeCompassStraight('n'); //<---- replace the "n" with s, e, w, or n for north

    that should work :P
    replace the n with n, e ,w or n just a q how do you replace a n with an n anyway i think you should just take the whole part out and login and then manuly put it then start the script it would be easier or you can go ahead and try to fix it but if it all comes down to it you might have to go my way but try whatever you trhink is best and never tell your friend to tell them to hurry up and serach it!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New Compass
    By insanomano in forum News and General
    Replies: 2
    Last Post: 01-20-2008, 05:47 PM
  2. Compass
    By Jackrawl in forum OSR Help
    Replies: 6
    Last Post: 10-18-2007, 11:33 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
  •