Had to rewrite a lot of methods, such as .isBehindInterface(), because textures not visible apparently now cover the screen. So, my obsLividFarm will be delayed a day...
However! Here's a teaser:
Not really, lol. I finished the first draft this morning. Expecting that @Obscurity will have stuff to add before it gets posted though.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
Small update. Since Jagex's release of the clock, .isBehindInterface() has been acting all strange. For some reason, textures usually used for interface backgrounds are spanning across various areas of the client - though not visible. This makes the method think a point, texture, or model is behind an interface when it actually isn't.
So, I had to take a different approach, other then checking if the point was behind a background texture...
Now, it grabs all top corner textures. It then correctly groups them into pairs, matching the top-left to the top-right. It then looks for all bottom corner textures. It, again, correctly pairs them together and then partners them with the corresponding top corners. From here it's a simple .isInBox().
That said, sorry if the methods have been faulty since last Monday.
Apart from that, a few things have been added so that I can make my obsLividFarm public. .
OSRS does not have OGL capability right?
Faith is an oasis in the heart which will never be reached by the caravan of thinking.
Last edited by Zyt3x; 01-21-2015 at 10:08 PM. Reason: merged
Faith is an oasis in the heart which will never be reached by the caravan of thinking.
#slack4admin2016
<slacky> I will build a wall
<slacky> I will ban reflection and OGL hooking until we know what the hell is going on
Obscurity, thanks to you, OpenGL has blown up around here lately I plan to try my hand at scripting with obscurityLibrary after the aforementioned OpenGL tutorial is written.
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols
Awesome! It has some great potential and I look forward to what people can come up with!
Though, I'd thank Clarity before myself; This library was very much built around his needs and requests. :-P. He's also the one to get me hooked on it. Lol.
As always, if there's anything anyone needs or wants added to it, run it by me. I've only added what we've needed so far, but we're just two people. :-).
Added obsGetChooseOption() and obsSetChooseOption(). The explanations are below:
Simba Code:{
========================================
NOTE: The obsGetChooseOption function
returns a string array of available
option selections. For example, an
option while speaking to a banker is,
"I'd like to check my PIN settings."
Results are lowercase with spaces and
special characters removed.
EXAMPLES:
----------------------------------------
availableOptions:=obsGetChooseOption();
writeLN('The available options are:');
writeLN(availableOptions);
========================================
}Simba Code:{
========================================
NOTE: The obsSetChooseOption function
selects an option, if it exists, by
either pressing the relative button or
clicking it. Options are not case
sensitive and special characters will
be ignored.
EXAMPLES:
----------------------------------------
availableOptions:=obsGetChooseOption();
if availableOptions.contains('seeyouaround') then
obsSetChooseOption('SeE yOu ArOuNd!@#$');
========================================
}
The options these are referring to are...
An example usage could be encouraging Pauline in just two lines!
...since obsClickOption returns true if the right click option was found and clicked. Therefore, Pauline was, indeed, drained, as her right click otherwise excludes that word.Simba Code:if obsClickOption(pointPauline,'Encourage Drained Pauline Polaris') then
obsSetChooseOption(['Come on, youre doing so well.','Extraordinary!','Keep going! We can do this!','Lokar will really appreciate this.','Look at all the produce being made.','Youre doing a fantastic job.']);
Because of strange behaviours with textures being duped and drawn in odd places at odd sizes (see here), .extractDimensions(), .extractHeight(), and .extractWidth() have been added. For now, they only accept integers, but I plan on making something like .extractWidth('<25') an option.
Cant wait to use this When is that tutorial coming?
Not sure, TBH. My schedule hasn't exactly aligned with @Clarity's yet. We'll likely get in contact by the end of this weekend, I'd hope. Will prod him about it. .
Thank you very much!
I'm going to apologize in advance for this post... Lol. With some upcoming changes to plugins/etc, I've decided it's time to optimize the obscurityLibraryUpload.
What does this mean to you? Well, I've always focused on usability. I wanted my functions and things to be as easy to use as possible. This won't change. However, a number of methods will be changed. For example, glModelArray.closestTo(glModel) and all of its overloads will no longer return a single tPoint. It'll return a tPointArray, sorted by distance from glModel. This, of course, is only one example. Sorry!
I also wanted the library to be easy to read. This sacrificed performance. This is no longer a sacrifice I'm willing to make. The obscurityLibraryUpload is to help you use the OpenGL plugins. It doesn't have to be pretty, but if it's not the absolute fastest it can be then it'll render the upcoming changes to the plugin pointless. If your curious how to do something in OpenGL, perhaps something that the library does, I'm sure you'll be able to find it in our tutorial.
Now that you know that you've got some updating to do to your scripts, here's some good news. I've been making great progress in adding new functions, methods, and procedures that I'm excited to release. Things like realistic camera movement. Currently, I've only released obsSetCameraAngle() and obsSetCompassAngle(); You can only move either horizontal or vertical. obsSetView(compassAngle,cameraAngle) changes that! On top of that, the existing functionality will be much faster. The size of the library will also be much smaller.
Anyways, you can expect to see these changes this weekend! .
Gratz on the SRL Member!
By the way how can we debug model ids? I really want to give OpenGL a try, cant expect for the tutorial to come out!
That members though.
Now don't let the community down.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
There are currently 1 users browsing this thread. (0 members and 1 guests)