SRL Archive - OSR Help

Color Finding


Death12652

2010-12-09 10:18:38

When I use FindColor() and I run my script it works perfectly but when I stop it and like wait an hour and come back to run it again it seems like the colors change and I have to update it every time. Anyone know why?

Also I have this as one of my antiban procedures

TypeSend('God only ' + IntToStr(XPTillNextLevel(16)) + ' xp until I level up');

and it gives me "1" as the xp everytime. Is there something wrong with it?

Also my GetSkillLevel(16) seems to be getting my agility skill level instad of my smithing. Is there something wrong with the GameTab.scar or is it my script?

Cstrike

2010-12-09 10:29:17

Best to use tolerance as sometimes colors do change. I'd say check the same pixel again an hour later and see what happens

FindColorTolerance() should exist AFAIK

Death12652

2010-12-09 10:39:15

Okay that sounds like a good idea I will use that. Can anyone answer my other stuff?

Here's another question if anyone can answer this as well it would be great, you know how you can do this….


FindDTM(DTM, X, Y, MIX1, MIY1, MIX2, MIY2)

and MI = Main Inverntory

is there one for the bank? Like MB = Main Bank or anything like that?

RISK

2010-12-09 14:47:04

No. There is no "MB" and etc. These are simply to locate the interface. Like "MI" = Main Inventory, "MM" = Main Map (Or was it Minimap?) and "MS" is Mainscreen. Here is a full list:

* MSX1 - The X coordinate of the top-left corner of the RuneScape mainscreen
* MSY1 - The Y coordinate of the top-left corner of the RuneScape mainscreen
* MSX2 - The X coordinate of the bottom-right corner of the RuneScape mainscreen
* MSY2 - The Y coordinate of the bottom-right corner of the RuneScape mainscreen
* MSCX - The X coordinate of the centre of the RuneScape mainscreen
* MSCY - The Y coordinate of the centre of the RuneScape mainscreen
* MMX1 - The X coordinate of the top-left corner of the RuneScape minimap
* MMY1 - The Y coordinate of the top-left corner of the RuneScape minimap
* MMX2 - The X coordinate of the bottom-right corner of the RuneScape minimap
* MMY2 - The Y coordinate of the bottom-right corner of the RuneScape minimap
* MMCX - The X coordinate of the centre of the RuneScape minimap
* MMCY - The Y coordinate of the centre of the RuneScape minimap
* MCX1 - The X coordinate of the top-left corner of the RuneScape chat box
* MCY1 - The Y coordinate of the top-left corner of the RuneScape chat box
* MCX2 - The X coordinate of the bottom-right corner of the RuneScape chat box
* MCY2 - The Y coordinate of the bottom-right corner of the RuneScape chat box
* MCCX - The X coordinate of the centre of the RuneScape chat box
* MCCY - The Y coordinate of the centre of the RuneScape chat box


- I got those from: Here. Thanks, TRiLeZ.

There might be a problem with GameTab.scar @ Your other question.

Also @ The color changing every so often:
AutoColor whatever it is you are attempting to find. If you need a tutorial check out the bottom of this post: Here

Death12652

2010-12-09 15:20:44

So if I were to do a FindDTM(DTM, X, Y, MSX1, MSY1, MSX2, MSY2)
would it start at the very top left and look for it or only look at the top left corner? thanks RISK

RISK

2010-12-09 16:49:39

No. It would search the entire "MS" for the DTM that you wish.

Death12652

2010-12-09 16:52:31

Good thats so much better I will change that in my script.

RISK

2010-12-09 17:06:38

If you have anymore questions feel free to ask them.

From: death12652
Good thats so much better I will change that in my script.

Death12652

2010-12-09 18:14:35

What would be a good tolerance for a Furnace color. Or what is the best way to search for the Furnace other than colors?

RISK

2010-12-09 18:20:35

Reflection is a good way to detect it if all else fails.

To find a good tolerance:
Open up Auto Color Aid v2 (You can find it in the scripting tools folder, if you have it) and then do this: Client -> Find RS -> Click the furnace colors or whatever colors on the furnace you wish to attempt to find and be sure to get a good list of colors if possible. -> Click "2" on the "CTS" area on the bottom right. -> It will now display something like this:

Now all of those are useful, especially if you are using TPAs for finding the furnace. But it also displays the best tolerance, which is what you specifically want.

Death12652

2010-12-09 18:56:22

Where/How am I suppose to get Auto Color Aid V2?

i luffs yeww

2010-12-09 19:00:55

http://uppit.com/9as3mpri5pk3/Scripting_Tools.zip

Shuttleu

2010-12-09 19:03:07

http://villavu.com/repositories/srl-opendev/Scripting%20Tools/
the official srl repo

~shut

i luffs yeww

2010-12-09 19:08:05

From: Shuttleu
http://villavu.com/repositories/srl-opendev/Scripting%20Tools/
the official srl repo

~shut


I svn co'd. ;) So don't worry about it being outdated; but it is good to know where I got it from.

Death12652

2010-12-09 19:52:34

Thanks that helps a lot. Weird that it gave me a different color and not one that is in the list as the "Best" color. Anyway thanks.