SRL Archive - RS3 Help

Travelling in ogLib


Krzysztof

2015-06-07 13:21:18

Greetings

Is there any in-depth with examples tutorial or guide on how to travel around (via minimap clicking or something) by using ogLib?
I know I can use SPS in SRL-6, and Clarity in his fearsome OpenGL Beginner Tutorial stated it's easy to travel via the minimap in ogLib, however I do not know how

smallEdit: It seems ogLib can be soon(trademark) made compatible with SRL-6 and therefore SPS, so theres that.

Would love some responses.
Cheers.

Clarity

2015-06-07 17:56:03

Well SPS will be rather inconvenient to use with ogLib as it is based on SRL-6 official color settings which severely limit OGL capabilities. Additionally it fails in variation-less landscapes like the desert and polar regions, or any area with too many similar color patterns.

Anyways, you can easily walk anywhere with OGL you'd like using the functions within minimap.simba.

minimap.clickDirection for general, non-specific movement. Good for combat situations.
minimap.getLocalPosition for 100% accurate positioning on the true map, regardless of rotation or appearance on client
minimap.getScreenPosition for 100% accurate clicking of minimap paths.

Below is a graphic detailing the latter two functions.


Because OGL is 100% accurate in this respect you will want to randomize your clicks, so as not to click the exact same map pixels every time.

While I suppose we can make a minimap.walkPath at some point, I currently prefer manually scripting walk procedures to ensure unique behavior in my scripts.

Ross

2015-06-07 18:02:26

From: Clarity
Well SPS will be rather inconvenient to use with ogLib as it is based on SRL-6 official color settings which severely limit OGL capabilities. Additionally it fails in variation-less landscapes like the desert and polar regions, or any area with too many similar color patterns.

Anyways, you can easily walk anywhere with OGL you'd like using the functions within minimap.simba.

minimap.clickDirection for general, non-specific movement. Good for combat situations.
minimap.getLocalPosition for 100% accurate positioning on the true map, regardless of rotation or appearance on client
minimap.getScreenPosition for 100% accurate clicking of minimap paths.

Below is a graphic detailing the latter two functions.


Because OGL is 100% accurate in this respect you will want to randomize your clicks, so as not to click the exact same map pixels every time.

While I suppose we can make a minimap.walkPath at some point, I currently prefer manually scripting walk procedures to ensure unique behavior in my scripts.


I use functions in my scripts based on the above functions that I will post elsewhere on the forums.

edit: it's up here.

Krzysztof

2015-06-08 02:09:12

Thank you for responses.
Let's see how many hours I require to sit with it on my script to make it work :D

Cheers