SRL Archive - Help and Support

Best Method of Finding


BobboHobbo

2009-05-19 16:46:33

Well ive been playing GodsWar lately i think i like it to much, the game has an auto attacking system built in but it doesnt pick up loot. :l. Now this is where i want SCAR to find if theres loot, but i need the most accurate, not speed method of finding if theres loot.

Heres an image if there is loot:

The glowing blue things, is what i want to find. From what i know they all have the same apperance.

What should be used to find this glow thing with perfect accuracy?

Thanks. (Im not good at MS object finding thats why i post here xD)

senrath

2009-05-19 16:52:16

Do the colors change often like they do in Runescape?

Dynamite

2009-05-19 16:56:31

Can you give link again :D?

T~M

Naike

2009-05-19 17:02:35

BobboHobbo, How would you find an object in RS?
It's like almost the same ;P

Sir R. M8gic1an

2009-05-19 22:39:49

cts 2, FindColorsTolerance, TPAToATPAEx? :p

~RM

ShowerThoughts

2009-05-19 22:40:39

I think you will have to play on LQ.

BobboHobbo

2009-05-20 00:54:37

From: N1ke!
BobboHobbo, How would you find an object in RS?
It's like almost the same ;P


Yes but my TPA's are really poor, for some reason i cant understand what most of the stuff means even if i try to learn.

From: senrath
Do the colors change often like they do in Runescape?


No the colours dont change neither does the Compass.

From: Hermen
I think you will have to play on LQ.


What?

From: Rasta Magician
cts 2, FindColorsTolerance, TPAToATPAEx? :p

~RM


Example of a good one of those xD.

senrath

2009-05-20 00:56:59

If you can give me a bunch of high quality screenshots of what you're trying to locate, I can try and make something for you.

Nava2

2009-05-20 06:51:21

Split TPA and middle tpa ex would work.

Da 0wner

2009-05-20 11:35:32


function FindLoot(var x, y : integer) : boolean;
var
i, CTS : integer;
ATPA : T2DPointArray;
TPA : TPointArray;
begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
FindColorsTolerance(TPA, {YOURCOLOR}, x1, y1, x2, y2, tol);
ColorToleranceSpeed(CTS);
ATPA := SplitTPA(TPA, 5);
SortATPASize(ATPA, True);
for i := 0 to high(ATPA) do
begin
//what you want to do...
end;
end;
Don't forget to set the result. You can also use ACA to your advantage and use it to set some color speed 2 modifiers (hue and saturation).

Naum

2009-05-21 02:10:37

Guys a little FindObjEx seems good ?

Camaro'

2009-05-21 04:26:21

From: NaumanAkhlaQ
Guys a little FindObjEx seems good ?


OR what about just a simple Findcolor?

And a game that has auto attacking in it.. Seems pretty useless. everyone will get maxed..

Smartzkid

2009-05-21 06:35:21

Use HSL and TPA's. You want to check for high luminosity, so set your CTS modifiers accordingly.

Split the TPA's into groups of 10-15 pixels; if you have more than ~4 groups of more than ~15 pixels, then there's loot.

BobboHobbo

2009-05-21 10:37:02

From: The Cnr Sport
OR what about just a simple Findcolor?

And a game that has auto attacking in it.. Seems pretty useless. everyone will get maxed..


Wrong now im level 53 i left it on auto attack for about 20 hours barely leveled once.

Naum

2009-05-21 12:07:47

From: The Cnr Sport
OR what about just a simple Findcolor?

And a game that has auto attacking in it.. Seems pretty useless. everyone will get maxed..


Or what about a simple GetColor?
though that wouldn't be the best way

BobboHobbo

2009-05-21 12:13:21

Ok i came up with a script lol xD.

Its very noob xD


Function FindLoot1:boolean;
begin
if FindColorSpiral(x,y, 16777215,71, 152,813, 491) and FindBitmapToleranceIn(bitmap,x,y,55, 138 ,886, 569,2) then
begin
clickmouse(507,408,true);// clicks game centre to stop the character.
clickmouse(x,y,true);// Clicks the thing xD
if FindColorSpiral(XX,YY,255,71, 152,813, 491 ) then
begin
If (GetColor(449, 294) = 16760140)then // The loot menu.
begin
wait(100);
If FindBitmapToleranceIn(ironkey,x,y,284, 329 ,334, 384,5)then
begin
mouse(x,y,0,0,true);
end else
mouse(449, 291,0,0,true);
end;
end;
keydown(vk_f12);
wait(5);
keyup(vk_f12); //beings AFK again ^.
end;
end;

From what i know of this game has no Macro detection woot. xD

Naum

2009-05-21 16:21:42

From: BobboHobbo
Ok i came up with a script lol xD.

Its very noob xD


Function FindLoot1:boolean;
begin
if FindColorSpiral(x,y, 16777215,71, 152,813, 491) and FindBitmapToleranceIn(bitmap,x,y,55, 138 ,886, 569,2) then
begin
clickmouse(507,408,true);// clicks game centre to stop the character.
clickmouse(x,y,true);// Clicks the thing xD
if FindColorSpiral(XX,YY,255,71, 152,813, 491 ) then
begin
If (GetColor(449, 294) = 16760140)then // The loot menu.
begin
wait(100);
If FindBitmapToleranceIn(ironkey,x,y,284, 329 ,334, 384,5)then
begin
mouse(x,y,0,0,true);
end else
mouse(449, 291,0,0,true);
end;
end;
keydown(vk_f12);
wait(5);
keyup(vk_f12); //beings AFK again ^.
end;
end;

From what i know of this game has no Macro detection woot. xD



A bit shorter:


Function FindLoot1:boolean;
begin
if FindColorSpiral(x,y, 16777215,71, 152,813, 491) and FindBitmapToleranceIn(bitmap,x,y,55, 138 ,886, 569,2) then
begin
clickmouse(507,408,true);// clicks game centre to stop the character.
clickmouse(x,y,true);// Clicks the thing xD
end;
if FindColorSpiral(XX,YY,255,71, 152,813, 491 ) then
If (GetColor(449, 294) = 16760140)then // The loot menu.
wait(100);
If FindBitmapToleranceIn(ironkey,x,y,284, 329 ,334, 384,5)then
mouse(x,y,0,0,true) Else
mouse(449, 291,0,0,true);
end;
Begin
keydown(vk_f12); //no need for wait 5 as it will already wait due to lag inbetween procedures
keyup(vk_f12); //beings AFK again ^.
end;

Da 0wner

2009-05-22 00:46:14

Umm it will wait but a very short time when you have no wait in between. However if you do (like he has) it does and is not detectable (well it still is as it is not random).

Just add some randomness to the wait :).

noidea

2009-05-22 00:49:07

Make an include for it.
I made one for Frugooscape (When it was still around), and had the second highest game level in the game. Until some one beat me, right before it closed down :(

Sir R. M8gic1an

2009-05-22 02:33:49

From: NaumanAkhlaQ
Or what about a simple GetColor?
though that wouldn't be the best way


you do realize GetColor uses Fixed coords?

~RM

Da 0wner

2009-05-22 02:52:08

Maybe he means a GetColor of the entire screen with a loop :o?
Lol, still would probably be slow? Maybe?

Tniffoc

2009-05-22 03:44:49

I say TPA/ATPA CTS 2/3 w/ screenshot so it doesn't have to be s-dang fast.