SRL Archive - OSR Help

What font is this; and how do i make it click the specific color


iPhone

2011-07-17 01:23:47

The colors I picked (debug)

Color Picked: 85981 at (322, 154)
Color Picked: 370862 at (159, 162)
Color Picked: 3095622 at (198, 159)
Color Picked: 1781557 at (222, 162)
Color Picked: 5921621 at (288, 161)
Color Picked: 370862 at (355, 155)
Color Picked: 5067346 at (162, 184)
Color Picked: 43264 at (200, 194)
Color Picked: 5330261 at (231, 193)
Color Picked: 605562 at (260, 191)
Color Picked: 407451 at (292, 192)
Color Picked: 65536 at (322, 194)
Color Picked: 5462623 at (358, 190)
Color Picked: 65536 at (169, 225)
Color Picked: 65536 at (164, 226)
Color Picked: 8158069 at (171, 225)
Color Picked: 3095622 at (172, 221)
Color Picked: 65536 at (193, 229)
Color Picked: 1781557 at (194, 233)
Color Picked: 16777215 at (863, 191)
Color Picked: 5921621 at (230, 227)
Color Picked: 65536 at (260, 223)
Color Picked: 65536 at (258, 224)
Color Picked: 801368 at (258, 235)
Color Picked: 85981 at (291, 230)
Color Picked: 801368 at (325, 227)
Color Picked: 5593690 at (350, 234)

the image (what font this is)

how do i make it so if that comes up, make it read the text of the skill, in that one its "hitpoints", and click the following color codes (hitpoints > 3047422)

What I have so far.


program LexxxxAutoAlcher;
begin

procedure AntiCheatInterace;
hitpoints = 3047422;
attack = 370862;
strength = 3095622;
range = 1781557;
defence = 5921621;
prayer = 370862;
agility = 5067346;
herblore = 43264;
thieving = 5330261;
crafting = 605562;
runecrafting = 407451;
slayer = 65536;
farming = 5462623;
mining = 3095622;
smithing = 1781557;
fishing = 5921621;
cooking = 801368;
firemaking = 85981;
woodcutting = 801368;
fletching = 5593690;
end;

If FindText(x, y, 'itpoints'

end.


I looked at tuts, didn't understand half…

I believe this is right section if not, infract me… :C :duh:

Smarter Child

2011-07-17 02:00:28

Since your on an older RS, why don't you just assign coordinates to each skill? Or, you could use if GetColor(x, y) = HPColor then ClickMouse

etc.

KingKong

2011-07-17 02:38:54

I think you have to make your own font for this, because i havent seen that in rs2

Gu3st...

2011-07-17 07:44:32

What I'd do is to count the number of orange points ("Hitpoints" text color in this case) and make a case like this:

case CoundColor() of
0: Skill := SKILL_HP;
1337: Skill := SKILL_SMITHING;
9001: Skill := SKILL_SAILING;
else
WriteLn('Unable');
Exit;
end;

Dgby714

2011-07-17 07:52:44

From: Zyt3x
What I'd do is to count the number of orange points ("Hitpoints" text color in this case) and make a case like this:

case CoundColor() of
0: Skill := SKILL_HP;
1337: Skill := SKILL_SMITHING;
9001: Skill := SKILL_SAILING;
else
WriteLn('Unable');
Exit;
end;


Every skill comes up as a different color. afaik…

KingKong

2011-07-17 07:57:01

It could be the font that i attached, but im not sure.

iPhone

2011-07-18 20:58:41

From: Smarter Child
Since your on an older RS, why don't you just assign coordinates to each skill? Or, you could use if GetColor(x, y) = HPColor then ClickMouse

etc.
.


can you help me with this please ?


Edit:

just might not work, cause it shows all skills, so how would i do it if it asks to click Hitpoints.. it could click it everytime the interface comes up

KingKong

2011-07-19 02:04:01

From: iPhone
.



can you help me with this please ?


Edit:

just might not work, cause it shows all skills, so how would i do it if it asks to click Hitpoints.. it could click it everytime the interface comes up


Make a bitmap of a part of the interface and then make your function called screenexists, and this should work:


program new;
{$i srl\srl.scar}

procedure clickallskills;
var
coords: TPointArray;
a: Integer;
begin
coords:= [Point(1, 1), Point(2, 5), Point(6, 8)];
for a:= 0 to High(coords) do
begin
Mouse(coords[a].x, coords[a].y, 0, 0, True);
wait(1500 + Random(150));
if screenexists then
continue;
break;
end;
end;


begin
clickallskills;
end.

Shuttleu

2011-07-19 04:30:08

i dont get what the problem is, if the name of each skill is a different color then cant he just search for the color, if they are the same color then why not count the color?

~shut

KingKong

2011-07-19 05:04:16

From: Shuttleu
i dont get what the problem is, if the name of each skill is a different color then cant he just search for the color, if they are the same color then why not count the color?

~shut


That is only one part of the solution……

Here is what he needs to do:
1)Find out what skill he needs to click
2)Click it

or do it my way :norris:

Shuttleu

2011-07-19 05:21:51

what client is it?

~shut

KingKong

2011-07-19 05:37:45

From: Shuttleu
what client is it?

~shut


You mean what private server? Im gonna have a stab in the dark and say its CrisisX.

Shuttleu

2011-07-19 06:48:04

ok, assuming it is CrisisX, any idea what he is doing so i can reproduce it

~shut

KingKong

2011-07-19 07:33:30

From: Shuttleu
ok, assuming it is CrisisX, any idea what he is doing so i can reproduce it

~shut


That screenshot he posted in the OP is basically the equivalent of a random event for that server(which might or might not be crisisx since ive played it quite a while ago). To reproduce it….i think you just do some skill for a few mins. So if he gets that screen and tells him to click Attack, then he needs to click the attack button. And he's asking for help on how to do it.

iPhone

2011-07-19 09:25:24

server is GenerationX Eco

317

He just added this for alching so im trying to bot it without the error of that coming up ;l

Shuttleu

2011-07-19 10:06:36

ok, well i cant figure out where to get a axe or knife

this one?
http://genclient.nlvl.info/client/client.html

~shut

iPhone

2011-07-19 10:16:21

Yes

Add me: Ipod or iPhone

if u have msn or skype here:
msn: [email]apples-r-ftw-like-u-umm-lol@live.com[/email]
skype: ipod.pker

Shuttleu

2011-07-19 10:54:15

you dont seem to be on msn

~shut

iPhone

2011-07-19 11:07:41

try now

iPhone

2011-07-19 18:22:07

anyone :l

masterBB

2011-07-19 18:26:13

You need to make a dtm of the text. If I can find time I will make this for you tomorrow.

Shuttleu

2011-07-19 18:27:30

well i would, but i cant seem to get any fletching done because i cant get the tools

~shut

iPhone

2011-07-19 18:29:01

Magic tab > W teleport > Bob

Brandon

2011-07-19 23:27:49

To solve this you can make masked bitmaps of each of the letters.. gunna require precise photo editing.. I used to do it for scar a very long time ago.. you make a masked bitmap and loop through it..

so: for each bitmap u have, u match it with a tolerance to the text on the screen.. MUCH HARDER than the second option below.

Or u can make a masked bitmap for each of the *words* if the font doesn't change.. if it does u'd have to use a masked deformed bitmap with an certain accuracy range.

pseudo code:
if find MaskedHitpointsBitmap then click hitpoints.. etc etc..

Shuttleu

2011-07-20 05:07:28

i have been fletching for over half an hour now and i havent got one yet

~shut

EDIT: okay i have now got 70 wc and 50 fletching and still nothing

i cant help if i dont get the thing

iPhone

2011-07-20 11:06:36

This only comes up if you use Magic (alchemy) and Thieving

masterBB

2011-07-20 11:15:04

Haha, lol. Well that´s funny, for me at least.

Iphone, I think you could have mentioned to shuttleu that it only shows up while alching when he asked for the tools to do so.

Rep for both of you!