View Full Version : Talent Scount
RuneDragon
06-28-2012, 09:54 AM
Hi,
I want to check if Talent Scount is calling me.
His text color is
http://flashweb.in/tmp/ts.jpg
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 ?
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
06-28-2012, 10:23 AM
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
06-29-2012, 09:20 AM
@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
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.
CephaXz
06-29-2012, 12:52 PM
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.
BUN THAT SHIT.
FINDCOLORSTOLERANCE(TPA,PARAMS)
RESULT := LENGTH(TPA) > X
...
RuneDragon
06-29-2012, 04:55 PM
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
06-29-2012, 08:59 PM
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
06-29-2012, 09:29 PM
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
06-29-2012, 09:38 PM
...
masterBB
06-29-2012, 10:27 PM
Just use Cephax his solution
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.