SRL Archive - OSR Help

Setting an angle?


Nufineek

2013-10-30 17:50:25

So, I'm running Nexz's script (link here) and I have adjusted it to handle my laggs. The only thing I couldn't do is to set angle to high North. I'm new to SRL scripting and I'm still a bit confused about SRL versions, but I beleive this Nexz's script is not running on SRL-6 (?)

Neither of these functions worked for me:

SetAngle(SRL_ANGLE_HIGH);

RandomAngle(1)

Could anyone explain me how to get those functions working, or tell me other way of getting my camera angle high North? Thanks! :)

Nufineek

2013-11-03 11:02:06

Nobody?

Hoodz

2013-11-03 11:18:49

Maybe you can do something like this?

I dont know if this is correct but it should be similar

Presskey(''); or holdkey(''); cant remember..
Wait(amount of time the angle is high);
Releasekey('');

Replace the empty parameters with the correct key (vk_up ?) not sure.

Nufineek

2013-11-03 15:25:25

From: hoodz
Maybe you can do something like this?

I dont know if this is correct but it should be similar

Presskey(''); or holdkey(''); cant remember..
Wait(amount of time the angle is high);
Releasekey('');

Replace the empty parameters with the correct key (vk_up ?) not sure.


Yeah something similar would be cool but it doesn't work.

Hoodz

2013-11-03 16:04:13

From: Nufineek
Yeah something similar would be cool but it doesn't work.


why not?

AdeptWalrus

2013-11-04 08:55:45

Put this in the script after logging in

typeByteWait(vk_up, 500 + random(100));

That presses the key for 500 and a random 100, change those values depending on what you think is human, but that should work for.

EDIT: To get it to be straight north you can click the compass next to the minimap. Use something like

mouse((Point(761, 55).rand(10)), MOUSE_LEFT, MOUSE_HUMAN);