Results 1 to 11 of 11

Thread: Problem with compass

  1. #1
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem with compass

    I got some problem rotating compass

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      ActivateClient;
      GameTab(2);
      GameTab(4);
      wait(1000);
      MakeCompass('N');
      wait(1000);
      RadialWalk( 7193026 , 29, 31, 65, 0, 1);
      Flag;
      RadialWalk( 7193026 , 30, 32, 69, 0, 1);
      Flag;
    end.

    Here the thing don't always rotate,what is the problem?
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  2. #2
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works for me. It doesn't rotate if it is close to north but if you need it to reset the compass at north try rotating the compass beforehand. Also in your radialwalk try to use a larger radius. You are having it search a 2 degree radius and that is kind of unlikely that the road is there with how much the map can be off when pointing north. try at least a 15-20 degree radius. it will work much better i think.
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

  3. #3
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by SonOfSheep View Post
    Works for me. It doesn't rotate if it is close to north but if you need it to reset the compass at north try rotating the compass beforehand. Also in your radialwalk try to use a larger radius. You are having it search a 2 degree radius and that is kind of unlikely that the road is there with how much the map can be off when pointing north. try at least a 15-20 degree radius. it will work much better i think.
    Eh?Beforehand lol,i just want the stupid compass to rotate,not to stay jacked and make my script crash?

    And i use 2 degree radius because it's a script for al kharid :P
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Instead of
    SCAR Code:
    MakeCompass('N');
    Do
    SCAR Code:
    repeat
    until(MakeCompass('N'))
    That SHOULD work.

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should add randoms for your waits because that can get detectable using wait exactly 1 second all the time.

  6. #6
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ok, what are you trying to walk to anyway?

    and if the compass causes your script to crash it isn't your script, it has to do with srl.

    Unless mabey other peoples scripts work fine mabey your computer doesnt like compasses. I know when it finds the compass it spends 5-10 seconds checking it until it finds it.

    all i can say is 32 bit color, low detail, v bright, and make sure you have installed and setup the latest version of srl correctly.
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

  7. #7
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    You should add randoms for your waits because that can get detectable using wait exactly 1 second all the time.
    I know that was just an exemple

    Quote Originally Posted by SonOfSheep View Post
    oh ok, what are you trying to walk to anyway?

    and if the compass causes your script to crash it isn't your script, it has to do with srl.

    Unless mabey other peoples scripts work fine mabey your computer doesnt like compasses. I know when it finds the compass it spends 5-10 seconds checking it until it finds it.

    all i can say is 32 bit color, low detail, v bright, and make sure you have installed and setup the latest version of srl correctly.
    It cause the script to crash because it fucks up the radial walk and bring the character nowhere.

    look at the script now,it still dosen't work:

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    Procedure Compass;
    Begin
    repeat
    Until(Makecompass('N'));
    end;

    begin
      SetupSRL;
      ActivateClient;
      GameTab(2);
      GameTab(4);
      wait(1000+random(300));
      Compass;
      wait(1000+random(200));
      RadialWalk( 7193026 , 29, 31, 65, 0, 1);
      Flag;
      RadialWalk( 7193026 , 30, 32, 69, 0, 1);
      Flag;
    end.

    Sometimes the compass just dosen't rotate lol,i want it to rotate even if it's near to north
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  8. #8
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if its close to north it wont move. it will only move when it can tell it is majorily off.

  9. #9
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wooo,found out how,i just have to move the compas in the 4 directions and north as last
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

  10. #10
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    now that seems stupid to do. why dont you just go.
    makecompass('w');
    makecompass('n');

  11. #11
    Join Date
    Mar 2007
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good idea too lol
    Dormcheck is a scam,i've posted 1000 messages and i never got paid my 10 bucks.
    http://www.fenjer.com/adnan/SRLStats/348.png

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Compass
    By nemolorn in forum OSR Help
    Replies: 6
    Last Post: 07-23-2008, 03:32 AM
  2. New Compass
    By insanomano in forum News and General
    Replies: 2
    Last Post: 01-20-2008, 05:47 PM
  3. Compass
    By Jackrawl in forum OSR Help
    Replies: 6
    Last Post: 10-18-2007, 11:33 PM
  4. Found Compass Problem
    By osnapson in forum OSR Help
    Replies: 12
    Last Post: 06-29-2007, 05:20 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
  •