Log in

View Full Version : finding game chat



Littellj
03-07-2012, 03:39 AM
Is there a function that can "monitor" game chat so that if it finds something it will move onto another procedure/function. I dug through scripts and found this.

if pos( 'stunned', GetblackChatMessage) <> 0 then

I'm thinking if i did this

if pos( 'stunned', GetblackChatMessage) > 0 then

It might work?

Ashaman88
03-07-2012, 03:41 AM
I use this -


If FindBlackChatMessage('isn') Then


Instead of isn put a few characters of whatever text you are looking for

Littellj
03-07-2012, 03:43 AM
I use this -




Instead of isn put a few characters of whatever text you are looking for

Thanks :thumbsup:



Do i need to put
begin

end; between this case?


If FindBlackChatMessage('fail') Then
Case Random(2) of
1:Wait(4000);
2:Antiban;
end;

Caotom
03-07-2012, 12:13 PM
Thanks :thumbsup:



Do i need to put
begin

end; between this case?

No, you usually do not need a begin/end for one line cases (it's the same deal with if/then).

~Caotom