SRL Archive - RS has been updated.

Runescape Uptext updated.... again.


Heavenguard

2009-12-08 19:03:55

I was going to practice DDTM's this evening since TArrays confused me, But loading up RS we had a update. The numbers and stuff look changed, so i tested this tree clicker thingy, uptext changed again.
// Hey everyone, These notes are to be used to Reinforce Our Knowledge on Making an AutoColor.
// You should have read some type of tutorial on making your own AutoColors (from Auto Color Aid V2). Coh3n's All-In-One Tutorial Adavanced Section has a nice rundown on how to use it.
// Once again, these are Notes only intended to help me and you (mostly me xD), you should have read a tutorial of some sort so you know the basics on how everything goes down :D.
// Well here we go, Lets start practicing!

program Learning_How_To_Make_A_AutoColor_And_Use_It; // Making/Using Your own AutoColor is simple, fast, and to Me, The Best way to find an accurate color.
{.include SRL/SRL.scar} // Be sure to include SRL in your Scripts, I know I sound like a robot when I repeat these things, I only want to keep reminding my self and/or you.

// Now for our Big Part, were going to make our own AutoColor using the Auto Color Aid V2. You should already know how to use this Beautiful Program, but of course I'm gonna explain it rougly anyways.
// Auto Color Aid V2 basically takes a group of colors (In this case well be using a tree), and after picking 4-5 colors on the tree, We set the Color Tolerance Speed (more on that soon).
// After we get 4-5 Colors from whatever(Tree in this case) and set our CTS to 2, We then ask it whats the best color to look for, and boom, the best color and all of its settings are chosen. Beautiful ey.
// The Color we are given has settings to it. It has Humidity(Hue) which is how Bright the color is, and Saturation(Sat) which is how Pure the color is. You should already know this, this is only a rouch explanation.
// Thats basically it, After we have those settings ( The Best Color, Tolerance, Humidity, and Saturation) were ready to plug it into our FindColor Function :D.
// So Im just gonna tell you my Settings for finding a Tree, Which is my Best Color, my Tolerance, my Humidity, and my Saturation.
// Best Color : 3373675 , Tolerance : 11, Humidity : 0.03, Saturation : 1 // These are my settings that I got, I'm certain your's will be much much different. Anyways, Lets get on with the Script.

Function ChopTree : Boolean; // Our Function ChopTree is going to Chop a Tree. Simple :D.
var // Since Were going to be using the Function FindColorSpiralTolerance, were going to need to declare the variables X and Y.
x, y : Integer;
begin // Begins our Function.
x := MSCX // You should know what I'm doing here, FindColorSpiralTolerance searches for colors from the Center - Out, Like a spiral. We tell scar that X is Main Screen Center : X.
y := MSCY // Same exact thing, Except for Y. If we do not do this then the Function FindColorSpiralTolerance would screw up.

// Remember I told you we had to set our ColorToleranceSpeed(CTS) to 2? Well, were going to have to tell SCAR that our ColorToleranceSpeed is 2. We do this by typing this simple Line.
// ColorToleranceSpeed(2); // Very simple. Now incase you forgot, ColorToleranceSpeed is pretty much the time Scar takes to find a Color.
// You can use 0 - 3 , ColorToleranceSpeed(0) is the fastest of all speeds, but the accuracy of Finding the Color is the lowest. ColorToleranceSpeed(1) is Scar's default Setting, Fast, yet still not what were looking for in accuracy.
// ColorToleranceSpeed(2) is what you will want to be using most/all of the time, while taking slightly(like 10%) more time, it gives us a MUCH better accuracy with the color. Much Much better xD!
// ColorToleranceSpeed(3) is takes a little more time finding a color, but the accuracy of that color is amazing. I haven't used (3) yet since (2) works perfectly fine.
// I hope that little rundown refreshed your memory, well lets set that ColorToleranceSpeed shall we!

ColorToleranceSpeed(2);
// Next were going to set the Humidity and Saturation. Which is for me (0.03, 1). Simple. Make sure you put your Humidity and Saturation down not mine lol.
SetColorSpeed2Modifiers(0.03, 1); // SetColorSpeed2Modifiers(Humidity, Saturation) is only used when we have ColorToleranceSpeed(2). It makes the accuracy of finding the color even much more accurate!
// Thats it for that >.> the tough part is done, we just set our ColorToleranceSpeed to 2, and use SetColorSpeed2Modifiers to place the Humidity and Saturation.
// On with the easy part.
if not LoggedIn then Exit; // You should know what this does xD :D Best failsafe ever.
if FindColorSpiralTolerance(x, y, 3373675, MSX1, MSY1, MSX2, MSY2, 11) then // Nothing changed here, just put in the Best Color you got from AutoColorAid V2 for color as well as the Tolerance.
begin // So once SCAR picks up the Color we set it does this
Writeln('Found Color of the Tree!, Moving Mouse to Tree'); // Well, the color I made was for a tree, so if it finds the Tree Color, Then it tells me in the Debug Box that it found it.
MMouse(x, y, 4, 4); // Moves the Mouse to X and Y which are coordinates saved from FindColorSpiralTolerance.
Writeln('Checking the Uptext of the Tree'); // Tells me in the Debug box that its going to check for the Uptext of the Tree.
if WaitUpText('ree', 1000) then // WaitUpText simply waits the Time told, then checks for the UpText told. Its pretty much the Functions Wait and IsUpText build together.
// Remember, WaitUpText will only check for one Uptext, that means : WaitUpText(['ree','hop'], 1000) would not work. If you had no idea what I did there, dont worry about it, just remember that You can only check one Uptext at a time. Not 2, 3, etc.
begin // So if the Uptext has the word 'ree' after waiting 1 second then Scar will....
Writeln('UpText found! Clicking on Tree');// Tells me in the Debug Box that the UpText was found, and it will click on the tree now.
Mouse(x, y, 0, 0, True);// No randomness needed since the mouse is already on the Tree. True will left click the mouse.
Result := True; // The Result is True after Scar clicks the Tree.
end else // if Scar did not find that Uptext(WaitUpText) then...
Writeln('Did not find the Uptext');
end else // if Scar did not find the Color from FindColorSpiralTolerance then...
Writeln('Did not find the Tree');
end;// Ends the Function.

begin // Main Loop!!!
SetupSRL;// Compiles the SRL Folder.
ClearDebug; // Clears the Debug Box.
ActivateClient; // Activates the Current Client. Make sure you dragged your black crosshair over the Runescape window!.
if ChopTree then // So if the Function ChopTree was True ( which was after it clicked the Tree ) then..
Writeln('Chopped the Tree!!!')
else // But if it was False ( if it did not Click the Tree ) then...
Writeln('Did not Chop the Tree D=');
end.
// Well, I hope my notes helped you, Remember, Making your Own AutoColor is easy, Accurate, and FUN :D. Its a great thing, seriously.
Sorry for all the comments and Stuff, its one of my notes i made.
it hovered over the tree, didn't read the uptext.

In the Debug Box :
Found Color of the Tree!, Moving Mouse to Tree
Checking the Uptext of the Tree
Did not find the Uptext
Did not Chop the Tree D=
Successfully executed

Can someone clarify one more time, dont want it to only be me.

Wanted

2009-12-08 19:16:01

Edit: nevermind @below

Latest SCAR 3.23 beta revision, I use uptext for mysterious ruins, portal, air altar… all seems to be working. Small chars numbers are messing up again though. :(

Heavenguard

2009-12-08 19:34:10

>.> im still using the regular scar, 3.22 that I downloaded about a month ago.
Can anyone else just post if thats the problem. Thanks.

Awkwardsaw

2009-12-08 19:47:49

yeah, the fonts should have been returned to the way they where, jagex says so in theyre update post :p

Wanted

2009-12-08 19:50:43

Actually it's working just as good as it was yesterday, update to SCAR beta 3.23 latest rev

Heavenguard

2009-12-08 19:52:10

=[ k.

Freddy1990

2009-12-08 22:13:40

From: Awkwardsaw
yeah, the fonts should have been returned to the way they where, jagex says so in theyre update post :p


Doesn't look any different aside from the 0 for UpText

Wanted

2009-12-08 23:31:23

From: Freddy1990
Doesn't look any different aside from the 0 for UpText


What about the 0 for stat chars? GetSkillLevel isn't picking up skills with 0 in them

Edit: Temp fix for stat char 48

http://freddy1990.com/forums/index.php?topic=3994.0

Heavenguard

2009-12-09 09:33:10

Problem Solved I guess, Checked back with it this morning, Uptext is readable :D. Thanks!

Gu3st...

2009-12-09 09:59:20

http://services.runescape.com/m=news/newsitem.ws?id=2479

Bottom line: All fonts should be back to normal.

kingarabian

2009-12-15 21:11:58

I think there doing this on purpose. Just to make things harder on Java bots. If this becomes a trend there onto something ;).

Wanted

2009-12-15 21:15:17

http://freddy1990.com/forums/index.php?topic=4001.0

0 for all fonts changed again, freddy hasn't updated yet -.-

tarajunky

2009-12-15 21:56:16

Text DTMs ftw!

Wanted

2009-12-15 21:57:14

From: tarajunky
Text DTMs ftw!


Lmao, yea right… make me text dtms for 0 for smallchars and stat chars then we'll see… if it's for upchars just use countcolor XD

I uploaded stat,small,and upchars48 (0) to that freddy thread.