May somebody give me the text and function to detect if your dead?
~ Thanks
May somebody give me the text and function to detect if your dead?
~ Thanks
FindDead;
SCAR Code:{*******************************************************************************
function FindDead: Boolean;
by: Stupid3ooo
Description: Checks for text "Ow dear you are dead".
Switches player if Reincarnate = True.
*******************************************************************************}
function FindDead: Boolean;
begin
Result := False;
if (GetColor(34, 445) = 0) and (GetColor(134, 445) = 0) then
begin
Deaths := Deaths + 1;
Result := True;
SaveToChatLog;
if Reincarnate then Exit
else
begin
if ScreenShots then
TakeScreen('Found Dead');
repeat
Wait(1000 + Random(1000));
until (not (LoggedIn));
//Players[CurrentPlayer].Loc := 'Oh Dear You Are in Lumby';
Players[CurrentPlayer].Rand := 'Oh Dear You Are in Lumby';
Players[CurrentPlayer].Active := False;
end;
end;
end;
From AntiRandoms.scar
I have found it to be inaccurate when using certain anti ban functions such as RandomRClick however.
FindDead
Edit: Beaten
I also found finddead to be inacurate.
Thanks, I new there was a Prodcedure for it I just didet think it would be in antirandoms :s
Any other alternatives?
You could do
SCAR Code:if (GetBlackChatMessage='h dear') then //will search for dead text in last line
begin
Blah;
end;
if IsChatBlackTextAnyLine('h dear') then //will search for dead text in All lines
begin
Blah;
end;
I use that in my script and it always works (although will be laggy for a couple seconds)
There are currently 1 users browsing this thread. (0 members and 1 guests)