Results 1 to 5 of 5

Thread: OSR GetCompassAngle?

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default OSR GetCompassAngle?

    in the p07 include there was a getcompassangle function so you could see what angle your compass was at. is there one for the OSR? im having a hard time changing my script from p07 to OSR.. lol. I noticed this in one of the includes but it doesnt seem to do anything. Rs_GetCompassAngleDegrees;

    thanks for the help

  2. #2
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    yeah that's the one

    Writeln(ToStr(Rs_GetCompassAngleDegrees));

    for debug

    Creds to DannyRS for this wonderful sig!

  3. #3
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    yeah that's the one

    Writeln(ToStr(Rs_GetCompassAngleDegrees));

    for debug
    oh i was doing IntToStr lol...
    but when you first log in isnt the camera facing north? because when i log in it says my compass is set for 8.7461622625552

    Code:
    program OSRGetCompass;
    
    {$DEFINE SMART8}
    {$I SRL-OSR/SRL.simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    
    procedure DeclarePlayer;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      Players[0].Name := ''; //Enter your username
      Players[0].Pass := ''; //Enter your password
      //Players[0].Pin:= ''; //Enter your bankpin
      Players[0].WorldInfo  := []; //Enter a desired world or leave blank for random
      Players[0].Nick := ''; //Enter your username as seen when logged in or parts of it
      Players[0].LampSkill := Skill_Slayer;
      Players[0].Active := True;
    end;
    
    procedure getcompassangle;
    begin
    Writeln(ToStr(Rs_GetCompassAngleDegrees));
    end;
    
    begin
    DeclarePlayer;
    SetupSRL;
    ActivateClient;
    ClearDebug;
    Wait(1000);
    If (Not LoggedIn) then
    begin
      LogInPlayer;
    end;
    begin
    repeat
      getcompassangle;
    until(Not LoggedIn);
    end;
    TerminateScript;
    end.
    Last edited by Sk1nyNerd; 04-12-2013 at 03:34 AM.

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by ibot_dung11 View Post
    oh i was doing IntToStr lol...
    but when you first log in isnt the camera facing north? because when i log in it says my compass is set for 8.7461622625552
    Don't know about osrs. The angle should be correct. (It does not match with minimap though, since that shifts)

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    is there a function to set the camera angles height? im a little sketched to have it go all the way down or all the way up and adjusting the time to go back up or down to get at a specific height

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

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
  •