SRL Archive - Help

Talent Scount


RuneDragon

2012-06-28 05:54:36

Hi,

I want to check if Talent Scount is calling me.

His text color is


How do i find he is talking ?


function FindScout: Boolean;
var
i: Integer;
message: string;
begin

for i:= 1 to 8 do
begin

message:= GetChatBoxText(i, WHAT_I_PUT_HERE);

if (Pos('over', Lowercase(message)) > 0) then
begin
Result:= True;
Break;
end;

end;
end;

Is there any other easy way to detect him talking ?

Main

2012-06-28 05:58:00

my answer to your question

SINCE HE HAS A ORANGE FONT. YOU CAN JUST USE FINDCOLORTOLERANCE AND SEE IF THAT ORANGE TEXT POPS UP.



IF FINDCOLORTOLERANCE( X, Y, OCOL, MSX1, MSY1, MSX2, MSY2, OTOL) THEN
TALENTSCOUT := TRUE;

Sir Ducksworthy

2012-06-28 06:23:00

trololololol
btws if you do go to the talent scout you will need to do whatever task it is that he gives you and that might make things more complicated for you since you didn't know how to detect it and what not but I wish you good luck in your project man.

RuneDragon

2012-06-29 05:20:51

@Main Thank you. I will try that.

@leetsxc I was using my eyes to detect the orange text, disable smart, do the mini game thing myself. I rarely miss it :P So if script can Beep and terminate, i can handle it easily :P I always babysit my account :P

P1ng

2012-06-29 08:19:27

FINDCOLORTOLERANCE( X, Y, OCOL, MSX1, MSY1, MSX2, MSY2, OTOL)

Make those co-ords (MCX1, MCY1, MCX2, MCY2) otherwise this will hunt for the colour on the main-screen rather than the chatbox.

Main

2012-06-29 08:23:47

^What he said :) REP +

CephaXz

2012-06-29 08:52:00

Umm… You can actually use FindChatboxText

function FindChatBoxText(Text: string; Line: Integer; TextCol: Integer): Boolean;

Searches for Text on Line with colour TextCol. True if found.

Sin

2012-06-29 08:54:10

BUN THAT SHIT.
FINDCOLORSTOLERANCE(TPA,PARAMS)
RESULT := LENGTH(TPA) > X

…

RuneDragon

2012-06-29 12:55:50

Thanks everyone for the help. I tried with code provided by Main. But it won't work. I figured out it is ordinates, changed MS to MC. Tested for chat text (blue), it worked. I will test with Talent scout next time he calls me :P

CephaXz

2012-06-29 16:59:36

I believe the news of the game announcing players getting their skills to 99 had the same color. Finding just the color wouldn't help?

RuneDragon

2012-06-29 17:29:50

From: CephaXz
I believe the news of the game announcing players getting their skills to 99 had the same color. Finding just the color wouldn't help?


News is red color. So it won't be a problem for me. Anyway we can disable this news ?

CephaXz

2012-06-29 17:38:46

…

masterBB

2012-06-29 18:27:24

Just use Cephax his solution