SRL Archive - OSR Help

OSR GetCompassAngle?


Sk1nyNerd

2013-04-11 23:15:10

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

Sjoe

2013-04-11 23:16:57

yeah that's the one

Writeln(ToStr(Rs_GetCompassAngleDegrees));

for debug

Sk1nyNerd

2013-04-11 23:23:37

From: Sjoekeloe
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

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.

Sjoe

2013-04-11 23:34:27

From: ibot_dung11
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)

Sk1nyNerd

2013-04-21 20:49:43

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